-
Notifications
You must be signed in to change notification settings - Fork 453
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update PrivateEndpoints to new child-resource structure (#438)
* Updated Private EndPoints resource and child-resources to new child resource structure
- Loading branch information
Marius
authored
Nov 9, 2021
1 parent
bb5958c
commit 6cd1d7f
Showing
8 changed files
with
107 additions
and
27 deletions.
There are no files selected for viewing
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
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
20 changes: 20 additions & 0 deletions
20
arm/Microsoft.Network/privateEndpoints/.parameters/min.parameters.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"privateEndpointName": { | ||
"value": "iacs-keyvault-endpoint-simple" | ||
}, | ||
"targetSubnetId": { | ||
"value": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.Network/virtualNetworks/adp-sxx-az-vnet-x-001/subnets/sxx-az-subnet-x-005-privateEndpoints" | ||
}, | ||
"serviceResourceId": { | ||
"value": "/subscriptions/<<subscriptionId>>/resourceGroups/validation-rg/providers/Microsoft.KeyVault/vaults/adp-sxx-az-kv-x-001" | ||
}, | ||
"groupId": { | ||
"value": [ | ||
"vault" | ||
] | ||
} | ||
} | ||
} |
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
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
28 changes: 28 additions & 0 deletions
28
arm/Microsoft.Network/privateEndpoints/privateDnsZoneGroups/deploy.bicep
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@description('Required. The name of the private endpoint') | ||
param privateEndpointName string | ||
|
||
@description('Required. List of private DNS Ids') | ||
param privateDNSIds array | ||
|
||
var privateDnsZoneConfigs = [for privateDNSId in privateDNSIds: { | ||
name: privateEndpointName | ||
properties: { | ||
privateDnsZoneId: privateDNSId | ||
} | ||
}] | ||
|
||
resource privateDnsZoneGroup 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2021-03-01' = { | ||
name: '${privateEndpointName}/default' | ||
properties: { | ||
privateDnsZoneConfigs: privateDnsZoneConfigs | ||
} | ||
} | ||
|
||
@description('The name of the private endpoint DNS zone group') | ||
output privateDnsZoneGroupName string = privateDnsZoneGroup.name | ||
|
||
@description('The resourceId of the private endpoint DNS zone group') | ||
output privateDnsZoneGroupResourceId string = privateDnsZoneGroup.id | ||
|
||
@description('The resource group the private endpoint DNS zone group was deployed into') | ||
output privateDnsZoneGroupResourceGroup string = resourceGroup().name |
32 changes: 32 additions & 0 deletions
32
arm/Microsoft.Network/privateEndpoints/privateDnsZoneGroups/readme.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# NetworkPrivateendpointsPrivatednszonegroups `[Microsoft.Network/privateEndpoints/privateDnsZoneGroups]` | ||
|
||
// TODO: Replace Resource and fill in description | ||
|
||
## Resource Types | ||
|
||
| Resource Type | Api Version | | ||
| :-- | :-- | | ||
| `Microsoft.Network/privateEndpoints/privateDnsZoneGroups` | 2021-03-01 | | ||
|
||
## Parameters | ||
|
||
| Parameter Name | Type | Default Value | Possible Values | Description | | ||
| :-- | :-- | :-- | :-- | :-- | | ||
| `privateDNSIds` | array | | | Required. List of private DNS Ids | | ||
| `privateEndpointName` | string | | | Required. The name of the private endpoint | | ||
|
||
### Parameter Usage: `<ParameterPlaceholder>` | ||
|
||
// TODO: Fill in Parameter usage | ||
|
||
## Outputs | ||
|
||
| Output Name | Type | Description | | ||
| :-- | :-- | :-- | | ||
| `privateDnsZoneGroupName` | string | The name of the private endpoint DNS zone group | | ||
| `privateDnsZoneGroupResourceGroup` | string | The resource group the private endpoint DNS zone group was deployed into | | ||
| `privateDnsZoneGroupResourceId` | string | The resourceId of the private endpoint DNS zone group | | ||
|
||
## Template references | ||
|
||
- [Privateendpoints/Privatednszonegroups](https://docs.microsoft.com/en-us/azure/templates/Microsoft.Network/2021-03-01/privateEndpoints/privateDnsZoneGroups) |
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