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

Any plans to remove Set-AzContext, like Set-AzRecoveryServicesVaultContext? #26506

Open
mcdonamw opened this issue Oct 28, 2024 · 2 comments
Open
Labels
customer-reported needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that

Comments

@mcdonamw
Copy link

mcdonamw commented Oct 28, 2024

Description

I've just learned that Set-AzRecoveryServicesVaultContext is being deprecated and we can simply specify the -VaultId in the relevant commands, which is great. Are there any plans to do the same with Set-AzContext?

@mcdonamw mcdonamw added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Oct 28, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added customer-reported and removed needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Oct 28, 2024
@isra-fel
Copy link
Member

Thanks for the feedback! AzContext is more complex than VaultContext as it contains information about not just subscription, but also tenant, account, etc. That's why it's better wrapped into a standalone concept.

That said, we have -Subscription parameter covers part of the functionality of AzContext. It's supported by most cmdlets and allows you to specify a subscription ID other than the one in the current context.

@isra-fel isra-fel added the needs-author-feedback More information is needed from author to address the issue. label Oct 31, 2024
@mcdonamw
Copy link
Author

mcdonamw commented Oct 31, 2024

Do all commands support the -Subscription parameter?

Also on the same line, any thoughts on the fact that while Get-AzRecoveryServicesBackupContainer supports -vault and no longer requires Set-AzRecoveryServicesVaultContext, but Get-AzRecoveryServicesAsrProtectionContainer requires -fabric, which requires Get-AzRecoveryServicesAsrFabric, and that still requires Set-AzRecoveryServicesVaultContext. I assume this is a work in progress prior to the sunset of the set context cmd?

@microsoft-github-policy-service microsoft-github-policy-service bot 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 Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Projects
None yet
Development

No branches or pull requests

2 participants