Deploying Web Application directly from Visual Studio

Microsoft Azure – Deploying Web Application directly from Visual Studio

  1. Create a new ASP.NET MVC Web Application in Azure Web Service
    1. ASP.NET Template = MVC
    2. Change Authentication = No Authentication
    3. Check Host in the cloud.
    4. Sign-In to Azure Account and then Create App Service dialog box asks you what resources you
      want to create. –> Create

    Note: In a few seconds, Visual Studio creates the web project in the folder that you specified,
    and it creates the web app in the Azure region that you specified.

    Note: The Azure App Service Activity window shows that the web app has been created.

  2. Deploy / Publish the project.
    1. In Solution Explorer, right-click the project, and choose Publish.The wizard opens to a
      publish profile that has settings for deploying the web project to the new web app. If you wanted
      to deploy to a different web app, you could click the Profile tab to create a different profile.
    2. Choose default options and finally click on Publish.The Output and Azure App Service Activity
      windows show what deployment actions were taken and report successful completion of the deployment.
  3. Update files using the Server Explorer window which shows the files and folders in the new project.
    1. In Server Explorer, navigate to Azure –> App Service –> , and then expand the node
      for your web app
  4. Monitor and manage the web application in Azure Portal
    1. Login to Azure Portal,
    2. Click App Services, and then click the name of your web app
    3. Click Settings to see more options for configuring your web app
    4. Click Application settings to see an example of the kinds of settings that you can configure in the Portal.
  5. Getting Publish Profile from Azure Portal
    1. Login to Azure Portal,
    2. Click App Services, and then click the name of your web app.
    3. In the tool bar click on Get Publish Profile
    4. Save the Profile locally on your disk.
    5. Go to VS.NET, Right Click on Project –> Publish
    6. Select Profile Tab –> Click Import –> Profile the downloaded profile name –> OK
    7. Click Publish.

    Note: Profile will be saved for further use in /Properties/PublishProfiles/*.pubxml

  6. Publishing using other FTP tools like FileZilla
    1. Login to Azure Portal,
    2. Click App Services, and then click the name of your web app.
    3. Go to Settings –> select Deployment Credentials
    4. Provide FTP/deployment user name and password
    5. Save
    6. Look at Essentials Section of Selected App Service and copy FTP hostname and user name
    7. Open FileZilla and use the above hostname and credentials to connect and upload files.

    Note: Although it’s easy to copy your web app’s files to Azure using FTP utilities, they don’t
    automatically take care of or coordinate related deployment tasks such as deploying a database or changing connection strings. Also, many FTP tools don’t compare source and destination files in order to skip copying files that haven’t changed. For large Apps, always copying all files can result in long deployment times even for minor updates since all files are always copied.

Azure App services Introduction and types

Azure App Services Introduction

  • Azure App Service is the only cloud service that integrates everything you need to quickly
    and easily build web and mobile apps for any platform and any device.
  • Built for developers, App Service is a fully managed platform with powerful capabilities such as
    built-in DevOps, continuous integration with Visual Studio Team Services and GitHub, staging and production
    support, and automatic patching.
  • Azure App Service is a single service that includes all of the existing capabilities from Azure
    Websites, Azure Mobile Services, and Azure Biztalk Services, while adding new capabilities.

Why App Service?

Focused on rapid development of web and mobile apps, as well as automating business processes,
Azure App Service provides an integrated set of enterprise capabilities through a single development
and management experience offering you the following benefits:

  • Build Web and Mobile Apps Fast – Rapidly build, deploy and manage web and mobile apps for
    employees or customers using a single back-end. Use your existing languages skills — .NET, Java,
    NodeJS, PHP, or Python. Accelerate development with access to a rich gallery of APIs, connectors,
    and logic available in the Azure Marketplace.
  • Connect to any service and unlock your data – Connect your web or mobile app to enterprise systems or
    SaaS in minutes with built-in connectors. Choose from more than 50 connectors for enterprise systems such as
    SAP, Siebel, and Oracle to popular enterprise SaaS services like Salesforce and Office 365 to popular internet
    services such as Facebook, Twitter and Dropbox.
  • Integration made simple – Integrate data across clouds and automate business processes in minutes with a
    simple visual design experience. Easily integrate your logic with any mobile or web app via standard
    REST APIs. Build sophisticated enterprise application integration, B2B solutions using EDI, business
    policies (rules engine), and more based on the industry leading BizTalk platform.
  • Unparalleled developer productivity – Optimized for DevOps, with continuous integration support for
    Visual Studio Team Services and Github, so you can focus on rapidly improving your apps without worrying
    about infrastructure. Deploy app updates with built-in staging, roll-back and in-production testing
  • Enterprise Ready – Enjoy peace of mind with enterprise grade security and management. Provide
    delegated and role-based administration; easily secure and manage data flowing to your mobile apps;
    and protect your assets with built-in backup and restore capability. Rest confidently knowing App
    Service is PCI compliant. Stay in control with dedicated environments, and the ability to deploy
    across public and private clouds. Benefit from over 25 years of Microsoft experience and our enterprise
    Service Level Agreement.

App Types

App Service allows you to create the following app types from a single development experience:

    1. Web Apps – Quickly create and deploy mission critical Web apps that scale with your business.
    2. Mobile Apps – Engage employees, partners and customers on any device at any time.
    3. API Apps – Easily build and consume Cloud APIs.
    4. Logic Apps – Automate the access and use of data across clouds without writing code.

As a single integrated service, App Service makes it easy to compose the above app types into a single
solution, allowing you to easily build apps that target both web and mobile clients using the same back-end
and integrate with on premise systems as well as popular services such as Office 365 and

Microsoft Azure Cloud Characteristics

Cloud Characteristics

Characteristics of Cloud computing that distinguish it from traditional hosting.

  • Remotely hosted: Services or data are hosted on remote infrastructure.
  • Ubiquitous: Services or data are available from anywhere through internet.
  • Resiliency: Cloud providers generally mirrors solutions to multiple data centers to minimize downtime in the event of a disaster.
  • On-demand self-service: A consumer can himself provision computing capabilities, such as server time and network storage, as needed automatically without requiring human interaction with each service’s provider. It is sold on demand mostly by the minutes or hours. (Pay as you go model)
  • Rapid elasticity – A user can utilize as much or little of the cloud service as required. For example resources (ex: webservers) on the cloud can be scaled to meet high traffic in peak times or scaled down in times of less traffic.
  • Broad network access. Capabilities are available over the network and accessed through standard mechanisms that promote use by heterogeneous thin or thick client platforms (e.g., mobile phones, laptops, and PDAs).
  • Fully managed by the provider – The user is abstracted from the details of how the service is managed in the cloud. For example the user need not worry about aspects such as hardware used, software updates and patches, plug-ins, web security. There is optimum utilization of resources and as well as sharing of resources. Everything is taken care of by the provider.
Implementing Microsoft Azure Infrastructure Solution (Exam 70-533) Certification – Training Syllabus