Skip to content

Commit

Permalink
Added pvt dns zone for azure automation
Browse files Browse the repository at this point in the history
  • Loading branch information
jamasten committed Jan 17, 2024
1 parent 1a2b645 commit 27ca9a4
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 94 deletions.
83 changes: 55 additions & 28 deletions src/bicep/mlz.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"_generator": {
"name": "bicep",
"version": "0.24.24.22086",
"templateHash": "17486567247363088362"
"templateHash": "15645576385841347977"
}
},
"parameters": {
Expand Down Expand Up @@ -5829,7 +5829,7 @@
"_generator": {
"name": "bicep",
"version": "0.24.24.22086",
"templateHash": "4602601230334937372"
"templateHash": "12558418965855664252"
}
},
"parameters": {
Expand Down Expand Up @@ -6255,7 +6255,8 @@
"cloudSuffix": "[replace(replace(environment().resourceManager, 'https://management.', ''), '/', '')]",
"automationSuffix": "[replace(environment().suffixes.storage, 'core.windows.', '')]",
"locations": "[variables('$fxv#0')[environment().name]]",
"privatelink_agentsvc_automation_name": "[format('privatelink.agentsvc.azure-automation.{0}', variables('automationSuffix'))]",
"privatelink_agentsvc_azure_automation_name": "[format('privatelink.agentsvc.azure-automation.{0}', variables('automationSuffix'))]",
"privatelink_azure_automation_name": "[format('privatelink.azure-automation.{0}', variables('automationSuffix'))]",
"privatelink_avd_name": "[format('privatelink.wvd.{0}', variables('cloudSuffix'))]",
"privatelink_avd_global_name": "[format('privatelink-global.wvd.{0}', variables('cloudSuffix'))]",
"privatelink_file_name": "[format('privatelink.file.{0}', environment().suffixes.storage)]",
Expand Down Expand Up @@ -6346,7 +6347,14 @@
{
"type": "Microsoft.Network/privateDnsZones",
"apiVersion": "2018-09-01",
"name": "[variables('privatelink_agentsvc_automation_name')]",
"name": "[variables('privatelink_agentsvc_azure_automation_name')]",
"location": "global",
"tags": "[parameters('tags')]"
},
{
"type": "Microsoft.Network/privateDnsZones",
"apiVersion": "2018-09-01",
"name": "[variables('privatelink_azure_automation_name')]",
"location": "global",
"tags": "[parameters('tags')]"
},
Expand Down Expand Up @@ -6514,7 +6522,22 @@
{
"type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks",
"apiVersion": "2018-09-01",
"name": "[format('{0}/{1}', variables('privatelink_agentsvc_automation_name'), format('{0}-link', variables('privatelink_agentsvc_automation_name')))]",
"name": "[format('{0}/{1}', variables('privatelink_agentsvc_azure_automation_name'), format('{0}-link', variables('privatelink_agentsvc_azure_automation_name')))]",
"location": "global",
"properties": {
"registrationEnabled": false,
"virtualNetwork": {
"id": "[resourceId(parameters('vnetSubscriptionId'), parameters('vnetResourceGroup'), 'Microsoft.Network/virtualNetworks', parameters('vnetName'))]"
}
},
"dependsOn": [
"[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_agentsvc_azure_automation_name'))]"
]
},
{
"type": "Microsoft.Network/privateDnsZones/virtualNetworkLinks",
"apiVersion": "2018-09-01",
"name": "[format('{0}/{1}', variables('privatelink_azure_automation_name'), format('{0}-link', variables('privatelink_azure_automation_name')))]",
"location": "global",
"properties": {
"registrationEnabled": false,
Expand All @@ -6523,7 +6546,7 @@
}
},
"dependsOn": [
"[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_agentsvc_automation_name'))]"
"[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_azure_automation_name'))]"
]
},
{
Expand All @@ -6543,34 +6566,22 @@
}
],
"outputs": {
"monitorPrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_monitor_name'))]"
},
"omsPrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_oms_opinsights_name'))]"
},
"odsPrivateDnsZoneId": {
"agentsvcPrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_ods_opinsights_name'))]"
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_agentsvc_azure_automation_name'))]"
},
"agentsvcPrivateDnsZoneId": {
"automationPrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_agentsvc_automation_name'))]"
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_azure_automation_name'))]"
},
"storagePrivateDnsZoneId": {
"avdGlobalPrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_blob_name'))]"
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_avd_global_name'))]"
},
"avdPrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_avd_name'))]"
},
"avdGlobalPrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_avd_global_name'))]"
},
"backupPrivateDnsZoneIds": {
"type": "array",
"copy": {
Expand All @@ -6582,17 +6593,33 @@
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_file_name'))]"
},
"keyvaultDnsPrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_keyvaultDns_name'))]"
},
"monitorPrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_monitor_name'))]"
},
"odsPrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_ods_opinsights_name'))]"
},
"omsPrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_oms_opinsights_name'))]"
},
"queuePrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_queue_name'))]"
},
"tablePrivateDnsZoneId": {
"storagePrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_table_name'))]"
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_blob_name'))]"
},
"keyvaultDnsPrivateDnsZoneId": {
"tablePrivateDnsZoneId": {
"type": "string",
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_keyvaultDns_name'))]"
"value": "[resourceId('Microsoft.Network/privateDnsZones', variables('privatelink_table_name'))]"
}
}
}
Expand Down
Loading

0 comments on commit 27ca9a4

Please sign in to comment.