Skip to content

Commit 19045cb

Browse files
PNA Default Disabled Hub/Project (#213)
* Default Disabled * Default Disabled
1 parent e2369d8 commit 19045cb

File tree

3 files changed

+41
-38
lines changed

3 files changed

+41
-38
lines changed

scenarios/Agents/setup/network-secured-agent/azuredeploy.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.33.93.31351",
8-
"templateHash": "14632217224620265892"
8+
"templateHash": "14383664163093616815"
99
}
1010
},
1111
"parameters": {
@@ -58,6 +58,28 @@
5858
"description": "Friendly name for your Azure AI resource"
5959
}
6060
},
61+
"hubPublicNetworkAccess": {
62+
"type": "string",
63+
"defaultValue": "Disabled",
64+
"allowedValues": [
65+
"Disabled",
66+
"Enabled"
67+
],
68+
"metadata": {
69+
"description": "Specifies the public network access for the Azure AI Hub workspace."
70+
}
71+
},
72+
"projectPublicNetworkAccess": {
73+
"type": "string",
74+
"defaultValue": "[parameters('hubPublicNetworkAccess')]",
75+
"allowedValues": [
76+
"Disabled",
77+
"Enabled"
78+
],
79+
"metadata": {
80+
"description": "Specifies the public network access for the Azure AI Project workspace.Note: Please ensure that if you are setting this to Enabled, the AI Hub workspace is also set to Enabled."
81+
}
82+
},
6183
"defaultAiProjectDescription": {
6284
"type": "string",
6385
"defaultValue": "This is an example AI Project resource for use in Azure AI Studio.",
@@ -191,28 +213,6 @@
191213
"description": "The AI Search Service name. This is an optional field, and if not provided, the resource will be created.The resource should exist in same resource group must be Public Network Disabled"
192214
}
193215
},
194-
"hubPublicNetworkAccess": {
195-
"type": "string",
196-
"defaultValue": "Enabled",
197-
"allowedValues": [
198-
"Disabled",
199-
"Enabled"
200-
],
201-
"metadata": {
202-
"description": "Specifies the public network access for the Azure AI Hub workspace."
203-
}
204-
},
205-
"projectPublicNetworkAccess": {
206-
"type": "string",
207-
"defaultValue": "[parameters('hubPublicNetworkAccess')]",
208-
"allowedValues": [
209-
"Disabled",
210-
"Enabled"
211-
],
212-
"metadata": {
213-
"description": "Specifies the public network access for the Azure AI Project workspace.Note: Please ensure that if you are setting this to Enabled, the AI Hub workspace is also set to Enabled."
214-
}
215-
},
216216
"userAssignedIdentityDefaultName": {
217217
"type": "string",
218218
"defaultValue": "[format('secured-agents-identity-{0}', parameters('uniqueSuffix'))]",
@@ -1847,7 +1847,7 @@
18471847
"_generator": {
18481848
"name": "bicep",
18491849
"version": "0.33.93.31351",
1850-
"templateHash": "17511981858365479894"
1850+
"templateHash": "10773126362060108423"
18511851
}
18521852
},
18531853
"parameters": {
@@ -1896,7 +1896,7 @@
18961896
},
18971897
"publicNetworkAccess": {
18981898
"type": "string",
1899-
"defaultValue": "Enabled",
1899+
"defaultValue": "Disabled",
19001900
"metadata": {
19011901
"description": "Specifies the public network access for the machine learning workspace."
19021902
}

scenarios/Agents/setup/network-secured-agent/main.bicep

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,21 @@ param defaultAiProjectName string = 'project-demo'
5252
@description('Friendly name for your Azure AI resource')
5353
param defaultAiProjectFriendlyName string = 'Agents Project resource'
5454

55+
@description('Specifies the public network access for the Azure AI Hub workspace.')
56+
@allowed([
57+
'Disabled'
58+
'Enabled'
59+
])
60+
param hubPublicNetworkAccess string = 'Disabled'
61+
62+
@description('Specifies the public network access for the Azure AI Project workspace.Note: Please ensure that if you are setting this to Enabled, the AI Hub workspace is also set to Enabled.')
63+
@allowed([
64+
'Disabled'
65+
'Enabled'
66+
])
67+
param projectPublicNetworkAccess string = hubPublicNetworkAccess
68+
69+
5570
@description('Description of your Azure AI resource displayed in AI studio')
5671
param defaultAiProjectDescription string = 'This is an example AI Project resource for use in Azure AI Studio.'
5772

@@ -117,19 +132,7 @@ param aiServiceAccountName string = ''
117132
@description('The AI Search Service name. This is an optional field, and if not provided, the resource will be created.The resource should exist in same resource group must be Public Network Disabled')
118133
param aiSearchServiceName string = ''
119134

120-
@description('Specifies the public network access for the Azure AI Hub workspace.')
121-
@allowed([
122-
'Disabled'
123-
'Enabled'
124-
])
125-
param hubPublicNetworkAccess string = 'Enabled'
126135

127-
@description('Specifies the public network access for the Azure AI Project workspace.Note: Please ensure that if you are setting this to Enabled, the AI Hub workspace is also set to Enabled.')
128-
@allowed([
129-
'Disabled'
130-
'Enabled'
131-
])
132-
param projectPublicNetworkAccess string = hubPublicNetworkAccess
133136

134137
// @description('The Ai Storage Account name. This is an optional field, and if not provided, the resource will be created.The resource should exist in same resource group')
135138
// param aiStorageAccountName string = ''

scenarios/Agents/setup/network-secured-agent/modules-network-secured/network-secured-ai-project.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ param aiHubId string
4949
param uaiName string
5050

5151
@description('Specifies the public network access for the machine learning workspace.')
52-
param publicNetworkAccess string = 'Enabled'
52+
param publicNetworkAccess string = 'Disabled'
5353

5454
/* -------------------------------------------- Variables -------------------------------------------- */
5555

0 commit comments

Comments
 (0)