How to enable programmatic access for a gallery image in Azure subscription?

394 views Asked by At

Iam trying to create a Ubuntu server lab using Azure Lab Services account and followed the below steps.

In screenshot 1, I have already enabled the Ubuntu Server 18.04 LTS in Lab Services – Marketplace images.

In screenshot 2, enabled marketplace image is listed in lab setup page

In screenshot 3, Error: The gallery image 'ubuntu server 18_04 lts' must be enabled for programmatic access in this subscription.

Can anyone help me how to resolve this error - "The gallery image 'ubuntu server 18_04 lts' must be enabled for programmatic access in this subscription."

Also, there is no option like "Want to deploy programmatically?" on the Ubuntu marketplace image page, attached the screenshot below.

Screenshot-4

3

There are 3 answers

1
daniestevez On

You can try these links:

1
daniestevez On

I checked myself and have the same problem with Ubuntu 18.04LTS and 16.04LTS. However it works with Ubuntu 19.04 or other Windows images, so it seems there are problems with those images in Azure

I'd suggest you raise a ticket from your subscription or contact them via twitter @AzureSupport. Meanwhile, You may use that Ubuntu 19.04 if it works as a workaround

0
bharathn-msft On

Thanks again Bhanu for surfacing the issue. Our Internal product team was already working on fixing the issue.

The issue should be resolved now, you should be able to create the VM's in the lab with Ubuntu 18.04LTS/16.04LTS images.