Set-​Azure​Rm​Event​Hub​Namespace

Updates the specified Event Hubs namespace.

Syntax

Set-AzureRmEventHubNamespace
   [-ResourceGroupName] <String>
   [-NamespaceName] <String>
   [-Location] <String>
   [[-SkuName] <String>]
   [[-SkuCapacity] <Int32>]
   [[-State] <NamespaceState>]
   [[-Tag] <Hashtable>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The Set-AzureRmEventHubNamespace cmdlet updates the properties of the specified Event Hubs namespace.

Examples

Example 1

PS C:\> Set-AzureRmEventHubNamespace -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -Location "WestUS" -State Created

Updates the state of namespace MyNamespaceName to Created.

Required Parameters

-Location

Event Hubs namespace geo-location.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-NamespaceName

The Event Hubs namespace name.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Resource group name.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-SkuCapacity

The Event Hub throughput units.

Type:Int32
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-SkuName

Namespace Sku name.

Type:String
Parameter Sets:Basic, Standard, Premium
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-State

Specifies the state (disabled or enabled) of the namespace.

Type:NamespaceState
Parameter Sets:Unknown, Creating, Created, Activating, Enabling, Active, Disabling, Disabled, SoftDeleting, SoftDeleted, Removing, Removed, Failed
Position:5
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Tag

Hashtables that represent resource tags.

Type:Hashtable
Position:6
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

Outputs

Microsoft.Azure.Commands.EventHub.Models.NamespaceAttributes