-
Notifications
You must be signed in to change notification settings - Fork 437
Adding private dns zones children #1044
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
54 commits
Select commit
Hold shift + click to select a range
dff06b9
add A records
rahalan 0f41186
update readme
rahalan ef75886
add AAAA, CNAME and MX records
rahalan 06f5b1f
adding PTR and SOA records
rahalan b51335e
adding SOA, SRV and TXT records
rahalan 63a9559
remove record
rahalan 6f36264
fix readme
rahalan 12bda4a
update
rahalan 375ed57
Merge remote-tracking branch 'origin/main' into users/rahalan/addPriv…
rahalan 0887195
fix
rahalan 06de12d
Update to latest
AlexanderSehr 8921e65
Merge branch 'users/rahalan/addPrivateDnsZonesChildren' of https://gi…
AlexanderSehr c1ce3b2
update dir names
rahalan 3acbbd2
Merge branch 'users/rahalan/addPrivateDnsZonesChildren' of https://gi…
rahalan 58ad154
update
rahalan f5dbc17
update
rahalan f91b1b3
test
rahalan 9392188
fix
rahalan 55ac3b2
test
rahalan 89c1551
fix
rahalan 989ec04
Update arm/Microsoft.Network/privateDnsZones/a/readme.md
rahalan 55aefe6
Update arm/Microsoft.Network/privateDnsZones/a/readme.md
rahalan 971006f
Update arm/Microsoft.Network/privateDnsZones/aaaa/readme.md
rahalan f3923de
Update arm/Microsoft.Network/privateDnsZones/cname/readme.md
rahalan a59d1fb
Update arm/Microsoft.Network/privateDnsZones/mx/readme.md
rahalan f075c11
Update arm/Microsoft.Network/privateDnsZones/soa/readme.md
rahalan 2b99706
Update arm/Microsoft.Network/privateDnsZones/aaaa/deploy.bicep
rahalan a183e9d
Update arm/Microsoft.Network/privateDnsZones/aaaa/readme.md
rahalan 1289b17
Update arm/Microsoft.Network/privateDnsZones/cname/readme.md
rahalan 3fc70d1
Update arm/Microsoft.Network/privateDnsZones/mx/deploy.bicep
rahalan fb08992
Update arm/Microsoft.Network/privateDnsZones/mx/readme.md
rahalan 2ad4b44
Update arm/Microsoft.Network/privateDnsZones/ptr/readme.md
rahalan 9cc7478
Update arm/Microsoft.Network/privateDnsZones/soa/deploy.bicep
rahalan 82cf9b4
Update arm/Microsoft.Network/privateDnsZones/srv/readme.md
rahalan 1893c2b
Update arm/Microsoft.Network/privateDnsZones/srv/readme.md
rahalan 6aff505
Update arm/Microsoft.Network/privateDnsZones/txt/deploy.bicep
rahalan 4a14f45
Update arm/Microsoft.Network/privateDnsZones/txt/readme.md
rahalan 0edb01e
Update arm/Microsoft.Network/privateDnsZones/txt/readme.md
rahalan 8cd2a9b
Update arm/Microsoft.Network/privateDnsZones/txt/readme.md
rahalan 94050f9
Update arm/Microsoft.Network/privateDnsZones/aaaa/readme.md
rahalan 5daa92d
Update arm/Microsoft.Network/privateDnsZones/ptr/deploy.bicep
rahalan fe4c195
Update arm/Microsoft.Network/privateDnsZones/soa/readme.md
rahalan d6b8a77
Update arm/Microsoft.Network/privateDnsZones/srv/readme.md
rahalan c9cd8e8
rename dir
rahalan 58cc07b
rename dir
rahalan fd51bcc
change to capital letters
rahalan afc5414
add new parameter file
rahalan 70af6f7
fix
rahalan c9731cb
fix
rahalan fc213b6
fix
rahalan a3004fa
fix
rahalan 535ee90
fix
rahalan fa2799f
fix
rahalan 92925e0
fix
rahalan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
9 changes: 9 additions & 0 deletions
9
arm/Microsoft.Network/privateDnsZones/.parameters/min.parameters.json
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| { | ||
| "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
| "contentVersion": "1.0.0.0", | ||
| "parameters": { | ||
| "name": { | ||
| "value": "<<namePrefix>>-az-privdns-x-001.com" | ||
| } | ||
| } | ||
| } |
This file contains hidden or 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
1 change: 1 addition & 0 deletions
1
arm/Microsoft.Network/privateDnsZones/A/.bicep/nested_cuaId.bicep
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| @description('Required. Private DNS zone name.') | ||
| param privateDnsZoneName string | ||
|
|
||
| @description('Required. The name of the A record.') | ||
| param name string | ||
|
|
||
| @description('Optional. The list of A records in the record set.') | ||
| param aRecords array = [] | ||
|
|
||
| @description('Optional. The metadata attached to the record set.') | ||
| param metadata object = {} | ||
|
|
||
| @description('Optional. The TTL (time-to-live) of the records in the record set.') | ||
| param ttl int = 3600 | ||
|
|
||
| @description('Optional. Customer Usage Attribution ID (GUID). This GUID must be previously registered') | ||
| param cuaId string = '' | ||
|
|
||
| module pid_cuaId '.bicep/nested_cuaId.bicep' = if (!empty(cuaId)) { | ||
| name: 'pid-${cuaId}' | ||
| params: {} | ||
| } | ||
|
|
||
| resource privateDnsZone 'Microsoft.Network/privateDnsZones@2020-06-01' existing = { | ||
| name: privateDnsZoneName | ||
| } | ||
|
|
||
| resource A 'Microsoft.Network/privateDnsZones/A@2020-06-01' = { | ||
| name: name | ||
| parent: privateDnsZone | ||
| properties: { | ||
| aRecords: aRecords | ||
| metadata: metadata | ||
| ttl: ttl | ||
| } | ||
| } | ||
|
|
||
| @description('The name of the deployed A record') | ||
| output name string = A.name | ||
|
|
||
| @description('The resource ID of the deployed A record') | ||
| output resourceId string = A.id | ||
|
|
||
| @description('The resource group of the deployed A record') | ||
| output resourceGroupName string = resourceGroup().name |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # Private DNS Zone A record `[Microsoft.Network/privateDnsZones/A]` | ||
|
|
||
| This module deploys a Private DNS Zone A record. | ||
|
|
||
| ## Resource Types | ||
|
|
||
| | Resource Type | API Version | | ||
| | :-- | :-- | | ||
| | `Microsoft.Network/privateDnsZones/A` | 2020-06-01 | | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter Name | Type | Default Value | Possible Values | Description | | ||
| | :-- | :-- | :-- | :-- | :-- | | ||
| | `aRecords` | array | `[]` | | Optional. The list of A records in the record set. | | ||
| | `cuaId` | string | | | Optional. Customer Usage Attribution ID (GUID). This GUID must be previously registered | | ||
| | `metadata` | object | `{object}` | | Optional. The metadata attached to the record set. | | ||
| | `name` | string | | | Required. The name of the A record. | | ||
| | `privateDnsZoneName` | string | | | Required. Private DNS zone name. | | ||
| | `ttl` | int | `3600` | | Optional. The TTL (time-to-live) of the records in the record set. | | ||
|
|
||
| ### Parameter Usage: `aRecords` | ||
|
|
||
| ```json | ||
| "aRecords": { | ||
| "value": [ | ||
| { | ||
| "ipv4Address": "string" | ||
| } | ||
| ] | ||
| } | ||
| ``` | ||
|
|
||
| ## Outputs | ||
|
|
||
| | Output Name | Type | Description | | ||
| | :-- | :-- | :-- | | ||
| | `name` | string | The name of the deployed A record | | ||
| | `resourceGroupName` | string | The resource group of the deployed A record | | ||
| | `resourceId` | string | The resource ID of the deployed A record | | ||
|
|
||
| ## Template references | ||
|
|
||
| - [Privatednszones/A](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Network/2020-06-01/privateDnsZones/A) |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", | ||
| "version": "0.4" | ||
| } |
1 change: 1 addition & 0 deletions
1
arm/Microsoft.Network/privateDnsZones/AAAA/.bicep/nested_cuaId.bicep
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| @description('Required. Private DNS zone name.') | ||
| param privateDnsZoneName string | ||
|
|
||
| @description('Required. The name of the AAAA record.') | ||
| param name string | ||
|
|
||
| @description('Optional. The list of AAAA records in the record set.') | ||
| param aaaaRecords array = [] | ||
|
|
||
| @description('Optional. The metadata attached to the record set.') | ||
| param metadata object = {} | ||
|
|
||
| @description('Optional. The TTL (time-to-live) of the records in the record set.') | ||
| param ttl int = 3600 | ||
|
|
||
| @description('Optional. Customer Usage Attribution ID (GUID). This GUID must be previously registered') | ||
| param cuaId string = '' | ||
|
|
||
| module pid_cuaId '.bicep/nested_cuaId.bicep' = if (!empty(cuaId)) { | ||
| name: 'pid-${cuaId}' | ||
| params: {} | ||
| } | ||
|
|
||
| resource privateDnsZone 'Microsoft.Network/privateDnsZones@2020-06-01' existing = { | ||
| name: privateDnsZoneName | ||
| } | ||
|
|
||
| resource AAAA 'Microsoft.Network/privateDnsZones/AAAA@2020-06-01' = { | ||
| name: name | ||
| parent: privateDnsZone | ||
| properties: { | ||
| aaaaRecords: aaaaRecords | ||
| metadata: metadata | ||
| ttl: ttl | ||
| } | ||
| } | ||
|
|
||
| @description('The name of the deployed AAAA record') | ||
| output name string = AAAA.name | ||
|
|
||
| @description('The resource ID of the deployed AAAA record') | ||
| output resourceId string = AAAA.id | ||
|
|
||
| @description('The resource group of the deployed AAAA record') | ||
| output resourceGroupName string = resourceGroup().name |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| # Private DNS Zone AAAA record `[Microsoft.Network/privateDnsZones/AAAA]` | ||
|
|
||
| This module deploys a Private DNS Zone AAAA record. | ||
|
|
||
| ## Resource Types | ||
|
|
||
| | Resource Type | API Version | | ||
| | :-- | :-- | | ||
| | `Microsoft.Network/privateDnsZones/AAAA` | 2020-06-01 | | ||
|
|
||
| ## Parameters | ||
|
|
||
| | Parameter Name | Type | Default Value | Possible Values | Description | | ||
| | :-- | :-- | :-- | :-- | :-- | | ||
| | `aaaaRecords` | array | `[]` | | Optional. The list of AAAA records in the record set. | | ||
| | `cuaId` | string | | | Optional. Customer Usage Attribution ID (GUID). This GUID must be previously registered | | ||
| | `metadata` | object | `{object}` | | Optional. The metadata attached to the record set. | | ||
| | `name` | string | | | Required. The name of the AAAA record. | | ||
| | `privateDnsZoneName` | string | | | Required. Private DNS zone name. | | ||
| | `ttl` | int | `3600` | | Optional. The TTL (time-to-live) of the records in the record set. | | ||
|
|
||
| ### Parameter Usage: `aaaaRecords` | ||
|
|
||
| ```json | ||
| "aaaaRecords": { | ||
| "value": [ | ||
| { | ||
| "ipv6Address": "string" | ||
| } | ||
| ] | ||
| } | ||
| ``` | ||
|
|
||
| ## Outputs | ||
|
|
||
| | Output Name | Type | Description | | ||
| | :-- | :-- | :-- | | ||
| | `name` | string | The name of the deployed AAAA record | | ||
| | `resourceGroupName` | string | The resource group of the deployed AAAA record | | ||
| | `resourceId` | string | The resource ID of the deployed AAAA record | | ||
|
|
||
| ## Template references | ||
|
|
||
| - [Privatednszones/AAAA](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Network/2020-06-01/privateDnsZones/AAAA) |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json", | ||
| "version": "0.4" | ||
| } |
1 change: 1 addition & 0 deletions
1
arm/Microsoft.Network/privateDnsZones/CNAME/.bicep/nested_cuaId.bicep
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| @description('Required. Private DNS zone name.') | ||
| param privateDnsZoneName string | ||
|
|
||
| @description('Required. The name of the CNAME record.') | ||
| param name string | ||
|
|
||
| @description('Optional. A CNAME record.') | ||
| param cnameRecord object = {} | ||
|
|
||
| @description('Optional. The metadata attached to the record set.') | ||
| param metadata object = {} | ||
|
|
||
| @description('Optional. The TTL (time-to-live) of the records in the record set.') | ||
| param ttl int = 3600 | ||
|
|
||
| @description('Optional. Customer Usage Attribution ID (GUID). This GUID must be previously registered') | ||
| param cuaId string = '' | ||
|
|
||
| module pid_cuaId '.bicep/nested_cuaId.bicep' = if (!empty(cuaId)) { | ||
| name: 'pid-${cuaId}' | ||
| params: {} | ||
| } | ||
|
|
||
| resource privateDnsZone 'Microsoft.Network/privateDnsZones@2020-06-01' existing = { | ||
| name: privateDnsZoneName | ||
| } | ||
|
|
||
| resource CNAME 'Microsoft.Network/privateDnsZones/CNAME@2020-06-01' = { | ||
| name: name | ||
| parent: privateDnsZone | ||
| properties: { | ||
| cnameRecord: cnameRecord | ||
| metadata: metadata | ||
| ttl: ttl | ||
| } | ||
| } | ||
|
|
||
| @description('The name of the deployed CNAME record') | ||
| output name string = CNAME.name | ||
|
|
||
| @description('The resource ID of the deployed CNAME record') | ||
| output resourceId string = CNAME.id | ||
|
|
||
| @description('The resource group of the deployed CNAME record') | ||
| output resourceGroupName string = resourceGroup().name |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.