![]() ![]() ![]() In the Publish window, select Target: Azure, then press Next. On the top menu, select Build > Publish TodoAppService.NET6. Right-click the TodoAppService.NET6 project, then select Set as Startup Project. In the right-hand pane, select the Solutions Explorer. Make a note of each of the values in the outputs for later use. Once the deployment is complete, get the output variables as these hold important information you'll need later on: az deployment group show -g quickstart -n azuredeploy -query properties.outputs You'll need it later on when accessing the database. Pick a strong password for your SQL Administrator password. Ensure you use the same name and region wherever they're mentioned in this tutorial.Ĭreate the resources using a group deployment: az deployment group create -g quickstart -template-file azuredeploy.json -parameters sqlPassword=MyPassword1234 You can select any region that you wish, providing you can create resources there. This command will create the quickstart resource group in the West US region. This directory also contains azuredeploy.json.Įnsure you've signed in and selected a subscription using the Azure CLI.Ĭreate a new resource group: az group create -l westus -g quickstart Open a terminal and change directory to the folder containing the TodoApp.sln file. ![]() Use Visual Studio to publish the service code to the newly created Azure App Service.Use Azure Resource Manager and the Azure CLI to deploy an Azure App Service and Azure SQL Database to Azure. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |