diff --git a/src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs b/src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs index df6a365ff515..3f8ce449e6b5 100644 --- a/src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs +++ b/src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs @@ -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; } diff --git a/src/Accounts/Accounts/ChangeLog.md b/src/Accounts/Accounts/ChangeLog.md index d48806cc922e..b4aec52b9e04 100644 --- a/src/Accounts/Accounts/ChangeLog.md +++ b/src/Accounts/Accounts/ChangeLog.md @@ -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. diff --git a/src/Accounts/Accounts/help/Connect-AzAccount.md b/src/Accounts/Accounts/help/Connect-AzAccount.md index 974ef21d5667..de44611e8707 100644 --- a/src/Accounts/Accounts/help/Connect-AzAccount.md +++ b/src/Accounts/Accounts/help/Connect-AzAccount.md @@ -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