Make sure that the guest user from the "bar" organization has appropriate permissions not only in the source organization ("foo") but also in the target organization ("bar"). The user might need permissions to read the gallery image and related resources in both organizations.
[MSDN Redirect] B2B - unable to share image using Shared Image Gallery
I am unable to share a image using Shared Image Gallery. I have created a image in the Shared Image Gallery in an organization foo. I want to share this image in organization bar.
Documentation I have followed:
https://learn.microsoft.com/en-us/azure/virtual-machines/linux/share-images-across-tenants
When I try to use this image in the organization bar, I get the following error
Subscription '' not found. Check the spelling and casing and try again.
Thinking the problem might be related the user in bar organization not being able to access the gallery in organization foo, I added the administrator of organization bar as a guest user in organization foo and gave him read access to the shared image gallery. I am still getting the error
Subscription '' not found. Check the spelling and casing and try again.
Please let me know if I need to do something more to debug the problem.