Get-AzSecurityAssessment
取得訂用帳戶的安全性評量及其結果
語法
Get-AzSecurityAssessment
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSecurityAssessment
-Name <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSecurityAssessment
-Name <String>
-AssessedResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzSecurityAssessment
-ResourceId <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
取得訂用帳戶的安全性評量及其結果。 安全性評定會讓您知道 Azure 資訊安全中心會重新命令哪些最佳做法,以降低 Azure 訂用帳戶的風險。
範例
範例 1
Get-AzSecurityAssessment
取得訂用帳戶中的所有安全性評估
參數
-AssessedResourceId
評估所計算之資源的完整資源標識碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
資源名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceId
您要叫用命令之安全性資源的識別碼。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |