Skip to content

Instantly share code, notes, and snippets.

@johnlokerse
Created February 20, 2022 16:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnlokerse/3d492a3ea2c7cb8631d88be371293d2c to your computer and use it in GitHub Desktop.
Save johnlokerse/3d492a3ea2c7cb8631d88be371293d2c to your computer and use it in GitHub Desktop.
// Nested resources (Implicit)
resource dnsZone 'Microsoft.Network/dnsZones@2018-05-01' = {
name: 'dnszone.com'
location: resourceGroup().location
resource aRecord 'A@2018-05-01' = {
name: 'google'
properties: {
TTL: 3600
ARecords: [
{
ipv4Address: '142.251.36.4'
}
]
}
}
resource cnameRecord 'CNAME@2018-05-01' = {
name: 'opensource'
properties: {
TTL: 600
CNAMERecord: {
cname: 'opensource.microsoft.com'
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment