Skip to content

Instantly share code, notes, and snippets.

@papeMK2
Created August 25, 2022 09:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save papeMK2/58ee3bb23fb50b276cf03bcf2bb7883e to your computer and use it in GitHub Desktop.
Save papeMK2/58ee3bb23fb50b276cf03bcf2bb7883e to your computer and use it in GitHub Desktop.
CreateStagingSlot
param prId string
param appServiceName string
param location string = resourceGroup().location
resource slot 'Microsoft.Web/sites/slots@2022-03-01' = {
name: '${appServiceName}/pr-${prId}'
location: location
kind: 'app'
properties:{}
}
az deployment group create --resource-group rg-lab --template-file main.bicep ^
--parameters prId=1 ^
--parameters appServiceName=app-appservice-lab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment