Update-AzConfig

In this Azure PowerShell article, we will discuss the syntax and usage of the Update-AzConfig Azure PowerShell command with an example of how to use the Update-AzConfig PowerShell command.

Update-AzConfig

Update-AzConfig is an excellent PowerShell command that can help you to update the configs of your Azure PowerShell.

Syntax

Below is the syntax of the Update-AzConfig PowerShell command.

Update-AzConfig

 [-Scope <ConfigScope>]

 [-DefaultSubscriptionForLogin <String>]

Well, let’s discuss an example of the usage of the Update-AzConfig PowerShell command.

Example

The below Azure PowerShell command will set “Visual Studio Enterprise” as the default subscription for login.

Update-AzConfig -DefaultSubscriptionForLogin "Visual Studio Enterprise"

After executing the above command, I got the below output.

PS C:\WINDOWS\system32> Update-AzConfig -DefaultSubscriptionForLogin "Visual Studio Enterprise"

Key                         Value                    Applies To Scope       Help      
                                                                            Message   
---                         -----                    ---------- -----       ----------
DefaultSubscriptionForLogin Visual Studio Enterprise Az         CurrentUser Subscri...

You can see the same output below

Update-AzConfig

Update-AzConfig – Video Tutorial

You may also like following the below Azure PowerShell articles

Wrapping Up

In this Azure PowerShell article, we discussed the syntax and usage of the Update-AzConfig Azure PowerShell command with the usage of the Update-AzConfig PowerShell command with an example. Thanks for reading this article !!!