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

Updated Find-AzureRmResource cmdlet with Get-AzureRmResource cmdlet #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

amoghnatu
Copy link

Since Find-AzureRmResource is now removed, Updated the runbook to use Get-AzureRmResource instead.

Since Find-AzureRmResource is now removed, Updated it to use Get-AzureRmResource instead
Added an if condition for checking the current version of AzureRM.Resources Module. This is required in cases where an automation account is created without specifying any specific module versions, then default module version of 1.0.3 is imported. In this case, if this runbook is triggered with Get-AzureRmResource cmdlet, then it fails with an error "Parameter set cannot be resolved using the specified named parameters.". Adding this check fixes this issue and updates the modules
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.

1 participant