Last active
December 11, 2019 20:15
-
-
Save mikepfeiffer/dfe73350e1d51029571e1205da5e3512 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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