在Azure DevOps连续部署期间无法获取资源类型'Microsoft.Web /站点'和资源名称'AppService'的资源ID

时间:2020-07-18 06:53:51

标签: .net azure azure-devops azure-web-app-service

当我尝试使用azure devops CD将.net应用程序服务部署到azure时,出现以下错误:

 Error: Failed to get resource ID for resource type 'Microsoft.Web/Sites' and resource name 'AppService'. Error: connect ENETUNREACH 169.254.169.254:80
    Failed to add release annotation. TypeError: Cannot read property 'getApplicationSettings' of undefined
    UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Cannot read property 'getApplicationURL' of undefined

我无法找到根本原因。帮帮我为其附加图片
https://i.stack.imgur.com/LfHTy.png

1 个答案:

答案 0 :(得分:1)

您可以检查您使用的服务端点是否具有App Service的权限吗?

您可以通过导航到

project settings -> service connections -> new service connection -> selected azure resource manager -> selected service principal authentication INSTEAD OF managed identity authentication ->