Azure / Azure/azure-powershell

[Feature]: `Get/Update-AzConfig` make `LoginExperienceV2` a boolean like the rest

Open
#25,311 1 comment 1 reaction 0 assignees View on GitHub
Accounts Azure PS Team customer-reported feature-request Tracking
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Description of the new feature

Make the AzConfig property / setting `LoginExperienceV2` a boolean like the rest. And maybe change the setting name from `LoginExperienceV2` to `EnableLoginExperienceV2` to make it uniform. As far as I know this setting only got two options anyways?

*

Output of `Get-AzConfig` currently:

```powershell
PS> Get-AzConfig

Key Value Applies To Scope Help Message
--- ----- ---------- ----- ------------
CheckForUpgrade False Az CurrentUser When enabled, Azure PowerShell will check for updates autom…
DefaultSubscriptionForLogin Az Default Subscription name or GUID. Sets the default context for Azu…
DisableInstanceDiscovery False Az Default Set it to true to disable both instance discovery and autho…
DisplayBreakingChangeWarning False Az CurrentUser Controls if warning messages for breaking changes are displ…
DisplayRegionIdentified True Az Default When enabled, Azure PowerShell displays recommendations on …
DisplaySecretsWarning True Az Default When enabled, a warning message will be displayed when the …
DisplaySurveyMessage False Az CurrentUser When enabled, you are prompted infrequently to participate …
EnableDataCollection True Az Default When enabled, Azure PowerShell cmdlets send telemetry data …
EnableErrorRecordsPersistence False Az Default When enabled, error records will be written to ~/.Azure/Err…
EnableLoginByWam False Az CurrentUser When enabled, Web Account Manager (WAM) will be the default…
LoginExperienceV2 Off Az CurrentUser Only active when authenticating interactively, allows the u…

PS>
```

### Proposed implementation details (optional)

```powershell
# Yes please
Update-AzConfig -EnableLoginExperienceV2 $false

# No thanks
Update-AzConfig -LoginExperienceV2 'Off'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.