Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created June 9, 2024 17:20
Show Gist options
  • Save johnlokerse/d9eac5064e60ca50b1f70237e2e8ab0a to your computer and use it in GitHub Desktop.
Save johnlokerse/d9eac5064e60ca50b1f70237e2e8ab0a to your computer and use it in GitHub Desktop.
Azure Bicep nullability operators explained blog
param parName string?
param parLocation string = resourceGroup().location
resource keyVault 'Microsoft.KeyVault/vaults@2023-07-01' = {
name: parName ?? 'fallback-kv-name'
location: parLocation
properties: {
enabledForDeployment: true
enabledForTemplateDeployment: true
enabledForDiskEncryption: true
tenantId: tenant().tenantId
sku: {
name: 'standard'
family: 'A'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment