Merge pull request #4176 from h-hirokawa/fix4174

Fix azure_rm_virtualmachine to create a storage account with name contains lower-case only  (#4174).
reviewable/pr18780/r1
Chris Houseknecht 8 years ago committed by GitHub
commit eab6bb8794

@ -1142,9 +1142,10 @@ class AzureRMVirtualMachine(AzureRMModuleBase):
valid_name = False
# Attempt to find a valid storage account name
storage_account_name_base = self.name[:20].lower()
for i in range(0, 5):
rand = random.randrange(1000, 9999)
storage_account_name = self.name[:20] + str(rand)
storage_account_name = storage_account_name_base + str(rand)
if self.check_storage_account_name(storage_account_name):
valid_name = True
break

Loading…
Cancel
Save