Monday, November 5, 2018

AZURE CLI!

I recommend downloading the powershell module locally, I have not been able to upload a blob using the cloud cli... but then again it was in bash.

Some helpful links:
https://docs.microsoft.com/en-us/azure/virtual-machines/linux/upload-vhd#option-1-upload-a-vhd

https://shell.azure.com/?prompt=True

https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest


login
  az storage blob upload -f D:\vbox\debian\debian_copy.vhd -c mydisks -n debian.vhd
  az disk create -g myResourceGroup -n debianManagedDisk --source debian.vhd
  az storage blob url -c mydisks -n debian.vhd
  az disk create -g myResourceGroup -n debianManagedDisk --source https://mystorageaccount70722.blob.core.windows...
 az vm create -g MyResourceGroup -n debianVm --attach-os-disk debianManagedDisk --os-type linux
az vm list
az vm start -g MyResourceGroup -n debianVM
az vm show -g MyResourceGroup -n debianVM



First attemp appears to be a failure..., in fact, I might have bricked my debian install.
Boot, first guess, is account was reset somehow.
Second, is I did Did not enable DNS?? and perhaps, VM tools do need to be uninstalled first???