Azure / azure-cli

Azure Command-Line Interface
MIT License
3.93k stars 2.9k forks source link

host name in azure china appended with 'subscriptions' #26866

Open cloud8964 opened 1 year ago

cloud8964 commented 1 year ago

Describe the bug

Our pipeline was last run successfully on 3/1/2023 (and then wasnt run for a long time until 7/5/2023). The run then failed with the error message: HTTPSConnectionPool(host='management.chinacloudapi.cnsubscriptions', port=443.

The command looks like just setting powershell execution policy. From the traceback, it seems to append the Azure China host name with 'subscriptions'. We checked our code but couldnt find anywhere we had this. Can you please help?

Related command

2023-07-10T20:45:03.8850618Z ##[debug]exec tool: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe 2023-07-10T20:45:03.8935435Z ##[debug]arguments: 2023-07-10T20:45:03.8937331Z ##[debug] -NoLogo 2023-07-10T20:45:03.8939029Z ##[debug] -NoProfile 2023-07-10T20:45:03.9016132Z ##[debug] -NonInteractive 2023-07-10T20:45:03.9017045Z ##[debug] -ExecutionPolicy 2023-07-10T20:45:03.9017598Z ##[debug] Unrestricted 2023-07-10T20:45:03.9018011Z ##[debug] -Command 2023-07-10T20:45:03.9018468Z ##[debug] . 'D:\a_temp\azureclitaskscript1689021899286.ps1' 2023-07-10T20:45:03.9019384Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a_temp\azureclitaskscript1689021899286.ps1'" 2023-07-10T20:45:54.6781199Z ERROR: The command failed with an unexpected error. Here is the traceback: 2023-07-10T20:45:54.6916729Z ERROR: HTTPSConnectionPool(host='management.chinacloudapi.cnsubscriptions', port=443): Max retries exceeded with url: /f4920127-55d7-42c3-a482-2e5094acd918/resourceGroups/RG123/providers/Microsoft.Web/sites/fappggn2szdvtvsdy?api-version=2022-03-01 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0681E700>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) 2023-07-10T20:45:54.6919030Z Traceback (most recent call last): 2023-07-10T20:45:54.6920300Z File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connection.py", line 174, in _new_conn 2023-07-10T20:45:54.7112420Z File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/connection.py", line 72, in create_connection 2023-07-10T20:45:54.7572643Z File "socket.py", line 955, in getaddrinfo 2023-07-10T20:45:54.8389064Z socket.gaierror: [Errno 11001] getaddrinfo failed

Errors

2023-07-10T22:10:13.8596181Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" account set --subscription f4xxxxx18" 2023-07-10T22:10:14.4041492Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a_temp\azureclitaskscript1689027009915.ps1'" 2023-07-10T22:10:23.9501007Z ERROR: The command failed with an unexpected error. Here is the traceback: 2023-07-10T22:10:23.9506470Z ERROR: HTTPSConnectionPool(host='management.chinacloudapi.cnsubscriptions', port=443): Max retries exceeded with url: /f4920127-55d7-42c3-a482-2e5094acd918/resourceGroups/RG-EMG-APPR-SH-GDC/providers/Microsoft.Web/sites/fappggn2szdvtvsdy?api-version=2022-03-01 (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x05D1E700>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed')) 2023-07-10T22:10:23.9507372Z Traceback (most recent call last): 2023-07-10T22:10:23.9508003Z File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/connection.py", line 174, in _new_conn 2023-07-10T22:10:23.9508720Z File "D:\a_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\urllib3/util/connection.py", line 72, in create_connection 2023-07-10T22:10:23.9509058Z File "socket.py", line 955, in getaddrinfo 2023-07-10T22:10:23.9509331Z socket.gaierror: [Errno 11001] getaddrinfo failed

Issue script & Debug output

