-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[QUERY]|Using shared images across tenants. #3819
Comments
Thank you for opening this issue! We are routing it to the appropriate team for follow up. |
I found the solution, need to use the RestClient
create virtual machine with shared image will work now. |
Out of curiosity @darc1 were you able to list resources that you have shared access to? or only launch the vm in this specific context. As in could the authenticated session allow for the listening of all image galleries you have access to: azure.imageGalleries().list() returning both your own gallery and the one that you were given shared access to Update: believe I answered my own question, you can list "shared access" resources if you authenticate against that tenant and subscription id |
@darc1 - Thanks for posting your question. It appears that you have resolved your own issue. Please let us know if there is anything else that you need. |
+1 for Darc1's workaround worked for me. Are there any plans to support a more official solution to the multi-tenant authentication or is this the intended long-term method? Also note, the token expires after an hour as the login is not done using service principal so I had to periodically refresh the token by running
|
We will attempt a more elegant solution via #6040. |
Java supports this (yaohao did the first implementation about 2 years ago Azure/azure-libraries-for-java#884)
alternatively this can be a list of There is a few bug fix and improvements afterwards, and same logic is in now in |
Query/Question
I want to use images between tenants using shared image galleries, as described in here using the java sdk, both there is no documentation as to how authentication to 2 different tenants can be done.
Why is this not a Bug or a feature Request?
This can be done using the azure cli, and rest api. I already have a shared image created and the app registration setup, I'm missing on how to deploy the image to a different tenant. These are the steps using the cli:
Setup (please complete the following information if applicable):
The text was updated successfully, but these errors were encountered: