Integrating Azure Automation with Event grid

This sample Automation runbook integrates with Azure event grid subscriptions to get notified when a write command is performed against an Azure VM. The runbook adds a cost tag to the VM if it doesn't exist. It also sends an optional notification to a Microsoft Teams channel.

 
 
 
 
 
4.5 Star
(2)
1,503 times
Add to favorites
Windows Azure
11/28/2017
E-mail Twitter del.icio.us Digg Facebook
Sign in to ask a question


  • Invalid Syntax on line 74 "Update-AzureRmVM : A parameter cannot be found that matches parameter name 'Tags'."
    1 Posts | Last post July 06, 2018
    • I got the below error and was able to republish with "-Tag" instead of "-Tags", everything seemed to work after the update. 
      
      Update-AzureRmVM : A parameter cannot be found that matches parameter name 'Tags'.
      At line:74 char:70
      + ... e-AzureRmVM -ResourceGroupName $VMResourceGroup -VM $VM -Tags $Tag |  ...
      +                                                             ~~~~~
          + CategoryInfo          : InvalidArgument: (:) [Update-AzureRmVM], ParameterBindingException
          + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Azure.Commands.Compute.UpdateAzureVMCommand