Skip to content
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

[BUG] Getting random error on initialization on Azure Container Instance Managed Identity: ManagedIdentityCredential authentication failed: 'R' is an invalid start of a value #32608

Closed
vikramdadwal opened this issue Nov 22, 2022 · 6 comments
Assignees
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@vikramdadwal
Copy link

Library name and version

Azure.Identity 1.5.0

Describe the bug

I have a logic App which creates a Azure Container Group on the fly and attached a Managed User Identity with the container Group. I have the following code written in the Program.cs:

image

Most of the time above logic works fine. But many times it fails with the following error:

Startup Exception occurred: ManagedIdentityCredential authentication failed: 'R' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.
See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/managedidentitycredential/troubleshoot

Expected behavior

Code should throw no error while initializing the App Configuration connection using managed identity.

Actual behavior

Throwing error at startup:

Startup Exception occurred: ManagedIdentityCredential authentication failed: 'R' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.
See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/managedidentitycredential/troubleshoot

Reproduction Steps

Its really very random. Hard to reproduce.

Environment

OS Type: Linux
Code running in container inside Azure Container Instances

@ghost ghost added needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. customer-reported Issues that are reported by GitHub users external to the Azure organization. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Nov 22, 2022
@azure-sdk azure-sdk added Azure.Identity Client This issue points to a problem in the data-plane of the library. needs-team-triage Workflow: This issue needs the team to triage. labels Nov 22, 2022
@ghost ghost removed the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label Nov 22, 2022
@vikramdadwal
Copy link
Author

@jsquire jsquire added needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team and removed needs-team-triage Workflow: This issue needs the team to triage. labels Nov 22, 2022
@jsquire
Copy link
Member

jsquire commented Nov 22, 2022

//cc: @schaabs

@jsquire
Copy link
Member

jsquire commented Nov 22, 2022

Thank you for your feedback. Tagging and routing to the team member best able to assist.

@christothes
Copy link
Member

This should have been addressed in #32272 and will be available in the next release of Azure.Identity.

@christothes christothes added the issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. label Dec 1, 2022
@ghost
Copy link

ghost commented Dec 1, 2022

Hi @vikramdadwal. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.

@ghost ghost removed the needs-team-attention Workflow: This issue needs attention from Azure service team or SDK team label Dec 1, 2022
@ghost
Copy link

ghost commented Dec 8, 2022

Hi @vikramdadwal, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.

@ghost ghost closed this as completed Dec 8, 2022
@github-actions github-actions bot locked and limited conversation to collaborators Mar 23, 2023
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library. customer-reported Issues that are reported by GitHub users external to the Azure organization. issue-addressed Workflow: The Azure SDK team believes it to be addressed and ready to close. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

4 participants