Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created June 9, 2024 17:27
Show Gist options
  • Save johnlokerse/89ec7c0e22f4e4dd630a3b61444d3951 to your computer and use it in GitHub Desktop.
Save johnlokerse/89ec7c0e22f4e4dd630a3b61444d3951 to your computer and use it in GitHub Desktop.
Azure Bicep nullability operators explained blog
resource resDnsZone 'Microsoft.Network/dnsZones@2023-07-01-preview' = {
name: 'bicep.azure'
location: 'global'
resource resCnameRecord 'cname' = {
name: parCnameRecord.name
properties: {
metadata: parCnameRecord.?metadata
TTL: parCnameRecord.ttl
CNAMERecord: parCnameRecord.?cnameRecord
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment