I have a Linux VM I made a VHD of and uploaded to azure.
If I use the GUI to create the VM, select disk, and state the vm agent is already loaded checkbox, the VM is created and works fine.
However I need to create this VM using powershell. The problem is when I make it with powershell, it says "running", but I can't SSH to it or access the web server on it. Something is wrong. Again, it works fine if I create it in the GUI, but not if I create it in powershell. The endpoints are ok.
The only reason I need to use the powershell is to assign a reserved IP.
Below is my powershell script.
Windows: PS C:\> New-AzureVMConfig -name "myvm" -InstanceSize Small -DiskName "mydisk" | Add-AzureProvisioning
Config -linux -DisableGuestAgent | New-AzureVM -ServiceName "myvm" -ReservedIPName "ip-myip" -Location "West
US"