[OT] Create Azure VM with sub domainNames
uddaa.xpt at spamgourmet.com
Sat Jun 9 12:27:24 UTC 2018
Sorry about the OT question but I've tried somewhere else that I most
probably would get the answer but it not working.
On Fri, Jun 8, 2018 at 10:36 PM Tong Sun wrote:
>> You can then also launch an image by the 'sku' shown there with:
>>> $ az vm create --name=testvm --resource-group=my-resource-group \
>>> --location=westus2 --image=Canonical:UbuntuServer:18.04:latest
>>> The ':latest' means to automatically select the newest available image
>>> with that sku.
>> When I try to Create an Ubuntu VM using the above command, I get a "VMImage
>> was not found" error:
>> $ az vm create --name=myVM --resource-group=MyRG
>> Querying the image of 'Canonical:UbuntuServer:18.04:latest' failed for an
>> error 'Artifact: VMImage was not found.'. Configuring plan settings will
>> be skipped,,,
>> What went wrong? Thx!
> Found it. It should be
> az vm create --name=myVM --resource-group=MyRG
> --image=Canonical:UbuntuServer:*18.04-LTS*:latest ...
My follow up question on top of above is,
Any easy way to Create Azure VM with domainNames with Azure CLI?
Seem to me the steps are rather complicated in
involving creating vnet, public-ip, network nsg, network nsg rule, network
nic, etc, etc, and
just keeps talking about custom domainNames and private DNS zones.
All I want is to give my created VM a public accessible sub domainName
under Azure, so that I can access it with domainName not via IP that
me. It used to be that, a while back when I was creating VM via the web
portal, if I give my VM a name, then Azure creats a subdomain under its own
for me. Now, with Azure CLI, what's the most easy way to achieve that
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Ubuntu-devel-discuss