You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Deployment/resourcedeployment.ps1
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -686,6 +686,23 @@ try {
686
686
Write-Host"Assign the role for aks system assigned managed identity to App Storage Queue Data Contributor role"-ForegroundColor Green
687
687
az role assignment create --assignee $systemAssignedIdentity--role "Storage Queue Data Contributor"--scope "/subscriptions/$($deploymentResult.SubscriptionId)/resourceGroups/$($deploymentResult.ResourceGroupName)/providers/Microsoft.Storage/storageAccounts/$($deploymentResult.StorageAccountName)"
688
688
689
+
# Assign the role for aks system assigned managed identity to Azure Queue Data Contributor role with the scope of Storage Account
690
+
Write-Host"Assign the role for aks system assigned managed identity to App Cognitive Services OpenAI User role"-ForegroundColor Green
691
+
az role assignment create --assignee $systemAssignedIdentity--role "Cognitive Services OpenAI User"--scope "/subscriptions/$($deploymentResult.SubscriptionId)/resourceGroups/$($deploymentResult.ResourceGroupName)/providers/Microsoft.CognitiveServices/accounts/$($deploymentResult.AzOpenAiServiceName)"
692
+
693
+
# Assign the role for aks system assigned managed identity to Azure Queue Data Contributor role with the scope of Storage Account
694
+
Write-Host"Assign the role for aks system assigned managed identity to App Search Index Data Contributor role"-ForegroundColor Green
695
+
az role assignment create --assignee $systemAssignedIdentity--role "Search Index Data Contributor"--scope "/subscriptions/$($deploymentResult.SubscriptionId)/resourceGroups/$($deploymentResult.ResourceGroupName)/providers/Microsoft.Search/searchServices/$($deploymentResult.AzSearchServiceName)"
696
+
697
+
# Assign the role for aks system assigned managed identity to Azure Queue Data Contributor role with the scope of Storage Account
698
+
Write-Host"Assign the role for aks system assigned managed identity to App Search Service Contributor role"-ForegroundColor Green
699
+
az role assignment create --assignee $systemAssignedIdentity--role "Search Service Contributor"--scope "/subscriptions/$($deploymentResult.SubscriptionId)/resourceGroups/$($deploymentResult.ResourceGroupName)/providers/Microsoft.Search/searchServices/$($deploymentResult.AzSearchServiceName)"
700
+
701
+
# Assign the role for aks system assigned managed identity to Azure Queue Data Contributor role with the scope of Storage Account
702
+
Write-Host"Assign the role for aks system assigned managed identity to App Cognitive Services User role"-ForegroundColor Green
703
+
az role assignment create --assignee $systemAssignedIdentity--role "Cognitive Services User"--scope "/subscriptions/$($deploymentResult.SubscriptionId)/resourceGroups/$($deploymentResult.ResourceGroupName)/providers/Microsoft.CognitiveServices/accounts/$($deploymentResult.AzCognitiveServiceName)"
0 commit comments