<div dir="ltr"><div>Sorry about the OT question but I've tried somewhere else that I most probably would get the answer but it not working. </div><br><div class="gmail_quote"><div dir="ltr">On Fri, Jun 8, 2018 at 10:36 PM Tong Sun wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">You can then also launch an image by the 'sku' shown there with:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">$ az vm create --name=testvm --resource-group=my-resource-group \<br>     --location=westus2 --image=Canonical:UbuntuServer:18.04:latest<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial">The ':latest' means to automatically select the newest available image with that sku.</div></div></div></div></div></blockquote><div><br></div><div>When I try to Create an Ubuntu VM using the above command, I get a "<font color="#cc0000">VMImage was not found</font>" error:</div><div><br></div></div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div class="gmail_extra"><div class="gmail_quote"><div><div>$ az vm create --name=myVM --resource-group=MyRG --image=Canonical:UbuntuServer:18.04:latest</div></div></div></div><div class="gmail_extra"><div class="gmail_quote"><div><div><span style="background-color:rgb(255,242,204)">Querying the image of 'Canonical:UbuntuServer:18.04:latest' failed for an error 'Artifact: VMImage was not found.'.</span> Configuring plan settings will be skipped,,,</div></div></div></div></blockquote><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>What went wrong? Thx!</div></div></div></div></blockquote><div> </div><div>Found it. It should be</div><div><br></div><div>az vm create --name=myVM --resource-group=MyRG --image=Canonical:UbuntuServer:<b>18.04-LTS</b>:latest ... <br></div></div></div></blockquote><div><br></div><div>My follow up question on top of above is, </div><div> <p style="margin:0px 0px 1em;padding:0px;border:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Any easy way to Create Azure VM with domainNames with Azure CLI?</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Seem to me the steps are rather complicated in<span> </span><a href="https://docs.microsoft.com/en-us/azure/virtual-machines/linux/create-cli-complete" rel="nofollow noreferrer" style="margin:0px;padding:0px;border:0px;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;font-family:inherit;font-size:15px;vertical-align:baseline;box-sizing:inherit;color:rgb(80,174,198);text-decoration:none">https://docs.microsoft.com/en-us/azure/virtual-machines/linux/create-cli-complete</a><span> </span>involving creating vnet, public-ip, network nsg, network nsg rule, network nic, etc, etc,  and <a href="https://docs.microsoft.com/en-us/azure/dns/dns-delegate-domain-azure-dns">https://docs.microsoft.com/en-us/azure/dns/dns-delegate-domain-azure-dns</a> just keeps talking about custom domainNames and private DNS zones.</p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">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 <a href="https://docs.microsoft.com/en-us/azure/cloud-shell/quickstart" rel="nofollow noreferrer" style="font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;margin:0px;padding:0px;border:0px;font-stretch:inherit;line-height:inherit;vertical-align:baseline;box-sizing:inherit;color:rgb(80,174,198);text-decoration-line:none">quickstart</a> gives 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 please? <br></p><p style="margin:0px 0px 1em;padding:0px;border:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:inherit;font-variant-east-asian:inherit;font-weight:400;font-stretch:inherit;line-height:inherit;font-family:Arial,"Helvetica Neue",Helvetica,sans-serif;font-size:15px;vertical-align:baseline;box-sizing:inherit;clear:both;color:rgb(36,39,41);letter-spacing:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial">Thanks!</p></div></div></div>