4
votes

I have a portal account, and a devlops account. Both happen to use the same login/password.

In the portal.azure.com, I have a working web service. Under the web services "deployment-Deployment center" I select azure repos, azure pipelines as the build provider, set master branch etc.

It created a pipeline in my devlops which worked, i.e. it did NuGet restore, build solution, test assemblies, publish symbols path, publish artifact.

Great.

But it did not deploy the new build.

Clicking on "releases" in pipleines in devops, it was trying to use "Azure web app deploy" and giving an error that msbuild doesnt use the right format or similar. So I changed it to "Azure App Service Deploy".

Now I get a new error: Error: 'credentials' cannot be null.

There is no field for credentials.

It is using a publish profile.

Any ideas how I fix this?

here is the offending task:

enter image description here

There is no option to configure the missing credentials?

If I go to portal, and look at the "Deployment center", I see this:

enter image description here

If I click on "deployment credentials" I see this:

enter image description here

Which all looks good.

Any idea where the "null" credentials comes from?

2
Since you are using publish profile, have you tried to use ConnectionType = PublishProfile instead of Azure Resource Manager? What's the result did you get? Besides, kindly set system.debug=true to get more detail info for further troubleshooting.PatrickLu-MSFT
Good point. If I change "connection type" from the existing "Azure resource Manager" to "publish profile" it asks for publish profile path and publish profile pathword. I suspect this option is to manually upload a profile, vs the profile which is pulled automatically. With it set to "Azure connection manager", under "Azure subscription" is a dropdown with the publish profile which the wizard created.John Little
Hi John, any update on this issue? I have a similar error. Were you able to resolve finally?Chamberlain
No solution, sorry.John Little
Hi, any update on this?ken2k

2 Answers

0
votes

Have you tried adding a new service connection in Project Settings and selecting Service Connections there? Even updating the Service connection created by Azure Portal threw an error for me.

The modal that pops up when you go to Project Settings/Pipelines/Service Connections and try to add a new service connection

In my case the issue was I did not have proper access rights to allow the connection between my pipeline and the Azure App. I was listed as a Contributor on the subscription. I contacted our company Devops and she updated the service connection without any issues because she was listed as an Owner or User Access Administrator.

0
votes

Have a read on this. They updated the services. You need to follow the Action Required.