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

Fix document for using SystemAssigned managed identity #764

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

jiasli
Copy link
Contributor

@jiasli jiasli commented Nov 1, 2024

No description provided.

@jiasli jiasli requested a review from a team as a code owner November 1, 2024 10:04
@@ -223,7 +223,7 @@ def __init__(
you may use an environment variable (such as MY_MANAGED_IDENTITY_CONFIG)
to store a json blob like
``{"ManagedIdentityIdType": "ClientId", "Id": "foo"}`` or
``{"ManagedIdentityIdType": "SystemAssignedManagedIdentity", "Id": null})``.
``{"ManagedIdentityIdType": "SystemAssigned", "Id": null}``.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The detection logic is to compare ManagedIdentityIdType's value with "SystemAssigned":

and unknown.get(cls.ID_TYPE) == cls.SYSTEM_ASSIGNED)

Using "SystemAssignedManagedIdentity" will trigger error:

raise ManagedIdentityError(
f"Incorrect managed_identity: {managed_identity}")

@@ -223,7 +223,7 @@ def __init__(
you may use an environment variable (such as MY_MANAGED_IDENTITY_CONFIG)
to store a json blob like
``{"ManagedIdentityIdType": "ClientId", "Id": "foo"}`` or
``{"ManagedIdentityIdType": "SystemAssignedManagedIdentity", "Id": null})``.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ) symbol is not needed.

@rayluo rayluo merged commit 1d85e8a into AzureAD:dev Nov 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants