Skip to content

Instantly share code, notes, and snippets.

@Ercenk
Last active August 29, 2015 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ercenk/1e6bc38051ed2e20c97b to your computer and use it in GitHub Desktop.
Save Ercenk/1e6bc38051ed2e20c97b to your computer and use it in GitHub Desktop.
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