After creating Azure compute gallery and making it public unable to find images in it via it's Community gallery name

Maksym Perehinets 0 Reputation points
2024-09-11T12:34:02.3166667+00:00

Hi, I have created Azure compute gallery with Community sharing type, via both Azure portal and Azure cli, by following official documentation, but was unable to list VM images that I have created in it from VM in azure community images both via image name and by Community gallery name.

Also, I have tried it out with cli, and after it was created and set to by publicly shared I used the following command to check whether it is working az sig list-community -l global and it returns
[] nothing more but when I do az sig list --resource-group myResourceGrup it returns

[
  {
    "id": "/subscriptions/********-****-****-****-************/resourceGroups/fake_name/providers/Microsoft.Compute/galleries/fake_name",
    "identifier": {
      "uniqueName": "********-****-****-****-************-fake_name"
    },
    "location": "eastus",
    "name": "fake_name",
    "provisioningState": "Succeeded",
    "resourceGroup": "fake_name",
    "sharingProfile": {
      "communityGalleryInfo": {
        "communityGalleryEnabled": true,
        "eula": "https://fake_name",
        "publicNamePrefix": "fake_name",
        "publicNames": [
          "fake_name-********-****-****-****-************"
        ],
        "publisherContact": "fake_name@fake_name.com",
        "publisherUri": "https://www.fake_name.com"
      },
      "permissions": "Community"
    },
    "tags": {},
    "type": "Microsoft.Compute/galleries"
  },
  {
    "id": "/subscriptions/********-****-****-****-************/resourceGroups/fake_name/providers/Microsoft.Compute/galleries/fake_name",
    "identifier": {
      "uniqueName": "********-****-****-****-************-fake_name"
    },
    "location": "eastus",
    "name": "fake_name",
    "provisioningState": "Succeeded",
    "resourceGroup": "fake_name",
    "sharingProfile": {
      "communityGalleryInfo": {
        "communityGalleryEnabled": true,
        "eula": "https://fake_name",
        "publicNamePrefix": "fake_name",
        "publicNames": [
          "fake_name-********-****-****-****-************"
        ],
        "publisherContact": "fake_name@fake_name.com",
        "publisherUri": "www.fake_name.com"
      },
      "permissions": "Community"
    },
    "tags": {},
    "type": "Microsoft.Compute/galleries"
  }
]

And there is explicitly stated that they are Community galleries and not public. Also, I have set it up the same way, and it was working a week ago before credits on my subscription run out then that gallery changed to private and had to create new one and this is when this issue occurred. Moreover, I was using Community gallery this January when it was on preview and everything was working fine.

It is not a problem with subscription because I tested it out on pay as you go one, and there was the same issue.

Here are the commands I have used while creating it:

az sig create --gallery-name $galleryName --permissions Community \
--resource-group $resourceGroup --publisher-uri $publisherUri     \
--publisher-email $publisherEmail --public-name-prefix $prefix

az sig share enable-community --gallery-name $galleryName --resource-group $resourceGroup
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,994 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
830 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Srinud 2,610 Reputation points Microsoft Vendor
    2024-09-11T17:44:35.82+00:00

    Hi Maksym Perehinets,

    Thank you for reaching out to us on the Microsoft Q&A forum.
    Could you please provide the following details:
    Is the image you are trying to access from the Azure Compute Gallery is in private or public mode?

    After running out of subscription credentials, did you create a new account with a new subscription or renew the plan of the old subscription?

    If you have created a new Azure account, it is mandatory to include the --subscription-ids argument in the Azure CLI command az sig share enable-community --gallery-name $galleryName --resource-group $resourceGroup

    If this information is helpful, we would appreciate it if you could click the Accept Answer & Upvote on this post.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.