Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Exercise 03_02.003: Error "The requested identity has not been assigned to this resource" #57

Closed
jmservera opened this issue Feb 5, 2025 · 0 comments · Fixed by #61
Closed

Comments

@jmservera
Copy link
Member

In this part of the exercise:

You get:

The 'VectorizeMaintenanceRequests' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.VectorizeMaintenanceRequests'. Microsoft.Azure.WebJobs.Extensions.CosmosDB: Cannot create container information for MaintenanceRequests in database ContosoSuites with lease leases in database ContosoSuites : ManagedIdentityCredential authentication unavailable. The requested identity has not been assigned to this resource.

Because it is suggested to use a `local.settings.json´ with the original ManagedIdentity clientId:

"CosmosDBConnection__clientId": "[USER_ASSIGNED_MANAGED_IDENTITY_CLIENT_ID]",

But per the documentation, when running locally, the DefaultIdentity class will use the user provided credentials from az login to get a token to connect to CosmosDB, so these values should not be there.

@jmservera jmservera changed the title Exercice 03_02.003: Error "The requested identity has not been assigned to this resource" Exercise 03_02.003: Error "The requested identity has not been assigned to this resource" Feb 5, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant