Developing your ASP.NET Core application for deployment to Azure is no different from developing your application otherwise. Use the local development environment you’re comfortable with, whether that’s Visual Studio 2017 or the dotnet CLI and Visual Studio Code or your preferred editor. You can write code, run and debug your changes, run automated tests, and make local commits to source control until you’re ready to push your changes to your shared source control repository.
Whenever you’re ready to share your code with your team, you should push your changes from your local source repository to your team’s shared source repository. If you’ve been working in a custom branch, this step usually involves merging your code into a shared branch (perhaps by means of a pull request).
A new build is triggered on the build server whenever a new commit is made to the shared application code repository. As part of the CI process, this build should fully compile the application and run automated tests to confirm everything is working as expected. The end result of the CI process should be a packaged version of the web app, ready for deployment.
Once a build as succeeded, the CD process will pick up the build artifacts produced. This will include a web deploy package. The build server will deploy this package to Azure App Service, replacing any existing service with the newly created one. Typically this step targets a staging environment, but some applications deploy directly to production through a CD process.
Once deployed, the ASP.NET Core application runs within the context of an Azure App Service Web App. This Web App can be monitored and further configured using the Azure Portal.
While the Web App is running, you can monitor the health of the application and collect diagnostics and user behavior data. Application Insights is included in Visual Studio, and offers automatic instrumentation for ASP.NET apps. It can provide you with information on usage, exceptions, requests, performance, and logs.
Build and Deploy Your ASP.NET Core App to Azure
https://www.visualstudio.com/en-us/docs/build/apps/aspnet/aspnetcore-to-azure