0
votes

When I try to deploy the .net app service to azure using azure devops CD, I got a below Error:

 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

I could not able to get the root cause for it. Help me out here. Attached the image for it
https://i.stack.imgur.com/LfHTy.png

1
Similar thread for your reference : stackoverflow.com/questions/58107017/…Andy Li-MSFT

1 Answers

1
votes

Can you check if the Service Endpoint that you are using has permissions for the App Service ?

You can do this by navigating to

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