Delen via


Set-AzureRmEventHubGeoDRConfigurationFailOver

Roept een GEO DR-failover aan en configureert de alias opnieuw zodat deze verwijst naar de secundaire naamruimte

Waarschuwing

De AzureRM PowerShell-module is vanaf 29 februari 2024 officieel afgeschaft. Gebruikers wordt aangeraden om van AzureRM naar de Az PowerShell-module te migreren om ondersteuning en updates te garanderen.

Hoewel de AzureRM-module nog steeds kan functioneren, wordt deze niet meer onderhouden of ondersteund, waardoor het gebruik naar eigen goeddunken en risico van de gebruiker blijft bestaan. Raadpleeg onze migratiebronnen voor hulp bij de overgang naar de Az-module.

Syntax

Set-AzureRmEventHubGeoDRConfigurationFailOver
   [-ResourceGroupName] <String>
   [-Namespace] <String>
   [-Name] <String>
   [-PassThru]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzureRmEventHubGeoDRConfigurationFailOver
   [-InputObject] <PSEventHubDRConfigurationAttributes>
   [-PassThru]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Set-AzureRmEventHubGeoDRConfigurationFailOver
   [-ResourceId] <String>
   [-PassThru]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Met de cmdlet Set-AzureRmEventHubGeoDRConfigurationFailOver wordt geo dr-failover aangestuurd en wordt de alias opnieuw geconfigureerd zodat deze verwijst naar de secundaire naamruimte

Voorbeelden

Voorbeeld 1

PS C:\>Set-AzureRmEventHubGeoDRConfigurationFailOver -ResourceGroupName "SampleResourceGroup" -Namespace "SampleNamespace_Secondary" -Name "SampleDRCongifName"

Roept de failover via alias SampleDRCongifName aan, herconfigureert en verwijst naar secundaire naamruimte 'SampleNamespace_Secondary'

Parameters

-Confirm

Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.

Type:SwitchParameter
Aliases:cf
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

De referenties, accounts, tenants en abonnementen die worden gebruikt voor communicatie met Azure.

Type:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

Eventhub GeoDR-configuratieobject

Type:PSEventHubDRConfigurationAttributes
Position:0
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

-Name

Dr-configuratienaam

Type:String
Position:2
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

-Namespace

Naamruimtenaam - Secundaire naamruimte

Type:String
Position:1
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

-PassThru

Retourneert een object dat het item aangeeft waarmee u werkt. Deze cmdlet genereert standaard geen uitvoer.

Type:SwitchParameter
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Naam resourcegroep

Type:String
Position:0
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceId

GeoDRConfiguration-resource-id

Type:String
Position:0
standaardwaarde:None
Vereist:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.

Type:SwitchParameter
Aliases:wi
Position:Named
standaardwaarde:None
Vereist:False
Accept pipeline input:False
Accept wildcard characters:False

Invoerwaarden

String

PSEventHubDRConfigurationAttributes

Parameters: InputObject (ByValue)

Uitvoerwaarden

Boolean