git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

About the Ubuntu Server in the Azure virtual machine gallery


On Fri, Jun 8, 2018 at 10:30 PM Tong Sun <uddaa.xpt at spamgourmet.com> wrote:

>
> Thanks Scott, I gave it a try but it is not working for me.
>
> On Tue, May 29, 2018 at 10:28 AM, Scott Moser  wrote:
>
>> On Tue, May 29, 2018 at 10:06 AM, Dimitri John Ledkov wrote:
>>
>>>
>>> On 27 May 2018 at 20:52, Tong Sun wrote:
>>> > Hi,
>>> >
>>> > I see that in the Azure virtual machine gallery, it lists:
>>> >
>>> > Ubuntu Server
>>> >
>>> https://azuremarketplace.microsoft.com/en-us/marketplace/apps/Canonical.UbuntuServer?tab=Overview
>>> > Canonical
>>> >
>>> > Does it means that Canonical is responsible for creating such Azure
>>> virtual
>>> > machines, or just this Ubuntu Server is copyrighted to Canonical?
>>> >
>>> > Basically I want to understand why the latest Ubuntu 18.04 LTS is
>>> still not
>>> > available from the Azure virtual machine gallery yet, as it's been
>>> available
>>> > for quite a while now. Thx.
>>> >
>>>
>>
>> It may not show up in the marketplace, but you can find it via 'filter'
>> when launching
>> a virtual machine.  Search for 'Ubuntu 18.04' and you will see the image
>> in the
>> results.  In order to get an official Canonical made image, make sure the
>> 'Publisher'
>> is 'Canonical'.
>>
>> The Ubuntu Project and Canonical build and publish these images in
>>> azure marketplace.
>>>
>>> Ubuntu 18.04 LTS is available, and you can find and launch it using
>>> e.g. the Azure CLI.
>>>
>>
>> With the 'az' cli tool (https://docs.microsoft.com/en-us/cli/azure)
>> you can list images available by 'Canonical' with:
>>
>>  $ az vm image list --all --publisher=Canonical
>>  ...
>>
>
> Yes, I do see that Ubuntu 18.04 LTS is available, first of all:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *$ az vm image list --all --publisher=Canonical --sku=18.04-LTS[  {
>    "offer": "UbuntuServer",    "publisher": "Canonical",    "sku":
> "18.04-LTS",    "urn": "Canonical:UbuntuServer:18.04-LTS:18.04.201804262",
>    "version": "18.04.201804262"  },  {    "offer": "UbuntuServer",
>    "publisher": "Canonical",    "sku": "18.04-LTS",    "urn":
> "Canonical:UbuntuServer:18.04-LTS:18.04.201805170",    "version":
> "18.04.201805170"  },  {    "offer": "UbuntuServer",    "publisher":
> "Canonical",    "sku": "18.04-LTS",    "urn":
> "Canonical:UbuntuServer:18.04-LTS:18.04.201805220",    "version":
> "18.04.201805220"  }]*
> However,
>
>
>> 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
> --image=Canonical:UbuntuServer:18.04:latest
> 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 ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-devel-discuss/attachments/20180608/aea5564c/attachment.html>