Düzenle

Aracılığıyla paylaş


Set-AzSecuritySetting

Update a security setting in Azure Security Center

Syntax

Set-AzSecuritySetting
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzSecuritySetting
   -SettingName <String>
   -SettingKind <String>
   -Enabled <Boolean>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzSecuritySetting
   -InputObject <PSSecuritySetting>
   [-Enabled <Boolean>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Set-AzSecuritySetting cmdlet updates a specific security setting in Azure Security Center.

Examples

Example 1

Set-AzSecuritySetting -SettingName "MCAS" -SettingKind "DataExportSettings" -Enabled $true

Id: "/subscriptions/487bb485-b5b0-471e-9c0d-10717612f869/providers/Microsoft.Security/settings/MCAS"
Name: "MCAS"
Type: "Microsoft.Security/settings"
Enabled: true

Updates an MCAS data export setting

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

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

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Enabled

Enables the setting.

Type:Boolean
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Input Object.

Type:PSSecuritySetting
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-SettingKind

Setting kind. (DataExportSettings/AlertSyncSettings)

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SettingName

Setting name. (MCAS/WDATP/Sentinel)

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

PSSecuritySetting

PSSecurityDataExportSetting

PSSecurityAlertSyncSettings

Boolean

Outputs

PSSecuritySetting

PSSecurityDataExportSetting

PSSecurityAlertSyncSettings