Skip to content

Commit

Permalink
Fixed the Managed Identity Parameter Set Description of AccountId in …
Browse files Browse the repository at this point in the history
…Connect-AzAccounts (#26945)

* Fixed the Managed Identity parameter set description of AccountId in Connect-AzAccount

* Revise the help message
  • Loading branch information
msJinLei authored Dec 30, 2024
1 parent d5c35db commit 04642eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public class ConnectAzureRmAccountCommand : AzureContextModificationCmdlet, IMod
[Parameter(ParameterSetName = AccessTokenParameterSet,
Mandatory = true, HelpMessage = "Account Id for access token")]
[Parameter(ParameterSetName = ManagedServiceParameterSet,
Mandatory = false, HelpMessage = "Account Id for managed service. Can be a managed service resource Id, or the associated client id. To use the SystemAssigned identity, leave this field blank.")]
Mandatory = false, HelpMessage = "Client id of UserAssigned identity. To use the SystemAssigned identity, leave this field blank.")]
[ValidateNotNullOrEmpty]
public string AccountId { get; set; }

Expand Down
1 change: 1 addition & 0 deletions src/Accounts/Accounts/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->

## Upcoming Release
* Fixed the Managed Identity parameter set description of `AccountId` in `Connect-AzAccount`.
* Made the breaking change warnings about `Get-AzAccessToken` not appear when `-AsSecureString` is used.
* Fixed an issue that cmdlets may report warnings of "KeyNotFoundException". #26624
* Fixed an issue that the `-AppliesTo` parameter of `Update-AzConfig` does not work as expected.
Expand Down
5 changes: 2 additions & 3 deletions src/Accounts/Accounts/help/Connect-AzAccount.md
Original file line number Diff line number Diff line change
Expand Up @@ -317,9 +317,8 @@ Accept wildcard characters: False
### -AccountId
Account Id / User Id / User Name to login with in **Default (UserWithSubscriptionId)** parameter set; Account ID for access token in **AccessToken** parameter set; Account ID for managed service in
**ManagedService** parameter set. Can be a managed service resource ID, or the associated client ID.
To use the system assigned identity, leave this field blank.
Id for Account, associated with your access token.
In **User** authentication flows, the AccountId is user name / user id; In **AccessToken** flow, it is the AccountId for the access token; In **ManagedService** flow, it is the associated client Id of UserAssigned identity. To use the SystemAssigned identity, leave this field blank.
```yaml
Type: System.String
Expand Down

0 comments on commit 04642eb

Please sign in to comment.