2023-07-10T22:48:24.7127984Z ##[debug]Evaluating condition for step: 'Set function configs' 2023-07-10T22:48:24.7128993Z ##[debug]Evaluating: SucceededNode() 2023-07-10T22:48:24.7129312Z ##[debug]Evaluating SucceededNode: 2023-07-10T22:48:24.7129926Z ##[debug]=> True 2023-07-10T22:48:24.7130237Z ##[debug]Result: True 2023-07-10T22:48:24.7130554Z ##[section]Starting: Set function configs 2023-07-10T22:48:24.7248121Z ============================================================================== 2023-07-10T22:48:24.7248300Z Task : Azure CLI 2023-07-10T22:48:24.7248386Z Description : Run Azure CLI commands against an Azure subscription in a PowerShell Core/Shell script when running on Linux agent or PowerShell/PowerShell Core/Batch script when running on Windows agent. 2023-07-10T22:48:24.7248667Z Version : 2.220.0 2023-07-10T22:48:24.7248751Z Author : Microsoft Corporation 2023-07-10T22:48:24.7248848Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-cli 2023-07-10T22:48:24.7249032Z ============================================================================== 2023-07-10T22:48:24.7563385Z ##[debug]Using node path: C:\agents\3.220.5\externals\node16\bin\node.exe 2023-07-10T22:48:24.8917877Z ##[debug]agent.TempDirectory=D:\a_temp 2023-07-10T22:48:24.8939361Z ##[debug]loading inputs and endpoints 2023-07-10T22:48:24.8954202Z ##[debug]loading ENDPOINT_AUTH_5fc4b182-9106-4bde-9256-da9cbc405119 2023-07-10T22:48:24.8977161Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_5fc4b182-9106-4bde-9256-da9cbc405119_AUTHENTICATIONTYPE 2023-07-10T22:48:24.8981708Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_5fc4b182-9106-4bde-9256-da9cbc405119_SERVICEPRINCIPALID 2023-07-10T22:48:24.8985831Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_5fc4b182-9106-4bde-9256-da9cbc405119_SERVICEPRINCIPALKEY 2023-07-10T22:48:24.8989958Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_5fc4b182-9106-4bde-9256-da9cbc405119_TENANTID 2023-07-10T22:48:24.8994284Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 2023-07-10T22:48:24.9000159Z ##[debug]loading ENDPOINT_AUTH_SCHEME_5fc4b182-9106-4bde-9256-da9cbc405119 2023-07-10T22:48:24.9004946Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 2023-07-10T22:48:24.9011100Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 2023-07-10T22:48:24.9024307Z ##[debug]loading INPUT_ADDSPNTOENVIRONMENT 2023-07-10T22:48:24.9030777Z ##[debug]loading INPUT_CONNECTEDSERVICENAMEARM 2023-07-10T22:48:24.9036000Z ##[debug]loading INPUT_CWD 2023-07-10T22:48:24.9041058Z ##[debug]loading INPUT_FAILONSTANDARDERROR 2023-07-10T22:48:24.9046226Z ##[debug]loading INPUT_INLINESCRIPT 2023-07-10T22:48:24.9049549Z ##[debug]loading INPUT_POWERSHELLERRORACTIONPREFERENCE 2023-07-10T22:48:24.9052515Z ##[debug]loading INPUT_POWERSHELLIGNORELASTEXITCODE 2023-07-10T22:48:24.9055593Z ##[debug]loading INPUT_SCRIPTLOCATION 2023-07-10T22:48:24.9058326Z ##[debug]loading INPUT_SCRIPTPATH 2023-07-10T22:48:24.9060948Z ##[debug]loading INPUT_SCRIPTTYPE 2023-07-10T22:48:24.9063553Z ##[debug]loading INPUT_USEGLOBALCONFIG 2023-07-10T22:48:24.9074139Z ##[debug]loading SECRET_OPS-INFRA-RESOURCES-STORAGE-ACCOUNT 2023-07-10T22:48:24.9077565Z ##[debug]loading SECRET_OPS-INFRA-RESOURCES-STORAGE-ACCOUNT-SAS-KEY 2023-07-10T22:48:24.9080872Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN 2023-07-10T22:48:24.9096343Z ##[debug]loaded 23 2023-07-10T22:48:24.9105566Z ##[debug]Agent.ProxyUrl=undefined 2023-07-10T22:48:24.9106473Z ##[debug]Agent.CAInfo=undefined 2023-07-10T22:48:24.9107031Z ##[debug]Agent.ClientCert=

undefined

