Dns Zone (A, AAAA, CNAME) don't properly support targetResource #12797
Replies: 3 comments
-
Hmmm. I didn't interpret the docs that way, but went with this:
If you try to create a record in the portal and insert the resource into VS Code targetResource will be empty: |
Beta Was this translation helpful? Give feedback.
-
I've added some details to Additional context of the issue |
Beta Was this translation helpful? Give feedback.
-
This is just a guess, but it looks like targetResource: {
id: demoIp.id
} |
Beta Was this translation helpful? Give feedback.
-
Bicep version
Bicep CLI version 0.24.24 (5646341)
Describe the bug
I expected this to create an A-record in the DNS Zone with a Alias resource type and a Alias target
But is created an empty A-record without reference to the publicIPAddresses
To Reproduce
Steps to reproduce the behavior:
Additional context
It is posible to configure this via the Azure Portal, the setup looks like this:
And the Public IP address is assigned to a Virtual network gateway.
In the Public DNS Zone
The Record:
Public IP address - Configuraion
in ARM the zone entry looks like:
Beta Was this translation helpful? Give feedback.
All reactions