-
Notifications
You must be signed in to change notification settings - Fork 840
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authorization fails for CosmosDB created over the portal #662
Comments
@christian-vorhemus Thanks for your query. To get the created CosmosDB resource over the portal working, you can go to "Firewall and virtual networks" and check "Allow access from" to "All networks". Let us know if this works. |
Indeed, this was the issue! Thanks for the clarification, can be closed! |
We have the same problem, we can't access cosmos DB from the portal, although we have "Allow access from Azure Portal" already selected. I've whitelisted Germany's IP address (51.4.229.218) since its missing from the default IPs added when this checkbox is selected. But still that's failing. We only need access from our VNet and therefore selecting "Allow access from All networks" is not an option. How do we proceed? In fact, why is this failing? {"description":"Unable to proceed with the request. Please check the authorization claims to ensure the required permissions to process the request.\r\nActivityId: 48169ef17, Microsoft.Azure.Documents.Common/2.4.0.0","code":403,"body":{"code":"Forbidden","message":"Unable to proceed with the request. Please check the authorization claims to ensure the required permissions to process the request.\r\nActivityId: 483ca29ef17, Microsoft.Azure.Documents.Common/2.4.0.0"},"headers":{"content-type":"application/json","content-location":"":0}, |
Same error. This happens right after CreateContainerIfNotExistsAsync() and I try to container.UpsertItemAsync() a document: Works fine after a while. Is there a timeout after creating a container until I can insert records? Can I query that container? Firewall and all is configured correctly and it does work after a while. |
I had the same issue. Whitelisted my IP and also tried changing to "Allow access from All networks". Turns out, there is some form of a timeout/delay until the changes are propagated. I had to wait like 15 minutes for my changes to take effect. |
Describe the bug
I cannot connect to my CosmosDB with the .NET SDK.
To Reproduce
I created a new CosmosDB resource over the portal with standard settings in West Europe.
Then, I run the following snippet:
Second line throws an exception (see below).
Expected behavior
A database should be created without errors.
Actual behavior
The exception "Unable to proceed with the request. Please check the authorization claims to ensure the required permissions to process the request" is thrown. (Note: This happens with all methods (CreateDocumentQuery, DeleteDocumentAsync, etc.)
Environment summary
SDK Version: Microsoft.Azure.DocumentDB.Core 2.2.1
OS Version: Windows 10.0.17763.253
Additional context
Potentially, this is not a bug of the .NET SDK itself. I noticed, when I create a new CosmosDB resource with the Azure CLI...
az cosmosdb create --name "mycosmos" -g "mygroup"
...everything works.
The text was updated successfully, but these errors were encountered: