-
Notifications
You must be signed in to change notification settings - Fork 330
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 rm subscription info #280
Azure rm subscription info #280
Conversation
Create module for azure_rm_subscription_info
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the next two lines to the tests/sanity/ignore-2.10.txt file
plugins/modules/azure_rm_subscription_info.py validate-modules:required_if-requirements-unknown
plugins/modules/azure_rm_subscription_info.py validate-modules:required_if-unknown-key
Please modify pr-pipelines.yml file , add 'azure_rm_subscription'. |
Co-authored-by: Fred-sun <[email protected]>
Co-authored-by: Fred-sun <[email protected]>
I have added this entry. |
@Fred-sun Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete the spaces after 201, 202,203 and 204 lines!
Delete the space before 201,202,203 and 204 lines!
I do not fully understanding this request. I've removed the wrapping parenthesis since they are no longer necessary, and formatted it to what I think you want, but I'm not sure to what specific thing you're referring. |
In order to comply with the python code pep8 specification! Thank you! |
Add the following three lines to tests/sanity/ignore-2.11.txt
|
This has been done. |
Create module for azure_rm_subscription_info
SUMMARY
There does not exist an easy way to fetch Azure Subscription information from within Ansible. This PR creates a new azure_rm_subscription_info module that allows for querying of subscriptions based on id, name, or to fetch a list of all subscriptions.
ISSUE TYPE
COMPONENT NAME
azure_rm_subscription_info
ADDITIONAL INFORMATION
This new module being strictly informational is straightforward. However I had to add some conditional logic in azure_rm_common to suppress the passing of "subscription_id" to the SubscriptionClient instantiation. I tried to do it in a client agnostic manner, but I'm not aware of any others that also require it.
I have included some simplistic integration tests, however one of the files, 'aliases', I am unfamiliar with and will need some assistance with to validate that the contents that I copied from another is sufficient.