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
az functionapp config appsettings set --name documentprocessorfunctions --resource-group rf-rag-arabic --settings "KEY1=Value1""KEY2=Value2"
Show storage account connection string
az storage account show-connection-string -g rf-rag-arabic -n ragarabicstorageaccount --query connectionString
Enable public access and enable key auth for cosmos and blob storage and functions app
# enable public access for Azure Functions# https://learn.microsoft.com/en-us/cli/azure/functionapp/config/access-restriction?view=azure-cli-latest#az-functionapp-config-access-restriction-show# enable public access
az cosmosdb update -n cosmos-rag-arabic -g rf-rag-arabic --public-network-access ENABLED
# enable public access and shared key aith
az storage account update -n ragarabicstorageaccount -g rf-rag-arabic --public-network-access Enabled --allow-shared-key-access true# enable key based access for cosmos
az resource update --resource-group "rf-rag-arabic" --name "cosmos-rag-arabic" --resource-type "Microsoft.DocumentDB/databaseAccounts" --set properties.disableLocalAuth=false
Show Service IDs
az search service show --name ai-rag-arabic --resource-group rf-rag-arabic --query id --output tsv
az storage account show -n ragarabicstorageaccount -g rf-rag-arabic --query id --output tsv
Assign cosmos db data contributed to identity
az cosmosdb show --name cosmos-rag-arabic --resource-group rf-rag-arabic --query id --output tsv
az cosmosdb sql role assignment create --account-name cosmos-rag-arabic --resource-group rf-rag-arabic --role-definition-name "Cosmos DB Built-in Data Contributor" --scope "/subscriptions/33ccd01f-fc97-4fa1-b208-db8eb99a430b/resourceGroups/rf-rag-arabic/providers/Microsoft.DocumentDB/databaseAccounts/cosmos-rag-arabic" --principal-id c6d0b4fd-c402-460b-8b28-183c90f9161f