New-AzDiagnosticSettingSubscriptionLogSettingsObject
Create an in-memory object for SubscriptionLogSettings.
Syntax
Default (Default)
New-AzDiagnosticSettingSubscriptionLogSettingsObject
-Enabled <Boolean>
[-Category <String>]
[-CategoryGroup <String>]
[<CommonParameters>]
Description
Create an in-memory object for SubscriptionLogSettings.
Examples
Example 1: Create subscription log setting object
New-AzDiagnosticSettingSubscriptionLogSettingsObject -Category Recommendation -Enabled $true
Create subscription log setting object, to get supported categories for resource, please see Get-AzEventCategory
Parameters
-Category
Name of a Subscription Diagnostic Log category for a resource type this setting is applied to.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-CategoryGroup
Name of a Subscription Diagnostic Log category group for a resource type this setting is applied to.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Enabled
a value indicating whether this log is enabled.
Parameter properties
Type: | Boolean |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.