@@ -30,18 +30,6 @@ param defaultProjectName string = name
3030param defaultProjectDisplayName string = name
3131param defaultProjectDescription string = 'Describe what your project is about.'
3232
33- @description ('The name of the subnet to connect the private endpoint to.' )
34- param vmSubnetName string
35-
36- @description ('The name of the subnet to connect the private endpoint to.' )
37- param vmSubnetId string
38-
39- @description ('The name of the virtual network containing the subnet.' )
40- param virtualNetworkName string
41-
42- @description ('The resource group of the virtual network.' )
43- param vnetResourceGroup string
44-
4533resource foundryAccount 'Microsoft.CognitiveServices/accounts@2025-04-01-preview' existing = {
4634 name : aiServicesName
4735 }
@@ -58,10 +46,6 @@ resource cosmosDBAccount 'Microsoft.DocumentDB/databaseAccounts@2025-05-01-previ
5846 name : cosmosDBname
5947}
6048
61- resource vnet 'Microsoft.Network/virtualNetworks@2023-02-01' existing = {
62- name : virtualNetworkName
63- scope : resourceGroup (vnetResourceGroup )
64- }
6549
6650resource project 'Microsoft.CognitiveServices/accounts/projects@2025-04-01-preview' = {
6751 name : defaultProjectName
@@ -77,46 +61,6 @@ resource project 'Microsoft.CognitiveServices/accounts/projects@2025-04-01-previ
7761 }
7862}
7963
80- resource privateEndpoint 'Microsoft.Network/privateEndpoints@2023-02-01' = {
81- name : '${project .name }-privateEndpoint'
82- location : location
83- properties : {
84- subnet : {
85- id : vmSubnetId
86- }
87- privateLinkServiceConnections : [
88- {
89- name : '${project .name }-connection'
90- properties : {
91- privateLinkServiceId : foundryAccount .id // Use the Cognitive Services account ID
92- groupIds : [
93- 'account'
94- ]
95- }
96- }
97- ]
98- }
99- }
100-
101- resource privateDnsZone 'Microsoft.Network/privateDnsZones@2023-02-01' existing = {
102- name : 'privatelink.cognitiveservices.azure.com'
103- scope : resourceGroup (vnetResourceGroup )
104- }
105-
106- resource privateDnsZoneGroup 'Microsoft.Network/privateEndpoints/privateDnsZoneGroups@2023-02-01' = {
107- name : '${privateEndpoint .name }-dnsZoneGroup'
108- parent : privateEndpoint
109- properties : {
110- privateDnsZoneConfigs : [
111- {
112- name : 'default'
113- properties : {
114- privateDnsZoneId : privateDnsZone .id
115- }
116- }
117- ]
118- }
119- }
12064
12165resource project_connection_azure_storage 'Microsoft.CognitiveServices/accounts/projects/connections@2025-04-01-preview' = {
12266 name : storageName
0 commit comments