mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-08 09:24:01 -07:00
modified storageaccount fact return curated result with connection string (#49702)
This commit is contained in:
parent
896e320142
commit
664e6fb9c8
8 changed files with 521 additions and 66 deletions
|
@ -1779,10 +1779,10 @@ class AzureRMVirtualMachine(AzureRMModuleBase):
|
|||
self.log("Storage account {0} found.".format(storage_account_name))
|
||||
self.check_provisioning_state(account)
|
||||
return account
|
||||
sku = self.storage_models.Sku(self.storage_models.SkuName.standard_lrs)
|
||||
sku = self.storage_models.Sku(name=self.storage_models.SkuName.standard_lrs)
|
||||
sku.tier = self.storage_models.SkuTier.standard
|
||||
kind = self.storage_models.Kind.storage
|
||||
parameters = self.storage_models.StorageAccountCreateParameters(sku, kind, self.location)
|
||||
parameters = self.storage_models.StorageAccountCreateParameters(sku=sku, kind=kind, location=self.location)
|
||||
self.log("Creating storage account {0} in location {1}".format(storage_account_name, self.location))
|
||||
self.results['actions'].append("Created storage account {0}".format(storage_account_name))
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue