This repository was archived by the owner on Jun 17, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -201,15 +201,17 @@ class Deployer(object):
201201 self .client.resource_groups.delete(self .resource_group)
202202```
203203
204- The ` __init__ ` method initializes the class with subscription, resource group and public key. The method also fetches
204+ The ` __init__ ` method initializes the class with the subscription, resource group and public key. The method also fetches
205205the Azure Active Directory bearer token, which will be used in each HTTP request to the Azure Management API. The class
206206will raise exceptions under two conditions: if the public key path does not exist, or if there are empty
207- values for Tenant Id, Client Id or Client Secret environment variables.
207+ values for ` AZURE_TENANT_ID ` , ` AZURE_CLIENT_ID ` or ` AZURE_CLIENT_SECRET ` environment variables.
208208
209- The ` deploy ` method does the heavy lifting of creating or updating the resource group, preparing the template,
209+ The ` deploy ` method does the heavy lifting of creating or updating the resource group, preparing the template
210210parameters and deploying the template.
211211
212212The ` destroy ` method simply deletes the resource group thus deleting all of the resources within that group.
213+ Note that it is commented out in ` azure_deployment.py ` . But you can uncomment it to easily clean up the resources
214+ created by this sample if you no longer need them.
213215
214216Each of the above methods use the ` azure.mgmt.resource.ResourceManagementClient ` class, which resides within the
215217[ azure-mgmt-resource] ( https://pypi.python.org/pypi/azure-mgmt-resource/ ) package ([ see the docs here] ( http://azure-sdk-for-python.readthedocs.io/en/latest/resourcemanagement.html ) ).
You can’t perform that action at this time.
0 commit comments