-
Notifications
You must be signed in to change notification settings - Fork 333
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c5433c
commit 0c3a726
Showing
19 changed files
with
437 additions
and
48 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
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
File renamed without changes.
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
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
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 @@ | ||
param privateLinkScopeName string | ||
param privateLinkScopedResources array = [] | ||
|
||
param queryAccessMode string = 'Open' | ||
param ingestionAccessMode string = 'PrivateOnly' | ||
|
||
resource privateLinkScope 'microsoft.insights/privateLinkScopes@2021-07-01-preview' = { | ||
name: privateLinkScopeName | ||
location: 'global' | ||
properties: { | ||
accessModeSettings: { | ||
queryAccessMode: queryAccessMode | ||
ingestionAccessMode: ingestionAccessMode | ||
} | ||
} | ||
} | ||
|
||
resource scopedResources 'microsoft.insights/privateLinkScopes/scopedResources@2021-07-01-preview' = [ | ||
for id in privateLinkScopedResources: { | ||
name: uniqueString(id) | ||
parent: privateLinkScope | ||
properties: { | ||
linkedResourceId: id | ||
} | ||
} | ||
] | ||
|
||
output privateLinkScopeId string = privateLinkScope.id |
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,14 @@ | ||
@description('The name of the private DNS zone.') | ||
param privateDnsZoneNames array | ||
|
||
param vnetResourceIds array | ||
|
||
module privateDnsVnetLinks 'private-dns-vnet-link.bicep' = [ | ||
for (privateDnsZoneName, i) in privateDnsZoneNames: { | ||
name: '${privateDnsZoneName}-vnet-link-${i}' | ||
params: { | ||
privateDnsZoneName: privateDnsZoneName | ||
vnetResourceIds: vnetResourceIds | ||
} | ||
} | ||
] |
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,23 @@ | ||
param privateDnsZoneName string | ||
|
||
param vnetResourceIds array | ||
|
||
resource dnsZone 'Microsoft.Network/privateDnsZones@2020-06-01' = { | ||
name: privateDnsZoneName | ||
location: 'global' | ||
properties: {} | ||
} | ||
|
||
resource dnsZoneLinks 'Microsoft.Network/privateDnsZones/virtualNetworkLinks@2020-06-01' = [ | ||
for vnetId in vnetResourceIds: { | ||
name: uniqueString(vnetId) | ||
location: 'global' | ||
parent: dnsZone | ||
properties: { | ||
registrationEnabled: false | ||
virtualNetwork: { | ||
id: vnetId | ||
} | ||
} | ||
} | ||
] |
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,18 @@ | ||
{ | ||
"azureCloud": { | ||
"azureMonitor": [ | ||
"privatelink.monitor.azure.com", | ||
"privatelink.oms.opinsights.azure.com", | ||
"privatelink.agentsvc.azure-automation.net", | ||
"privatelink.ods.opinsights.azure.com" | ||
] | ||
}, | ||
"azureusgovernment": { | ||
"azureMonitor": [ | ||
"privatelink.monitor.azure.us", | ||
"privatelink.oms.opinsights.azure.us", | ||
"privatelink.agentsvc.azure-automation.us", | ||
"privatelink.ods.opinsights.azure.us" | ||
] | ||
} | ||
} |
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,41 @@ | ||
@description('Resource ID of service the private endpoint is for') | ||
param privateLinkServiceId string | ||
|
||
param privateEndpointName string | ||
|
||
@description('The resource ID of the subnet to deploy the private endpoint to') | ||
param subnetId string | ||
|
||
param groupId string | ||
|
||
param location string = resourceGroup().location | ||
|
||
@description('map of group id to array of private dns zone configs to associate with the private endpoint') | ||
param privateDnsZoneConfigs array | ||
|
||
resource privateEndpoint 'Microsoft.Network/privateEndpoints@2021-05-01' = { | ||
name: privateEndpointName | ||
location: location | ||
properties: { | ||
privateLinkServiceConnections: [ | ||
{ | ||
name: privateEndpointName | ||
properties: { | ||
privateLinkServiceId: privateLinkServiceId | ||
groupIds: [groupId] | ||
} | ||
} | ||
] | ||
subnet: { | ||
id: subnetId | ||
} | ||
} | ||
} | ||
|
||
resource privateDnsZoneGroup 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2021-05-01' = { | ||
name: groupId | ||
parent: privateEndpoint | ||
properties: { | ||
privateDnsZoneConfigs: privateDnsZoneConfigs | ||
} | ||
} |
Oops, something went wrong.