Update-AzCosmosDBAccountRegion
Werk regio's van een Cosmos DB-account bij.
Syntaxis
Update-AzCosmosDBAccountRegion
-ResourceGroupName <String>
-Name <String>
[-Location <String[]>]
[-LocationObject <PSLocation[]>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzCosmosDBAccountRegion
[-Location <String[]>]
[-LocationObject <PSLocation[]>]
-ResourceId <String>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzCosmosDBAccountRegion
[-Location <String[]>]
[-LocationObject <PSLocation[]>]
-InputObject <PSDatabaseAccountGetResults>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Werk regio's van een Cosmos DB-account bij. De locatie kan worden opgegeven als een object van het type PSLocation of als tekenreeksen van locatienaam gerangschikt op failoverprioriteit. De parameter LocationObject verwacht de lijst met huidige locaties (opgenomen failoverprioriteiten) die zijn toegevoegd door de nieuwe LocationObjects die overeenkomen met nieuwe locaties die moeten worden toegevoegd. De locatieparameter verwacht de lijst met de huidige locatie (gesorteerd op failoverprioriteit) en de nieuwe locaties. Houd er rekening mee dat we alleen toevoeging van regio's ondersteunen. Geef Location of LocationObject op.
Voorbeelden
Voorbeeld 1
Update-AzCosmosDBAccountRegion -ResourceGroupName rg -Name dbname -Location "location1", "location2"
Id : /subscriptions/{subscriptionid}/resourceGroups/rg/providers/Microsoft.DocumentDB/databaseAccounts/dbname
Name : dbname
Location : location1
Tags : {}
EnableCassandraConnector :
EnableMultipleWriteLocations : True
VirtualNetworkRules : {}
FailoverPolicies : {dbname-location1, dbname-location2}
Locations : {dbname-location1, dbname-location2}
ReadLocations : {dbname-location1, dbname-location2}
WriteLocations : {dbname-location1}
Capabilities : {}
ConsistencyPolicy : Microsoft.Azure.Management.CosmosDB.Fluent.Models.ConsistencyPolicy
EnableAutomaticFailover : False
IsVirtualNetworkFilterEnabled : False
IpRules : {}
DatabaseAccountOfferType : Standard
DocumentEndpoint : https://dbname.documents.azure.com:443/
ProvisioningState : Succeeded
Kind : GlobalDocumentDB
Parameters
-AsJob
Cmdlet op de achtergrond uitvoeren
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Confirm
U wordt gevraagd om bevestiging voordat u de cmdlet uitvoert.
Type: | SwitchParameter |
Aliassen: | cf |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-DefaultProfile
De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-InputObject
ResourceId van de resource.
Type: | PSDatabaseAccountGetResults |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | False |
-Location
Naam van de locatie die moet worden toegevoegd.
Type: | String[] |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-LocationObject
Voeg een locatie toe aan het Cosmos DB-databaseaccount. Matrix van PSLocation-objecten.
Type: | PSLocation[] |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-Name
Naam van het Cosmos DB-databaseaccount.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ResourceGroupName
Naam van resourcegroep.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ResourceId
ResourceId van de resource.
Type: | String |
Position: | Named |
Default value: | None |
Vereist: | True |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-WhatIf
Toont wat er zou gebeuren als de cmdlet wordt uitgevoerd. De cmdlet wordt niet uitgevoerd.
Type: | SwitchParameter |
Aliassen: | wi |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
Invoerwaarden
Microsoft.Azure.Commands.CosmosDB.Models.PSDatabaseAccount
Uitvoerwaarden
Microsoft.Azure.Commands.CosmosDB.Models.PSDatabaseAccount
Azure PowerShell