共用方式為


New-AzPurviewAzureSubscriptionDataSourceObject

建立 AzureSubscriptionDataSource 的記憶體內部物件。

語法

New-AzPurviewAzureSubscriptionDataSourceObject
   -Kind <DataSourceType>
   [-CollectionReferenceName <String>]
   [-CollectionType <String>]
   [-SubscriptionId <String>]
   [<CommonParameters>]

Description

建立 AzureSubscriptionDataSource 的記憶體內部物件。

範例

範例 1:建立 Azure 訂用帳戶數據源物件

New-AzPurviewAzureSubscriptionDataSourceObject -Kind 'AzureSubscription' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -SubscriptionId '6810b9ce-82d3-4562-9658-xxxxxxxxxx'

CollectionLastModifiedAt :
CollectionReferenceName  : parv-brs-2
CollectionType           : CollectionReference
CreatedAt                :
Id                       :
Kind                     : AzureSubscription
LastModifiedAt           :
Name                     :
Scan                     :
SubscriptionId           : 6810b9ce-82d3-4562-9658-xxxxxxxxxx

建立 Azure 訂用帳戶數據源物件

參數

-CollectionReferenceName

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

-CollectionType

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

-Kind

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

-SubscriptionId

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

輸出

AzureSubscriptionDataSource