Skip to content

Commit

Permalink
anchor links
Browse files Browse the repository at this point in the history
  • Loading branch information
tonykelly-octopus authored Feb 11, 2025
1 parent 39b58c3 commit e82203f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This provides many benefits, including:
Deployment Slots are only available to Azure Web Apps running in Standard or Premium [App Service plans](https://azure.microsoft.com/en-us/pricing/details/app-service/plans/)
:::

## Walk-Through {#UsingDeploymentSlotswithAzureWebApps-Walk-Through}
## Walk-Through {#UsingDeploymentSlotsWithAzureWebApps-Walk-Through}

Here we will give an example of how to setup a Blue-Green deployment for an Azure Web App using Deployment Slots.
The scripts below assume you have a variable named 'WebSite' that contains the name of your Azure Web Site and 'ResourceGroup' that contains the Azure Resource Group Name.
Expand All @@ -27,7 +27,7 @@ The scripts below assume you have a variable named 'WebSite' that contains the n

Follow the steps for [Azure Web App targets](/docs/infrastructure/deployment-targets/azure/web-app-targets).

### Step 2: Create a staging slot {#UsingDeploymentSlotswithAzureWebApps-Step1-CreateStagingSlot}
### Step 2: Create a staging slot {#UsingDeploymentSlotsWithAzureWebApps-Step1-CreateStagingSlot}

Create a [Run an Azure PowerShell Script](/docs/deployments/azure/running-azure-powershell) step.

Expand Down Expand Up @@ -67,7 +67,7 @@ So your step should look like:
![](/docs/deployments/azure/deploying-a-package-to-an-azure-web-app/azure-remove-staging-slot-script.png)
:::

### Step 3: Deploy your package {#UsingDeploymentSlotswithAzureWebApps-Step2-DeployyourPackage}
### Step 3: Deploy your package {#UsingDeploymentSlotsWithAzureWebApps-Step2-DeployyourPackage}

The next step is to deploy your package to the Staging slot. We do this by creating a [Deploy an Azure Web App](/docs/deployments/azure/deploying-a-package-to-an-azure-web-app) step.

Expand All @@ -94,7 +94,7 @@ As shown below:
You can choose to specify the slot directly on the deployment target, or directly on the step (if you wish to deploy to multiple different slots on the same Web App Service, for example), however, the slot on the target will take priority.
:::

### Step 4: Swap the Staging and Production slots {#UsingDeploymentSlotswithAzureWebApps-Step3-SwaptheStagingandProductionSlots}
### Step 4: Swap the Staging and Production slots {#UsingDeploymentSlotsWithAzureWebApps-Step3-SwaptheStagingandProductionSlots}

The final step is to create another Azure PowerShell step to swap the Staging and Production slots.

Expand Down

0 comments on commit e82203f

Please sign in to comment.