Editar

Compartir a través de


New-AzCosmosDBService

Creates a new CosmosDB Service.

Syntax

New-AzCosmosDBService
   -ResourceGroupName <String>
   -AccountName <String>
   -ServiceName <String>
   -InstanceSize <String>
   -InstanceCount <Int32>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
New-AzCosmosDBService
   -ServiceName <String>
   -InstanceSize <String>
   -InstanceCount <Int32>
   -ParentObject <PSDatabaseAccountGetResults>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The New-AzCosmosDBService cmdlet creates a new CosmosDB Service.

Examples

Example 1

New-AzCosmosDBService -ResourceGroupName "ResourceGroup" -AccountName "AccountName" -ServiceName "ServiceName" -InstanceSize "Cosmos.D4s" -InstanceCount 1

Name     : {serviceName}
Id       : {id}
Resource : Microsoft.Azure.Commands.CosmosDB.Models.PSServiceGetResults

Parameters

-AccountName

Name of the Cosmos DB database account.

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

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InstanceCount

Instance size of the service

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

-InstanceSize

Instance count of the service

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

-ParentObject

CosmosDB Account object

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

-ResourceGroupName

Name of resource group.

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

-ServiceName

Name of the service

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

Inputs

PSDatabaseAccountGetResults

Outputs

PSServiceGetResults