Created
July 24, 2023 12:06
-
-
Save GrillPhil/9c37add94ff6ad429d80d4ade4069c61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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