Search code examples
azureazure-deployment

error in deploying a node app in azure


I am trying to deploy a node app into azure, while doing last step of deployment git push azure master, an error occurred as below.

fatal: unable to access 'https://[email protected]@node-deploy-to-azure.scm.azurewebsites.net/node-deploy-to-azure.git/': Couldn't resolve host '[email protected]'

Please help to resolove it.


Solution

  • One solution is like @evilSnobu has said. Use the url https://{appname}.scm.azurewebsites.com.

    What you have met is caused by your deployment user name, as you use the format https://{username}@{appname}.scm.azurewebsites.net:443/{appname}.git

    In your case, you set it as [email protected]. You may have done this setting in Azure Cloud Shell and it showed no error.

    But in fact, the name can only contain letters, numbers, hyphens and underscores. Otherwise your url can't be resolved correctly. You can see the tip here. deployment credential Azure Cloud Shell may miss some necessary pattern check so that invalid user name causes no error to show.