-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Unable to set queue/topic max-size bigger than 5GB on Standard Tier #31702
Description
Describe the bug
According to the Azure Service Bus documentation Standard tier supports queue/topic size up to 80GB.
But when i try running azure cli command, it fails..
Related command
az servicebus queue create --name test-1 --namespace-name xxx --resource-group yyy --max-size 81920
Errors
Error:
Code: MessagingGatewayBadRequest
Message: SubCode=40000. The specified value 81920 is invalid. The property MaxSizeInMegabytes, must be one of the following values: 1024;2048;3072;4096;5120. To know more visit https://aka.ms/sbResourceMgrExceptions.
Issue script & Debug output
cli.knack.cli: Command arguments: ['servicebus', 'queue', 'create', '--name', 'test-1', '--namespace-name', 'xxx', '--resource-group', 'yyy', '--max-size', '81920', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x0000020ABE88B2E0>, <function OutputProducer.on_global_arguments at 0x0000020ABEC2C180>, <function CLIQuery.on_global_arguments at 0x0000020ABEC51580>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'servicebus': ['azure.cli.command_modules.servicebus']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: servicebus 0.424 16 25
cli.azure.cli.core: Total (1) 0.424 16 25
cli.azure.cli.core: Loaded 16 groups, 25 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : servicebus queue create
cli.azure.cli.core: Command table: servicebus queue create
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x0000020AC0F2B1A0>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\xxxx.azure\commands\2025-06-24.13-10-20.servicebus_queue_create.33672.log'.
az_command_data_logger: command args: servicebus queue create --name {} --namespace-name {} --resource-group {} --max-size {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x0000020AC0F53A60>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x0000020AC10462A0>, <function register_cache_arguments..add_cache_arguments at 0x0000020AC10463E0>, <function register_upcoming_breaking_change_info..update_breaking_change_info at 0x0000020AC1046480>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0000020ABEC2C220>, <function CLIQuery.handle_query_parameter at 0x0000020ABEC51620>, <function register_ids_argument..parse_ids_arguments at 0x0000020AC1046340>]
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\Users\xxxx\.azure\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\xxxx.azure\msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/zzzzz
msal.authority: openid_config("https://login.microsoftonline.com/zzzzz/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/zzzzz/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/zzzzz/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/zzzzz/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/zzzzz/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/zzzzz/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/zzzzz/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/zzzzz/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? True
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.windows.net//.default',), kwargs={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 6308adde-03f3-4675-a26c-753842f9b63d
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/xxxx/resourceGroups/yyy/providers/Microsoft.ServiceBus/namespaces/xxx/queues/test-1?api-version=2022-01-01-preview'
cli.azure.cli.core.sdk.policies: Request method: 'PUT'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json'
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'Content-Length': '45'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'd10cb14d-50eb-11f0-9a6a-94b60924df87'
cli.azure.cli.core.sdk.policies: 'CommandName': 'servicebus queue create'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --namespace-name --resource-group --max-size --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.74.0 (MSI) azsdk-python-core/1.31.0 Python/3.12.10 (Windows-11-10.0.26100-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': '*****'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: {"properties": {"maxSizeInMegabytes": 81920}}
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "PUT /subscriptions/xxxx/resourceGroups/yyy/providers/Microsoft.ServiceBus/namespaces/xxx/queues/test-1?api-version=2022-01-01-preview HTTP/1.1" 400 411
cli.azure.cli.core.sdk.policies: Response status: 400
cli.azure.cli.core.sdk.policies: Response headers:
cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache'
cli.azure.cli.core.sdk.policies: 'Content-Length': '411'
cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'f168c6a1-9a79-4da9-a6e3-1e884f914e7e'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'd10cb14d-50eb-11f0-9a6a-94b60924df87_RP'
cli.azure.cli.core.sdk.policies: 'x-ms-messaging-activity-id': '5d328ae4-0b87-4941-90c4-04f0069e8362'
cli.azure.cli.core.sdk.policies: 'x-ms-messaging-routing-id': 'WESTEUROPE|WESTEUROPE|G3|2025-06-24T11:10:24'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'x-ms-operation-identifier': 'tenantId=zzzzz,objectId=xxxx'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-writes': '199'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-global-writes': '2999'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'f168c6a1-9a79-4da9-a6e3-1e884f914e7e'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'zzz'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'X-Cache': 'CONFIG_NOCACHE'
cli.azure.cli.core.sdk.policies: 'X-MSEdge-Ref': 'Ref A: 6C1371A27EAB482DAAF05BAE24A2C1F2 Ref B: VIEEDGE1414 Ref C: 2025-06-24T11:10:22Z'
cli.azure.cli.core.sdk.policies: 'Date': 'Tue, 24 Jun 2025 11:10:23 GMT'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"error":{"code":"MessagingGatewayBadRequest","message":"SubCode=40000. The specified value 81920 is invalid. The property MaxSizeInMegabytes, must be one of the following values: 1024;2048;3072;4096;5120. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:5d328ae4-0b87-4941-90c4-04f0069e8362_G4, SystemTracker:xxx:Queue:test-1, Timestamp:2025-06-24T11:10:24"}}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 666, in execute
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 734, in _run_jobs_serially
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 703, in _run_job
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_command.py", line 155, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/servicebus/aaz/latest/servicebus/queue/_create.py", line 30, in _handler
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/servicebus/aaz/latest/servicebus/queue/_create.py", line 153, in _execute_operations
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/servicebus/aaz/latest/servicebus/queue/_create.py", line 177, in call
File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/aaz/_operation.py", line 327, in on_error
azure.core.exceptions.HttpResponseError: (MessagingGatewayBadRequest) SubCode=40000. The specified value 81920 is invalid. The property MaxSizeInMegabytes, must be one of the following values: 1024;2048;3072;4096;5120. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:5d328ae4-0b87-4941-90c4-04f0069e8362_G4, SystemTracker:xxx:Queue:test-1, Timestamp:2025-06-24T11:10:24
Code: MessagingGatewayBadRequest
Message: SubCode=40000. The specified value 81920 is invalid. The property MaxSizeInMegabytes, must be one of the following values: 1024;2048;3072;4096;5120. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:5d328ae4-0b87-4941-90c4-04f0069e8362_G4, SystemTracker:xxx:Queue:test-1, Timestamp:2025-06-24T11:10:24
cli.azure.cli.core.azclierror: (MessagingGatewayBadRequest) SubCode=40000. The specified value 81920 is invalid. The property MaxSizeInMegabytes, must be one of the following values: 1024;2048;3072;4096;5120. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:5d328ae4-0b87-4941-90c4-04f0069e8362_G4, SystemTracker:xxx:Queue:test-1, Timestamp:2025-06-24T11:10:24
Code: MessagingGatewayBadRequest
Message: SubCode=40000. The specified value 81920 is invalid. The property MaxSizeInMegabytes, must be one of the following values: 1024;2048;3072;4096;5120. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:5d328ae4-0b87-4941-90c4-04f0069e8362_G4, SystemTracker:xxx:Queue:test-1, Timestamp:2025-06-24T11:10:24
az_command_data_logger: (MessagingGatewayBadRequest) SubCode=40000. The specified value 81920 is invalid. The property MaxSizeInMegabytes, must be one of the following values: 1024;2048;3072;4096;5120. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:5d328ae4-0b87-4941-90c4-04f0069e8362_G4, SystemTracker:xxx:Queue:test-1, Timestamp:2025-06-24T11:10:24
Code: MessagingGatewayBadRequest
Message: SubCode=40000. The specified value 81920 is invalid. The property MaxSizeInMegabytes, must be one of the following values: 1024;2048;3072;4096;5120. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:5d328ae4-0b87-4941-90c4-04f0069e8362_G4, SystemTracker:xxx:Queue:test-1, Timestamp:2025-06-24T11:10:24
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x0000020AC0F2B420>]
az_command_data_logger: exit code: 1
cli.main: Command ran in 2.591 seconds (init: 0.274, invoke: 2.316)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 4740 in cache file under C:\Users\xxxx.azure\telemetry\20250624131022718
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry_init_.pyc C:\Users\xxxx.azure C:\Users\xxxx.azure\telemetry\20250624131022718"
telemetry.process: Return from creating process 11536
telemetry.main: Finish creating telemetry upload process.
Expected behavior
Queue with 80GB size created
Environment Summary
azure-cli 2.74.0
core 2.74.0
telemetry 1.1.0
Dependencies:
msal 1.32.3
azure-mgmt-resource 23.3.0
Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Config directory 'C:\Users\xxxx\.azure'
Extensions directory 'C:\Users\xxxx\.azure\cliextensions'
Python (Windows) 3.12.10 (tags/v3.12.10:0cc8128, Apr 8 2025, 12:21:36) [MSC v.1943 64 bit (AMD64)]
Additional context
No response
