Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/azure-cli/azure/cli/command_modules/vm/_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1766,7 +1766,8 @@ def _validate_vmss_create_host_group(cmd, namespace):

def _validate_count(namespace):
if namespace.count < 2 or namespace.count > 250:
raise ValidationError('--count should be in [2, 250]')
raise ValidationError(
'--count should be in [2, 250]. Please make sure your subscription has enough quota of resources')
banned_params = [
namespace.attach_data_disks,
namespace.attach_os_disk,
Expand All @@ -1781,9 +1782,7 @@ def _validate_count(namespace):
namespace.public_ip_address_dns_name,
namespace.storage_account,
namespace.storage_container_name,
namespace.subnet,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we remove it here?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because I disabled it. Now I decide to enable it.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

namespace.use_unmanaged_disk,
namespace.vnet_name
]
params_str = [
'--attach-data-disks',
Expand Down