You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Parameter(ParameterSetName=UserParameterSet,Mandatory=false,HelpMessage="Max subscription number to populate contexts after login. Default is "+DefaultMaxContextPopulationString+". To populate all subscriptions to contexts, set to -1.")]
200
-
[Parameter(ParameterSetName=UserWithCredentialParameterSet,Mandatory=false,HelpMessage="Max subscription number to populate contexts after login. Default is "+DefaultMaxContextPopulationString+". To populate all subscriptions to contexts, set to -1.")]
201
-
[Parameter(ParameterSetName=ServicePrincipalParameterSet,Mandatory=false,HelpMessage="Max subscription number to populate contexts after login. Default is "+DefaultMaxContextPopulationString+". To populate all subscriptions to contexts, set to -1.")]
202
-
[Parameter(ParameterSetName=ServicePrincipalCertificateParameterSet,Mandatory=false,HelpMessage="Max subscription number to populate contexts after login. Default is "+DefaultMaxContextPopulationString+". To populate all subscriptions to contexts, set to -1.")]
203
-
[Parameter(ParameterSetName=ServicePrincipalCertificateFileParameterSet,Mandatory=false,HelpMessage="Max subscription number to populate contexts after login. Default is "+DefaultMaxContextPopulationString+". To populate all subscriptions to contexts, set to -1.")]
204
-
[Parameter(ParameterSetName=AccessTokenParameterSet,Mandatory=false,HelpMessage="Max subscription number to populate contexts after login. Default is "+DefaultMaxContextPopulationString+". To populate all subscriptions to contexts, set to -1.")]
205
-
[Parameter(ParameterSetName=ManagedServiceParameterSet,Mandatory=false,HelpMessage="Max subscription number to populate contexts after login. Default is "+DefaultMaxContextPopulationString+". To populate all subscriptions to contexts, set to -1.")]
193
+
[Parameter(Mandatory=false,HelpMessage="Max subscription number to populate contexts after login. Default is "+DefaultMaxContextPopulationString+". To populate all subscriptions to contexts, set to -1.")]
@@ -226,6 +214,11 @@ public class ConnectAzureRmAccountCommand : AzureContextModificationCmdlet, IMod
226
214
[Parameter(ParameterSetName=ServicePrincipalCertificateFileParameterSet,HelpMessage="The password required to access the pkcs#12 certificate file.")]
227
215
publicSecureStringCertificatePassword{get;set;}
228
216
217
+
[Parameter(ParameterSetName=ClientAssertionParameterSet,Mandatory=true,HelpMessage="Specifies a token provided by another identity provider. The issuer and subject in this token must be first configured to be trusted by the ApplicationId.")]
218
+
[Alias("ClientAssertion")]
219
+
[ValidateNotNullOrEmpty]
220
+
publicstringFederatedToken{get;set;}
221
+
229
222
protectedoverrideIAzureContextDefaultContext
230
223
{
231
224
get
@@ -315,6 +308,16 @@ public override void ExecuteCmdlet()
<value>The provided service principal secret will be included in the '{0}' file found in the user profile ( {1} ). Please ensure that this directory has appropriate protections.</value>
<value>The provided client id and assertion will be included in the '{0}' file found in the user profile ( {1} ). Please ensure that this directory has appropriate protections.</value>
Specifies a token provided by another identity provider. The issuer and subject in this token must be first configured to be trusted by the ApplicationId.
453
+
454
+
> [!CAUTION]
455
+
> Federated tokens are a type of credential. You should take the appropriate security precautions to keep them confidential. Federated tokens also timeout and may prevent long running tasks from completing.
456
+
457
+
```yaml
458
+
Type: System.String
459
+
Parameter Sets: ClientAssertionParameterSet
460
+
Aliases: ClientAssertion
461
+
462
+
Required: True
463
+
Position: Named
464
+
Default value: None
465
+
Accept pipeline input: False
466
+
Accept wildcard characters: False
467
+
```
468
+
443
469
### -Force
444
470
445
471
Overwrite the existing context with the same name without prompting.
0 commit comments