|
5 | 5 | "_generator": { |
6 | 6 | "name": "bicep", |
7 | 7 | "version": "0.33.93.31351", |
8 | | - "templateHash": "6468218768722945213" |
| 8 | + "templateHash": "13610358180001906492" |
9 | 9 | } |
10 | 10 | }, |
11 | 11 | "parameters": { |
|
327 | 327 | "_generator": { |
328 | 328 | "name": "bicep", |
329 | 329 | "version": "0.33.93.31351", |
330 | | - "templateHash": "3058877073778301143" |
| 330 | + "templateHash": "2515541218015614919" |
331 | 331 | } |
332 | 332 | }, |
333 | 333 | "parameters": { |
|
884 | 884 | "[resourceId('Microsoft.KeyVault/vaults', parameters('keyvaultName'))]", |
885 | 885 | "[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', parameters('userAssignedIdentityName'))]" |
886 | 886 | ] |
887 | | - }, |
888 | | - { |
889 | | - "condition": "[not(parameters('aiServicesExists'))]", |
890 | | - "type": "Microsoft.Resources/deployments", |
891 | | - "apiVersion": "2022-09-01", |
892 | | - "name": "[format('dependencies-{0}-cogsvc-rbac', parameters('suffix'))]", |
893 | | - "properties": { |
894 | | - "expressionEvaluationOptions": { |
895 | | - "scope": "inner" |
896 | | - }, |
897 | | - "mode": "Incremental", |
898 | | - "parameters": { |
899 | | - "suffix": { |
900 | | - "value": "[parameters('suffix')]" |
901 | | - }, |
902 | | - "UAIPrincipalId": { |
903 | | - "value": "[reference(resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', parameters('userAssignedIdentityName')), '2023-07-31-preview').principalId]" |
904 | | - } |
905 | | - }, |
906 | | - "template": { |
907 | | - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", |
908 | | - "contentVersion": "1.0.0.0", |
909 | | - "metadata": { |
910 | | - "_generator": { |
911 | | - "name": "bicep", |
912 | | - "version": "0.33.93.31351", |
913 | | - "templateHash": "199126274513046121" |
914 | | - } |
915 | | - }, |
916 | | - "parameters": { |
917 | | - "UAIPrincipalId": { |
918 | | - "type": "string", |
919 | | - "metadata": { |
920 | | - "description": "Principal ID of the managed identity" |
921 | | - } |
922 | | - }, |
923 | | - "suffix": { |
924 | | - "type": "string", |
925 | | - "metadata": { |
926 | | - "description": "Unique suffix for role assignment naming" |
927 | | - } |
928 | | - } |
929 | | - }, |
930 | | - "resources": [ |
931 | | - { |
932 | | - "type": "Microsoft.Authorization/roleAssignments", |
933 | | - "apiVersion": "2022-04-01", |
934 | | - "name": "[guid(subscription().subscriptionId, resourceGroup().id, resourceId('Microsoft.Authorization/roleDefinitions', 'b78c5d69-af96-48a3-bf8d-a8b4d589de94'), parameters('suffix'))]", |
935 | | - "properties": { |
936 | | - "principalId": "[parameters('UAIPrincipalId')]", |
937 | | - "roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', 'b78c5d69-af96-48a3-bf8d-a8b4d589de94')]", |
938 | | - "principalType": "ServicePrincipal" |
939 | | - } |
940 | | - } |
941 | | - ], |
942 | | - "outputs": { |
943 | | - "roleAssignmentId": { |
944 | | - "type": "string", |
945 | | - "value": "[resourceId('Microsoft.Authorization/roleAssignments', guid(subscription().subscriptionId, resourceGroup().id, resourceId('Microsoft.Authorization/roleDefinitions', 'b78c5d69-af96-48a3-bf8d-a8b4d589de94'), parameters('suffix')))]" |
946 | | - } |
947 | | - } |
948 | | - } |
949 | | - }, |
950 | | - "dependsOn": [ |
951 | | - "[resourceId('Microsoft.CognitiveServices/accounts', parameters('aiServicesName'))]", |
952 | | - "[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', parameters('userAssignedIdentityName'))]" |
953 | | - ] |
954 | | - }, |
955 | | - { |
956 | | - "condition": "[not(parameters('aiSearchExists'))]", |
957 | | - "type": "Microsoft.Resources/deployments", |
958 | | - "apiVersion": "2022-09-01", |
959 | | - "name": "[format('dependencies-{0}-aisearch-rbac', parameters('suffix'))]", |
960 | | - "properties": { |
961 | | - "expressionEvaluationOptions": { |
962 | | - "scope": "inner" |
963 | | - }, |
964 | | - "mode": "Incremental", |
965 | | - "parameters": { |
966 | | - "aiProjectId": { |
967 | | - "value": "[parameters('aiSearchName')]" |
968 | | - }, |
969 | | - "aiProjectPrincipalId": { |
970 | | - "value": "[reference(resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', parameters('userAssignedIdentityName')), '2023-07-31-preview').principalId]" |
971 | | - }, |
972 | | - "aiSearchName": { |
973 | | - "value": "[parameters('aiSearchName')]" |
974 | | - } |
975 | | - }, |
976 | | - "template": { |
977 | | - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", |
978 | | - "contentVersion": "1.0.0.0", |
979 | | - "metadata": { |
980 | | - "_generator": { |
981 | | - "name": "bicep", |
982 | | - "version": "0.33.93.31351", |
983 | | - "templateHash": "16079856828729639404" |
984 | | - } |
985 | | - }, |
986 | | - "parameters": { |
987 | | - "aiSearchName": { |
988 | | - "type": "string", |
989 | | - "metadata": { |
990 | | - "description": "Name of the AI Search service" |
991 | | - } |
992 | | - }, |
993 | | - "aiProjectPrincipalId": { |
994 | | - "type": "string", |
995 | | - "metadata": { |
996 | | - "description": "Principal ID of the managed identity" |
997 | | - } |
998 | | - }, |
999 | | - "aiProjectId": { |
1000 | | - "type": "string", |
1001 | | - "metadata": { |
1002 | | - "description": "Unique suffix for resource naming" |
1003 | | - } |
1004 | | - } |
1005 | | - }, |
1006 | | - "resources": [ |
1007 | | - { |
1008 | | - "type": "Microsoft.Authorization/roleAssignments", |
1009 | | - "apiVersion": "2022-04-01", |
1010 | | - "scope": "[format('Microsoft.Search/searchServices/{0}', parameters('aiSearchName'))]", |
1011 | | - "name": "[guid(subscription().subscriptionId, resourceGroup().id, resourceId('Microsoft.Authorization/roleDefinitions', '8ebe5a00-799e-43f5-93ac-243d3dce84a7'), parameters('aiProjectId'))]", |
1012 | | - "properties": { |
1013 | | - "principalId": "[parameters('aiProjectPrincipalId')]", |
1014 | | - "roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', '8ebe5a00-799e-43f5-93ac-243d3dce84a7')]", |
1015 | | - "principalType": "ServicePrincipal" |
1016 | | - } |
1017 | | - }, |
1018 | | - { |
1019 | | - "type": "Microsoft.Authorization/roleAssignments", |
1020 | | - "apiVersion": "2022-04-01", |
1021 | | - "scope": "[format('Microsoft.Search/searchServices/{0}', parameters('aiSearchName'))]", |
1022 | | - "name": "[guid(subscription().subscriptionId, resourceGroup().id, resourceId('Microsoft.Authorization/roleDefinitions', '7ca78c08-252a-4471-8644-bb5ff32d4ba0'), parameters('aiProjectId'))]", |
1023 | | - "properties": { |
1024 | | - "principalId": "[parameters('aiProjectPrincipalId')]", |
1025 | | - "roleDefinitionId": "[resourceId('Microsoft.Authorization/roleDefinitions', '7ca78c08-252a-4471-8644-bb5ff32d4ba0')]", |
1026 | | - "principalType": "ServicePrincipal" |
1027 | | - } |
1028 | | - } |
1029 | | - ] |
1030 | | - } |
1031 | | - }, |
1032 | | - "dependsOn": [ |
1033 | | - "[resourceId('Microsoft.Search/searchServices', parameters('aiSearchName'))]", |
1034 | | - "[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', parameters('userAssignedIdentityName'))]" |
1035 | | - ] |
1036 | 887 | } |
1037 | 888 | ], |
1038 | 889 | "outputs": { |
|
1794 | 1645 | }, |
1795 | 1646 | "dependsOn": [ |
1796 | 1647 | "[resourceId('Microsoft.Resources/deployments', format('{0}-{1}--hub', parameters('name'), parameters('uniqueSuffix')))]", |
1797 | | - "[resourceId('Microsoft.Resources/deployments', format('{0}-{1}--identity', parameters('name'), parameters('uniqueSuffix')))]" |
| 1648 | + "[resourceId('Microsoft.Resources/deployments', format('{0}-{1}--identity', parameters('name'), parameters('uniqueSuffix')))]", |
| 1649 | + "[resourceId('Microsoft.Resources/deployments', format('{0}-{1}--private-endpoint', parameters('name'), parameters('uniqueSuffix')))]" |
1798 | 1650 | ] |
1799 | 1651 | }, |
1800 | 1652 | { |
|
0 commit comments