New-AzPurviewAzureSubscriptionDataSourceObject
Create an in-memory object for AzureSubscriptionDataSource.
Syntax
New-AzPurviewAzureSubscriptionDataSourceObject
-Kind <DataSourceType>
[-CollectionReferenceName <String>]
[-CollectionType <String>]
[-SubscriptionId <String>]
[<CommonParameters>]
Description
Create an in-memory object for AzureSubscriptionDataSource.
Examples
Example 1: Create Azure Subscription data source object
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
Create Azure Subscription data source object
Parameters
-CollectionReferenceName
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-CollectionType
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Kind
Type: | DataSourceType |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell