Azure / Azure/azure-cli

az vmss list --resource-group

Open
#18,696 2 comments 0 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-observability-squad Compute feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Just now I created a cluster and just after AKS cluster is created, it creates agetpool whose type is VMSS.

I requested the command

az vmss list --resource-group MC_storage1142-containers-rg_newcluster_centralus

then it gives result as

[]**

**And the I run az vmss list --resource-group MC_storage1142-containers-rg_newcluster_centralus --debug
It gives output as**

cli.knack.cli: Command arguments: ['vmss', 'list', '--resource-group', 'MC_storage1142-containers-rg_newcluster_centralus', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
Init colorama.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [, , ]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'vmss': ['azure.cli.command_modules.vm']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: vm 0.272 44 225
cli.azure.cli.core: Total (1) 0.272 44 225
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: Total (0) 0.000 0 0
cli.azure.cli.core: Loaded 44 groups, 225 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : vmss list
cli.azure.cli.core: Command table: vmss list
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate []
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\minormon\.azure\commands\2021-06-30.07-14-56.vmss_list.17488.log'.
az_command_data_logger: command args: vmss list --resource-group {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [.add_subscription_parameter at 0x03F9A148>, .register_query_examples at 0x03FA5808>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [.add_ids_arguments at 0x03FA5850>, .add_cache_arguments at 0x03FA58E0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [, , .handle_example_parameter at 0x03F9A220>, .parse_ids_arguments at 0x03FA5898>]
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ComputeManagementClient
cli.azure.cli.core.adal_authentication: AdalAuthentication.get_token invoked by Track 2 SDK with scopes=('https://management.core.windows.net//.default',)
cli.azure.cli.core._profile: Retrieving token from ADAL for resource 'https://management.core.windows.net/'
cli.azure.cli.core.util: attempting to read file C:\Users\minormon\.azure\accessTokens.json as utf-8-sig
adal-python: d7d0c313-6e10-4316-b4a6-63ae36d3478f - Authority:Performing instance discovery: ...
adal-python: d7d0c313-6e10-4316-b4a6-63ae36d3478f - Authority:Performing static instance discovery
adal-python: d7d0c313-6e10-4316-b4a6-63ae36d3478f - Authority:Authority validated via static instance discovery
adal-python: d7d0c313-6e10-4316-b4a6-63ae36d3478f - TokenRequest:Getting token from cache with refresh if necessary.
adal-python: d7d0c313-6e10-4316-b4a6-63ae36d3478f - CacheDriver:finding with query keys: {'_clientId': '...', 'userId': '...'}
adal-python: d7d0c313-6e10-4316-b4a6-63ae36d3478f - CacheDriver:Looking for potential cache entries: {'_clientId': '...', 'userId': '...'}
adal-python: d7d0c313-6e10-4316-b4a6-63ae36d3478f - CacheDriver:Found 8 potential entries.
adal-python: d7d0c313-6e10-4316-b4a6-63ae36d3478f - CacheDriver:Resource specific token found.
adal-python: d7d0c313-6e10-4316-b4a6-63ae36d3478f - CacheDriver:Returning token from cache lookup, AccessTokenId: b'8+ymvfNWNFpmVBKSQXRZTijz6W7LbUCG+jPXj8AN5a4=', RefreshTokenId: b'I9UlGa54TDlY0PPjNqV4XZHlIk3oyJLolO5SYNGtPR8='
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/96fbde75-88c0-4302-8491-fc79a2ab76d4/resourceGroups/MC_storage1142-containers-rg_newcluster_centralus/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2021-03-01'
cli.azure.cli.core.sdk.policies: Request method: 'GET'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'c5ec5c81-d944-11eb-91ce-106530fb1249'
cli.azure.cli.core.sdk.policies: 'CommandName': 'vmss list'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--resource-group --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.25.0 (MSI) azsdk-python-azure-mgmt-compute/21.0.0 Python/3.8.9 (Windows-10-10.0.18362-SP0)'
cli.azure.cli.core.sdk.policies: 'Authorization': '*****'
cli.azure.cli.core.sdk.policies: Request body:
cli.azure.cli.core.sdk.policies: This request has no body
urllib3.connectionpool: Starting new HTTPS connection (1): management.azure.com:443
urllib3.connectionpool: https://management.azure.com:443 "GET /subscriptions/96fbde75-88c0-4302-8491-fc79a2ab76d4/resourceGroups/MC_storage1142-containers-rg_newcluster_centralus/providers/Microsoft.Compute/virtualMachineScaleSets?api-version=2021-03-01 HTTP/1.1" 200 133
cli.azure.cli.core.sdk.policies: Response status: 200
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-Type': 'application/json; charset=utf-8'
cli.azure.cli.core.sdk.policies: 'Content-Encoding': 'gzip'
cli.azure.cli.core.sdk.policies: 'Expires': '-1'
cli.azure.cli.core.sdk.policies: 'Vary': 'Accept-Encoding'
cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-reads': '11991'
cli.azure.cli.core.sdk.policies: 'x-ms-request-id': 'b22e3120-947c-4c70-ba85-cb34e92e3958'
cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': 'b22e3120-947c-4c70-ba85-cb34e92e3958'
cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'WESTINDIA:20210630T014457Z:b22e3120-947c-4c70-ba85-cb34e92e3958'
cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains'
cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff'
cli.azure.cli.core.sdk.policies: 'Date': 'Wed, 30 Jun 2021 01:44:57 GMT'
cli.azure.cli.core.sdk.policies: 'Content-Length': '133'
cli.azure.cli.core.sdk.policies: Response content:
cli.azure.cli.core.sdk.policies: {"value":[]}
cli.knack.cli: Event: CommandInvoker.OnTransformResult [, ]
cli.knack.cli: Event: CommandInvoker.OnFilterResult []
[]
cli.knack.cli: Event: Cli.SuccessfulExecute []
cli.knack.cli: Event: Cli.PostExecute []
az_command_data_logger: exit code: 0
cli.__main__: Command ran in 1.414 seconds (init: 0.258, invoke: 1.156)
telemetry.save: Save telemetry record of length 2922 in cache
telemetry.check: Negative: The C:\Users\minormon\.azure\telemetry.txt was modified at 2021-06-30 07:10:24.743777, which in less than 600.000000 s

**and after sometime when I again ran az vmss list --resource-group MC_storage1142-containers-rg_newcluster_centralus

it gave me appropriate output.

Why this unexpected behavior is happening
Could you please help me in this**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.