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.

 
 
 
 
 
(0)
680 times
Add to favorites
Windows Azure
6/14/2018
E-mail Twitter del.icio.us 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 : 
      
      AmbiguousParameterSet,Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation.GetAzureResourceCmdlet
      
      
    • I had the same issue at first but got it working after I updated Azure Automation modules.