|
|
@@ -17,12 +17,12 @@ For common issues during setup, check the following section:
|
|
|
|
|
|
Create a provider
|
|
|
-----------------
|
|
|
-To start, you will need to create a reference to a provider object. The
|
|
|
-provider object identifies the cloud you want to work with and supplies your
|
|
|
-credentials. The following two code snippets setup a necessary provider object,
|
|
|
-for AWS and OpenStack. For the details on other providers, take a look at the
|
|
|
-`Setup page <topics/setup.html>`_. The remainder of the code is the same for
|
|
|
-either provider.
|
|
|
+To start, you will need to create a reference to a provider object. The provider
|
|
|
+object identifies the cloud you want to work with and supplies your credentials.
|
|
|
+The following code snippets show the needed configuration fields to setup a
|
|
|
+necessary provider object, for AWS, OpenStack, and Azure. For details on how to
|
|
|
+setup providers, take a look at the `Setup page <topics/setup.html>`_. The
|
|
|
+remainder of the code is the same for either provider.
|
|
|
|
|
|
AWS:
|
|
|
|
|
|
@@ -75,9 +75,10 @@ Azure:
|
|
|
config = {'azure_subscription_id': 'REPLACE WITH ACTUAL VALUE',
|
|
|
'azure_client_id': 'REPLACE WITH ACTUAL VALUE',
|
|
|
'azure_secret': 'REPLACE WITH ACTUAL VALUE',
|
|
|
- 'azure_tenant': ' REPLACE WITH ACTUAL VALUE'}
|
|
|
+ 'azure_tenant': ' REPLACE WITH ACTUAL VALUE',
|
|
|
+ 'azure_resource_group' : 'REPLACE WITH ACTUAL VALUE'}
|
|
|
provider = CloudProviderFactory().create_provider(ProviderList.AZURE, config)
|
|
|
- image_id = 'ami-2d39803a' # Ubuntu 14.04 (HVM)
|
|
|
+ image_id = '/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.Compute/images/{image-name}' #
|
|
|
|
|
|
|
|
|
List some resources
|