New-AzSecurityAutomationScopeObject
建立安全性自動化範圍物件
語法
New-AzSecurityAutomationScopeObject
-Description <String>
-ScopePath <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
建立安全性自動化範圍物件
範例
範例 1
New-AzSecurityAutomationScopeObject -Description 'Security assessments that relate to the resource group myResourceGroup within the subscription a5caac9c-5c04-49af-b3d0-e204f40345d5' -ScopePath '/subscriptions/a5caac9c-5c04-49af-b3d0-e204f40345d5/resourceGroups/myResourceGroup'
建立安全性自動化範圍物件
參數
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Description
資源範圍描述
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ScopePath
資源範圍路徑。 可以是在上定義自動化的訂用帳戶,或是該訂用帳戶下的資源群組(完整 Azure 資源識別符)
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None