Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Bad request error while workflow load the data to azure cosmos DB by using create or update item in logic app. The Logic App's MI has permission to Azure cosmos db with RBAC permission.
An Azure service that automates the access and use of data across clouds without writing code.
Answer accepted by question author
Thanks for reaching out to Microsoft Q&A.
We connected over MS Teams and the issue is now resolved. Please find the summary of our discussion and resolution below.
Issue:
Cause:
Resolution:
az cosmosdb sql role assignment create --account-name comos-db-no-sql --resource-group comsos-db-rg --scope "/" --principal-id logic-app-managed-identity-object-id --role-definition-id /subscriptions/sub-id/resourceGroups/comsos-db-rg/providers/Microsoft.DocumentDB/databaseAccounts/comos-db-no-sql/sqlRoleDefinitions/00000000-0000-0000-0000-000000000002