Skip to content

Instantly share code, notes, and snippets.

@cinek810
Created October 19, 2017 20:09
Show Gist options
  • Save cinek810/043bdfea9b0abcec1a881fb99edf9028 to your computer and use it in GitHub Desktop.
Save cinek810/043bdfea9b0abcec1a881fb99edf9028 to your computer and use it in GitHub Desktop.
bash-3.2$az vm create -n TestVMAddedResources -g MarcinStolarek-Test --image Centos
bash-3.2$ az resource list -g MarcinStolarek-Test -o table | grep -i added
TestVMAddedResources_OsDisk_1_fecc20a7014d41769a074c21d4c27c92 MARCINSTOLAREK-TEST westeurope Microsoft.Compute/disks
TestVMAddedResources MarcinStolarek-Test westeurope Microsoft.Compute/virtualMachines
TestVMAddedResourcesVMNic MarcinStolarek-Test westeurope Microsoft.Network/networkInterfaces
TestVMAddedResourcesNSG MarcinStolarek-Test westeurope Microsoft.Network/networkSecurityGroups
TestVMAddedResourcesPublicIP MarcinStolarek-Test westeurope Microsoft.Network/publicIPAddresses
bash-3.2$ az vm delete -g MarcinStolarek-Test -n TestVMAddedResources
Are you sure you want to perform this operation? (y/n): y
{
"endTime": "2017-10-15T19:05:19.480766+00:00",
"error": null,
"name": "5e93c1e7-c1b7-49ee-a3dd-003c034e8f83",
"startTime": "2017-10-15T19:03:48.776787+00:00",
"status": "Succeeded"
}
bash-3.2$ az resource list -g MarcinStolarek-Test -o table | grep -i added
TestVMAddedResources_OsDisk_1_fecc20a7014d41769a074c21d4c27c92 MARCINSTOLAREK-TEST westeurope Microsoft.Compute/disks
TestVMAddedResourcesVMNic MarcinStolarek-Test westeurope Microsoft.Network/networkInterfaces
TestVMAddedResourcesNSG MarcinStolarek-Test westeurope Microsoft.Network/networkSecurityGroups
TestVMAddedResourcesPublicIP MarcinStolarek-Test westeurope Microsoft.Network/publicIPAddresses
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment