创建,配置PHP Web应用程序并将其部署到Azure

So recently i have been trying to work on azure. I want to make a php website and connect it to database placed on azure. I am following this tutorial. https://azure.microsoft.com/en-us/documentation/articles/app-service-web-php-get-started/

I have ran into a problem. Every time i execute this command azure site create --git i get

Server failed to authenticate your request. Verify that certificate is valid and is associated with this subscription

Here are the steps to deploy PHP project on Azure Web Apps Server by git:

  • 1, Sign in Azure manage portal , Click “NEW” in bottom, select “COMPUTE”=>”WEB APP”=>”QUICK CREATE” and enter server name in URL section, to create a new empty Web application.
    enter image description here

  • 2, Click “WEB APP” button on the left navigation, in this dashboard we can see the web site we created above, click web site name to enter in management page.

enter image description here

  • 3, In dashboard page, click “set up deployment form source control” in “quick glance” column, select “Local Git repository” to create a git repository. Now in deployments page, we can see the guide to deploy project by git.

  • 4, In your local project root directory, run the following commands to deploy as shown on the page:

enter image description here

Furthermore, we can simply use FTP tool to upload the project to Azure Server, please see this simple sample: http://blogs.technet.com/b/sams_blog/archive/2014/11/14/azure-websites-deploy-php-website-using-ftp.aspx