external help file | Module Name | online version | schema |
---|---|---|---|
Az.DiagnosticSetting.psm1-help.xml |
Az.Monitor |
2.0.0 |
Create an in-memory object for SubscriptionLogSettings.
New-AzDiagnosticSettingSubscriptionLogSettingsObject -Enabled <Boolean> [-Category <String>]
[-CategoryGroup <String>] [<CommonParameters>]
Create an in-memory object for SubscriptionLogSettings.
New-AzDiagnosticSettingSubscriptionLogSettingsObject -Category Recommendation -Enabled $true
Create subscription log setting object, to get supported categories for resource, please see Get-AzEventCategory
Name of a Subscription Diagnostic Log category for a resource type this setting is applied to.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Name of a Subscription Diagnostic Log category group for a resource type this setting is applied to.
Type: System.String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
a value indicating whether this log is enabled.
Type: System.Boolean
Parameter Sets: (All)
Aliases:
Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.