Skip to content

[Feature]: Make GET Subscription REST Operation Optional in Connect-AzAccount #26827

Open
@rui-hi

Description

@rui-hi

Description of the new feature

Currently, the Connect-AzAccount command performs the Subscriptions - Get operation during the login process. This behavior occurs regardless of whether the -access-token parameter or the -subscription parameter is used.

Making the Subscriptions - Get operation mandatory has caused issues in the past. For instance, during an Azure Resource Graph (ARG) outage, the Subscriptions - Get operation failed, which in turn caused the Connect-AzAccount command to fail completely.
This resulted in business-critical PowerShell commands being unable to log in to Azure at all.

Therefore, I request that the Connect-AzAccount command be modified to create an authentication context object without requiring the success of the Subscriptions - Get operation. This change would allow subsequent commands to execute even if the Subscriptions - Get operation fails.

For my customer's case, the subsequent command after Connect-AzAccount was as follows:
https://learn.microsoft.com/en-us/powershell/module/az.datafactory/invoke-azdatafactoryv2pipeline?view=azps-13.0.0&viewFallbackFrom=azps-12.3.0

Proposed implementation details (optional)

No response

Metadata

Metadata

Assignees

Labels

AccountsIssues in Az.Accounts except authentication relatedcustomer-reportedfeature-requestThis issue requires a new behavior in the product in order be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions