-
-
Save johnlokerse/8b219d04bb8eddaa4f2fbb3d56a520d5 to your computer and use it in GitHub Desktop.
Azure Bicep nullability operators explained blog
This file contains 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 parCnameRecord cnameType = { | |
name: 'cname_bicepazure' | |
ttl: 3600 | |
cnameRecord: { | |
cname: 'copilot' | |
} | |
} | |
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 | |
} | |
} | |
} | |
type cnameType = { | |
name: string | |
metadata: object? | |
ttl: int | |
cnameRecord: { | |
cname: string | |
}? | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment