-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
None
Description of problem:
Unable to use images in community galleries because of the SDK scoping to shared image galleries in your subscription or tenant.
How reproducible:
- All the time
Is this issue a regression from an earlier version:
- No
Steps to Reproduce:
1. Follow Launch Fedora 40 in Microsoft Azure - Fedora Magazine
2. Try to add an Image with the gallery URL
Actual behavior:
Foreman comes back with can't find UUID, this is because the Azure SDK
Expected behavior:
The image to be created
Business Impact / Additional info:
The core issue here is that you're trying to parse and validate a gallery://CommunityGalleries/... image reference using SDK methods that expect Azure-owned or customer-owned shared image galleries, not community galleries. Community galleries are a bit of a special case.
- The SDK methods like list_galleries, get_gallery_image, and list_gallery_image_versions are designed for shared image galleries in your subscription or tenant.
- Community galleries are public and not discoverable via those SDK calls — they don’t show up in list_galleries, and you can’t query them by name.
Fix is:
Instead of trying to resolve the gallery/image/version manually, you can treat the full gallery://... string as the image id in your VM creation logic. That means skipping the lookup logic entirely.