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