Editar

Compartilhar via


New-AzPurviewAzureCosmosDbDataSourceObject

Create an in-memory object for AzureCosmosDbDataSource.

Syntax

New-AzPurviewAzureCosmosDbDataSourceObject
   -Kind <DataSourceType>
   [-AccountUri <String>]
   [-CollectionReferenceName <String>]
   [-CollectionType <String>]
   [-Location <String>]
   [-ResourceGroup <String>]
   [-ResourceName <String>]
   [-SubscriptionId <String>]
   [<CommonParameters>]

Description

Create an in-memory object for AzureCosmosDbDataSource.

Examples

Example 1: Create Azure CosmosDB data source object

New-AzPurviewAzureCosmosDbDataSourceObject -Kind 'AzureCosmosDb' -CollectionReferenceName 'parv-brs-2' -CollectionType 'CollectionReference' -AccountUri 'https://cosmosd.documents.azure.com'

AccountUri               : https://cosmosd.documents.azure.com
CollectionLastModifiedAt :
CollectionReferenceName  : parv-brs-2
CollectionType           : CollectionReference
CreatedAt                :
Id                       :
Kind                     : AzureCosmosDb
LastModifiedAt           :
Location                 :
Name                     :
ResourceGroup            :
ResourceName             :
Scan                     :
SubscriptionId           :

Create Azure CosmosDB data source object

Parameters

-AccountUri

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-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

-Location

Type:String
Position:Named
Default value:None
Required:False
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

-ResourceName

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

AzureCosmosDbDataSource