Friday, September 17, 2021

Azure CLI Commands

 az disk list --query '[?managedBy==`null`].[id]' -o tsv -g CORA-AI 


id=/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/KKAzureVM_OsDisk_1_c6c86c4afbda46a39cf185edb90a0321

az disk delete --ids $id --yes



azureuser@Azure:~$ az disk list --query '[?managedBy==`null`].[id]' -o tsv -g CORA-AI

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/AA-newmic_DataDisk_0

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/aatestimage_OsDisk_1_c013dd18dc8b4d28aa878bd88698f34e

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/FDA-VEA_DataDisk_0

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/FDA-VEA_DATASnapshot_Disk

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/KKAzureVM_OsDisk_1_c6c86c4afbda46a39cf185edb90a0321

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/Kube-CLI_OsDisk_1_00839c3a446f43558dad22aa393596f4

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/microservice01_DataDisk_0

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/microservice01_OsDisk_1_295a72525a0d45039015716b7a0a99f2

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/microservice02_DataDisk_0

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/microservice02_OsDisk_1_eebe8ea7bf8244dcbb3c2ab694eae3bc

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/microservice03_disk1_a738d5ebbe714e199f2fd842aef7b64f

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/microservice03_disk2_b06cfb89ae074e7797a3e998e2d77137

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/NLU-ND40_DataDisk_0

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/Test1_DataDisk_0

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/Test1_OsDisk_1_b8d6dfe9a8444c34b09318e0e23d7026

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/testingimage_disk1_7a66ad9c841e48e99b20f88034aa496c

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/testingimage_disk2_76420fad83ce4cb494bb687f688b92ce

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/vmss-atul-testing_OsDisk_1_a533769897bc4681ba376ca5b4894433

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/Zenrise-App-Server_disk1_2a8176beb7084315ba9a0151534fd2c8

/subscriptions/97a9588b-973c-4bae-a57c-91a9f39b1b4e/resourceGroups/CORA-AI/providers/Microsoft.Compute/disks/zenrise-data-disk

No comments:

Post a Comment

Azure - Pipeline - Add Approver for Stage

https://learn.microsoft.com/en-us/azure/devops/pipelines/process/approvals?view=azure-devops&tabs=check-pass