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

Can we access resources from multiple subscriptions using azure cli? #23743

Closed
ranjeetkpGit opened this issue Aug 31, 2022 · 7 comments
Closed
Assignees
Labels
Auto-Assign Auto assign by bot Container Instances az container ContainerApp customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. needs-author-feedback More information is needed from author to address the issue. needs-team-attention This issue needs attention from Azure service team or SDK team no-recent-activity There has been no recent activity on this issue.

Comments

@ranjeetkpGit
Copy link

Hi,
I am running following azure cli command on a service connection (Azure Devops).
az containerapp up --name 'subscription1container'
--image 'subscription2image'

It works fine when all the resources belong to same subscription. (Default behavior)
Our requirement is to access image from different subscription. Is there any way we can write cross/mix subscriptions
cli commands which can access resources from other subscriptions too?

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Auto-Assign Auto assign by bot Container Instances az container CXP Attention This issue is handled by CXP team. ContainerApp labels Aug 31, 2022
@ynden
Copy link
Contributor

ynden commented Aug 31, 2022

Hey @ranjeetkpGit,

You can use the --subscription NAME_OR_ID global parameter. In your case, it would look something like:

az containerapp up \
--name 'subscription1container' \
--image 'subscription2image' \
--subscription NAME_OR_ID

@SaurabhSharma-MSFT SaurabhSharma-MSFT self-assigned this Aug 31, 2022
@yonzhan
Copy link
Collaborator

yonzhan commented Aug 31, 2022

route to CXP team

@SaurabhSharma-MSFT
Copy link
Member

@ranjeetkpGit Did you look into @ynden's suggestion ?

@SaurabhSharma-MSFT SaurabhSharma-MSFT added the needs-author-feedback More information is needed from author to address the issue. label Sep 7, 2022
@ranjeetkpGit
Copy link
Author

@ranjeetkpGit Did you look into @ynden's suggestion ?

Yes but no success.

@ghost ghost added needs-team-attention This issue needs attention from Azure service team or SDK team and removed needs-author-feedback More information is needed from author to address the issue. labels Sep 7, 2022
@ynden
Copy link
Contributor

ynden commented Sep 7, 2022

@ranjeetkpGit, what kind of error do you get?
Also do you run the command as a user or service principal?

@SaurabhSharma-MSFT SaurabhSharma-MSFT added the needs-author-feedback More information is needed from author to address the issue. label Sep 12, 2022
@SaurabhSharma-MSFT
Copy link
Member

@ranjeetkpGit Please let us know the error you are getting so that we can help you.

@ghost ghost added the no-recent-activity There has been no recent activity on this issue. label Sep 19, 2022
@ghost
Copy link

ghost commented Sep 19, 2022

Hi, we're sending this friendly reminder because we haven't heard back from you in a while. We need more information about this issue to help address it. Please be sure to give us your input within the next 7 days. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Assign Auto assign by bot Container Instances az container ContainerApp customer-reported Issues that are reported by GitHub users external to the Azure organization. CXP Attention This issue is handled by CXP team. needs-author-feedback More information is needed from author to address the issue. needs-team-attention This issue needs attention from Azure service team or SDK team no-recent-activity There has been no recent activity on this issue.
Projects
None yet
Development

No branches or pull requests

4 participants