You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use this task, I got the error. This service connection works fine for other tasks, I guess the problem is with the default tasks' endpoint
Environment type (Please select at least one enviroment where you face this issue)
Self-Hosted
Microsoft Hosted
VMSS Pool
Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
windows-2019
Relevant log output
ERROR: AADSTS500011: The resource principal named https://management.core.windows.net/ was not found in the tenant named <tenantName>. . This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant.
##[error]Error Code: [1]##[error]Error: Azure login failed
Full task logs with system.debug enabled
[2024-06-07T13:39:26.7847705Z ##[debug]Evaluating condition for step: 'Azure Container Apps Deploy'
2024-06-07T13:39:26.7848977Z ##[debug]Evaluating: succeeded()
2024-06-07T13:39:26.7849202Z ##[debug]Evaluating succeeded:
2024-06-07T13:39:26.7850013Z ##[debug]=> True
2024-06-07T13:39:26.7850301Z ##[debug]Result: True
2024-06-07T13:39:26.7850541Z ##[section]Starting: Azure Container Apps Deploy
2024-06-07T13:39:26.7856594Z ==============================================================================
2024-06-07T13:39:26.7856884Z Task : Azure Container Apps Deploy
2024-06-07T13:39:26.7856950Z Description : An Azure DevOps Task to build and deploy Azure Container Apps.
2024-06-07T13:39:26.7857037Z Version : 1.238.1
2024-06-07T13:39:26.7857106Z Author : Microsoft Corporation
2024-06-07T13:39:26.7857629Z Help : [Learn more about this task](http://github.com/microsoft/azure-pipelines-tasks/blob/master/Tasks/AzureContainerAppsV1/README.md)
2024-06-07T13:39:26.7857785Z ==============================================================================
2024-06-07T13:39:26.8007245Z ##[debug]Resource Utilization warnings is disabled, switch "DISABLE_RESOURCE_UTILIZATION_WARNINGS" variable to "true" if you want to enable it
2024-06-07T13:39:26.8195650Z ##[debug]Using node path: C:\agents\3.240.1\externals\node20_1\bin\node.exe
2024-06-07T13:39:26.9666466Z ##[debug]agent.TempDirectory=D:\a\_temp
2024-06-07T13:39:26.9683060Z ##[debug]loading inputs and endpoints
2024-06-07T13:39:26.9713540Z ##[debug]loading ENDPOINT_AUTH_d3683a25-67d9-432f-848e-d3ca1a53656b
2024-06-07T13:39:26.9742799Z ##[debug]loading ENDPOINT_AUTH_PARAMETER__AUTHENTICATIONTYPE
2024-06-07T13:39:26.9745746Z ##[debug]loading ENDPOINT_AUTH_PARAMETER__SERVICEPRINCIPALID
2024-06-07T13:39:26.9748993Z ##[debug]loading ENDPOINT_AUTH_PARAMETER__SERVICEPRINCIPALKEY
2024-06-07T13:39:26.9752137Z ##[debug]loading ENDPOINT_AUTH_PARAMETER__TENANTID
2024-06-07T13:39:26.9755269Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2024-06-07T13:39:26.9759684Z ##[debug]loading ENDPOINT_AUTH_SCHEME_
2024-06-07T13:39:26.9763619Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2024-06-07T13:39:26.9772815Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2024-06-07T13:39:26.9774685Z ##[debug]loading INPUT_CONNECTEDSERVICENAMEARM
2024-06-07T13:39:26.9780368Z ##[debug]loading INPUT_CONTAINERAPPENVIRONMENT
2024-06-07T13:39:26.9784679Z ##[debug]loading INPUT_CONTAINERAPPNAME
2024-06-07T13:39:26.9788372Z ##[debug]loading INPUT_CWD
2024-06-07T13:39:26.9791777Z ##[debug]loading INPUT_DISABLETELEMETRY
2024-06-07T13:39:26.9797267Z ##[debug]loading INPUT_IMAGETODEPLOY
2024-06-07T13:39:26.9799710Z ##[debug]loading INPUT_RESOURCEGROUP
2024-06-07T13:39:26.9833541Z ##[debug]loaded 16
2024-06-07T13:39:26.9848768Z ##[debug]Agent.ProxyUrl=undefined
2024-06-07T13:39:26.9849528Z ##[debug]Agent.CAInfo=undefined
2024-06-07T13:39:26.9850392Z ##[debug]Agent.ClientCert=undefined
2024-06-07T13:39:26.9851314Z ##[debug]Agent.SkipCertValidation=undefined
2024-06-07T13:39:27.1393319Z ##[debug]check path : D:\a\_tasks\AzureContainerApps_cad8dd6a-de28-4d89-a7db-1bc20a2fbb2d\1.238.1\node_modules\azure-pipelines-tasks-artifacts-common\module.json
2024-06-07T13:39:27.1424101Z ##[debug]adding resource file: D:\a\_tasks\AzureContainerApps_cad8dd6a-de28-4d89-a7db-1bc20a2fbb2d\1.238.1\node_modules\azure-pipelines-tasks-artifacts-common\module.json
2024-06-07T13:39:27.1452397Z ##[debug]system.culture=en-US
2024-06-07T13:39:27.1484228Z ##[debug]Resource file has already set to: D:\a\_tasks\AzureContainerApps_cad8dd6a-de28-4d89-a7db-1bc20a2fbb2d\1.238.1\node_modules\azure-pipelines-tasks-artifacts-common\module.json
2024-06-07T13:39:27.1513307Z ##[debug]Build.BuildId=30868
2024-06-07T13:39:27.1536575Z ##[debug]Build.BuildNumber=20240419.1
2024-06-07T13:39:27.1544822Z ##[debug]disableTelemetry=false
2024-06-07T13:39:27.1549088Z ##[debug]check path : D:\a\_tasks\AzureContainerApps_cad8dd6a-de28-4d89-a7db-1bc20a2fbb2d\1.238.1\task.json
2024-06-07T13:39:27.1550442Z ##[debug]adding resource file: D:\a\_tasks\AzureContainerApps_cad8dd6a-de28-4d89-a7db-1bc20a2fbb2d\1.238.1\task.json
2024-06-07T13:39:27.1551193Z ##[debug]system.culture=en-US
2024-06-07T13:39:27.1551609Z ##[debug]cwd=D:\a\r1\a
2024-06-07T13:39:27.1552036Z ##[debug]testing directory 'D:\a\r1\a'
2024-06-07T13:39:27.1552680Z ##[debug]appSourcePath=undefined
2024-06-07T13:39:27.1553270Z ##[debug]acrName=undefined
2024-06-07T13:39:27.1555570Z ##[debug]imageToDeploy=acrgnosdevopscicdcndev.azurecr.cn/gnos/notificationsservice:30868
2024-06-07T13:39:27.1556109Z ##[debug]yamlConfigPath=undefined
2024-06-07T13:39:27.1559175Z ##[debug]connectedServiceNameARM=d3683a25-67d9-432f-848e-d3ca1a53656b
2024-06-07T13:39:27.1567840Z ##[debug]d3683a25-67d9-432f-848e-d3ca1a53656b auth scheme = ServicePrincipal
2024-06-07T13:39:27.1572018Z ##[debug]d3683a25-67d9-432f-848e-d3ca1a53656b auth param authenticationType = spnKey
2024-06-07T13:39:27.1575483Z ##[debug]d3683a25-67d9-432f-848e-d3ca1a53656b auth param serviceprincipalid = ***
2024-06-07T13:39:27.1579112Z ##[debug]d3683a25-67d9-432f-848e-d3ca1a53656b auth param tenantid =
2024-06-07T13:39:27.1579625Z ##[debug]key based endpoint
2024-06-07T13:39:27.1581686Z ##[debug]d3683a25-67d9-432f-848e-d3ca1a53656b auth param serviceprincipalkey = ***
2024-06-07T13:39:27.1590942Z ##[debug]Processed: ##vso[task.setsecret]***
2024-06-07T13:39:27.1591815Z ##[debug]which 'az'
2024-06-07T13:39:27.2045765Z ##[debug]found: 'C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd'
2024-06-07T13:39:27.2049434Z ##[debug]C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd arg: login --service-principal -u "***" --password=*** --tenant "" --allow-no-subscriptions
2024-06-07T13:39:27.2050452Z ##[debug]C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd arg: login --service-principal -u "***" --password=*** --tenant "" --allow-no-subscriptions
2024-06-07T13:39:27.2053337Z ##[debug]exec tool: C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd
2024-06-07T13:39:27.2053965Z ##[debug]exec tool: C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd
2024-06-07T13:39:27.2054527Z ##[debug]arguments:
2024-06-07T13:39:27.2055017Z ##[debug]arguments:
2024-06-07T13:39:27.2055476Z ##[debug] login
2024-06-07T13:39:27.2056017Z ##[debug] login
2024-06-07T13:39:27.2056486Z ##[debug] --service-principal
2024-06-07T13:39:27.2056976Z ##[debug] --service-principal
2024-06-07T13:39:27.2057467Z ##[debug] -u
2024-06-07T13:39:27.2057906Z ##[debug] -u
2024-06-07T13:39:27.2058410Z ##[debug] ***
2024-06-07T13:39:27.2058903Z ##[debug] ***
2024-06-07T13:39:27.2059425Z ##[debug] --password=***
2024-06-07T13:39:27.2059968Z ##[debug] --password=***
2024-06-07T13:39:27.2060436Z ##[debug] --tenant
2024-06-07T13:39:27.2060900Z ##[debug] --tenant
2024-06-07T13:39:27.2061374Z ##[debug]
2024-06-07T13:39:27.2061877Z ##[debug]
2024-06-07T13:39:27.2062692Z ##[debug] --allow-no-subscriptions
2024-06-07T13:39:27.2063185Z ##[debug] --allow-no-subscriptions
2024-06-07T13:39:27.2064452Z [command]C:\Windows\system32\cmd.exe /D /S /C ""C:\Program Files\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" login --service-principal -u *** "--password=***" --tenant --allow-no-subscriptions"
2024-06-07T13:39:29.0639471Z ##[debug]Agent environment resources - Disk: D:\ Available 12337.00 MB out of 14333.00 MB, Memory: Used 1815.00 MB out of 7167.00 MB, CPU: Usage 43.06%
2024-06-07T13:39:34.1159836Z ##[debug]Agent environment resources - Disk: D:\ Available 12337.00 MB out of 14333.00 MB, Memory: Used 1784.00 MB out of 7167.00 MB, CPU: Usage 33.00%
2024-06-07T13:39:39.1831726Z ##[debug]Agent environment resources - Disk: D:\ Available 12337.00 MB out of 14333.00 MB, Memory: Used 1808.00 MB out of 7167.00 MB, CPU: Usage 26.74%
2024-06-07T13:39:44.2516630Z ##[debug]Agent environment resources - Disk: D:\ Available 12337.00 MB out of 14333.00 MB, Memory: Used 1817.00 MB out of 7167.00 MB, CPU: Usage 22.48%
2024-06-07T13:39:49.7086177Z ##[debug]Agent environment resources - Disk: D:\ Available 12337.00 MB out of 14333.00 MB, Memory: Used 1821.00 MB out of 7167.00 MB, CPU: Usage 19.31%
2024-06-07T13:39:51.1351545Z ERROR: AADSTS500011: The resource principal named https://management.core.windows.net/ was not found in the tenant named tenantName . This can happen if the application has not been installed by the administrator of the tenant or consented to by any user in the tenant. You might have sent your authentication request to the wrong tenant. Trace ID: 40351051-7370-41f1-a99f-69c28bc33a00 Correlation ID: 8710ffe6-8ed2-49a3-b0ff-ac84d96bb758 Timestamp: 2024-06-07 13:39:46Z
2024-06-07T13:39:51.1352324Z Interactive authentication is needed. Please run:
2024-06-07T13:39:51.1352532Z az login
2024-06-07T13:39:51.1387267Z ##[error]Error Code: [1]
2024-06-07T13:39:51.1395167Z ##[debug]Processed: ##vso[task.issue type=error;]Error Code: [1]
2024-06-07T13:39:51.1396167Z ##[error]Error: Azure login failed
2024-06-07T13:39:51.1396532Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Azure login failed
2024-06-07T13:39:51.1398357Z ##[debug]task result: Failed
2024-06-07T13:39:51.1400010Z ##[debug]Processed: ##vso[task.complete result=Failed;]
2024-06-07T13:39:51.1401077Z ##[debug]Telemetry enabled; logging metadata about task result, length and scenario targeted.
2024-06-07T13:39:51.1401524Z ##[debug]which 'docker'
2024-06-07T13:39:51.1643397Z ##[debug]found: 'C:\Windows\system32\docker.exe'
2024-06-07T13:39:51.6899061Z ##[debug]C:\Windows\system32\docker.exe arg: run --rm mcr.microsoft.com/oryx/cli:debian-buster-20230207.2 /bin/bash -c "oryx telemetry --event-name 'ContainerAppsPipelinesTaskV1' --processing-time '23988' --property 'result=failed' "
2024-06-07T13:39:52.6875726Z ##[debug]C:\Windows\system32\docker.exe arg: run --rm mcr.microsoft.com/oryx/cli:debian-buster-20230207.2 /bin/bash -c "oryx telemetry --event-name 'ContainerAppsPipelinesTaskV1' --processing-time '23988' --property 'result=failed' "
2024-06-07T13:39:52.6877029Z ##[debug]exec tool: C:\Windows\system32\docker.exe
2024-06-07T13:39:52.6877536Z ##[debug]exec tool: C:\Windows\system32\docker.exe
2024-06-07T13:39:52.6878037Z ##[debug]arguments:
2024-06-07T13:39:52.6879311Z ##[debug]arguments:
2024-06-07T13:39:52.6879750Z ##[debug] run
2024-06-07T13:39:52.6880537Z ##[debug] run
2024-06-07T13:39:52.6880882Z ##[debug] --rm
2024-06-07T13:39:52.6881225Z ##[debug] --rm
2024-06-07T13:39:52.6882068Z ##[debug] mcr.microsoft.com/oryx/cli:debian-buster-20230207.2
2024-06-07T13:39:52.6882502Z ##[debug] mcr.microsoft.com/oryx/cli:debian-buster-20230207.2
2024-06-07T13:39:52.6882886Z ##[debug] /bin/bash
2024-06-07T13:39:52.6883426Z ##[debug] /bin/bash
2024-06-07T13:39:52.6883783Z ##[debug] -c
2024-06-07T13:39:52.6884134Z ##[debug] -c
2024-06-07T13:39:52.6884578Z ##[debug] oryx telemetry --event-name 'ContainerAppsPipelinesTaskV1' --processing-time '23988' --property 'result=failed'
2024-06-07T13:39:52.6885503Z ##[debug] oryx telemetry --event-name 'ContainerAppsPipelinesTaskV1' --processing-time '23988' --property 'result=failed'
2024-06-07T13:39:52.6886047Z [command]C:\Windows\system32\docker.exe run --rm mcr.microsoft.com/oryx/cli:debian-buster-20230207.2 /bin/bash -c "oryx telemetry --event-name 'ContainerAppsPipelinesTaskV1' --processing-time '23988' --property 'result=failed'"
2024-06-07T13:39:54.7950238Z ##[debug]Agent environment resources - Disk: D:\ Available 12337.00 MB out of 14333.00 MB, Memory: Used 1822.00 MB out of 7167.00 MB, CPU: Usage 17.02%
2024-06-07T13:39:54.9088860Z Unable to find image 'mcr.microsoft.com/oryx/cli:debian-buster-20230207.2' locally
2024-06-07T13:39:54.9089440Z debian-buster-20230207.2: Pulling from oryx/cli
2024-06-07T13:39:54.9090033Z docker: image operating system "linux" cannot be used on this platform: operating system is not supported.
2024-06-07T13:39:54.9090358Z See 'docker run --help'.
2024-06-07T13:39:54.9321427Z ##[section]Finishing: Azure Container Apps Deploy]
New issue checklist
Task name
AzureContainerApps@1
Task version
1
Issue Description
When I use this task, I got the error. This service connection works fine for other tasks, I guess the problem is with the default tasks' endpoint
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
windows-2019
Relevant log output
Full task logs with system.debug enabled
Repro steps
The text was updated successfully, but these errors were encountered: