|
599 | 599 | "description": "Serverless compute settings to be used for the workspace." |
600 | 600 | } |
601 | 601 | }, |
| 602 | + "system_datastore_auth_mode": { |
| 603 | + "type": "string", |
| 604 | + "defaultValue": "", |
| 605 | + "metadata": { |
| 606 | + "description": "Settings to control workspace storage account access auth type" |
| 607 | + } |
| 608 | + }, |
602 | 609 | "endpoint_resource_id": { |
603 | 610 | "type": "string", |
604 | 611 | "defaultValue": "null", |
|
831 | 838 | "SearchAccountArmId": "[parameters('encryption_search_resourceid')]" |
832 | 839 | }, |
833 | 840 | "primaryUserAssignedIdentity": "[parameters('primaryUserAssignedIdentity')]", |
| 841 | + "systemDatastoresAuthMode": "[parameters('system_datastore_auth_mode')]", |
834 | 842 | "managedNetwork": "[parameters('managedNetwork')]", |
835 | 843 | "featureStoreSettings": { |
836 | 844 | "computeruntime": { |
|
895 | 903 | { |
896 | 904 | "condition":"[equals(parameters('kind'), 'featurestore')]", |
897 | 905 | "type": "Microsoft.Resources/deployments", |
898 | | - "apiVersion": "2022-05-01", |
| 906 | + "apiVersion": "2024-03-01", |
899 | 907 | "name": "[concat(parameters('workspaceName'), '-deploy-feature-store')]", |
900 | 908 | "dependsOn": [ |
901 | 909 | "[resourceId('Microsoft.MachineLearningServices/workspaces', parameters('workspaceName'))]", |
|
945 | 953 | "SearchAccountArmId": "[parameters('encryption_search_resourceid')]" |
946 | 954 | }, |
947 | 955 | "primaryUserAssignedIdentity": "[parameters('primaryUserAssignedIdentity')]", |
| 956 | + "systemDatastoresAuthMode": "[parameters('system_datastore_auth_mode')]", |
948 | 957 | "managedNetwork": "[parameters('managedNetwork')]", |
949 | 958 | "featureStoreSettings": { |
950 | 959 | "computeruntime": { |
|
1056 | 1065 | } |
1057 | 1066 | } |
1058 | 1067 | }, |
| 1068 | + { |
| 1069 | + "condition": "[and(equals(parameters('kind'), 'featurestore'), equals(parameters('grant_materialization_permissions'), 'true'), not(equals(parameters('materializationIdentityOption'), 'none')))]", |
| 1070 | + "type": "Microsoft.Resources/deployments", |
| 1071 | + "name": "[concat('ws-storage-role-assign-', guid(variables('materializationIdentity'), variables('storageAccount'), 'storage blob data contributor'))]", |
| 1072 | + "apiVersion": "2020-06-01", |
| 1073 | + "dependsOn": [ |
| 1074 | + "[resourceId('Microsoft.MachineLearningServices/workspaces', parameters('workspaceName'))]", |
| 1075 | + "[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', parameters('materialization_identity_name'))]" |
| 1076 | + ], |
| 1077 | + "resourceGroup": "[parameters('storageAccountResourceGroupName')]", |
| 1078 | + "properties": { |
| 1079 | + "mode": "Incremental", |
| 1080 | + "template": { |
| 1081 | + "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", |
| 1082 | + "contentVersion": "1.0.0.0", |
| 1083 | + "resources": [ |
| 1084 | + { |
| 1085 | + "type": "Microsoft.Authorization/roleAssignments", |
| 1086 | + "apiVersion": "2022-04-01", |
| 1087 | + "name": "[guid(variables('materializationIdentity'), variables('storageAccount'), 'storage blob data contributor')]", |
| 1088 | + "scope": "[variables('storageAccount')]", |
| 1089 | + "location": "[parameters('location')]", |
| 1090 | + "properties": { |
| 1091 | + "roleDefinitionId": "[subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'ba92f5b4-2d11-453d-a403-e96b0029c9fe')]", |
| 1092 | + "principalId": "[if(not(equals(parameters('materializationIdentityOption'), 'none')), reference(variables('materializationIdentity'), '2023-01-31').principalId, '')]", |
| 1093 | + "principalType": "ServicePrincipal" |
| 1094 | + } |
| 1095 | + } |
| 1096 | + ] |
| 1097 | + } |
| 1098 | + } |
| 1099 | + }, |
1059 | 1100 | { |
1060 | 1101 | "condition": "[and(variables('enablePE'), not(equals(parameters('privateEndpointType'), 'none')))]", |
1061 | 1102 | "type": "Microsoft.Resources/deployments", |
|
0 commit comments