【问题标题】:Failed to get resource ID for resource type 'Microsoft.Web/Sites' and resource name 'AppService' during Azure DevOps continuous deployment在 Azure DevOps 持续部署期间无法获取资源类型“Microsoft.Web/Sites”和资源名称“AppService”的资源 ID
【发布时间】:2020-11-07 22:41:16
【问题描述】:

当我尝试使用 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

【问题讨论】:

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


【解决方案1】:

您能否检查您正在使用的服务端点是否具有应用服务的权限?

您可以通过导航到

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

【讨论】:

    猜你喜欢
    • 2020-01-26
    • 2020-06-08
    • 2020-07-12
    • 1970-01-01
    • 2015-10-09
    • 2023-03-25
    • 1970-01-01
    • 1970-01-01
    • 2011-03-29
    相关资源
    最近更新 更多