Azure / azure-cli

Azure Command-Line Interface
MIT License
4.02k stars 2.99k forks source link

`az webapp connection create sql` returned `AttributeError: 'bytes' object has no attribute 'get'` #28528

Closed doggy8088 closed 6 months ago

doggy8088 commented 8 months ago

Describe the bug

I referenced this doc: https://learn.microsoft.com/en-us/azure/app-service/tutorial-connect-msi-azure-database

When I run the following command:

az webapp connection create sql --resource-group <group-name> --name <server-name> --target-resource-group <group-name> --server <sql-name> --database <database-name> --system-identity --client-type <client-type>

I always get the following error:

The command failed with an unexpected error. Here is the traceback:
'bytes' object has no attribute 'get'
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 664, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 731, 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 701, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 334, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\wakau\.azure\cliextensions\serviceconnector-passwordless\azext_serviceconnector_passwordless\custom.py", line 31, in connection_create_ext
    return connection_create_func(cmd, client, connection_name, client_type,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/serviceconnector/custom.py", line 477, in connection_create_func
  File "C:\Users\wakau\.azure\cliextensions\serviceconnector-passwordless\azext_serviceconnector_passwordless\_credential_free.py", line 73, in enable_mi_for_db_linker
    user_object_id = get_object_id_of_current_user()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/serviceconnector/_utils.py", line 346, in get_object_id_of_current_user
AttributeError: 'bytes' object has no attribute 'get'

Related command

az webapp connection create sql

Errors

AttributeError: 'bytes' object has no attribute 'get'

Issue script & Debug output

cli.knack.cli: Command arguments: ['webapp', 'connection', 'create', 'sql', '--resource-group', 'Chimei0308', '--name', 'chimei0308', '--system-identity', '--client-type', 'dotnet', '--target-resource-group', 'Chimei0308', '--server', 'chimei0308-server', '--database', 'chimei0308-db', '--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 0x000001B9F4343920>, <function OutputProducer.on_global_arguments at 0x000001B9F44CA0C0>, <function CLIQuery.on_global_arguments at 0x000001B9F44F3C40>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'webapp': ['azure.cli.command_modules.appservice', 'azure.cli.command_modules.serviceconnector', 'azext_serviceconnector_passwordless']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name                  Load Time    Groups  Commands
cli.azure.cli.core: appservice                0.371        73       260
cli.azure.cli.core: serviceconnector          0.177        16       244
cli.azure.cli.core: Total (2)                 0.548        89       504
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: serviceconnector-passwordless      0.183        11        16  C:\Users\wakau\.azure\cliextensions\serviceconnector-passwordless
cli.azure.cli.core: Total (1)                 0.183        11        16
cli.azure.cli.core: Loaded 87 groups, 504 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command  : webapp connection create sql
cli.azure.cli.core: Command table: webapp connection create sql
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x000001B9F73EEDE0>]
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x000001B9F7445440>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x000001B9F74454E0>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x000001B9F7445620>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x000001B9F44CA160>, <function CLIQuery.handle_query_parameter at 0x000001B9F44F3CE0>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x000001B9F7445580>]
cli.azure.cli.core.commands: The behavior of this command has been altered by the following extension: serviceconnector-passwordless
cli.azure.cli.command_modules.serviceconnector._validators: Connection name is not specified, use generated one: --connection sql_wzli7
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=ServiceLinkerManagementClient
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\\Users\\wakau\\.azure\\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\wakau\.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: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/ccec8496-d6cc-402d-87aa-ccbe57f3b4b9/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/ccec8496-d6cc-402d-87aa-ccbe57f3b4b9/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/ccec8496-d6cc-402d-87aa-ccbe57f3b4b9/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/ccec8496-d6cc-402d-87aa-ccbe57f3b4b9/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/ccec8496-d6cc-402d-87aa-ccbe57f3b4b9/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/ccec8496-d6cc-402d-87aa-ccbe57f3b4b9/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/ccec8496-d6cc-402d-87aa-ccbe57f3b4b9/kerberos', 'tenant_region_scope': 'AS', '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? None
cli.azure.cli.command_modules.serviceconnector._utils: CompletedProcess(args='az account show -o json', returncode=0, stdout=b'{\r\n  "environmentName": "AzureCloud",\r\n  "homeTenantId": "ccec8496-d6cc-402d-87aa-ccbe57f3b4b9",\r\n  "id": "0aad06c8-1561-43b6-b7d1-713118b2a0f0",\r\n  "isDefault": true,\r\n  "managedByTenants": [],\r\n  "name": "TEMP Sponsorship",\r\n  "state": "Enabled",\r\n  "tenantId": "ccec8496-d6cc-402d-87aa-ccbe57f3b4b9",\r\n  "user": {\r\n    "name": "wakau1@hotmail.com",\r\n    "type": "user"\r\n  }\r\n}\r\n', stderr=b'')
cli.azure.cli.command_modules.serviceconnector._utils: CompletedProcess(args='az account show -o json', returncode=0, stdout=b'{\r\n  "environmentName": "AzureCloud",\r\n  "homeTenantId": "ccec8496-d6cc-402d-87aa-ccbe57f3b4b9",\r\n  "id": "0aad06c8-1561-43b6-b7d1-713118b2a0f0",\r\n  "isDefault": true,\r\n  "managedByTenants": [],\r\n  "name": "TEMP Sponsorship",\r\n  "state": "Enabled",\r\n  "tenantId": "ccec8496-d6cc-402d-87aa-ccbe57f3b4b9",\r\n  "user": {\r\n    "name": "wakau1@hotmail.com",\r\n    "type": "user"\r\n  }\r\n}\r\n', stderr=b'')
cli.azure.cli.command_modules.serviceconnector._utils: CompletedProcess(args='az sql db show --ids "/subscriptions/0aad06c8-1561-43b6-b7d1-713118b2a0f0/resourceGroups/Chimei0308/providers/Microsoft.Sql/servers/chimei0308-server/databases/chimei0308-db" -o json', returncode=0, stdout=b'{\r\n  "autoPauseDelay": null,\r\n  "availabilityZone": "NoPreference",\r\n  "catalogCollation": "SQL_Latin1_General_CP1_CI_AS",\r\n  "collation": "SQL_Latin1_General_CP1_CI_AS",\r\n  "createMode": null,\r\n  "creationDate": "2024-03-08T03:09:29.600000+00:00",\r\n  "currentBackupStorageRedundancy": "Local",\r\n  "currentServiceObjectiveName": "Basic",\r\n  "currentSku": {\r\n    "capacity": 5,\r\n    "family": null,\r\n    "name": "Basic",\r\n    "size": null,\r\n    "tier": "Basic"\r\n  },\r\n  "databaseId": "f483bc8a-06a4-4aa9-9b6b-10c544768fd6",\r\n  "defaultSecondaryLocation": "southeastasia",\r\n  "earliestRestoreDate": "2024-03-08T03:22:09+00:00",\r\n  "edition": "Basic",\r\n  "elasticPoolId": null,\r\n  "elasticPoolName": null,\r\n  "encryptionProtector": null,\r\n  "encryptionProtectorAutoRotation": null,\r\n  "failoverGroupId": null,\r\n  "federatedClientId": null,\r\n  "freeLimitExhaustionBehavior": null,\r\n  "highAvailabilityReplicaCount": null,\r\n  "id": "/subscriptions/0aad06c8-1561-43b6-b7d1-713118b2a0f0/resourceGroups/Chimei0308/providers/Microsoft.Sql/servers/chimei0308-server/databases/chimei0308-db",\r\n  "identity": null,\r\n  "isInfraEncryptionEnabled": false,\r\n  "keys": null,\r\n  "kind": "v12.0,user",\r\n  "ledgerOn": false,\r\n  "licenseType": null,\r\n  "location": "eastasia",\r\n  "longTermRetentionBackupResourceId": null,\r\n  "maintenanceConfigurationId": "/subscriptions/0aad06c8-1561-43b6-b7d1-713118b2a0f0/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/SQL_Default",\r\n  "managedBy": null,\r\n  "manualCutover": null,\r\n  "maxLogSizeBytes": null,\r\n  "maxSizeBytes": 2147483648,\r\n  "minCapacity": null,\r\n  "name": "chimei0308-db",\r\n  "pausedDate": null,\r\n  "performCutover": null,\r\n  "preferredEnclaveType": null,\r\n  "readScale": "Disabled",\r\n  "recoverableDatabaseId": null,\r\n  "recoveryServicesRecoveryPointId": null,\r\n  "requestedBackupStorageRedundancy": "Local",\r\n  "requestedServiceObjectiveName": "Basic",\r\n  "resourceGroup": "Chimei0308",\r\n  "restorableDroppedDatabaseId": null,\r\n  "restorePointInTime": null,\r\n  "resumedDate": null,\r\n  "sampleName": null,\r\n  "secondaryType": null,\r\n  "sku": {\r\n    "capacity": 5,\r\n    "family": null,\r\n    "name": "Basic",\r\n    "size": null,\r\n    "tier": "Basic"\r\n  },\r\n  "sourceDatabaseDeletionDate": null,\r\n  "sourceDatabaseId": null,\r\n  "sourceResourceId": null,\r\n  "status": "Online",\r\n  "tags": {},\r\n  "type": "Microsoft.Sql/servers/databases",\r\n  "useFreeLimit": null,\r\n  "zoneRedundant": false\r\n}\r\n', stderr=b'')
cli.azure.cli.command_modules.serviceconnector._utils: CompletedProcess(args='az account show', returncode=0, stdout=b'EnvironmentName    HomeTenantId                          IsDefault    Name              State    TenantId\r\n-----------------  ------------------------------------  -----------  ----------------  -------  ------------------------------------\r\nAzureCloud         ccec8496-d6cc-402d-87aa-ccbe57f3b4b9  True         TEMP Sponsorship  Enabled  ccec8496-d6cc-402d-87aa-ccbe57f3b4b9\r\n', stderr=b'')
cli.azure.cli.command_modules.serviceconnector._utils: Expecting value: line 1 column 1 (char 0)
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 664, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 731, 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 701, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 334, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\wakau\.azure\cliextensions\serviceconnector-passwordless\azext_serviceconnector_passwordless\custom.py", line 31, in connection_create_ext
    return connection_create_func(cmd, client, connection_name, client_type,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/serviceconnector/custom.py", line 477, in connection_create_func
  File "C:\Users\wakau\.azure\cliextensions\serviceconnector-passwordless\azext_serviceconnector_passwordless\_credential_free.py", line 73, in enable_mi_for_db_linker
    user_object_id = get_object_id_of_current_user()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/serviceconnector/_utils.py", line 346, in get_object_id_of_current_user
AttributeError: 'bytes' object has no attribute 'get'

cli.azure.cli.core.azclierror: The command failed with an unexpected error. Here is the traceback:
az_command_data_logger: The command failed with an unexpected error. Here is the traceback:
cli.azure.cli.core.azclierror: 'bytes' object has no attribute 'get'
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 664, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 731, 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 701, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 334, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\wakau\.azure\cliextensions\serviceconnector-passwordless\azext_serviceconnector_passwordless\custom.py", line 31, in connection_create_ext
    return connection_create_func(cmd, client, connection_name, client_type,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/serviceconnector/custom.py", line 477, in connection_create_func
  File "C:\Users\wakau\.azure\cliextensions\serviceconnector-passwordless\azext_serviceconnector_passwordless\_credential_free.py", line 73, in enable_mi_for_db_linker
    user_object_id = get_object_id_of_current_user()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/serviceconnector/_utils.py", line 346, in get_object_id_of_current_user
AttributeError: 'bytes' object has no attribute 'get'
az_command_data_logger: 'bytes' object has no attribute 'get'
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 664, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 731, 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 701, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 334, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\wakau\.azure\cliextensions\serviceconnector-passwordless\azext_serviceconnector_passwordless\custom.py", line 31, in connection_create_ext
    return connection_create_func(cmd, client, connection_name, client_type,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/serviceconnector/custom.py", line 477, in connection_create_func
  File "C:\Users\wakau\.azure\cliextensions\serviceconnector-passwordless\azext_serviceconnector_passwordless\_credential_free.py", line 73, in enable_mi_for_db_linker
    user_object_id = get_object_id_of_current_user()
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/serviceconnector/_utils.py", line 346, in get_object_id_of_current_user
AttributeError: 'bytes' object has no attribute 'get'
To check existing issues, please visit: https://github.com/Azure/azure-cli/issues
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x000001B9F73EF060>]
cli.__main__: Command ran in 10.371 seconds (init: 0.781, invoke: 9.590)

Expected behavior

I expected to complete the following tasks just like docs said:

Environment Summary

azure-cli                         2.58.0

core                              2.58.0
telemetry                          1.1.0

Extensions:
account                            0.2.1
aks-preview                       0.4.16
azure-devops                      0.11.0
dev-spaces                         1.0.3
interactive                        0.4.3
k8s-extension                      1.0.2
serviceconnector-passwordless               1.0.2

Dependencies:
msal                              1.26.0
azure-mgmt-resource             23.1.0b2

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\wakau\.azure\cliextensions'

Python (Windows) 3.11.7 (tags/v3.11.7:fa7a6f2, Dec  4 2023, 19:24:49) [MSC v.1937 64 bit (AMD64)]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

N/A

yonzhan commented 8 months ago

Thank you for opening this issue, we will look into it.

azure-client-tools-bot-prd[bot] commented 8 months ago
Hi @doggy8088 Find similar issue https://github.com/Azure/azure-cli/issues/19743.
Issue title az deployment randomly crashes with: ERROR: 'bytes' object has no attribute 'get'
Create time 2021-09-30
Comment number 22

Possible solution: The error message "AttributeError: 'bytes' object has no attribute 'get'" is the same in both issues. The cause of the error in issue #19743 is due to a bug in the Azure CLI. The issue has been fixed in the latest version of the Azure CLI. Therefore, I suggest you update your Azure CLI to the latest version and try again. If the issue persists, you can refer to the solution provided in issue #19743.


Please confirm if this resolves your issue.

microsoft-github-policy-service[bot] commented 8 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub.

microsoft-github-policy-service[bot] commented 8 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.

microsoft-github-policy-service[bot] commented 8 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @josephkwchan, @jennyhunter-msft.

microsoft-github-policy-service[bot] commented 8 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub.

microsoft-github-policy-service[bot] commented 8 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.

microsoft-github-policy-service[bot] commented 8 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @josephkwchan, @jennyhunter-msft.

microsoft-github-policy-service[bot] commented 8 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub.

microsoft-github-policy-service[bot] commented 8 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @josephkwchan, @jennyhunter-msft.

microsoft-github-policy-service[bot] commented 8 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.

microsoft-github-policy-service[bot] commented 8 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub.

microsoft-github-policy-service[bot] commented 8 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.

doggy8088 commented 8 months ago

Hi @doggy8088 Find similar issue #19743.

Issue title az deployment randomly crashes with: ERROR: 'bytes' object has no attribute 'get' Create time 2021-09-30 Comment number 22 Possible solution: The error message "AttributeError: 'bytes' object has no attribute 'get'" is the same in both issues. The cause of the error in issue #19743 is due to a bug in the Azure CLI. The issue has been fixed in the latest version of the Azure CLI. Therefore, I suggest you update your Azure CLI to the latest version and try again. If the issue persists, you can refer to the solution provided in issue #19743.

Please confirm if this resolves your issue.

I confirmed those issues. Doesn't helps.

microsoft-github-policy-service[bot] commented 7 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @josephkwchan, @jennyhunter-msft.

microsoft-github-policy-service[bot] commented 7 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @azureSQLGitHub.

microsoft-github-policy-service[bot] commented 7 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AzureAppServiceCLI, @antcp.

houk-ms commented 6 months ago

@xfz11 please take a look

xfz11 commented 6 months ago

Fix in https://github.com/Azure/azure-cli/pull/28792. Please upgrade to the latest version and try again.