Difference between revisions of "Azure by yaml"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
https://superuser.com/questions/1598479/how-do-i-check-if-a-vm-already-exists-via-azure-cli | https://superuser.com/questions/1598479/how-do-i-check-if-a-vm-already-exists-via-azure-cli | ||
+ | |||
+ | |||
+ | ``` | ||
+ | az vm list -g myRG -o tsv --query "[?name=='example-name'].name" | ||
+ | ``` |
Latest revision as of 00:04, 16 February 2022
https://docs.microsoft.com/en-us/azure/developer/python/azure-sdk-example-virtual-machines?tabs=cmd
azure python sdk https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/resources/azure-mgmt-resource/tests/test_mgmt_resource.py
https://superuser.com/questions/1598479/how-do-i-check-if-a-vm-already-exists-via-azure-cli
az vm list -g myRG -o tsv --query "[?name=='example-name'].name"