Skip to content

Conversation

@amoghnatu
Copy link

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

amoghnatu added 2 commits May 30, 2018 15:50
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