Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Poor mans Azure IaaS templating-Create
# 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