MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.03k stars 21.05k forks source link

Invalid examples for "Migrate an application to use passwordless connections with Azure Cosmos DB for NoSQL" #122474

Open lucassouza1 opened 2 weeks ago

lucassouza1 commented 2 weeks ago

In the "Create the custom role" section, the examples code is az cosmosdb sql role definition create, not az role definition create as stated in the description and afterwards in the "Assign roles to the managed identity" section. The example in that section, by the way:

az role assignment create \
    --assignee "<your-managed-identity-name>" \
    --role "PasswordlessReadWrite" \
    --scope "<cosmosdb-resource-id>"

doesn't work as it is trying to assign a CosmosDB SQL Role as an Azure Role.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

TPavanBalaji commented 2 weeks ago

@lucassouza1 Thanks for your feedback! We will investigate and update as appropriate.

TPavanBalaji commented 2 weeks ago

@lucassouza1 Thank you for bringing this to our attention. I've delegated this to content author, who will review it and offer their insightful opinions.