diff --git a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py index a1c4b093cc4..a3bd213b862 100644 --- a/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py +++ b/src/command_modules/azure-cli-vm/azure/cli/command_modules/vm/custom.py @@ -1960,7 +1960,7 @@ def _get_public_ip_address_allocation(value, sku): master_template.add_resource(ag_resource) # create storage accounts if needed for unmanaged disk storage - if storage_profile in [StorageProfile.SACustomImage, StorageProfile.SAPirImage]: + if storage_profile == StorageProfile.SAPirImage: master_template.add_resource(build_vmss_storage_account_pool_resource( cmd, 'storageLoop', location, tags, storage_sku)) master_template.add_variable('storageAccountNames', [