Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mikepfeiffer/dfe73350e1d51029571e1205da5e3512 to your computer and use it in GitHub Desktop.
Save mikepfeiffer/dfe73350e1d51029571e1205da5e3512 to your computer and use it in GitHub Desktop.
# set or increment the ForceUpdateTag using a string value
$PropertiesObject = @{
ForceUpdateTag = 3;
}
# update the extention on an existing VM
Set-AzureRmResource -PropertyObject $PropertiesObject `
-ResourceGroupName DemoVM `
-ResourceType Microsoft.Compute/virtualMachines/extensions `
-ResourceName DemoVM/CustomScriptExtension `
-ApiVersion 2018-10-01 -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment