Get-AzAdvisorConfiguration
Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.
Syntax
Get-AzAdvisorConfiguration
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzAdvisorConfiguration
[-SubscriptionId <String[]>]
-ResourceGroupName <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Retrieve Azure Advisor configurations and also retrieve configurations of contained resource groups.
Examples
Example 1: Get Configuration by SubscriptionId
Get-AzAdvisorConfiguration
Name Exclude LowCpuThreshold
---- ------- ---------------
default False 10
Get Configuration by SubscriptionId
Example 2: Get Configuration by ResourceGroupName
Get-AzAdvisorConfiguration -ResourceGroupName lnxtest
Name Exclude LowCpuThreshold
---- ------- ---------------
9e223dbe-3399-4e19-88eb-0975f02ac87f-lnxtest False
Get Configuration by ResourceGroupName
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The name of the Azure resource group.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The Azure subscription ID.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell