Skip to content

Instantly share code, notes, and snippets.

@GrillPhil
Created July 24, 2023 12:06
Show Gist options
  • Save GrillPhil/9c37add94ff6ad429d80d4ade4069c61 to your computer and use it in GitHub Desktop.
Save GrillPhil/9c37add94ff6ad429d80d4ade4069c61 to your computer and use it in GitHub Desktop.
param name string
param location string
param tags object
@allowed([
'Free'
'Standard'
])
param sku string = 'Free'
param appSettings object = {}
resource swa 'Microsoft.Web/staticSites@2022-09-01' = {
name: name
location: location
tags: tags
sku: {
name: sku
tier: sku
}
properties: {
stagingEnvironmentPolicy: 'Enabled'
allowConfigFileUpdates: true
provider: 'None'
enterpriseGradeCdnStatus: 'Disabled'
}
identity: {
type: 'SystemAssigned'
}
resource config 'config' = {
name: 'appsettings'
kind: 'string'
properties: appSettings
}
}
output name string = swa.name
output principalId string = swa.identity.principalId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment