-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
azure-mgmt-resource returning properties as str instead of an obj #18763
Comments
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @stephbaron. Issue Details
Describe the bug Many methods in azure-mgmt-resource no longer provide the results as a nested object, rather the results are provided as a It appears that this change was made in #18686. To Reproduce resource = ResourceManagementClient(...).resources.get_by_id(resource_id, "2018-11-30")
resource.properties['principalId'] Expected behavior Previously, this returned the dictionary with the keys tenantId, principalId, and clientId. Now, this returns a string with the value Note, because this string uses single quotes, it can't be decoded as json, like many other resources from Azure.
|
Thank you @bmc-msft for your feedback and we will check it soon. |
new package has been published : https://pypi.org/project/azure-mgmt-resource/18.0.0/ |
@msyyc I can confirm that 18.0.0 fixes this issue. |
[Go] Add batch tag 04/21/22 (Azure#18763) * [Go] Add batch tag 04/21/22
[Go] Add batch tag 04/21/22 (Azure#18763) * [Go] Add batch tag 04/21/22
[Go] Add batch tag 04/21/22 (Azure#18763) * [Go] Add batch tag 04/21/22
Describe the bug
Many methods in azure-mgmt-resource no longer provide the results as a nested object, rather the results are provided as a
str
. This was not included in the breaking change documentation in this release.It appears that this change was made in #18686.
To Reproduce
Expected behavior
Previously, this returned the dictionary with the keys tenantId, principalId, and clientId.
Now, this returns a string with the value
{'tenantId': 'GUID', 'principalId': 'GUID', 'clientId': 'GUID'}
.Note, because this string uses single quotes, it can't be decoded as json, like many other resources from Azure.
The text was updated successfully, but these errors were encountered: