You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You need to create two certificates, one for the server (a .cer file) and one for the client (a .pem file). To create the .pem file using [OpenSSL](http://www.openssl.org), execute this:
openssl x509 -inform pem -in mycert.pem -outform der -out mycert.cer
219
+
220
+
### List Available Locations
221
+
222
+
```Python
223
+
locations = sms.list_locations()
224
+
for location in locations:
225
+
print(location.name)
226
+
```
227
+
228
+
### Create a Storage Service
229
+
230
+
To create a storage service, you need a name for the service (between 3 and 24 lowercase characters and unique within Windows Azure), a label (up to 100 characters, automatically encoded to base-64), and either a location or an affinity group.
231
+
232
+
```Python
233
+
name ="mystorageservice"
234
+
desc = name
235
+
label = name
236
+
location ='West US'
237
+
238
+
result = sms.create_storage_account(name, desc, label, location=location)
239
+
```
240
+
241
+
242
+
### Create a Cloud Service
243
+
244
+
A cloud service is also known as a hosted service (from earlier versions of Windows Azure). The **create_hosted_service** method allows you to create a new hosted service by providing a hosted service name (which must be unique in Windows Azure), a label (automatically encoded to base-64), and the location *or* the affinity group for your service.
245
+
246
+
```Python
247
+
name ="myhostedservice"
248
+
desc = name
249
+
label = name
250
+
location ='West US'
251
+
252
+
result = sms.create_hosted_service(name, label, desc, location=location)
253
+
```
254
+
255
+
### Create a Deployment
256
+
257
+
To make a new deployment to Azure you must store the package file in a Windows Azure Blob Storage account under the same subscription as the hosted service to which the package is being uploaded. You can create a deployment package with the [Windows Azure PowerShell cmdlets](https://www.windowsazure.com/en-us/develop/php/how-to-guides/powershell-cmdlets/), or with the [cspack commandline tool](http://msdn.microsoft.com/en-us/library/windowsazure/gg432988.aspx).
0 commit comments