Deleting an Azure VM
Add the creds:
Add-AzureAccount
Need to stop the one we created yesterday first:
Stop-AzureVM -ServiceName richiescloud -Name richiesubuntu -Force
Successful. Now to delete it and its disks as well:
Remove-AzureVM -ServiceName richiescloud -Name richiesubuntu -DeleteVHD
Successful as well. Sweet.
Thats how to delete an azure vm.
Now we have scripted deploying and deleting vms in both azure and aws. Now need to figure out how to find out what capacity our clouds are using, so we can script automatic deployments based on how much capacity is available in our private cloud.
Richie
No comments:
Post a Comment