Friday, July 20, 2018

Deploy your site to Azure App service from Visual Studio

Building your website and publishing it i Azure app service is simpler than publishing the site into a remote machine. There are several methods through which you can publish your site into Azure.

Import publisher file:


This is one of the easiest way t publish your site in Azure app service. First off all create a new app service or if you have an existing one,  open the Overview section of that.
You will find several options on the top of the Overview sections like Browse, Stop, Swap etc. There will be another one named Get Publish Profile. By clicking on that link a new file will be downloaded with .PublishSettings extension.

If you open the file in any text editor, you will find that, it is nothing but a XML file having 2 tags. One for web deployment and another for FTP deployment with your app name. Within that your will also find all the credential for your deployment. Both for FTP and web deploy. But as usual all password will be decrypted so it is harmless.
<publishProfile profileName=" - Web Deploy" 
                 publishMethod="MSDeploy" 
                 publishUrl=".scm.azurewebsites.net:443" 
                 msdeploySite="" 
                 userName="" 
                 userPWD="" 
                 destinationAppUrl="" 
                 SQLServerDBConnectionString="" 
                 mySQLDBConnectionString="" 
                 hostingProviderForumLink="" 
                 controlPanelLink="http://windows.azure.com" 
                 webSystem="WebSites">


 <publishProfile profileName=" - FTP" 
                 publishMethod="FTP" 
                 publishUrl="/site/wwwroot" 
                 ftpPassiveMode="True" 
                 userName="" 
                 userPWD="" 
                 destinationAppUrl="" 
                 SQLServerDBConnectionString="" 
                 mySQLDBConnectionString="" 
                 hostingProviderForumLink="" 
                 controlPanelLink="http://windows.azure.com" 
                 webSystem="WebSites">
Now open your Visual Studio IDE and create a new application. In case you have already created it go to the solution. Right click on the solution -> Click the publish option to open the publish dialog.
Now in the publish dialog you will find an option named “Import”. Click on that option and a File dialog will be opened. Choose your file and click OK. After clicking OK it will automatically redirect to Connection tab in Publish web window.



Now you can choose either Web deploy or FTP from the drop down over there. For both all the fields will be pre populated with all the informations and credentials.

Click on the Validate connection and check our connections from Visual Studio.
Click Next to choose configuration parts. Choose either Debug or Release, whatever is suitable for your applications. You can also manage File publish options from here.
Again click on the Next to go to the Preview section. Click on the Start Preview button if you want to see the files are going to push into the server. Or click Publish (Keyboard: P) to publish the site into your app server.
After successful deployment site will be open automatically in your default browser.
FTP deployment:
There is another quick method to deploy your site into Azure app service through FTP. Go to the Overview section of your app service. In the first section right side you will find the details of FTP connections. Usernames, FTP hostname, FTPS hostname. Password for this deployment will your own account password.
Go to the Visual studio and right click on the solution. Click the publish option and create a new publisher profile. Choose FTP in the Connection tab from Publish method drop down list.
Server: FTP hostname/ FTPS hostnameSite Path: site/wwwroot (Check the passive mode)User name: FTP/deployment usernamePassword: Your account passwordDestination URL: Your site URL


Click on the Validate button to validate your enter details and connection. Click on the publish button to publish your site. After successful publish, site will be open in your default browser automatically. 

21 comments:

  1. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging… Azure Online Course Bangalore

    ReplyDelete
    Replies
    1. Great Article Cloud Computing Projects

      Networking Projects

      Final Year Projects for CSE

      JavaScript Training in Chennai

      JavaScript Training in Chennai

      The Angular Training covers a wide range of topics including Components, Angular Directives, Angular Services, Pipes, security fundamentals, Routing, and Angular programmability. The new Angular TRaining will lay the foundation you need to specialise in Single Page Application developer. Angular Training

      Delete
  2. This comment has been removed by the author.

    ReplyDelete
  3. This comment has been removed by the author.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. This comment has been removed by the author.

    ReplyDelete
  6. This comment has been removed by the author.

    ReplyDelete
  7. This comment has been removed by the author.

    ReplyDelete
  8. This comment has been removed by the author.

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. This comment has been removed by the author.

    ReplyDelete
  12. This comment has been removed by the author.

    ReplyDelete
  13. This comment has been removed by the author.

    ReplyDelete
  14. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging. oracle training in chennai

    ReplyDelete
  15. Really good information to show through this blog. I really appreciate you for all the valuable information that you are providing us through your blog.
    visit : Digital Marketing Training in Chennai || Digital Marketing Course in Chennai

    ReplyDelete
  16. Grab the extraordinary Oracle Course with PLSQL from Infycle Technologies, the best software training institute in Chennai. Infycle offers the Best Oracle PLSQL Training in Chennai, with various IT demanding courses such as Big Data, Python, DevOps, Selenium, Full-Stack development, etc., in complete hands-on practical training with professional tutors in the field. In addition to that, the mock interviews will be done for the candidates so that they can face the interviews with total confidence. To have all these within your hands, call 7502633633 for having a free demo.Best Oracle PLSQL Training in Chennai | Infycle Technologies

    ReplyDelete
  17. Sharing the same interest, Infycle feels so happy to share our detailed information about all these courses with you all! Do check them out
    Best Data training in chennai & get to know everything you want to about software trainings.

    ReplyDelete

Follow by Email

Popular Posts

Pageviews