@@ -399,13 +399,13 @@ Follow these steps to create your App Service resources and publish your project
399
399
400
400
1 . Sign into your Azure account by using the [ Connect-AzAccount] ( /powershell/module/az.accounts/connect-azaccount ) command and following the prompt:
401
401
402
- ``` azurepowershell-interactive
402
+ ``` azurepowershell
403
403
Connect-AzAccount
404
404
```
405
405
<!-- ### [Deploy to Windows](#tab/windows) -->
406
406
1 . Create a new app by using the [ New-AzWebApp] ( /powershell/module/az.websites/new-azwebapp ) command:
407
407
408
- ``` azurepowershell-interactive
408
+ ``` azurepowershell
409
409
New-AzWebApp -ResourceGroupName myResourceGroup -Name <app-name> -Location westeurope
410
410
```
411
411
@@ -418,7 +418,7 @@ Follow these steps to create your App Service resources and publish your project
418
418
419
419
2. Create the Azure resources you need:
420
420
421
- ```azurepowershell-interactive
421
+ ```azurepowershell
422
422
New-AzResourceGroup -Name myResourceGroup -Location westeurope
423
423
New-AzAppServicePlan -ResourceGroupName myResourceGroup -Name myAppServicePlan -Location westeurope -Linux
424
424
New-AzWebApp -ResourceGroupName myResourceGroup -AppServicePlan myAppServicePlan -Name <app-name>
@@ -441,14 +441,14 @@ Follow these steps to create your App Service resources and publish your project
441
441
442
442
1 . Change to the release directory and create a zip file from the contents:
443
443
444
- ``` powershell-interactive
444
+ ``` powershell
445
445
cd bin\Release\net8.0\publish
446
446
Compress-Archive -Path * -DestinationPath deploy.zip
447
447
```
448
448
449
449
1 . Publish the zip file to the Azure app using the [ Publish-AzWebApp] ( /powershell/module/az.websites/publish-azwebapp ) command:
450
450
451
- ``` azurepowershell-interactive
451
+ ``` azurepowershell
452
452
Publish-AzWebApp -ResourceGroupName myResourceGroup -Name <app-name> -ArchivePath (Get-Item .\deploy.zip).FullName -Force
453
453
```
454
454
@@ -706,14 +706,14 @@ You see the updated ASP.NET Core 8.0 web app displayed in the page.
706
706
707
707
1 . Change to the release directory and create a zip file from the contents:
708
708
709
- ``` powershell-interactive
709
+ ``` powershell
710
710
cd bin\Release\net8.0\publish
711
711
Compress-Archive -Path * -DestinationPath deploy.zip -Force
712
712
```
713
713
714
714
1 . Publish the zip file to the Azure app using the [ Publish-AzWebApp] ( /powershell/module/az.websites/publish-azwebapp ) command:
715
715
716
- ``` azurepowershell-interactive
716
+ ``` azurepowershell
717
717
Publish-AzWebApp -ResourceGroupName myResourceGroup -Name <app-name> -ArchivePath (Get-Item .\deploy.zip).FullName -Force
718
718
```
719
719
@@ -870,7 +870,7 @@ The **Overview** page for your web app, contains options for basic management li
870
870
<!-- markdownlint-enable MD044 -->
871
871
In the preceding steps, you created Azure resources in a resource group. If you don't expect to need these resources in the future, delete the resource group by running the following command in the Cloud Shell:
872
872
873
- ``` azurecli-interactive
873
+ ``` azurecli
874
874
az group delete
875
875
```
876
876
0 commit comments