Error publishing asp.net 5 (core) websites to Azure

Feb 23, 2016

If you’re doing asp.net core development and if you’re trying to publish your website to an azure website you might run into the following error when implementing this documentation.

https://msdn.microsoft.com/en-us/Library/vs/alm/Build/azure/deploy-aspnet5?f=255&MSPPError=-2147217396

[error]Error: The specified credentials cannot be used with the authentication scheme ‘Basic’.

[error]Error: Default credentials cannot be supplied for the Basic authentication scheme.

[error]Parameter name: authType

This comes from the fact the provided script doesn’t support azure websies with multiple deployment slots.

During my research I found an unresolved thread mentioning it.

https://stackoverflow.com/questions/34417649/vso-vsts-azure-powershell-the-specified-credentials-cannot-be-used-with-the-a/35494779#35494779

So I decided to investigate more and to edit the script to make it support deployment slots

https://gist.github.com/baywet/f7ed425c48ccde4399c7

Have fun deploying!


Last edited Apr 15, 2024 by Vincent Biret


Tags: