你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzPurviewAzureFileServiceScanRulesetObject
为 AzureFileServiceScanRuleset 创建内存中对象。
语法
New-AzPurviewAzureFileServiceScanRulesetObject
-Kind <DataSourceType>
[-Description <String>]
[-ExcludedSystemClassification <String[]>]
[-IncludedCustomClassificationRuleName <String[]>]
[-ScanningRuleCustomFileExtension <ICustomFileExtension[]>]
[-ScanningRuleFileExtension <FileExtensionsType[]>]
[-Type <ScanRulesetType>]
[<CommonParameters>]
说明
为 AzureFileServiceScanRuleset 创建内存中对象。
示例
示例 1:创建 Azure 文件服务自定义 scanruleset 对象
New-AzPurviewAzureFileServiceScanRulesetObject -Kind 'AzureFileService' -Description 'desc' -ExcludedSystemClassification @('MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER','MICROSOFT.SECURITY.COMMON_PASSWORDS') -IncludedCustomClassificationRuleName @('ClassificationRule2') -ScanningRuleFileExtension @("CSV","JSON","PSV","SSV","TSV","TXT","XML","PARQUET","AVRO","ORC","Documents","GZ","DOC","DOCM","DOCX","DOT","ODP","ODS","ODT","PDF","POT","PPS","PPSX","PPT","PPTM","PPTX","XLC","XLS","XLSB","XLSM","XLSX","XLT") -Type 'Custom'
CreatedAt :
Description : desc
ExcludedSystemClassification : {MICROSOFT.FINANCIAL.CREDIT_CARD_NUMBER, MICROSOFT.SECURITY.COMMON_PASSWORDS}
Id :
IncludedCustomClassificationRuleName : {ClassificationRule2}
Kind : AzureFileService
LastModifiedAt :
Name :
ScanningRuleCustomFileExtension :
ScanningRuleFileExtension : {CSV, JSON, PSV, SSV…}
Status :
Type : Custom
Version :
创建 Azure 文件服务自定义 scanruleset 对象
参数
-Description
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-ExcludedSystemClassification
类型: | String[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-IncludedCustomClassificationRuleName
类型: | String[] |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Kind
类型: | DataSourceType |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ScanningRuleCustomFileExtension
若要构造,请参阅 SCANNINGRULECUSTOMFILEEXTENSION 属性的 NOTES 部分,并创建哈希表。
-ScanningRuleFileExtension
-Type
类型: | ScanRulesetType |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
输出
AzureFileServiceScanRuleset