Skip to content

Commit e853183

Browse files
isra-felYeming Liu
andauthored
Defer MFA enforcement (#28009)
Co-authored-by: Yeming Liu <[email protected]>
1 parent 8aeb2ac commit e853183

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/Accounts/Accounts/Account/ConnectAzureRmAccount.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public override void ExecuteCmdlet()
340340

341341
if (ParameterSetName.Equals(UserWithCredentialParameterSet))
342342
{
343-
WriteWarning(IsSigningInToPublicCloud() ? Resources.RopcDeprecationPublicCloud : Resources.RopcDeprecationSovereignClouds);
343+
WriteWarning(IsSigningInToPublicCloud() ? string.Format(Resources.RopcDeprecationPublicCloud, "September 1, 2025") : Resources.RopcDeprecationSovereignClouds);
344344
}
345345

346346
if (MyInvocation.BoundParameters.ContainsKey(nameof(Subscription)))

src/Accounts/Accounts/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Updated the date in the message about multi-factor authentication (MFA). For more details, see https://go.microsoft.com/fwlink/?linkid=2276971
2223

2324
## Version 5.1.0
2425
* Enabled setting the authentication scope for SSH cmdlets by `Set-AzEnvironment -SshAuthScope <String>`.
@@ -35,7 +36,7 @@
3536
* Increased the timeout for tab-completion of location, resource group, etc. to 10 seconds.
3637

3738
## Version 4.2.0
38-
* Updated warning message about MFA. For more details, see https://go.microsoft.com/fwlink/?linkid=2276314
39+
* Updated warning message about MFA. For more details, see https://go.microsoft.com/fwlink/?linkid=2276971
3940
* Fixed token in auxiliary authentication header.
4041
* Collected authentication method for telemetry in end process of cmdlet.
4142

src/Accounts/Accounts/Properties/Resources.Designer.cs

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Accounts/Accounts/Properties/Resources.resx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,9 +632,9 @@
632632
<value>If you encounter any problem, please open an issue at: https://aka.ms/azpsissue</value>
633633
</data>
634634
<data name="RopcDeprecationPublicCloud" xml:space="preserve">
635-
<value>Starting July 01, 2025, MFA will be gradually enforced for Azure public cloud. The authentication with username and password in the command line is not supported with MFA. Consider using one of the compatible authentication methods. For more details, see https://go.microsoft.com/fwlink/?linkid=2276314</value>
635+
<value>Starting {0}, MFA will be gradually enforced for Azure public cloud. The authentication with username and password in the command line is not supported with MFA. Consider using one of the compatible authentication methods. For more details, see https://go.microsoft.com/fwlink/?linkid=2276971</value>
636636
</data>
637637
<data name="RopcDeprecationSovereignClouds" xml:space="preserve">
638-
<value>Using authentication with username and password in the command line is strongly discouraged. Consider using one of the recommended authentication methods. For more details, see https://go.microsoft.com/fwlink/?linkid=2276314</value>
638+
<value>Using authentication with username and password in the command line is strongly discouraged. Consider using one of the recommended authentication methods. For more details, see https://go.microsoft.com/fwlink/?linkid=2276971</value>
639639
</data>
640640
</root>

0 commit comments

Comments
 (0)