![]() To see the progress, navigate to the following URL by replacing with the name of your app. It may take some time for the Windows container to load. Wait a few minutes and try again, until you get the default ASP.NET home page:Ĭongratulations! You're running your first custom Windows container in Azure App Service. In the overview of this resource, follow the link next to URL.Ī new browser page opens to the following page: When the Azure operation is complete, a notification box is displayed. Verify all the details and then select Create and wait for Azure to create the required resources. If you have a custom image elsewhere for your web application, such as in Azure Container Registry or in any other private repository, you can configure it here. Select Next: Docker to continue.įor Image Source, choose Docker Hub and for Image and tag, enter the repository name you copied in Publish to Azure Container Registry. Choose Docker Container for Publish and Windows for Operating System. Provide an app name, such as win-container-demo. You can create a new resource group if needed. In Create Web App, choose your subscription and a Resource Group. ![]() Under Popular services, select Create under Web App. Select the copy button to copy the Repository name for later.Ĭhoose Create a resource in the upper left-hand corner of the Azure portal. The Publish page now shows the repository name. In Publish, under Container Registry, select the registry you created, and then select Finish. Under Registry location, select a location of the registry then select Create. Under Resource group, select New and type myResourceGroup for the name, and select OK. ![]() In Create new, make sure the correct subscription is chosen. In Container registries select the + button to create a new Azure Container Registry. In Publish, make sure the correct subscription is chosen. In Specific Target, select Azure Container Registry, and then select Next. In Target, select Docker Container Registry, and then select Next. In Solution Explorer, right-click the myfirstazurewebapp project and select Publish. Change the parent image by replacing the FROM line with the following code and save the file: FROM /dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019įrom the Visual Studio menu, select Debug > Start Without Debugging to run the web app locally. If the Dockerfile file isn't opened automatically, open it from the Solution Explorer. Under Advanced, select Docker support and uncheck Configure for HTTPS. For this quickstart, choose the MVC template. You can deploy any type of ASP.NET web app to Azure. NET Framework 4.8 and then select Create. In Configure your new project, under Project name, name the application myfirstazurewebapp. In Create a new project, find and choose ASP.NET Web Application (.NET Framework) for C#, then select Next. Open Visual Studio and then select Create a new project.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |