Created
April 26, 2020 11:15
-
-
Save asears/1256e6c6514cf3466f957565776b8b2f to your computer and use it in GitHub Desktop.
Get list of offers using Azure Cli / API
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
| cat pubs.txt | tr -d '\r' | while read line; do az vm image list-offers --location eastus2 --publisher ${line} --query '[].id' --output table; done > offers.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment