Set Resource Group Tags On Child Resources

This Powershell Runbook iterates through the resource groups in a Subscription and copy tags to his child resources.

863 times
Add to favorites
Windows Azure
E-mail Twitter Digg Facebook
Sign in to ask a question

  • Issue with Error when running in Azure Automation
    2 Posts | Last post January 03, 2019
    • Hi 
      When I run the following script in powershell it executes with no issues.  But if you try to run in Azure Automation the following error occurs
      Get-AzureRmResource : Parameter set cannot be resolved using the specified named parameters.
      At line:13 char:25
      + ... ourceList = Get-AzureRmResource -ResourceGroupName $resourceGroup.Res ...
      +                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          + CategoryInfo          : InvalidArgument: (:) [Get-AzureRmResource], ParameterBindingException
          + FullyQualifiedErrorId : 
    • I had the same issue at first but got it working after I updated Azure Automation modules.