liprec / vsts-release-aas

Repository for my Analysis Service Azure pipelines tasks related to Azure Analysis Service or Power BI Premium
Other
27 stars 28 forks source link

Unreachable Network -> Socket Error #108

Closed OlavRab closed 2 years ago

OlavRab commented 2 years ago

When deploying a model via a release pipeline, I get the following error:

[error]System.Net.WebException: Unable to connect to the remote server ---> System.Net.Sockets.SocketException: A socket operation was attempted to an unreachable network 169.254.169.254:80

Any idea what could go on? Does this have to do with the Database connection? Or the AAS-Connection?

Thanks!

liprec commented 2 years ago

Is it possible you are using a service connection using a managed identity? If yes: this authentication scheme is not supported and you can switch and use a service principal.

OlavRab commented 2 years ago

I'm not entirely sure. But in my Azure portal, I open "Enterprise Applications" and it will show under the type "Enterprise Application", not Managed Identity.

liprec commented 2 years ago

If you go to the Project Settings -> Service Connections and select the connection you are using: does it say: using service principal authentication?

OlavRab commented 2 years ago

That was the issue, thanks for helping out!