@@ -33,7 +33,8 @@ param publicNetworkAccess string = 'Enabled'
33
33
param location string = resourceGroup ().location
34
34
param tags object = {}
35
35
36
- resource hub 'Microsoft.MachineLearningServices/workspaces@2024-01-01-preview' = {
36
+ // NN:TODO resource hub 'Microsoft.MachineLearningServices/workspaces@2024-01-01-preview' = {
37
+ resource hub 'Microsoft.MachineLearningServices/workspaces@2024-04-01' = {
37
38
name : name
38
39
location : location
39
40
tags : tags
@@ -57,17 +58,37 @@ resource hub 'Microsoft.MachineLearningServices/workspaces@2024-01-01-preview' =
57
58
}
58
59
v1LegacyMode : false
59
60
publicNetworkAccess : publicNetworkAccess
61
+ discoveryUrl : 'https://${location }.api.azureml.ms/discovery'
60
62
}
61
63
62
- resource openAiConnection 'connections' = {
63
- name : openAiConnectionName
64
+ /* NN:TODO
65
+ resource contentSafetyDefaultEndpoint 'endpoints' = {
66
+ name: 'Azure.ContentSafety'
67
+ properties: {
68
+ name: 'Azure.ContentSafety'
69
+ endpointType: 'Azure.ContentSafety'
70
+ associatedResourceId: openAi.id
71
+ }
72
+ }
73
+ */
74
+
75
+ /*
76
+ NN:TODO
77
+ Connections are not in the GA Swagger - they are only in public preview of 2024-04-01-preview version
78
+ That is what you specify with the workspace@ version for AML API version
79
+ The ApiVersion specified in the metadata is for the Azure Cognitive Services version (that wraps the OpenAPI call)
80
+ */
81
+
82
+ resource openAiConnection 'connections@2024-04-01-preview' = { // NN:TODO Add @version to ensure resource is correctly versioned
83
+ name : 'aoai-connection'
64
84
properties : {
65
85
category : 'AzureOpenAI'
66
86
authType : 'ApiKey'
67
87
isSharedToAll : true
68
88
target : openAi .properties .endpoints ['OpenAI Language Model Instance API' ]
69
89
metadata : {
70
- ApiVersion : '2023-07-01-preview'
90
+ //ApiVersion: '2023-07-01-preview'
91
+ ApiVersion : '2024-02-01'
71
92
ApiType : 'azure'
72
93
ResourceId : openAi .id
73
94
}
0 commit comments