Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Community Gallery image ID in azure_rm_virtualmachine and azure_rm_virtualmachinescaleset #1757

Open
arvindshmicrosoft opened this issue Nov 13, 2024 · 1 comment · May be fixed by #1759
Labels
has_pr PR fixes have been made medium_priority Medium priority new_feature New feature requirments

Comments

@arvindshmicrosoft
Copy link

SUMMARY

Currently neither azure_rm_virtualmachine nor azure_rm_virtualmachinescaleset support specifying the community gallery image ID in the image.id parameter. For example, if we attempt to create a Fedora 40 image using the Community gallery image ID /CommunityGalleries/Fedora-5e266ba4-2250-406d-adad-5d73860d958f/Images/Fedora-Cloud-40-x64/Versions/latest, these Ansible modules error out:

Error creating or updating virtual machine myVM - (LinkedInvalidPropertyId) Property id '/CommunityGalleries/fedora-5e266ba4-2250-406d-adad-5d73860d958f/Images/Fedora-Cloud-40-x64/Versions/latest' at path 'properties.storageProfile.imageReference.id' is invalid.
Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'.\nCode: LinkedInvalidPropertyId\nMessage: Property id '/CommunityGalleries/fedora-5e266ba4-2250-406d-adad-5d73860d958f/Images/Fedora-Cloud-40-x64/Versions/latest' at path 'properties.storageProfile.imageReference.id' is invalid.
Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'.
ISSUE TYPE
  • Feature Idea
COMPONENT NAME

azure_rm_virtualmachine and azure_rm_virtualmachinescaleset

ADDITIONAL INFORMATION

Fedora images are conveniently available for Azure by using the Community Image Gallery. In Python SDK, there is already support in the ImageReference for community_gallery_image_id. If Ansible provides a hook into using these Community gallery images, it would greatly simplify the provisioning and usage of Fedora and other images hosted in the Community Image Gallery.

@Fred-sun Fred-sun added the new_feature New feature requirments label Nov 15, 2024
@Fred-sun Fred-sun linked a pull request Nov 15, 2024 that will close this issue
@Fred-sun
Copy link
Collaborator

Added in #1759

@Fred-sun Fred-sun added has_pr PR fixes have been made medium_priority Medium priority labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has_pr PR fixes have been made medium_priority Medium priority new_feature New feature requirments
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants