mirror of
https://github.com/Azure-Samples/graphrag-accelerator.git
synced 2025-06-27 04:39:57 +00:00
43 lines
1.1 KiB
Bicep
43 lines
1.1 KiB
Bicep
// Copyright (c) Microsoft Corporation.
|
|
// Licensed under the MIT License.
|
|
|
|
@description('Resource ID of service the private endpoint is for')
|
|
param privateLinkServiceId string
|
|
|
|
@description('The resource ID of the subnet to deploy the private endpoint to')
|
|
param subnetId string
|
|
|
|
@description('Map of group id to array of private dns zone configs to associate with the private endpoint')
|
|
param privateDnsZoneConfigs array
|
|
|
|
param privateEndpointName string
|
|
param groupId string
|
|
param location string = resourceGroup().location
|
|
|
|
resource privateEndpoint 'Microsoft.Network/privateEndpoints@2024-05-01' = {
|
|
name: privateEndpointName
|
|
location: location
|
|
properties: {
|
|
privateLinkServiceConnections: [
|
|
{
|
|
name: privateEndpointName
|
|
properties: {
|
|
privateLinkServiceId: privateLinkServiceId
|
|
groupIds: [groupId]
|
|
}
|
|
}
|
|
]
|
|
subnet: {
|
|
id: subnetId
|
|
}
|
|
}
|
|
}
|
|
|
|
resource privateDnsZoneGroup 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2024-05-01' = {
|
|
name: groupId
|
|
parent: privateEndpoint
|
|
properties: {
|
|
privateDnsZoneConfigs: privateDnsZoneConfigs
|
|
}
|
|
}
|