< Back

Get-AzureRmDefault

Tue Jan 29, 2019 10:00 pm

NAME Get-AzureRmDefault



SYNOPSIS

Get the defaults set by the user in the current context.





SYNTAX

Get-AzureRmDefault [-DefaultProfile <IAzureContextContainer>] [-ResourceGroup] [<CommonParameters>]





DESCRIPTION

The Get-AzureRmDefault cmdlet gets the Resource Group that the user has set as default in the current context.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroup [<SwitchParameter>]

Display Default Resource Group



Required? false

Position? named

Default value False

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.Management.Automation.SwitchParameter







OUTPUTS

Microsoft.Azure.Management.Internal.Resources.Models.ResourceGroup







NOTES









Example 1



PS C:\\> Get-AzureRmDefault



Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup

Name : myResourceGroup

Properties : Microsoft.Azure.Management.Internal.Resources.Models.ResourceGroupProperties

Location : eastus

ManagedBy :

Tags :



This command returns the current defaults if there are defaults set, or returns nothing if no default is set.





Example 2



PS C:\\> Get-AzureRmDefault -ResourceGroup



Id : /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/myResourceGroup

Name : myResourceGroup

Properties : Microsoft.Azure.Management.Internal.Resources.Models.ResourceGroupProperties

Location : eastus

ManagedBy :

Tags :



This command returns the current default Resource Group if there is a default set, or returns nothing if no default is set.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... ermdefault