Last active
August 29, 2015 14:20
-
-
Save Ercenk/1e6bc38051ed2e20c97b to your computer and use it in GitHub Desktop.
Poor mans Azure IaaS templating-Create
This file contains hidden or 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
# Filter below can be quite complex, below is an example | |
$json = ConvertTo-Json (Get-AzureVM | Where-Object {$_.Name -like "pa*" -and $_.ServiceName -notlike "*dr"}) -Depth 10 | |
$outputFile = "d:\somefolder\somefile" | |
Out-File -FilePath $outputFile -InputObject $json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment