Skip to content

Commit 04642eb

Browse files
authored
Fixed the Managed Identity Parameter Set Description of AccountId in Connect-AzAccounts (#26945)
* Fixed the Managed Identity parameter set description of AccountId in Connect-AzAccount * Revise the help message
1 parent d5c35db commit 04642eb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ public class ConnectAzureRmAccountCommand : AzureContextModificationCmdlet, IMod
156156
[Parameter(ParameterSetName = AccessTokenParameterSet,
157157
Mandatory = true, HelpMessage = "Account Id for access token")]
158158
[Parameter(ParameterSetName = ManagedServiceParameterSet,
159-
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.")]
159+
Mandatory = false, HelpMessage = "Client id of UserAssigned identity. To use the SystemAssigned identity, leave this field blank.")]
160160
[ValidateNotNullOrEmpty]
161161
public string AccountId { get; set; }
162162

src/Accounts/Accounts/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Fixed the Managed Identity parameter set description of `AccountId` in `Connect-AzAccount`.
2223
* Made the breaking change warnings about `Get-AzAccessToken` not appear when `-AsSecureString` is used.
2324
* Fixed an issue that cmdlets may report warnings of "KeyNotFoundException". #26624
2425
* Fixed an issue that the `-AppliesTo` parameter of `Update-AzConfig` does not work as expected.

src/Accounts/Accounts/help/Connect-AzAccount.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,8 @@ Accept wildcard characters: False
317317
318318
### -AccountId
319319
320-
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
321-
**ManagedService** parameter set. Can be a managed service resource ID, or the associated client ID.
322-
To use the system assigned identity, leave this field blank.
320+
Id for Account, associated with your access token.
321+
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.
323322
324323
```yaml
325324
Type: System.String

0 commit comments

Comments
 (0)