1

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.

3
  • Add your remote as https://{appname}.scm.azurewebsites.net, for example git remote add azure https://{appname}.scm.azurewebsites.net. Commented Apr 20, 2018 at 9:53
  • Hi...thanks...But i already added the url C:\Users\WittyParrot\Documents\node-deploy-to-azure>git remote add azure node-deploy-to-azure.azurewebsites.net fatal: remote azure already exists. C:\Users\WittyParrot\Documents\node-deploy-to-azure>git push azure master fatal: unable to access '[email protected]@node-deploy-to-azure.scm.azurewebsites.ne…': Couldn't resolve host '[email protected]' Commented Apr 20, 2018 at 12:04
  • Remove the azure remote first with git remote rm azure. Commented Apr 20, 2018 at 14:33

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

4 Comments

Hi Jerry...git push azure master is asking authentication...when i give username and pass...it is throwing message ....C:\Users\WittyParrot\Documents\node-deploy-to-azure>git push azure master fatal: Authentication failed for '[email protected] didn't get which id and pass to enter..all username pass i tried..please hep..
Have you specified username and password using az webapp deployment user set ?
@jerry...After deployment i put the url in browser but output is not as expected...a blue screen with a message "Your app is up and running"...please suggest...url is node-deploy-to-azure.azurewebsites.net ..check for reference
It is You do not have permission to view this directory or page. right now. Depolyment succeeded, now It is related to how you build your node app, a link how to build node web on azure for you to refer. If you have further question about it, you can post a new question because it's hard to offer detailed answer in comment. Besides, if my solution to your deployment is ok ,you may accept it as an answer, thanks.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.