Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

handle issue from azure-mgmt-resource 17.0.0 upgrade #893

Merged

Conversation

bmc-msft
Copy link
Contributor

In azure-mgmt-resource 17.0.0, the resources.get_by_id().properties is now a string, rather than a dict.

In practice, it's not a json string (uses single quotes rather than double quotes). This converts the quotes & uses json to decode it.

For example, in practice, the value is: "{'tenantId': 'GUID', 'principalId': 'GUID', 'clientId': 'GUID'}

@bmc-msft
Copy link
Contributor Author

For reference: Azure/azure-sdk-for-python#18763

@bmc-msft bmc-msft merged commit 811264e into microsoft:main May 14, 2021
@bmc-msft bmc-msft deleted the handle-azure-mgmt-resource-propertiy-change branch May 14, 2021 20:19
@ghost ghost locked as resolved and limited conversation to collaborators Jun 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants