< Back
Get-AzureRmDiagnosticSetting
Post
NAME Get-AzureRmDiagnosticSetting
SYNOPSIS
Gets the logged categories and time grains.
SYNTAX
Get-AzureRmDiagnosticSetting [-ResourceId] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmDiagnosticSetting cmdlet gets the categories and time grains that are logged for a resource.
A time grain is the aggregation interval of a metric.
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
-ResourceId <String>
Specifies the ID of the resource.
Required? true
Position? 0
Default value None
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
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings
NOTES
Example 1: Get the status of the logging categories and time grains
PS C:\\>Get-AzureRmDiagnosticSetting -ResourceId
"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/ResourceGroups/ContosoRG/providers/microsoft.keyvault/KeyVaults/ContosoKeyVault"
StorageAccountId :
/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/ResourceGroups/ContosoRG/providers/microsoft.storage/accounts/ContosoStorageAccount
StorageAccountName : ContosoStorageAccount001
Metrics
Logs
Enabled : True
Category : AuditEvent
This command gets the categories and time grains that are logged for an Azure Key Vault with a ResourceId of
/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/ResourceGroups/ContosoRG/providers/microsoft.keyvault/KeyVaults/ContosoKeyVault.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ticsetting
Get-AzureRmDiagnosticSetting
SYNOPSIS
Gets the logged categories and time grains.
SYNTAX
Get-AzureRmDiagnosticSetting [-ResourceId] <String> [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
DESCRIPTION
The Get-AzureRmDiagnosticSetting cmdlet gets the categories and time grains that are logged for a resource.
A time grain is the aggregation interval of a metric.
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
-ResourceId <String>
Specifies the ID of the resource.
Required? true
Position? 0
Default value None
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
None
This cmdlet does not accept any input.
OUTPUTS
Microsoft.Azure.Commands.Insights.OutputClasses.PSServiceDiagnosticSettings
NOTES
Example 1: Get the status of the logging categories and time grains
PS C:\\>Get-AzureRmDiagnosticSetting -ResourceId
"/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/ResourceGroups/ContosoRG/providers/microsoft.keyvault/KeyVaults/ContosoKeyVault"
StorageAccountId :
/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/ResourceGroups/ContosoRG/providers/microsoft.storage/accounts/ContosoStorageAccount
StorageAccountName : ContosoStorageAccount001
Metrics
Logs
Enabled : True
Category : AuditEvent
This command gets the categories and time grains that are logged for an Azure Key Vault with a ResourceId of
/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/ResourceGroups/ContosoRG/providers/microsoft.keyvault/KeyVaults/ContosoKeyVault.
RELATED LINKS
Online Version: https://docs.microsoft.com/en-us/powers ... ticsetting
Get-AzureRmDiagnosticSetting