New-AzPurviewAzureResourceGroupDataSourceObject
Create an in-memory object for AzureResourceGroupDataSource.
Syntax
New-AzPurviewAzureResourceGroupDataSourceObject
-Kind <DataSourceType>
[-CollectionReferenceName <String>]
[-CollectionType <String>]
[-ResourceGroup <String>]
[-SubscriptionId <String>]
[<CommonParameters>]
Description
Create an in-memory object for AzureResourceGroupDataSource.
Examples
Example 1: Create Azure resource group data source object
New-AzPurviewAzureResourceGroupDataSourceObject -Kind 'AzureResourceGroup' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -ResourceGroup 'rg' -SubscriptionId '6810b9ce-82d3-4562-9658-xxxxxxxxxx'
CollectionLastModifiedAt :
CollectionReferenceName : parv-brs-2
CollectionType : CollectionReference
CreatedAt :
Id :
Kind : AzureResourceGroup
LastModifiedAt :
Name :
ResourceGroup : rg
Scan :
SubscriptionId : 6810b9ce-82d3-4562-9658-xxxxxxxxxx
Create Azure resource group 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
-ResourceGroup
Type: String
Position: Named
Default value: None
Required: False
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
AzureResourceGroupDataSource