2023-07-10T22:48:24.9107664Z ##[debug]Agent.SkipCertValidation=undefined 2023-07-10T22:48:25.1656627Z ##[debug]check path : D:\a_tasks\AzureCLI_46e4be58-730b-4389-8a2f-ea10b3e5e815\2.220.0\task.json 2023-07-10T22:48:25.1657728Z ##[debug]adding resource file: D:\a_tasks\AzureCLI_46e4be58-730b-4389-8a2f-ea10b3e5e815\2.220.0\task.json 2023-07-10T22:48:25.1658436Z ##[debug]system.culture=en-US 2023-07-10T22:48:25.1658972Z ##[debug]which 'az' 2023-07-10T22:48:25.1821346Z ##[debug]found: 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd' 2023-07-10T22:48:25.1832479Z ##[debug]scriptType=ps 2023-07-10T22:48:25.1834408Z ##[debug]scriptLocation=inlineScript 2023-07-10T22:48:25.1835018Z ##[debug]scriptArguments=undefined 2023-07-10T22:48:25.1841933Z ##[debug]powerShellErrorActionPreference=stop 2023-07-10T22:48:25.1843560Z ##[debug]Agent.Version=3.220.5 2023-07-10T22:48:25.1844110Z ##[debug]Agent.TempDirectory=D:\a_temp 2023-07-10T22:48:25.1846308Z ##[debug]scriptPath=D:\a\1\s 2023-07-10T22:48:25.1849903Z ##[debug]inlineScript=az functionapp config appsettings set --name fappggn2szdvtvsdy --resource-group RG-EMG-APPR-SH-GDC --settings @D:\a\1\a\drop\emgcn-approval.settings.json --debug 2023-07-10T22:48:25.1863197Z ##[debug]powerShellIgnoreLASTEXITCODE=false 2023-07-10T22:48:25.1866980Z ##[debug]which 'powershell' 2023-07-10T22:48:25.2095273Z ##[debug]found: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' 2023-07-10T22:48:25.2096672Z ##[debug]which 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' 2023-07-10T22:48:25.2098845Z ##[debug]found: 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe' 2023-07-10T22:48:25.2100255Z ##[debug]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe arg: -NoLogo 2023-07-10T22:48:25.2101383Z ##[debug]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe arg: -NoProfile 2023-07-10T22:48:25.2102564Z ##[debug]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe arg: -NonInteractive 2023-07-10T22:48:25.2103741Z ##[debug]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe arg: -ExecutionPolicy 2023-07-10T22:48:25.2104879Z ##[debug]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe arg: Unrestricted 2023-07-10T22:48:25.2105995Z ##[debug]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe arg: -Command 2023-07-10T22:48:25.2107185Z ##[debug]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe arg: . 'D:\a_temp\azureclitaskscript1689029305178.ps1' 2023-07-10T22:48:25.2108303Z ##[debug]cwd=D:\a\1\s 2023-07-10T22:48:25.2109232Z ##[debug]scriptLocation=inlineScript 2023-07-10T22:48:25.2110515Z ##[debug]failOnStandardError=false 2023-07-10T22:48:25.2111453Z ##[debug]testing directory 'D:\a\1\s' 2023-07-10T22:48:25.2153393Z ##[debug]which 'az' 2023-07-10T22:48:25.2410973Z ##[debug]found: 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd' 2023-07-10T22:48:25.2415781Z ##[debug]C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd arg: --version 2023-07-10T22:48:25.2416552Z ##[debug]C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd arg: --version 2023-07-10T22:48:25.2417187Z ##[debug]exec tool: C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd 2023-07-10T22:48:25.2417804Z ##[debug]exec tool: C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd 2023-07-10T22:48:25.2418332Z ##[debug]arguments: 2023-07-10T22:48:25.2418790Z ##[debug]arguments: 2023-07-10T22:48:25.2419262Z ##[debug] --version 2023-07-10T22:48:25.2419726Z ##[debug] --version 2023-07-10T22:48:25.2420523Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" --version" 2023-07-10T22:48:26.5614187Z azure-cli 2.50.0 2023-07-10T22:48:26.5635493Z 2023-07-10T22:48:26.5657345Z core 2.50.0 2023-07-10T22:48:26.5678702Z telemetry 1.0.8 2023-07-10T22:48:26.5703989Z 2023-07-10T22:48:26.5724795Z Extensions: 2023-07-10T22:48:26.5742306Z azure-devops 0.26.0 2023-07-10T22:48:26.5742593Z 2023-07-10T22:48:26.5742882Z Dependencies: 2023-07-10T22:48:26.5743191Z msal 1.22.0 2023-07-10T22:48:26.5743591Z azure-mgmt-resource 23.1.0b2 2023-07-10T22:48:26.5743797Z 2023-07-10T22:48:26.5744246Z Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe' 2023-07-10T22:48:26.5744784Z Extensions directory 'C:\Program Files\Common Files\AzureCliExtensionDirectory' 2023-07-10T22:48:26.5745941Z 2023-07-10T22:48:26.5746354Z Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb 7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)] 2023-07-10T22:48:26.5746649Z 2023-07-10T22:48:26.5747062Z Legal docs and information: aka.ms/AzureCliLegal 2023-07-10T22:48:26.5747289Z 2023-07-10T22:48:26.5747436Z 2023-07-10T22:48:26.5747757Z Your CLI is up-to-date. 2023-07-10T22:48:26.5748682Z ##[debug]useGlobalConfig=false 2023-07-10T22:48:26.5749232Z ##[debug]Agent.TempDirectory=D:\a_temp 2023-07-10T22:48:26.5749780Z ##[debug]Agent.TempDirectory=D:\a_temp 2023-07-10T22:48:26.5750208Z Setting AZURE_CONFIG_DIR env variable to: D:\a_temp.azclitask 2023-07-10T22:48:26.5750743Z ##[debug]connectedServiceNameARM=5fc4b182-9106-4bde-9256-da9cbc405119 2023-07-10T22:48:26.5751452Z ##[debug]5fc4b182-9106-4bde-9256-da9cbc405119 data environment = AzureChinaCloud 2023-07-10T22:48:26.5751864Z Setting active cloud to: AzureChinaCloud 2023-07-10T22:48:26.5752282Z ##[debug]which 'az' 2023-07-10T22:48:26.5848974Z ##[debug]found: 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd' 2023-07-10T22:48:26.5849871Z ##[debug]C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd arg: cloud set -n AzureChinaCloud 2023-07-10T22:48:26.5850507Z ##[debug]C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd arg: cloud set -n AzureChinaCloud 2023-07-10T22:48:26.5851088Z ##[debug]exec tool: C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd 2023-07-10T22:48:26.5851711Z ##[debug]exec tool: C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd 2023-07-10T22:48:26.5852221Z ##[debug]arguments: 2023-07-10T22:48:26.5852668Z ##[debug]arguments: 2023-07-10T22:48:26.5853157Z ##[debug] cloud 2023-07-10T22:48:26.5853594Z ##[debug] cloud 2023-07-10T22:48:26.5854012Z ##[debug] set 2023-07-10T22:48:26.5854462Z ##[debug] set 2023-07-10T22:48:26.5854894Z ##[debug] -n 2023-07-10T22:48:26.5855308Z ##[debug] -n 2023-07-10T22:48:26.5855755Z ##[debug] AzureChinaCloud 2023-07-10T22:48:26.5856222Z ##[debug] AzureChinaCloud 2023-07-10T22:48:26.5856908Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" cloud set -n AzureChinaCloud" 2023-07-10T22:48:27.2275768Z WARNING: Switched active cloud to 'AzureChinaCloud'. 2023-07-10T22:48:27.2276399Z WARNING: Use 'az login' to log in to this cloud. 2023-07-10T22:48:27.2276810Z WARNING: Use 'az account set' to set the active subscription. 2023-07-10T22:48:27.2279094Z ##[debug]connectedServiceNameARM=5fc4b182-9106-4bde-9256-da9cbc405119 2023-07-10T22:48:27.2284625Z ##[debug]5fc4b182-9106-4bde-9256-da9cbc405119 auth scheme = ServicePrincipal 2023-07-10T22:48:27.2285245Z ##[debug]5fc4b182-9106-4bde-9256-da9cbc405119 data SubscriptionID = masked_for_subscriptionId 2023-07-10T22:48:27.2287468Z ##[debug]5fc4b182-9106-4bde-9256-da9cbc405119 auth param authenticationType = spnKey 2023-07-10T22:48:27.2289262Z ##[debug]5fc4b182-9106-4bde-9256-da9cbc405119 auth param serviceprincipalid = 2023-07-10T22:48:27.2290580Z ##[debug]5fc4b182-9106-4bde-9256-da9cbc405119 auth param tenantid = masked_for_tenantId 2023-07-10T22:48:27.2291191Z ##[debug]key based endpoint 2023-07-10T22:48:27.2292283Z ##[debug]5fc4b182-9106-4bde-9256-da9cbc405119 auth param serviceprincipalkey = 2023-07-10T22:48:27.2294764Z ##[debug]Processed: ##vso[task.setsecret] 2023-07-10T22:48:27.2295319Z ##[debug]which 'az' 2023-07-10T22:48:27.2527297Z ##[debug]found: 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd' 2023-07-10T22:48:27.2528774Z ##[debug]C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd arg: login --service-principal -u "" --password= --tenant "masked_for_tenantId" --allow-no-subscriptions 2023-07-10T22:48:27.2529925Z ##[debug]C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd arg: login --service-principal -u "" --password= --tenant "masked_for_tenantId" --allow-no-subscriptions 2023-07-10T22:48:27.2531016Z ##[debug]exec tool: C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd 2023-07-10T22:48:27.2531715Z ##[debug]exec tool: C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd 2023-07-10T22:48:27.2532305Z ##[debug]arguments: 2023-07-10T22:48:27.2532836Z ##[debug]arguments: 2023-07-10T22:48:27.2533360Z ##[debug] login 2023-07-10T22:48:27.2533859Z ##[debug] login 2023-07-10T22:48:27.2534388Z ##[debug] --service-principal 2023-07-10T22:48:27.2534940Z ##[debug] --service-principal 2023-07-10T22:48:27.2535552Z ##[debug] -u 2023-07-10T22:48:27.2536061Z ##[debug] -u 2023-07-10T22:48:27.2536635Z ##[debug] 2023-07-10T22:48:27.2537190Z ##[debug] 2023-07-10T22:48:27.2537789Z ##[debug] --password= 2023-07-10T22:48:27.2538397Z ##[debug] --password= 2023-07-10T22:48:27.2538937Z ##[debug] --tenant 2023-07-10T22:48:27.2539461Z ##[debug] --tenant 2023-07-10T22:48:27.2540026Z ##[debug] masked_for_tenantId 2023-07-10T22:48:27.2540638Z ##[debug] masked_for_tenantId 2023-07-10T22:48:27.2541227Z ##[debug] --allow-no-subscriptions 2023-07-10T22:48:27.2541792Z ##[debug] --allow-no-subscriptions 2023-07-10T22:48:27.2543179Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" login --service-principal -u "--password=" --tenant masked_for_tenantId --allow-no-subscriptions" 2023-07-10T22:48:29.6781127Z [ 2023-07-10T22:48:29.6781633Z { 2023-07-10T22:48:29.6782048Z "cloudName": "AzureChinaCloud", 2023-07-10T22:48:29.6782804Z "homeTenantId": "masked_for_tenantId", 2023-07-10T22:48:29.6783308Z "id": "masked_for_subscriptionId", 2023-07-10T22:48:29.6783656Z "isDefault": true, 2023-07-10T22:48:29.6783968Z "managedByTenants": [], 2023-07-10T22:48:29.6784308Z "name": "masked_for_some_subscriptionName", 2023-07-10T22:48:29.6784638Z "state": "Enabled", 2023-07-10T22:48:29.6785102Z "tenantId": "masked_for_tenantId", 2023-07-10T22:48:29.6785417Z "user": { 2023-07-10T22:48:29.6786291Z "name": "", 2023-07-10T22:48:29.6786585Z "type": "servicePrincipal" 2023-07-10T22:48:29.6786862Z } 2023-07-10T22:48:29.6787109Z } 2023-07-10T22:48:29.6787351Z ] 2023-07-10T22:48:29.6788017Z ##[debug]which 'az' 2023-07-10T22:48:29.7044246Z ##[debug]found: 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd' 2023-07-10T22:48:29.7045258Z ##[debug]C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd arg: account set --subscription "masked_for_subscriptionId" 2023-07-10T22:48:29.7046118Z ##[debug]C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd arg: account set --subscription "masked_for_subscriptionId" 2023-07-10T22:48:29.7046858Z ##[debug]exec tool: C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd 2023-07-10T22:48:29.7047485Z ##[debug]exec tool: C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd 2023-07-10T22:48:29.7048073Z ##[debug]arguments: 2023-07-10T22:48:29.7048588Z ##[debug]arguments: 2023-07-10T22:48:29.7049082Z ##[debug] account 2023-07-10T22:48:29.7049577Z ##[debug] account 2023-07-10T22:48:29.7050073Z ##[debug] set 2023-07-10T22:48:29.7050545Z ##[debug] set 2023-07-10T22:48:29.7051048Z ##[debug] --subscription 2023-07-10T22:48:29.7051562Z ##[debug] --subscription 2023-07-10T22:48:29.7052093Z ##[debug] masked_for_subscriptionId 2023-07-10T22:48:29.7052663Z ##[debug] masked_for_subscriptionId 2023-07-10T22:48:29.7053629Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" account set --subscription masked_for_subscriptionId" 2023-07-10T22:48:30.3599794Z ##[debug]addSpnToEnvironment=false 2023-07-10T22:48:30.3603221Z ##[debug]exec tool: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe 2023-07-10T22:48:30.3603879Z ##[debug]arguments: 2023-07-10T22:48:30.3604691Z ##[debug] -NoLogo 2023-07-10T22:48:30.3605216Z ##[debug] -NoProfile 2023-07-10T22:48:30.3605721Z ##[debug] -NonInteractive 2023-07-10T22:48:30.3606232Z ##[debug] -ExecutionPolicy 2023-07-10T22:48:30.3606889Z ##[debug] Unrestricted 2023-07-10T22:48:30.3607338Z ##[debug] -Command 2023-07-10T22:48:30.3607843Z ##[debug] . 'D:\a_temp\azureclitaskscript1689029305178.ps1' 2023-07-10T22:48:30.3608837Z [command]C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a_temp\azureclitaskscript1689029305178.ps1'" 2023-07-10T22:48:31.1872882Z DEBUG: cli.knack.cli: Command arguments: ['functionapp', 'config', 'appsettings', 'set', '--name', 'fappggn2szdvtvsdy', '--resource-group', 'RG-EMG-APPR-SH-GDC', '--settings', '@D:\a\1\a\drop\emgcn-approval.settings.json', '--debug'] 2023-07-10T22:48:31.1873781Z DEBUG: cli.knack.cli: init debug log: 2023-07-10T22:48:31.1874206Z Cannot enable color. 2023-07-10T22:48:31.1874583Z DEBUG: cli.knack.cli: Event: Cli.PreExecute [] 2023-07-10T22:48:31.1875137Z DEBUG: cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x016D0928>, <function OutputProducer.on_global_arguments at 0x017CFB68>, <function CLIQuery.on_global_arguments at 0x017ED7C0>] 2023-07-10T22:48:31.1895067Z DEBUG: cli.azure.cli.core.util: attempting to read file D:\a\1\a\drop\emgcn-approval.settings.json as utf-8-sig 2023-07-10T22:48:31.1895662Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate [] 2023-07-10T22:48:31.1905603Z DEBUG: cli.azure.cli.core: Modules found from index for 'functionapp': ['azure.cli.command_modules.appservice'] 2023-07-10T22:48:31.1906120Z DEBUG: cli.azure.cli.core: Loading command modules: 2023-07-10T22:48:31.1906576Z DEBUG: cli.azure.cli.core: Name Load Time Groups Commands 2023-07-10T22:48:31.4252471Z DEBUG: cli.azure.cli.core: appservice 0.234 73 260 2023-07-10T22:48:31.4253143Z DEBUG: cli.azure.cli.core: Total (1) 0.234 73 260 2023-07-10T22:48:31.4268173Z DEBUG: cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next'] 2023-07-10T22:48:31.4268682Z DEBUG: cli.azure.cli.core: Loading extensions: 2023-07-10T22:48:31.4269143Z DEBUG: cli.azure.cli.core: Name Load Time Groups Commands Directory 2023-07-10T22:48:31.4269558Z DEBUG: cli.azure.cli.core: Total (0) 0.000 0 0
2023-07-10T22:48:31.4269942Z DEBUG: cli.azure.cli.core: Loaded 73 groups, 260 commands. 2023-07-10T22:48:31.4270332Z DEBUG: cli.azure.cli.core: Found a match in the command table. 2023-07-10T22:48:31.4270739Z DEBUG: cli.azure.cli.core: Raw command : functionapp config appsettings set 2023-07-10T22:48:31.4272507Z DEBUG: cli.azure.cli.core: Command table: functionapp config appsettings set 2023-07-10T22:48:31.4273013Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x03992898>] 2023-07-10T22:48:31.4274882Z DEBUG: cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'D:\a_temp.azclitask\commands\2023-07-10.22-48-31.functionapp_config_appsettings_set.3128.log'. 2023-07-10T22:48:31.4275775Z INFO: az_command_data_logger: command args: functionapp config appsettings set --name {} --resource-group {} --settings {} --debug 2023-07-10T22:48:31.4276308Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x039B7898>] 2023-07-10T22:48:39.7288656Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad [] 2023-07-10T22:48:39.7289748Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument..add_ids_arguments at 0x039C7970>, <function register_cache_arguments..add_cache_arguments at 0x039C7A00>] 2023-07-10T22:48:39.7307981Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded [] 2023-07-10T22:48:39.7308727Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPreParseArgs [] 2023-07-10T22:48:39.7320815Z DEBUG: cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x017CFBB0>, <function CLIQuery.handle_query_parameter at 0x017ED808>, <function register_ids_argument..parse_ids_arguments at 0x039C79B8>] 2023-07-10T22:48:39.7325002Z DEBUG: cli.azure.cli.core.commands.client_factory: Getting management service client client_type=WebSiteManagementClient 2023-07-10T22:48:39.7339832Z DEBUG: cli.azure.cli.core.auth.persistence: build_persistence: location='D:\a\_temp\.azclitask\service_principal_entries.bin', encrypt=True 2023-07-10T22:48:39.7359141Z DEBUG: cli.azure.cli.core.auth.persistence: build_persistence: location='D:\a\_temp\.azclitask\msal_token_cache.bin', encrypt=True 2023-07-10T22:48:39.7367835Z DEBUG: cli.azure.cli.core.auth.binary_cache: load: D:\a_temp.azclitask\msal_http_cache.bin 2023-07-10T22:48:39.7378210Z DEBUG: urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None) 2023-07-10T22:48:39.7384560Z DEBUG: msal.authority: openid_config = {'token_endpoint': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/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.partner.microsoftonline.cn/***masked_for_tenantId***/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://microsoftgraph.chinacloudapi.cn/oidc/userinfo', 'authorization_endpoint': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/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.chinacloudapi.cn/***masked_for_tenantId***/kerberos', 'tenant_region_scope': 'AS', 'cloud_instance_name': 'partner.microsoftonline.cn', 'cloud_graph_host_name': 'graph.chinacloudapi.cn', 'msgraph_host': 'microsoftgraph.chinacloudapi.cn', 'rbac_url': 'https://pas.chinacloudapi.cn'} 2023-07-10T22:48:39.7386715Z DEBUG: msal.application: Broker enabled? False 2023-07-10T22:48:39.7387060Z DEBUG: msal.application: Region to be used: None 2023-07-10T22:48:39.7571596Z DEBUG: cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token: scopes=('https://management.core.chinacloudapi.cn//.default',), kwargs={} 2023-07-10T22:48:39.7572471Z DEBUG: cli.azure.cli.core.auth.msal_authentication: ServicePrincipalCredential.get_token: scopes=('https://management.core.chinacloudapi.cn//.default',), kwargs={} 2023-07-10T22:48:39.7584155Z DEBUG: msal.application: Cache hit an AT 2023-07-10T22:48:39.7584940Z DEBUG: msal.telemetry: Generate or reuse correlation_id: 95c428c8-53b5-48fe-b6fc-c13dceaef7ee 2023-07-10T22:48:39.7585857Z DEBUG: cli.azure.cli.core.sdk.policies: Request URL: 'https://management.chinacloudapi.cn/subscriptions/***masked_for_subscriptionId***/resourceGroups/RG-EMG-APPR-SH-GDC/providers/Microsoft.Web/sites/fappggn2szdvtvsdy/config/appsettings/list?api-version=2022-03-01' 2023-07-10T22:48:39.7586777Z DEBUG: cli.azure.cli.core.sdk.policies: Request method: 'POST' 2023-07-10T22:48:39.7587309Z DEBUG: cli.azure.cli.core.sdk.policies: Request headers: 2023-07-10T22:48:39.7587817Z DEBUG: cli.azure.cli.core.sdk.policies: 'Accept': 'application/json' 2023-07-10T22:48:39.7588420Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': 'e496ec58-1f73-11ee-9c20-6045bd58c074' 2023-07-10T22:48:39.7589023Z DEBUG: cli.azure.cli.core.sdk.policies: 'CommandName': 'functionapp config appsettings set' 2023-07-10T22:48:39.7589625Z DEBUG: cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--name --resource-group --settings --debug' 2023-07-10T22:48:39.7590465Z DEBUG: cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.50.0 (MSI) azsdk-python-azure-mgmt-web/7.0.0 Python/3.10.10 (Windows-10-10.0.20348-SP0) VSTS_4a4c4469-f97d-4186-b90d-2789574bf0b8_build_60_0' 2023-07-10T22:48:39.7591126Z DEBUG: cli.azure.cli.core.sdk.policies: 'Authorization': '**' 2023-07-10T22:48:39.7591525Z DEBUG: cli.azure.cli.core.sdk.policies: Request body: 2023-07-10T22:48:39.7591916Z DEBUG: cli.azure.cli.core.sdk.policies: This request has no body 2023-07-10T22:48:39.7615716Z DEBUG: urllib3.connectionpool: Starting new HTTPS connection (1): management.chinacloudapi.cn:443 2023-07-10T22:48:40.6903538Z DEBUG: urllib3.connectionpool: https://management.chinacloudapi.cn:443 "POST /subscriptions/masked_for_subscriptionId/resourceGroups/RG-EMG-APPR-SH-GDC/providers/Microsoft.Web/sites/fappggn2szdvtvsdy/config/appsettings/list?api-version=2022-03-01 HTTP/1.1" 200 None 2023-07-10T22:48:40.6965309Z DEBUG: cli.azure.cli.core.sdk.policies: Response status: 200 2023-07-10T22:48:40.6966870Z DEBUG: cli.azure.cli.core.sdk.policies: Response headers: 2023-07-10T22:48:40.6969029Z DEBUG: cli.azure.cli.core.sdk.policies: 'Cache-Control': 'no-cache' 2023-07-10T22:48:40.6971222Z DEBUG: cli.azure.cli.core.sdk.policies: 'Pragma': 'no-cache' 2023-07-10T22:48:40.6972007Z DEBUG: cli.azure.cli.core.sdk.policies: 'Transfer-Encoding': 'chunked' 2023-07-10T22:48:40.6972540Z DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Type': 'application/json' 2023-07-10T22:48:40.6973076Z DEBUG: cli.azure.cli.core.sdk.policies: 'Content-Encoding': 'gzip' 2023-07-10T22:48:40.6973582Z DEBUG: cli.azure.cli.core.sdk.policies: 'Expires': '-1' 2023-07-10T22:48:40.6974080Z DEBUG: cli.azure.cli.core.sdk.policies: 'Vary': 'Accept-Encoding' 2023-07-10T22:48:40.6974680Z DEBUG: cli.azure.cli.core.sdk.policies: 'Strict-Transport-Security': 'max-age=31536000; includeSubDomains' 2023-07-10T22:48:40.6975315Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-request-id': '904cf3c2-0a33-47e9-9bc8-58e107738f55' 2023-07-10T22:48:40.6975868Z DEBUG: cli.azure.cli.core.sdk.policies: 'Server': 'Microsoft-IIS/10.0' 2023-07-10T22:48:40.6976387Z DEBUG: cli.azure.cli.core.sdk.policies: 'X-AspNet-Version': '4.0.30319' 2023-07-10T22:48:40.6976900Z DEBUG: cli.azure.cli.core.sdk.policies: 'X-Powered-By': 'ASP.NET' 2023-07-10T22:48:40.6977468Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-ratelimit-remaining-subscription-resource-requests': '11997' 2023-07-10T22:48:40.6978113Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-correlation-request-id': '1ab4dd7a-1b90-47fe-94e1-192f0023dfad' 2023-07-10T22:48:40.6978839Z DEBUG: cli.azure.cli.core.sdk.policies: 'x-ms-routing-request-id': 'CHINAEAST:20230710T224840Z:1ab4dd7a-1b90-47fe-94e1-192f0023dfad' 2023-07-10T22:48:40.6979451Z DEBUG: cli.azure.cli.core.sdk.policies: 'X-Content-Type-Options': 'nosniff' 2023-07-10T22:48:40.6980006Z DEBUG: cli.azure.cli.core.sdk.policies: 'Date': 'Mon, 10 Jul 2023 22:48:40 GMT' 2023-07-10T22:48:40.6980430Z DEBUG: cli.azure.cli.core.sdk.policies: Response content: 2023-07-10T22:48:40.6990864Z DEBUG: cli.azure.cli.core.sdk.policies: {"id":"/subscriptions/masked_for_subscriptionId/resourceGroups/RG-EMG-APPR-SH-GDC/providers/Microsoft.Web/sites/fappggn2szdvtvsdy/config/appsettings","name":"appsettings","type":"Microsoft.Web/sites/config","location":"China North 2","tags":{"hidden-link: /app-insights-resource-id":"/subscriptions/masked_for_subscriptionId/resourceGroups/RG-EMG-APPR-SH-GDC/providers/microsoft.insights/components/faisggn2szdvtvsdy","hidden-link: /app-insights-instrumentation-key":"eb46e52d-b0df-c2ef-b626-1932002ab1ce","hidden-link: /app-insights-conn-string":"InstrumentationKey=eb46e52d-b0df-c2ef-b626-1932002ab1ce;EndpointSuffix=applicationinsights.azure.cn;IngestionEndpoint=https://chinaeast2-0.in.applicationinsights.azure.cn/;AADAudience=https://monitor.azure.cn/"},"properties":{"AccessTokenService__Endpoint":"https://login.chinacloudapi.cn/masked_for_tenantId/oauth2/v2.0/token","APPINSIGHTS_INSTRUMENTATIONKEY":"eb46e52d-b0df-c2ef-b626-1932002ab1ce","APPLICATIONINSIGHTS_CONNECTION_STRING":"InstrumentationKey=eb46e52d-b0df-c2ef-b626-1932002ab1ce;EndpointSuffix=applicationinsights.azure.cn;IngestionEndpoint=https://chinaeast2-0.in.applicationinsights.azure.cn/;AADAudience=https://monitor.azure.cn/","AutoRenewAccessToken":"{'IsEnabled': True, 'IntervalInSeconds': 60, 'RenewBeforeInSeconds': 300}","AzureWebJobsStorage":"DefaultEndpointsProtocol=https;AccountName=fsaggn2szdvtvsdy;AccountKey=aWwxp79/lY9OUwSLlIwHJ4mXDWsay4ontC3QShxvd99LV/weP3Gzz5rrbsBABrpzc8hP60McaW0W+AStJV7K4Q==;EndpointSuffix=core.chinacloudapi.cn","blobConnectionString":"StreamingPipeline-c9c21f78-0143-4285-8063-5f30212f5235-EventHub-connectionString","BusinessRulesCache":"{'cacheEvictionInMinutes': 60, 'cacheSizeLimit': 2000}","client_id":"","client_secret":"ClientSecret","ConfigServiceClient_PaasEndpoint":"https://apr-vwcloud-apim.lh2.emapgo.com.cn/dataplatform/api/v2/usecases","DistributorService_Paas__Endpoint":"https://apr-vwcloud-apim.lh2.emapgo.com.cn/datapworkbench/v1/api/streaming/distributor","EventHubConnectionString":"Endpoint=sb://pcgroup-cf764e8c-a217-4048-ba85-8fe2899539fb.servicebus.chinacloudapi.cn/;SharedAccessKeyName=be6a9949-ef30-4755-af69-f603f9ed5146;SharedAccessKey=sh+ICNhnWpu4YfY9tqPMT830PpXphupRXF6IKtm/gjs=;EntityPath=pipeline-1812d89d-8dea-44bb-9368-37a3a7c99d76","EventHubName":"pipeline-1812d89d-8dea-44bb-9368-37a3a7c99d76","FUNCTIONS_EXTENSION_VERSION":"~3","FUNCTIONS_WORKER_RUNTIME":"dotnet","grant_type":"client_credentials","IsEncrypted":"False","KeyVault__AppKeyVault":"app-kv-o7fqm7mj22.vault.azure.cn","MaxRetry":"3","MDC_AccessTokenServiceEndpoint":"https://login.chinacloudapi.cn/a12a82ff-eb68-4d6d-b3c7-c4fb2d2220e5/oauth2/v2.0/token","mdc_client_id":"b7384402-4dbc-48db-876c-2d213b508133","mdc_client_secret":"MdcClientSecret","MDC_Scope":"api://vwac-mdc-cnapproval-spn/.default","MDCServiceClient_Paas__Endpoint":"https://apr-vwacv-a72-apim.vwcloud.cn/mdc/v1/api/signals/","scope_Paas":"api://emgcn-apr-shared-a9d-apim-backend-sp/.default","StorageSchema":"Schema-274dcae0-ca6a-4cd3-976f-d295668664c6","WaitBetweenFailures":"1","WEBSITE_CONTENTAZUREFILECONNECTIONSTRING":"DefaultEndpointsProtocol=https;AccountName=fsaggn2szdvtvsdy;AccountKey=aWwxp79/lY9OUwSLlIwHJ4mXDWsay4ontC3QShxvd99LV/weP3Gzz5rrbsBABrpzc8hP60McaW0W+AStJV7K4Q==;EndpointSuffix=core.chinacloudapi.cn","WEBSITE_CONTENTSHARE":"fappggn2szdvtvsdy","WEBSITE_ENABLE_SYNC_UPDATE_SITE":"true","WEBSITE_NODE_DEFAULT_VERSION":"~10","WEBSITE_RUN_FROM_PACKAGE":"1"}} 2023-07-10T22:48:40.6996392Z DEBUG: cli.azure.cli.core.commands.client_factory: Getting management service client client_type=WebSiteManagementClient 2023-07-10T22:48:40.6997257Z DEBUG: urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None) 2023-07-10T22:48:40.7001921Z DEBUG: msal.authority: openid_config = {'token_endpoint': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/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.partner.microsoftonline.cn/***masked_for_tenantId***/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://microsoftgraph.chinacloudapi.cn/oidc/userinfo', 'authorization_endpoint': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/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.chinacloudapi.cn/***masked_for_tenantId***/kerberos', 'tenant_region_scope': 'AS', 'cloud_instance_name': 'partner.microsoftonline.cn', 'cloud_graph_host_name': 'graph.chinacloudapi.cn', 'msgraph_host': 'microsoftgraph.chinacloudapi.cn', 'rbac_url': 'https://pas.chinacloudapi.cn'} 2023-07-10T22:48:40.7004369Z DEBUG: msal.application: Broker enabled? False 2023-07-10T22:48:40.7004720Z DEBUG: msal.application: Region to be used: None 2023-07-10T22:48:40.7005174Z DEBUG: cli.azure.cli.core.commands.client_factory: Getting management service client client_type=WebSiteManagementClient 2023-07-10T22:48:40.7005848Z DEBUG: urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None) 2023-07-10T22:48:40.7011311Z DEBUG: msal.authority: openid_config = {'token_endpoint': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/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.partner.microsoftonline.cn/***masked_for_tenantId***/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://microsoftgraph.chinacloudapi.cn/oidc/userinfo', 'authorization_endpoint': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.chinacloudapi.cn/***masked_for_tenantId***/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.chinacloudapi.cn/***masked_for_tenantId***/kerberos', 'tenant_region_scope': 'AS', 'cloud_instance_name': 'partner.microsoftonline.cn', 'cloud_graph_host_name': 'graph.chinacloudapi.cn', 'msgraph_host': 'microsoftgraph.chinacloudapi.cn', 'rbac_url': 'https://pas.chinacloudapi.cn'} 2023-07-10T22:48:40.7013887Z DEBUG: msal.application: Broker enabled? False 2023-07-10T22:48:40.7015025Z DEBUG: msal.application: Region to be used: None 2023-07-10T22:48:40.7015958Z DEBUG: cli.azure.cli.core.util: No subscription ID specified in the URL https://management.chinacloudapi.cnsubscriptions/***masked_for_subscriptionId***/resourceGroups/RG-EMG-APPR-SH-GDC/providers/Microsoft.Web/sites/fappggn2szdvtvsdy?api-version=2022-03-01 2023-07-10T22:48:40.7016655Z DEBUG: cli.azure.cli.core.util: Retrieving token for resource https://management.core.chinacloudapi.cn/ 2023-07-10T22:48:40.7018025Z DEBUG: urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)

Expected behavior

expected: https://management.chinacloudapi.cnsubscriptions/***masked_for_subscriptionId***/resourceGroups/RG-EMG-APPR-SH-GDC/providers/Microsoft.Web/sites/fappggn2szdvtvsdy?api-version=2022-03-01 in the debug output should be https://management.chinacloudapi.cn/subscriptions/***masked_for_subscriptionId***/resourceGroups/RG-EMG-APPR-SH-GDC/providers/Microsoft.Web/sites/fappggn2szdvtvsdy?api-version=2022-03-01

Environment Summary

2023-07-10T20:45:00.7973699Z azure-cli 2.50.0 2023-07-10T20:45:00.7973766Z 2023-07-10T20:45:00.7973903Z core 2.50.0 2023-07-10T20:45:00.8030433Z telemetry 1.0.8 2023-07-10T20:45:00.8030668Z 2023-07-10T20:45:00.8030941Z Extensions: 2023-07-10T20:45:00.8031344Z azure-devops 0.26.0 2023-07-10T20:45:00.8031434Z 2023-07-10T20:45:00.8031561Z Dependencies: 2023-07-10T20:45:00.8031691Z msal 1.22.0 2023-07-10T20:45:00.8031914Z azure-mgmt-resource 23.1.0b2

Additional context

No response

yonzhan commented 1 year ago

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

MarimuthuSA commented 1 year ago

Please note that this issue is occurring for azure-cli-2.50.0 (whereas the following command works for azure-cli-2.45.0). Command: az functionapp config appsettings set --name --resource-group --settings

cloud8964 commented 1 year ago

@yonzhan

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

I have confirmed it's a regression from Microsoft. After I uninstalled latest azure-cli and reinstalled 2.45 version, everything works again.

edyoung commented 10 months ago

@yonzhan We're hitting this in a deployment pipeline. Doesn't this basically render az cli nonfunctional for Mooncake? I'm surprised it's still active 2 months later. Can you guys look into this?

microsoft-github-policy-service[bot] commented 10 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 10 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @amamounelsayed, @kaibocai, @shreyas-gopalakrishna, @kamperiadis, @apawast.

edyoung commented 9 months ago

@amamounelsayed, @kaibocai, @shreyas-gopalakrishna, @kamperiadis, @apawast @yonzhan. Unless I have misunderstood something azure cli does not work at all in mooncake due to this issue. I feel like that's important?

kamperiadis commented 8 months ago

@cloud8964 Is this still an issue you are experiencing?

edyoung commented 8 months ago

We started using an older version of cli as workaround. Could reproduce 100% with the versions mentioned. Have not tried anything newer.

cloud8964 commented 8 months ago

@cloud8964 Is this still an issue you are experiencing?

I switched to use an older version which works. If you guys haven't done anything yet, I bet this bug is still there.