You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In azure.azcollection version 1.18 and above, the return value of azure.azcollection.azure_rm_resourcegroup_info has a properties.provisioning_state attribute, which is named differently from the previous versions of this collection, where it was called properties.provisioningState.
Previously up to azure azcollection version 1.18, the azure.azcollection.azure_rm_resourcegroup_info module would return the provisioning state of the resource group under the properties section with an attribute called provisioningState:
In collection version 1.18 and above, that property name seems to have changed to provisioning_state. Is this expected? Also, this properties section is not documented in the help for this module. Is it safe to rely on its behavior? Can properties be documented officially?
- name: Ensure that the resource group is availableazure.azcollection.azure_rm_resourcegroup_info:
name: "MYRG"register: resource_group_facts
- debug:
msg: "{{ resource_group_facts }}"
EXPECTED RESULTS
I was expecting the properties.provisioningState to be available even in 1.18
ACTUAL RESULTS
The attribute is now called properties.provisioning_state in 1.18
See above
The text was updated successfully, but these errors were encountered:
@arvindshmicrosoft Yes, the reason is that after msrest was deprecated, it was used to use the serialiser method that came with the sdk(#1245), and its return value was changed to underscore naming instead of hump naming. We will release a new version after migrate some package!
@arvindshmicrosoft Yes, the reason is that after msrest was deprecated, it was used to use the serialiser method that came with the sdk(#1245), and its return value was changed to underscore naming instead of hump naming. We will release a new version after migrate some package!
Thanks for the explanation! To be clear, are you saying that in the future, it will be changed back to provisioningState in Ansible?
SUMMARY
In azure.azcollection version 1.18 and above, the return value of azure.azcollection.azure_rm_resourcegroup_info has a
properties.provisioning_state
attribute, which is named differently from the previous versions of this collection, where it was calledproperties.provisioningState
.ISSUE TYPE
COMPONENT NAME
azure.azcollection.azure_rm_resourcegroup_info
ANSIBLE VERSION
COLLECTION VERSION
CONFIGURATION
OS / ENVIRONMENT
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
STEPS TO REPRODUCE
Previously up to azure azcollection version 1.18, the
azure.azcollection.azure_rm_resourcegroup_info
module would return the provisioning state of the resource group under theproperties
section with an attribute calledprovisioningState
:In collection version 1.18 and above, that property name seems to have changed to
provisioning_state
. Is this expected? Also, this properties section is not documented in the help for this module. Is it safe to rely on its behavior? Can properties be documented officially?EXPECTED RESULTS
I was expecting the properties.provisioningState to be available even in 1.18
ACTUAL RESULTS
The attribute is now called properties.provisioning_state in 1.18
See above
The text was updated successfully, but these errors were encountered: