Dot Net Core app Deployment in Azure

DevOps Projects creates a CI/CD pipeline in Azure DevOps. You can create a new Azure DevOps organization or use an existing organization. DevOps Projects also creates Azure resources in the Azure subscription of your choice.

Sign in to the Microsoft Azure portal.

In the left pane, select Create a resource icon in the left navigation bar, and then search for DevOps Projects.

Select Create.





























Select Dot net option from next window.



In next screen select dot net core option for further process.




In next screen you will get available option for service. Here you can choose option as per your requirement. In my case I am choosing windows web app and moving to next screen.



Select Next.
Web App on Windows is the default deployment target. Optionally, you can choose Web App on Linux or Web App for Containers. The application framework, which you chose previously, dictates the type of Azure service deployment target available here.





In next step you will get option to define project name, dev ops organization name,web app name and location etc.









































I had given all the information as per my requirement. 

Configure Azure DevOps and an Azure subscription
Create a new free Azure DevOps organization or choose an existing organization.

a. Choose a name for your project.


b. Select your Azure subscription and location, choose a name for your application, and then select Done.
After a few minutes, the DevOps Projects dashboard is displayed in the Azure portal. A sample application is set up in a repository in your Azure DevOps organization, a build is executed, and your application is deployed to Azure. This dashboard provides visibility into your code repository, the CI/CD pipeline, and your application in Azure.

On the right of the dashboard, select Browse to view your running application.





Commit code changes and execute CI/CD
DevOps Projects created a Git repository in Azure Repos or GitHub. To view the repository and make code changes to your application, do the following:

On the left of the DevOps Projects dashboard, select the link for your master branch. This link opens a view to the newly created Git repository.





To view the repository clone URL, select Clone from the top right of the browser. You can clone your Git repository in your favorite IDE. In the next few steps, you can use the web browser to make and commit code changes directly to the master branch.
On the left of the browser, go to the Views/Home/index.cshtml file.
Select Edit, and then make a change to the h2 heading. For example, type Get started right away with the Azure DevOps Projects or make some other change.




Select Commit, and then save your changes.




In your browser, go to the Azure DevOps Project dashboard. You should now see a build is in progress. The changes you made are automatically built and deployed via a CI/CD pipeline.




After successfully deployment of your build changes will be reflected on your ASP.net core application.





In this way you will get running dot net core application based on Azure windows app service deployment. This configuration includes default pipe lining setup, to customize pipeline you need to work more on pipe lining configuration.  


Happy Learning!!!


Comments

Post a Comment

Popular posts from this blog

Error : DependencyManagement.dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.adobe.aem:uber-jar:jar:apis -> version 6.3.0 vs 6.4.0

Operators in Asterisk with Linux

Error : Sorry, there was an error : unauthorized_client in Sitecore 9.1 login