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
$deploymentResult.AzCosmosDBConnectionString= az cosmosdb keys list --name $deploymentResult.AzCosmosDBName--resource-group $deploymentResult.ResourceGroupName--type connection-strings --query "connectionStrings[0].connectionString"-o tsv
344
-
# Get Azure Cognitive Service API Key
345
-
$deploymentResult.AzCognitiveServiceKey= az cognitiveservices account keys list --name $deploymentResult.AzCognitiveServiceName--resource-group $deploymentResult.ResourceGroupName--query "key1"-o tsv
346
-
# Get Azure Search Service Admin Key
347
-
$deploymentResult.AzSearchAdminKey= az search admin-key show --service-name $deploymentResult.AzSearchServiceName--resource-group $deploymentResult.ResourceGroupName--query "primaryKey"-o tsv
348
-
# Get Azure Open AI Service API Key
349
-
$deploymentResult.AzOpenAiServiceKey= az cognitiveservices account keys list --name $deploymentResult.AzOpenAiServiceName--resource-group $deploymentResult.ResourceGroupName--query "key1"-o tsv
# Assign the role for aks system assigned managed identity to Azure blob Storage Data contributor role with the scope of the storage account
502
+
Write-Host"Assign the role for aks system assigned managed identity to Azure blob Storage Data contributor role"-ForegroundColor Green
518
503
az role assignment create --role "Storage Blob Data Contributor"--assignee $systemAssignedIdentity--scope "/subscriptions/$subscriptionID/resourceGroups/$($deploymentResult.ResourceGroupName)/providers/Microsoft.Storage/storageAccounts/$($deploymentResult.StorageAccountName)"
519
504
520
505
# Assigne the role for aks system assigned managed identity to Azure queue data contributor role with the scope of the storage account
506
+
Write-Host"Assign the role for aks system assigned managed identity to Azure queue data contributor role"-ForegroundColor Green
521
507
az role assignment create --role "Storage Queue Data Contributor"--assignee $systemAssignedIdentity--scope "/subscriptions/$subscriptionID/resourceGroups/$($deploymentResult.ResourceGroupName)/providers/Microsoft.Storage/storageAccounts/$($deploymentResult.StorageAccountName)"
522
508
509
+
# Assign the role for aks system assigned managed identity to Azure Queue Data Contributor role with the scope of Storage Account
510
+
Write-Host"Assign the role for aks system assigned managed identity to App Cognitive Services OpenAI User role"-ForegroundColor Green
511
+
az role assignment create --assignee $systemAssignedIdentity--role "Cognitive Services OpenAI User"--scope "/subscriptions/$subscriptionID/resourceGroups/$($deploymentResult.ResourceGroupName)/providers/Microsoft.CognitiveServices/accounts/$($deploymentResult.AzOpenAiServiceName)"
523
512
513
+
# Assign the role for aks system assigned managed identity to Azure Queue Data Contributor role with the scope of Storage Account
514
+
Write-Host"Assign the role for aks system assigned managed identity to App Search Index Data Contributor role"-ForegroundColor Green
515
+
az role assignment create --assignee $systemAssignedIdentity--role "Search Index Data Contributor"--scope "/subscriptions/$subscriptionID/resourceGroups/$($deploymentResult.ResourceGroupName)/providers/Microsoft.Search/searchServices/$($deploymentResult.AzSearchServiceName)"
516
+
517
+
# Assign the role for aks system assigned managed identity to Azure Queue Data Contributor role with the scope of Storage Account
518
+
Write-Host"Assign the role for aks system assigned managed identity to App Search Service Contributor role"-ForegroundColor Green
519
+
az role assignment create --assignee $systemAssignedIdentity--role "Search Service Contributor"--scope "/subscriptions/$subscriptionID/resourceGroups/$($deploymentResult.ResourceGroupName)/providers/Microsoft.Search/searchServices/$($deploymentResult.AzSearchServiceName)"
520
+
521
+
# Assign the role for aks system assigned managed identity to Azure Queue Data Contributor role with the scope of Storage Account
522
+
Write-Host"Assign the role for aks system assigned managed identity to App Cognitive Services User role"-ForegroundColor Green
523
+
524
+
az role assignment create --assignee $systemAssignedIdentity--role "Cognitive Services User"--scope "/subscriptions/$subscriptionID/resourceGroups/$($deploymentResult.ResourceGroupName)/providers/Microsoft.CognitiveServices/accounts/$($deploymentResult.AzCognitiveServiceName)"
varresponse=awaitappContext.httpClient.PostAsync(config["BenchmarkProcessing:processwatcherUrl"],content);// CodeQL [SM03781] We are reading this value from appsettings.json, this is not an user input
0 commit comments