Monday, July 31, 2023

Manage Deployment Slots in App Service using Azure CLI

Manage Deployment Slots in App Service using Azure CLI

az 
az -h 

az group list --output table

resource_group=Regroup_5wlAgklxKkjC6
location=westus
plan_name=brezyweather_plan
app_name=brezyweather

az appservice plan create \
--name $plan_name \
--resource-group $resource_group \
--sku S1 \
--is-linux

az appservice plan list --query "[].name"

az webapp create \
--name $app_name \
--plan  $plan_name \
--resource-group $resource_group \
--deployment-container-image-name codewithpraveen/labs-appservice-cli:1.0

az webapp list --output table

az webapp show \
--name $app_name \
--resource-group $resource_group \
--query "defaultHostName"

az webapp deployment slot create \
--name $app_name \
--resource-group $resource_group \
--slot staging

az webapp deployment slot list \
--name $app_name \
--resource-group $resource_group \
--output table

az webapp config container set \
--name $app_name \
--resource-group $resource_group \
--slot staging \
--docker-custom-image-name codewithpraveen/labs-appservice-cli:2.0

az webapp show \
--name $app_name \
--resource-group $resource_group \
--slot staging \
--query "defaultHostName"

az webapp deployment slot swap \
--name $app_name \
--resource-group $resource_group \
--slot staging \
--target-slot production

az resource delete \
--ids $(az resource list --query "[].id" --resource-group $resource_group --output tsv) \
--verbose

az resource list --resource-group $resource_group

4 comments:

  1. Superb work presenting the trusted cpscounter.net website with dependable click speed tools and smooth functionality. The platform is easy to navigate, testing is accurate, and every feature contributes to a satisfying user experience for everyone.

    ReplyDelete
  2. Congratulations on building the remarkable monacoeditor.com website that offers professional-grade editing capabilities. The clean layout, detailed documentation, and reliable performance make this platform an excellent choice for developers across different programming languages.

    ReplyDelete
  3. Your dedication to maintaining the excellent macsfancontrol.org website is clearly visible through its quality content. Helpful tutorials, reliable downloads, and effective software provide everything needed for successful Mac fan management and long-lasting hardware protection.

    ReplyDelete

Featured Post

Generating a Microsoft Graph Bearer Token in Power Automate Desktop (App ID + Secret)

Generating a Microsoft Graph Bearer Token in Power Automate Desktop (App ID + Secret) Power Automate Desktop has no native Microsoft Graph c...

Popular posts