|
5 | 5 | "metadata": { |
6 | 6 | "_generator": { |
7 | 7 | "name": "bicep", |
8 | | - "version": "0.34.44.8038", |
9 | | - "templateHash": "17550717161725705246" |
| 8 | + "version": "0.35.1.17967", |
| 9 | + "templateHash": "4208201882676728802" |
10 | 10 | } |
11 | 11 | }, |
12 | 12 | "parameters": { |
13 | 13 | "azureOpenAILocation": { |
14 | 14 | "type": "string", |
15 | | - "defaultValue": "eastus2", |
16 | 15 | "allowedValues": [ |
17 | 16 | "australiaeast", |
18 | 17 | "brazilsouth", |
|
454 | 453 | "kind": "AIServices", |
455 | 454 | "properties": { |
456 | 455 | "customSubDomainName": "[variables('aiServicesName')]", |
457 | | - "apiProperties": {} |
| 456 | + "apiProperties": {}, |
| 457 | + "disableLocalAuth": true |
458 | 458 | } |
459 | 459 | }, |
460 | 460 | "aiServicesDeployments": { |
|
522 | 522 | { |
523 | 523 | "name": "EnableServerless" |
524 | 524 | } |
525 | | - ] |
| 525 | + ], |
| 526 | + "disableLocalAuth": true |
526 | 527 | } |
527 | 528 | }, |
528 | 529 | "pullIdentity": { |
|
543 | 544 | "destination": "log-analytics", |
544 | 545 | "logAnalyticsConfiguration": { |
545 | 546 | "customerId": "[reference('logAnalytics').customerId]", |
546 | | - "sharedKey": "[listKeys(resourceId('Microsoft.OperationalInsights/workspaces', format('{0}{1}', variables('abbrs').managementGovernance.logAnalyticsWorkspace, variables('solutionPrefix'))), '2023-09-01').primarySharedKey]" |
| 547 | + "sharedKey": "[listKeys('logAnalytics', '2023-09-01').primarySharedKey]" |
547 | 548 | } |
548 | 549 | } |
549 | 550 | }, |
|
808 | 809 | "metadata": { |
809 | 810 | "_generator": { |
810 | 811 | "name": "bicep", |
811 | | - "version": "0.34.44.8038", |
812 | | - "templateHash": "6018596764344872545" |
| 812 | + "version": "0.35.1.17967", |
| 813 | + "templateHash": "4587248441449388111" |
813 | 814 | } |
814 | 815 | }, |
815 | 816 | "parameters": { |
|
928 | 929 | "value": "[reference('aiServices').endpoint]" |
929 | 930 | }, |
930 | 931 | "aiServicesKey": { |
931 | | - "value": "[listKeys(resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName')), '2024-04-01-preview').key1]" |
| 932 | + "value": "[listKeys('aiServices', '2024-04-01-preview').key1]" |
932 | 933 | }, |
933 | 934 | "aiServicesId": { |
934 | 935 | "value": "[resourceId('Microsoft.CognitiveServices/accounts', variables('aiServicesName'))]" |
|
940 | 941 | "metadata": { |
941 | 942 | "_generator": { |
942 | 943 | "name": "bicep", |
943 | | - "version": "0.34.44.8038", |
944 | | - "templateHash": "4169059378107378993" |
| 944 | + "version": "0.35.1.17967", |
| 945 | + "templateHash": "13047093698365252995" |
945 | 946 | } |
946 | 947 | }, |
947 | 948 | "parameters": { |
|
1223 | 1224 | "properties": { |
1224 | 1225 | "category": "AIServices", |
1225 | 1226 | "target": "[parameters('aiServicesEndpoint')]", |
1226 | | - "authType": "ApiKey", |
| 1227 | + "authType": "AAD", |
1227 | 1228 | "isSharedToAll": true, |
1228 | | - "credentials": { |
1229 | | - "key": "[parameters('aiServicesKey')]" |
1230 | | - }, |
1231 | 1229 | "metadata": { |
1232 | 1230 | "ApiType": "Azure", |
1233 | 1231 | "ResourceId": "[parameters('aiServicesId')]" |
|
1353 | 1351 | "[resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiHubName'))]" |
1354 | 1352 | ] |
1355 | 1353 | }, |
| 1354 | + { |
| 1355 | + "type": "Microsoft.Authorization/roleAssignments", |
| 1356 | + "apiVersion": "2022-04-01", |
| 1357 | + "name": "[guid(resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiProjectName')), resourceId('Microsoft.Authorization/roleDefinitions', '64702f94-c441-49e6-a78b-ef80e0188fee'))]", |
| 1358 | + "properties": { |
| 1359 | + "roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', '64702f94-c441-49e6-a78b-ef80e0188fee')]", |
| 1360 | + "principalId": "[reference(resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiProjectName')), '2024-01-01-preview', 'full').identity.principalId]" |
| 1361 | + }, |
| 1362 | + "dependsOn": [ |
| 1363 | + "[resourceId('Microsoft.MachineLearningServices/workspaces', variables('aiProjectName'))]" |
| 1364 | + ] |
| 1365 | + }, |
1356 | 1366 | { |
1357 | 1367 | "type": "Microsoft.KeyVault/vaults/secrets", |
1358 | 1368 | "apiVersion": "2021-11-01-preview", |
|
1561 | 1571 | "metadata": { |
1562 | 1572 | "_generator": { |
1563 | 1573 | "name": "bicep", |
1564 | | - "version": "0.34.44.8038", |
1565 | | - "templateHash": "225360114294826340" |
| 1574 | + "version": "0.35.1.17967", |
| 1575 | + "templateHash": "14769217536017297821" |
1566 | 1576 | } |
1567 | 1577 | }, |
1568 | 1578 | "parameters": { |
|
0 commit comments