-
Notifications
You must be signed in to change notification settings - Fork 995
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
Added new built-in Policies into the Initiative #1109
Changes from 30 commits
e1afae6
771b3b5
e69bf06
84ed288
44bf538
1e587e3
6747ee5
9df726f
a986201
5322f59
74ced8d
00970ff
06c6887
c9a610b
025159a
e6d13e4
4aedae7
c3f3cfc
908e588
cf72e68
ec3f9cf
5721c1b
8605534
8a2e069
c0aab67
50647e5
06ad4c7
0359a48
b652624
1a16ec1
26d340a
cdb04be
507b210
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,10 +33,41 @@ | |
"baseId": "[concat(parameters('dnsZoneResourceGroupId'), '/providers/Microsoft.Network/privateDnsZones/')]", | ||
"policyParameterMapping": { | ||
"azureFilePrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.afs.azure.net')]", | ||
"azureAutomationWebhookPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.azure-automation.net')]", | ||
"azureAutomationDSCHybridPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.azure-automation.net')]", | ||
"azureCosmosSQLPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.documents.azure.com')]", | ||
"azureCosmosMongoPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.mongo.cosmos.azure.com')]", | ||
"azureCosmosCassandraPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.cassandra.cosmos.azure.com')]", | ||
"azureCosmosGremlinPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.gremlin.cosmos.azure.com')]", | ||
"azureCosmosTablePrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.table.cosmos.azure.com')]", | ||
"azureDataFactoryPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.datafactory.azure.net')]", | ||
"azureDataFactoryPortalPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.adf.azure.com')]", | ||
"azureHDInsightPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.azurehdinsight.net')]", | ||
"azureMigratePrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.prod.migration.windowsazure.com')]", | ||
"azureStorageBlobPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.blob.core.windows.net')]", | ||
"azureStorageBlobSecPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.blob.core.windows.net')]", | ||
"azureStorageQueuePrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.queue.core.windows.net')]", | ||
"azureStorageQueueSecPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.queue.core.windows.net')]", | ||
"azureStorageFilePrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.file.core.windows.net')]", | ||
"azureStorageStaticWebPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.web.core.windows.net')]", | ||
"azureStorageStaticWebSecPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.web.core.windows.net')]", | ||
"azureStorageDFSPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.dfs.core.windows.net')]", | ||
"azureStorageDFSSecPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.dfs.core.windows.net')]", | ||
"azureSynapseSQLPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.sql.azuresynapse.net')]", | ||
"azureSynapseSQLODPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.sql.azuresynapse.net')]", | ||
"azureSynapseDevPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.dev.azuresynapse.net')]", | ||
"azureMediaServicesKeyPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.media.azure.net')]", | ||
"azureMediaServicesLivePrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.media.azure.net')]", | ||
"azureMediaServicesStreamPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.media.azure.net')]", | ||
"azureMonitorPrivateDnsZoneId1": "[concat(variables('baseId'), 'privatelink.monitor.azure.com')]", | ||
"azureMonitorPrivateDnsZoneId2": "[concat(variables('baseId'), 'privatelink.oms.opinsights.azure.com')]", | ||
"azureMonitorPrivateDnsZoneId3": "[concat(variables('baseId'), 'privatelink.ods.opinsights.azure.com')]", | ||
"azureMonitorPrivateDnsZoneId4": "[concat(variables('baseId'), 'privatelink.agentsvc.azure-automation.net')]", | ||
"azureMonitorPrivateDnsZoneId5": "[concat(variables('baseId'), 'privatelink.blob.core.windows.net')]", | ||
"azureWebPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.webpubsub.azure.com')]", | ||
"azureBatchPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.', parameters('location'), '.batch.azure.com')]", | ||
"azureBatchPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.batch.azure.com')]", | ||
"azureAppPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.azconfig.io')]", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly, this appears to be the namespace for App Configuration Stores - making this an equally ambiguous parameter name. Would probably be a breaking change to reverse some of this though unfortunately. |
||
"azureAsrPrivateDnsZoneId": "[concat(variables('baseId'), '.privatelink.siterecovery.windowsazure.com')]", | ||
"azureAsrPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.siterecovery.windowsazure.com')]", | ||
"azureIotPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.azure-devices-provisioning.net')]", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And another where the name is misleading given the presence of IoT hubs, although this one may be easier to switch around if needed. |
||
"azureKeyVaultPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.vaultcore.azure.net')]", | ||
"azureSignalRPrivateDnsZoneId": "[concat(variables('baseId'), 'privatelink.service.signalr.net')]", | ||
|
@@ -84,6 +115,99 @@ | |
"azureFilePrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureFilePrivateDnsZoneId]" | ||
}, | ||
"azureAutomationWebhookPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureAutomationWebhookPrivateDnsZoneId]" | ||
}, | ||
"azureAutomationDSCHybridPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureAutomationDSCHybridPrivateDnsZoneId]" | ||
}, | ||
"azureCosmosSQLPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureCosmosSQLPrivateDnsZoneId]" | ||
}, | ||
"azureCosmosMongoPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureCosmosMongoPrivateDnsZoneId]" | ||
}, | ||
"azureCosmosCassandraPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureCosmosCassandraPrivateDnsZoneId]" | ||
}, | ||
"azureCosmosGremlinPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureCosmosGremlinPrivateDnsZoneId]" | ||
}, | ||
"azureCosmosTablePrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureCosmosTablePrivateDnsZoneId]" | ||
}, | ||
"azureDataFactoryPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureDataFactoryPrivateDnsZoneId]" | ||
}, | ||
"azureDataFactoryPortalPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureDataFactoryPortalPrivateDnsZoneId]" | ||
}, | ||
"azureHDInsightPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureHDInsightPrivateDnsZoneId]" | ||
}, | ||
"azureMigratePrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureMigratePrivateDnsZoneId]" | ||
}, | ||
"azureStorageBlobPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureStorageBlobPrivateDnsZoneId]" | ||
}, | ||
"azureStorageBlobSecPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureStorageBlobSecPrivateDnsZoneId]" | ||
}, | ||
"azureStorageQueuePrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureStorageQueuePrivateDnsZoneId]" | ||
}, | ||
"azureStorageQueueSecPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureStorageQueueSecPrivateDnsZoneId]" | ||
}, | ||
"azureStorageFilePrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureStorageFilePrivateDnsZoneId]" | ||
}, | ||
"azureStorageStaticWebPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureStorageStaticWebPrivateDnsZoneId]" | ||
}, | ||
"azureStorageStaticWebSecPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureStorageStaticWebSecPrivateDnsZoneId]" | ||
}, | ||
"azureStorageDFSPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureStorageDFSPrivateDnsZoneId]" | ||
}, | ||
"azureStorageDFSSecPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureStorageDFSSecPrivateDnsZoneId]" | ||
}, | ||
"azureSynapseSQLPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureSynapseSQLPrivateDnsZoneId]" | ||
}, | ||
"azureSynapseSQLODPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureSynapseSQLODPrivateDnsZoneId]" | ||
}, | ||
"azureSynapseDevPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureSynapseDevPrivateDnsZoneId]" | ||
}, | ||
"azureMediaServicesKeyPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureMediaServicesKeyPrivateDnsZoneId]" | ||
}, | ||
"azureMediaServicesLivePrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureMediaServicesLivePrivateDnsZoneId]" | ||
}, | ||
"azureMediaServicesStreamPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureMediaServicesStreamPrivateDnsZoneId]" | ||
}, | ||
"azureMonitorPrivateDnsZoneId1": { | ||
"value": "[variables('policyParameterMapping').azureMonitorPrivateDnsZoneId1]" | ||
}, | ||
"azureMonitorPrivateDnsZoneId2": { | ||
"value": "[variables('policyParameterMapping').azureMonitorPrivateDnsZoneId2]" | ||
}, | ||
"azureMonitorPrivateDnsZoneId3": { | ||
"value": "[variables('policyParameterMapping').azureMonitorPrivateDnsZoneId3]" | ||
}, | ||
"azureMonitorPrivateDnsZoneId4": { | ||
"value": "[variables('policyParameterMapping').azureMonitorPrivateDnsZoneId4]" | ||
}, | ||
"azureMonitorPrivateDnsZoneId5": { | ||
"value": "[variables('policyParameterMapping').azureMonitorPrivateDnsZoneId5]" | ||
}, | ||
"azureWebPrivateDnsZoneId": { | ||
"value": "[variables('policyParameterMapping').azureWebPrivateDnsZoneId]" | ||
}, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just realised that this has probably been wrong since creation, as this is the namespace for Azure SignalR WebPubSub, but the parameter name (in my opinion) leads me to believe this was intended for Azure Web Apps.
The policy mapped to this parameter is indeed Azure SignalR WebPubSub so it technically maps correctly, but this doesn't feel correct.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are right, if I would make it from the beginning, naming would be different for cases like this one, but I did not touch the originals