共用方式為


New-AzIotSecuritySolutionUserDefinedResourcesObject

為 iot 安全性解決方案建立新的使用者定義資源

語法

New-AzIotSecuritySolutionUserDefinedResourcesObject
   -Query <String>
   -QuerySubscriptionList <String[]>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

AzIotSecuritySolutionUserDefinedResourcesObject Cmdlet 會為 iot 安全性解決方案建立新的使用者定義資源物件。

範例

範例 1

New-AzIotSecuritySolutionUserDefinedResourcesObject -Query 'where type != "microsoft.devices/iothubs" | where name contains "v2"' `
-QuerySubscriptionList @("XXXXXXXX-XXXX-XXXXX-XXXX-XXXXXXXXXXXX")

Query: 'where type != "microsoft.devices/iothubs" | where name contains "v2"' 
QuerySubscriptions: ["XXXXXXXX-XXXX-XXXXX-XXXX-XXXXXXXXXXXX"]

建立新的使用者定義資源

參數

-DefaultProfile

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

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

-Query

查詢。

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

-QuerySubscriptionList

查詢訂閱。

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

輸入

None

輸出