共用方式為


New-AzIotSecuritySolutionRecommendationConfigurationObject

為 iot 安全性解決方案建立新的建議組態

語法

New-AzIotSecuritySolutionRecommendationConfigurationObject
   -RecommendationType <String>
   -Enabled <Boolean>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

AzIotSecuritySolutionRecommendationConfigurationObject 會為 iot 安全性解決方案建立新的建議組態物件。 如此一來,無論建議已啟用或停用,都已設定建議的狀態。

範例

範例 1

New-AzIotSecuritySolutionRecommendationConfigurationObject -RecommendationType "IoT_ACRAuthentication" -Enabled $false

RecommendationType: "IoT_ACRAuthentication"
Name: "Service prinicpal not used with ACR repository"
Status: "Disabled"

為建議類型 「IoT_ACRAuthentication」 建立新的建議組態,並將狀態設定為停用

參數

-DefaultProfile

用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Enabled

狀態。

類型:Boolean
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-RecommendationType

建議類型。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

輸入

None

輸出

PSRecommendationConfiguration