Quantcast
Channel: Azure Virtual Machines forum
Viewing all articles
Browse latest Browse all 12545

Linux VM Created with web site/GUI via uploaded disk Works OK. Does not work when created via powershell.

$
0
0

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"


Viewing all articles
Browse latest Browse all 12545

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>