Dela via


Invoke-AzCosmosDBSqlDatabaseThroughputMigration

Använd det här alternativet om du vill migrera dataflödet för autoskalning till manuellt dataflöde och vice versa.

Syntax

Invoke-AzCosmosDBSqlDatabaseThroughputMigration
      [-Name <String>]
      -ResourceGroupName <String>
      -AccountName <String>
      -ThroughputType <String>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Invoke-AzCosmosDBSqlDatabaseThroughputMigration
      [-Name <String>]
      -ParentObject <PSDatabaseAccountGetResults>
      -ThroughputType <String>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]
Invoke-AzCosmosDBSqlDatabaseThroughputMigration
      [-Name <String>]
      -InputObject <PSSqlDatabaseGetResults>
      -ThroughputType <String>
      [-DefaultProfile <IAzureContextContainer>]
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

ThroughpyteType-paramter definierar det dataflöde som du vill migrera till.

Exempel

Exempel 1

$NewSqlDatabase = New-AzCosmosDBSqlDatabase -AccountName myAccountName -ResourceGroupName myRgName -Name myDbName -Throughput 700
$AutoscaleThroughput = Invoke-AzCosmosDBSqlDatabaseThroughputMigration -InputObject $NewSqlDatabase -ThroughputType Autoscale

Parametrar

-AccountName

Namnet på Cosmos DB-databaskontot.

Typ:String
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-Confirm

Uppmanar dig att bekräfta innan du kör cmdleten.

Typ:SwitchParameter
Alias:cf
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-DefaultProfile

Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.

Typ:IAzureContextContainer
Alias:AzContext, AzureRmContext, AzureCredential
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-InputObject

Sql Database-objekt.

Typ:PSSqlDatabaseGetResults
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:True
Godkänn jokertecken:False

-Name

Databasnamn.

Typ:String
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-ParentObject

CosmosDB-kontoobjekt

Typ:PSDatabaseAccountGetResults
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:True
Godkänn jokertecken:False

-ResourceGroupName

Namnet på resursgruppen.

Typ:String
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-ThroughputType

Dataflödestyp att migrera till. Möjliga värden är: Autoskalning, Manuell.

Typ:String
Position:Named
Standardvärde:None
Obligatorisk:True
Godkänn pipeline-indata:False
Godkänn jokertecken:False

-WhatIf

Visar vad som skulle hända om cmdleten kördes. Cmdleten körs inte.

Typ:SwitchParameter
Alias:wi
Position:Named
Standardvärde:None
Obligatorisk:False
Godkänn pipeline-indata:False
Godkänn jokertecken:False

Indata

PSDatabaseAccountGetResults

PSSqlDatabaseGetResults

Utdata

PSThroughputSettingsGetResults