EventHub.Autorest/internal/ProxyCmdletDefinitions.ps1
# ---------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code # is regenerated. # ---------------------------------------------------------------------------------- <# .Synopsis Gets an AuthorizationRule for an Event Hub by rule name. .Description Gets an AuthorizationRule for an Event Hub by rule name. .Example Get-AzEventHubAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAuthRule .Example Get-AzEventHubAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -EventHubName myEventHub -Name myAuthRule .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. EVENTHUBINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. NAMESPACEINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link https://learn.microsoft.com/powershell/module/az.eventhub/get-azeventhubauthorizationrule #> function Get-AzEventHubAuthorizationRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityNamespace', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Event Hub name ${EventHubName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityEventhub', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityNamespace', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The authorization rule name. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityEventhub', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${EventhubInputObject}, [Parameter(ParameterSetName='GetViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${NamespaceInputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Az.EventHub.private\Get-AzEventHubAuthorizationRule_Get'; GetViaIdentity = 'Az.EventHub.private\Get-AzEventHubAuthorizationRule_GetViaIdentity'; GetViaIdentityEventhub = 'Az.EventHub.private\Get-AzEventHubAuthorizationRule_GetViaIdentityEventhub'; GetViaIdentityNamespace = 'Az.EventHub.private\Get-AzEventHubAuthorizationRule_GetViaIdentityNamespace'; List = 'Az.EventHub.private\Get-AzEventHubAuthorizationRule_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Gets an AuthorizationRule for a Namespace by rule name. .Description Gets an AuthorizationRule for a Namespace by rule name. .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. DISASTERRECOVERYCONFIGINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. NAMESPACEINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link https://learn.microsoft.com/powershell/module/az.eventhub/get-azeventhubdisasterrecoveryconfigauthorizationrule #> function Get-AzEventHubDisasterRecoveryConfigAuthorizationRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityNamespace', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Disaster Recovery configuration name ${Alias}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityDisasterRecoveryConfig', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityNamespace', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The authorization rule name. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityDisasterRecoveryConfig', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${DisasterRecoveryConfigInputObject}, [Parameter(ParameterSetName='GetViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${NamespaceInputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Az.EventHub.private\Get-AzEventHubDisasterRecoveryConfigAuthorizationRule_Get'; GetViaIdentity = 'Az.EventHub.private\Get-AzEventHubDisasterRecoveryConfigAuthorizationRule_GetViaIdentity'; GetViaIdentityDisasterRecoveryConfig = 'Az.EventHub.private\Get-AzEventHubDisasterRecoveryConfigAuthorizationRule_GetViaIdentityDisasterRecoveryConfig'; GetViaIdentityNamespace = 'Az.EventHub.private\Get-AzEventHubDisasterRecoveryConfigAuthorizationRule_GetViaIdentityNamespace'; List = 'Az.EventHub.private\Get-AzEventHubDisasterRecoveryConfigAuthorizationRule_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Gets the primary and secondary connection strings for the Namespace. .Description Gets the primary and secondary connection strings for the Namespace. .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys .Link https://learn.microsoft.com/powershell/module/az.eventhub/get-azeventhubdisasterrecoveryconfigkey #> function Get-AzEventHubDisasterRecoveryConfigKey { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Disaster Recovery configuration name ${Alias}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The authorization rule name. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ List = 'Az.EventHub.private\Get-AzEventHubDisasterRecoveryConfigKey_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Gets the ACS and SAS connection strings for the Event Hub. .Description Gets the ACS and SAS connection strings for the Event Hub. .Example Get-AzEventHubKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name RootManageSharedAccessKey .Example Get-AzEventHubKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -EventHubName myEventHub -Name RootManageSharedAccessKey .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys .Link https://learn.microsoft.com/powershell/module/az.eventhub/get-azeventhubkey #> function Get-AzEventHubKey { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Event Hub name ${EventHubName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The authorization rule name. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ List = 'Az.EventHub.private\Get-AzEventHubKey_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Gets an AuthorizationRule for a Namespace by rule name. .Description Gets an AuthorizationRule for a Namespace by rule name. .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. NAMESPACEINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link https://learn.microsoft.com/powershell/module/az.eventhub/get-azeventhubnamespaceauthorizationrule #> function Get-AzEventHubNamespaceAuthorizationRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='GetViaIdentityNamespace', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The authorization rule name. ${Name}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='Get', Mandatory)] [Parameter(ParameterSetName='List', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='Get')] [Parameter(ParameterSetName='List')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='GetViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${NamespaceInputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Get = 'Az.EventHub.private\Get-AzEventHubNamespaceAuthorizationRule_Get'; GetViaIdentity = 'Az.EventHub.private\Get-AzEventHubNamespaceAuthorizationRule_GetViaIdentity'; GetViaIdentityNamespace = 'Az.EventHub.private\Get-AzEventHubNamespaceAuthorizationRule_GetViaIdentityNamespace'; List = 'Az.EventHub.private\Get-AzEventHubNamespaceAuthorizationRule_List'; } if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Gets the primary and secondary connection strings for the Namespace. .Description Gets the primary and secondary connection strings for the Namespace. .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys .Link https://learn.microsoft.com/powershell/module/az.eventhub/get-azeventhubnamespacekey #> function Get-AzEventHubNamespaceKey { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The authorization rule name. ${Name}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String[]] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ List = 'Az.EventHub.private\Get-AzEventHubNamespaceKey_List'; } if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Lists all of the available Event Hub REST API operations. .Description Lists all of the available Event Hub REST API operations. .Example {{ Add code here }} .Example {{ Add code here }} .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IOperation .Link https://learn.microsoft.com/powershell/module/az.eventhub/get-azeventhuboperation #> function Get-AzEventHubOperation { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IOperation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ List = 'Az.EventHub.private\Get-AzEventHubOperation_List'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces .Description This operation disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. NAMESPACEINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link https://learn.microsoft.com/powershell/module/az.eventhub/invoke-azeventhubbreakdisasterrecoveryconfigpairing #> function Invoke-AzEventHubBreakDisasterRecoveryConfigPairing { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Break', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Break', Mandatory)] [Parameter(ParameterSetName='BreakViaIdentityNamespace', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Disaster Recovery configuration name ${Name}, [Parameter(ParameterSetName='Break', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='Break', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='Break')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='BreakViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='BreakViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${NamespaceInputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Break = 'Az.EventHub.private\Invoke-AzEventHubBreakDisasterRecoveryConfigPairing_Break'; BreakViaIdentity = 'Az.EventHub.private\Invoke-AzEventHubBreakDisasterRecoveryConfigPairing_BreakViaIdentity'; BreakViaIdentityNamespace = 'Az.EventHub.private\Invoke-AzEventHubBreakDisasterRecoveryConfigPairing_BreakViaIdentityNamespace'; } if (('Break') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace .Description Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. NAMESPACEINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link https://learn.microsoft.com/powershell/module/az.eventhub/invoke-azeventhubfaildisasterrecoveryconfigover #> function Invoke-AzEventHubFailDisasterRecoveryConfigOver { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Fail', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Fail', Mandatory)] [Parameter(ParameterSetName='FailViaIdentityNamespace', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Disaster Recovery configuration name ${Name}, [Parameter(ParameterSetName='Fail', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='Fail', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='Fail')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='FailViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='FailViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${NamespaceInputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Fail = 'Az.EventHub.private\Invoke-AzEventHubFailDisasterRecoveryConfigOver_Fail'; FailViaIdentity = 'Az.EventHub.private\Invoke-AzEventHubFailDisasterRecoveryConfigOver_FailViaIdentity'; FailViaIdentityNamespace = 'Az.EventHub.private\Invoke-AzEventHubFailDisasterRecoveryConfigOver_FailViaIdentityNamespace'; } if (('Fail') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create an ApplicationGroup for a Namespace. .Description Create an ApplicationGroup for a Namespace. .Example $t1 = New-AzEventHubThrottlingPolicyConfig -Name t1 -MetricId IncomingMessages -RateLimitThreshold 10000 $t2 = New-AzEventHubThrottlingPolicyConfig -Name t2 -MetricId OutgoingBytes -RateLimitThreshold 20000 New-AzEventHubApplicationGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -Name myAppGroup -ClientAppGroupIdentifier NamespaceSASKeyName=a -Policy $t1,$t2 .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IApplicationGroup .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IApplicationGroup .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. PARAMETER <IApplicationGroup>: The Application Group object [ClientAppGroupIdentifier <String>]: The Unique identifier for application group.Supports SAS(SASKeyName=KeyName) or AAD(AADAppID=Guid) [IsEnabled <Boolean?>]: Determines if Application Group is allowed to create connection with namespace or not. Once the isEnabled is set to false, all the existing connections of application group gets dropped and no new connections will be allowed [Policy <List<IApplicationGroupPolicy>>]: List of group policies that define the behavior of application group. The policies can support resource governance scenarios such as limiting ingress or egress traffic. Name <String>: The Name of this policy .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhubapplicationgroup #> function New-AzEventHubApplicationGroup { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IApplicationGroup])] [CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IApplicationGroup] # The Application Group object ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ CreateViaIdentity = 'Az.EventHub.private\New-AzEventHubApplicationGroup_CreateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule will take a few seconds to take effect. .Description Create an AuthorizationRule for the specified Event Hub. Creation/update of the AuthorizationRule will take a few seconds to take effect. .Example New-AzEventHubAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAuthRule -Rights @('Manage', 'Send', 'Listen') .Example New-AzEventHubAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -EventHubName myEventHub -Name myAuthRule -Rights @('Manage', 'Send', 'Listen') .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. EVENTHUBINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. NAMESPACEINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. PARAMETER <IAuthorizationRule>: Single item in a List or Get AuthorizationRule operation [Rights <List<String>>]: The rights associated with the rule. .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhubauthorizationrule #> function New-AzEventHubAuthorizationRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityNamespace', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Event Hub name ${EventHubName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityEventhub', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityEventhubExpanded', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityNamespace', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The authorization rule name. ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityEventhub', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityEventhubExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${EventhubInputObject}, [Parameter(ParameterSetName='CreateViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${NamespaceInputObject}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityEventhubExpanded')] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("Manage", "Send", "Listen")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String[]] # The rights associated with the rule. ${Rights}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityEventhub', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule] # Single item in a List or Get AuthorizationRule operation ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ CreateExpanded = 'Az.EventHub.private\New-AzEventHubAuthorizationRule_CreateExpanded'; CreateViaIdentity = 'Az.EventHub.private\New-AzEventHubAuthorizationRule_CreateViaIdentity'; CreateViaIdentityEventhub = 'Az.EventHub.private\New-AzEventHubAuthorizationRule_CreateViaIdentityEventhub'; CreateViaIdentityEventhubExpanded = 'Az.EventHub.private\New-AzEventHubAuthorizationRule_CreateViaIdentityEventhubExpanded'; CreateViaIdentityNamespace = 'Az.EventHub.private\New-AzEventHubAuthorizationRule_CreateViaIdentityNamespace'; CreateViaIdentityNamespaceExpanded = 'Az.EventHub.private\New-AzEventHubAuthorizationRule_CreateViaIdentityNamespaceExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create an instance of an Event Hubs Cluster. .Description Create an instance of an Event Hubs Cluster. .Example New-AzEventHubCluster -ResourceGroupName myResourceGroup -Name myEventHubsCluster -Location "eastasia" -SupportsScaling -Capacity 2 .Example New-AzEventHubCluster -ResourceGroupName myResourceGroup -Name myEventHubsCluster -Location "eastasia" .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICluster .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICluster .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. PARAMETER <ICluster>: Single Event Hubs Cluster resource in List or Get operations. [Location <String>]: Resource location. [Tag <ITrackedResourceTags>]: Resource tags. [(Any) <String>]: This indicates any property can be added to this object. [Capacity <Int32?>]: The quantity of Event Hubs Cluster Capacity Units contained in this cluster. [SupportsScaling <Boolean?>]: A value that indicates whether Scaling is Supported. .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhubcluster #> function New-AzEventHubCluster { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICluster])] [CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICluster] # Single Event Hubs Cluster resource in List or Get operations. ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command as a job ${AsJob}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command asynchronously ${NoWait}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ CreateViaIdentity = 'Az.EventHub.private\New-AzEventHubCluster_CreateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create an Event Hubs consumer group as a nested resource within a Namespace. .Description Create an Event Hubs consumer group as a nested resource within a Namespace. .Example New-AzEventHubConsumerGroup -Name myConsumerGroup -NamespaceName myNamespace -ResourceGroupName myResourceGroup -EventHubName myEventHub -UserMetadata "Test ConsumerGroup" .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IConsumerGroup .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IConsumerGroup .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. PARAMETER <IConsumerGroup>: Single item in List or Get Consumer group operation [UserMetadata <String>]: User Metadata is a placeholder to store user-defined string data with maximum length 1024. e.g. it can be used to store descriptive data, such as list of teams and their contact information also user-defined configuration settings can be stored. .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhubconsumergroup #> function New-AzEventHubConsumerGroup { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IConsumerGroup])] [CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IConsumerGroup] # Single item in List or Get Consumer group operation ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ CreateViaIdentity = 'Az.EventHub.private\New-AzEventHubConsumerGroup_CreateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create a new Alias(Disaster Recovery configuration) .Description Create a new Alias(Disaster Recovery configuration) .Example New-AzEventHubGeoDRConfiguration -Name myAlias -ResourceGroupName myResourceGroup -NamespaceName myPrimaryNamespace -PartnerNamespace /subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/mySecondaryNamespace .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IArmDisasterRecovery .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IArmDisasterRecovery .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. PARAMETER <IArmDisasterRecovery>: Single item in List or Get Alias(Disaster Recovery configuration) operation [AlternateName <String>]: Alternate name specified when alias and namespace names are same. [PartnerNamespace <String>]: ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhubgeodrconfiguration #> function New-AzEventHubGeoDRConfiguration { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IArmDisasterRecovery])] [CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IArmDisasterRecovery] # Single item in List or Get Alias(Disaster Recovery configuration) operation ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ CreateViaIdentity = 'Az.EventHub.private\New-AzEventHubGeoDRConfiguration_CreateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Regenerates the ACS and SAS connection strings for the Event Hub. .Description Regenerates the ACS and SAS connection strings for the Event Hub. .Example New-AzEventHubKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name rootmanagesharedaccesskey -KeyType PrimaryKey .Example New-AzEventHubKey -ResourceGroupName myResourceGroup -NamespaceName myNamespace -EventHubName myEventHub -Name rootmanagesharedaccesskey -KeyType SecondaryKey .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IRegenerateAccessKeyParameters .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. EVENTHUBINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. NAMESPACEINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. PARAMETER <IRegenerateAccessKeyParameters>: Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs to be reset. KeyType <String>: The access key to regenerate. [Key <String>]: Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhubkey #> function New-AzEventHubKey { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='RegenerateViaIdentityEventhub', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The authorization rule name. ${Name}, [Parameter(ParameterSetName='Regenerate', Mandatory)] [Parameter(ParameterSetName='RegenerateViaIdentityNamespace', Mandatory)] [Parameter(ParameterSetName='RegenerateViaIdentityNamespaceExpanded', Mandatory)] [Parameter(ParameterSetName='RegenerateViaJsonFilePath', Mandatory)] [Parameter(ParameterSetName='RegenerateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Event Hub name ${EventHubName}, [Parameter(ParameterSetName='Regenerate', Mandatory)] [Parameter(ParameterSetName='RegenerateViaJsonFilePath', Mandatory)] [Parameter(ParameterSetName='RegenerateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='Regenerate', Mandatory)] [Parameter(ParameterSetName='RegenerateViaJsonFilePath', Mandatory)] [Parameter(ParameterSetName='RegenerateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='Regenerate')] [Parameter(ParameterSetName='RegenerateViaJsonFilePath')] [Parameter(ParameterSetName='RegenerateViaJsonString')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='RegenerateViaIdentityEventhub', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='RegenerateViaIdentityEventhubExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${EventhubInputObject}, [Parameter(ParameterSetName='RegenerateViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='RegenerateViaIdentityNamespaceExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${NamespaceInputObject}, [Parameter(ParameterSetName='Regenerate', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='RegenerateViaIdentityEventhub', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='RegenerateViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IRegenerateAccessKeyParameters] # Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs to be reset. ${Parameter}, [Parameter(ParameterSetName='RegenerateViaIdentityEventhubExpanded', Mandatory)] [Parameter(ParameterSetName='RegenerateViaIdentityNamespaceExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("PrimaryKey", "SecondaryKey")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # The access key to regenerate. ${KeyType}, [Parameter(ParameterSetName='RegenerateViaIdentityEventhubExpanded')] [Parameter(ParameterSetName='RegenerateViaIdentityNamespaceExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType ${Key}, [Parameter(ParameterSetName='RegenerateViaJsonFilePath', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Path of Json file supplied to the Regenerate operation ${JsonFilePath}, [Parameter(ParameterSetName='RegenerateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Json string supplied to the Regenerate operation ${JsonString}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Regenerate = 'Az.EventHub.private\New-AzEventHubKey_Regenerate'; RegenerateViaIdentityEventhub = 'Az.EventHub.private\New-AzEventHubKey_RegenerateViaIdentityEventhub'; RegenerateViaIdentityEventhubExpanded = 'Az.EventHub.private\New-AzEventHubKey_RegenerateViaIdentityEventhubExpanded'; RegenerateViaIdentityNamespace = 'Az.EventHub.private\New-AzEventHubKey_RegenerateViaIdentityNamespace'; RegenerateViaIdentityNamespaceExpanded = 'Az.EventHub.private\New-AzEventHubKey_RegenerateViaIdentityNamespaceExpanded'; RegenerateViaJsonFilePath = 'Az.EventHub.private\New-AzEventHubKey_RegenerateViaJsonFilePath'; RegenerateViaJsonString = 'Az.EventHub.private\New-AzEventHubKey_RegenerateViaJsonString'; } if (('Regenerate', 'RegenerateViaJsonFilePath', 'RegenerateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create an AuthorizationRule for a Namespace. .Description Create an AuthorizationRule for a Namespace. .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. NAMESPACEINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. PARAMETER <IAuthorizationRule>: Single item in a List or Get AuthorizationRule operation [Rights <List<String>>]: The rights associated with the rule. .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhubnamespaceauthorizationrule #> function New-AzEventHubNamespaceAuthorizationRule { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityNamespace', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The authorization rule name. ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${NamespaceInputObject}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("Manage", "Send", "Listen")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String[]] # The rights associated with the rule. ${Rights}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule] # Single item in a List or Get AuthorizationRule operation ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ CreateExpanded = 'Az.EventHub.private\New-AzEventHubNamespaceAuthorizationRule_CreateExpanded'; CreateViaIdentity = 'Az.EventHub.private\New-AzEventHubNamespaceAuthorizationRule_CreateViaIdentity'; CreateViaIdentityNamespace = 'Az.EventHub.private\New-AzEventHubNamespaceAuthorizationRule_CreateViaIdentityNamespace'; CreateViaIdentityNamespaceExpanded = 'Az.EventHub.private\New-AzEventHubNamespaceAuthorizationRule_CreateViaIdentityNamespaceExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Regenerates the primary or secondary connection strings for the specified Namespace. .Description Regenerates the primary or secondary connection strings for the specified Namespace. .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IRegenerateAccessKeyParameters .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. NAMESPACEINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. PARAMETER <IRegenerateAccessKeyParameters>: Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs to be reset. KeyType <String>: The access key to regenerate. [Key <String>]: Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhubnamespacekey #> function New-AzEventHubNamespaceKey { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys])] [CmdletBinding(DefaultParameterSetName='RegenerateViaIdentityNamespace', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The authorization rule name. ${Name}, [Parameter(ParameterSetName='Regenerate', Mandatory)] [Parameter(ParameterSetName='RegenerateViaJsonFilePath', Mandatory)] [Parameter(ParameterSetName='RegenerateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='Regenerate', Mandatory)] [Parameter(ParameterSetName='RegenerateViaJsonFilePath', Mandatory)] [Parameter(ParameterSetName='RegenerateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='Regenerate')] [Parameter(ParameterSetName='RegenerateViaJsonFilePath')] [Parameter(ParameterSetName='RegenerateViaJsonString')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='RegenerateViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='RegenerateViaIdentityNamespaceExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${NamespaceInputObject}, [Parameter(ParameterSetName='Regenerate', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='RegenerateViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IRegenerateAccessKeyParameters] # Parameters supplied to the Regenerate Authorization Rule operation, specifies which key needs to be reset. ${Parameter}, [Parameter(ParameterSetName='RegenerateViaIdentityNamespaceExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("PrimaryKey", "SecondaryKey")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # The access key to regenerate. ${KeyType}, [Parameter(ParameterSetName='RegenerateViaIdentityNamespaceExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType ${Key}, [Parameter(ParameterSetName='RegenerateViaJsonFilePath', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Path of Json file supplied to the Regenerate operation ${JsonFilePath}, [Parameter(ParameterSetName='RegenerateViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Json string supplied to the Regenerate operation ${JsonString}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Regenerate = 'Az.EventHub.private\New-AzEventHubNamespaceKey_Regenerate'; RegenerateViaIdentityNamespace = 'Az.EventHub.private\New-AzEventHubNamespaceKey_RegenerateViaIdentityNamespace'; RegenerateViaIdentityNamespaceExpanded = 'Az.EventHub.private\New-AzEventHubNamespaceKey_RegenerateViaIdentityNamespaceExpanded'; RegenerateViaJsonFilePath = 'Az.EventHub.private\New-AzEventHubNamespaceKey_RegenerateViaJsonFilePath'; RegenerateViaJsonString = 'Az.EventHub.private\New-AzEventHubNamespaceKey_RegenerateViaJsonString'; } if (('Regenerate', 'RegenerateViaJsonFilePath', 'RegenerateViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. .Description Create a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. .Example $keyVaultProperty1 = New-AzEventHubKeyVaultPropertiesObject -KeyName key1 -KeyVaultUri https://testkeyvault.vault.azure.net -UserAssignedIdentity "/subscriptions/000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myFirstIdentity" $keyVaultProperty2 = New-AzEventHubKeyVaultPropertiesObject -KeyName key2 -KeyVaultUri https://testkeyvault.vault.azure.net -UserAssignedIdentity "/subscriptions/000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mySecondIdentity" New-AzEventHubNamespace -ResourceGroupName myResourceGroup -Name myNamespace -SkuName Premium -Location northeurope -IdentityType UserAssigned -UserAssignedIdentityId "/subscriptions/000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myFirstIdentity","/subscriptions/000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/mySecondIdentity" -KeyVaultProperty $keyVaultProperty1,$keyVaultProperty2 .Example New-AzEventHubNamespace -ResourceGroupName myResourceGroup -Name myNamespace -SkuName Premium -Location northeurope -IdentityType SystemAssigned .Example New-AzEventHubNamespace -ResourceGroupName myResourceGroup -Name myNamespace -SkuCapacity 10 -MaximumThroughputUnit 18 -SkuName Standard -Location southcentralus -Tag @{k1='v1'; k2='v2'} -EnableAutoInflate -DisableLocalAuth .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEhNamespace .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEhNamespace .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. GEODATAREPLICATIONLOCATION <INamespaceReplicaLocation[]>: A list of regions where replicas of the namespace are maintained. [ClusterArmId <String>]: Optional property that denotes the ARM ID of the Cluster. This is required, if a namespace replica should be placed in a Dedicated Event Hub Cluster [LocationName <String>]: Azure regions where a replica of the namespace is maintained [RoleType <String>]: GeoDR Role Types INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. KEYVAULTPROPERTY <IKeyVaultProperties[]>: Properties of KeyVault [KeyName <String>]: Name of the Key from KeyVault [KeyVaultUri <String>]: Uri of KeyVault [KeyVersion <String>]: Key Version [UserAssignedIdentity <String>]: ARM ID of user Identity selected for encryption PARAMETER <IEhNamespace>: Single Namespace item in List or Get Operation [Location <String>]: Resource location. [Tag <ITrackedResourceTags>]: Resource tags. [(Any) <String>]: This indicates any property can be added to this object. [AlternateName <String>]: Alternate name specified when alias and namespace names are same. [ClusterArmId <String>]: Cluster ARM ID of the Namespace. [DisableLocalAuth <Boolean?>]: This property disables SAS authentication for the Event Hubs namespace. [EnableAutoInflate <Boolean?>]: Value that indicates whether AutoInflate is enabled for eventhub namespace. [GeoDataReplicationLocation <List<INamespaceReplicaLocation>>]: A list of regions where replicas of the namespace are maintained. [ClusterArmId <String>]: Optional property that denotes the ARM ID of the Cluster. This is required, if a namespace replica should be placed in a Dedicated Event Hub Cluster [LocationName <String>]: Azure regions where a replica of the namespace is maintained [RoleType <String>]: GeoDR Role Types [GeoDataReplicationMaxReplicationLagDurationInSecond <Int32?>]: The maximum acceptable lag for data replication operations from the primary replica to a quorum of secondary replicas. When the lag exceeds the configured amount, operations on the primary replica will be failed. The allowed values are 0 and 5 minutes to 1 day. [IdentityType <String>]: Type of managed service identity. [KafkaEnabled <Boolean?>]: Value that indicates whether Kafka is enabled for eventhub namespace. [KeySource <String>]: Enumerates the possible value of keySource for Encryption [KeyVaultProperty <List<IKeyVaultProperties>>]: Properties of KeyVault [KeyName <String>]: Name of the Key from KeyVault [KeyVaultUri <String>]: Uri of KeyVault [KeyVersion <String>]: Key Version [UserAssignedIdentity <String>]: ARM ID of user Identity selected for encryption [MaximumThroughputUnit <Int32?>]: Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. ( '0' if AutoInflateEnabled = true) [MinimumTlsVersion <String>]: The minimum TLS version for the cluster to support, e.g. '1.2' [PrivateEndpointConnection <List<IPrivateEndpointConnection>>]: List of private endpoint connections. [ConnectionState <String>]: Status of the connection. [Description <String>]: Description of the connection state. [PrivateEndpointId <String>]: The ARM identifier for Private Endpoint. [ProvisioningState <String>]: Provisioning state of the Private Endpoint Connection. [PublicNetworkAccess <String>]: This determines if traffic is allowed over public network. By default it is enabled. [RequireInfrastructureEncryption <Boolean?>]: Enable Infrastructure Encryption (Double Encryption) [SkuCapacity <Int32?>]: The Event Hubs throughput units for Basic or Standard tiers, where value should be 0 to 20 throughput units. The Event Hubs premium units for Premium tier, where value should be 0 to 10 premium units. [SkuName <String>]: Name of this SKU. [SkuTier <String>]: The billing tier of this particular SKU. [UserAssignedIdentity <IIdentityUserAssignedIdentities>]: Properties for User Assigned Identities [(Any) <IUserAssignedIdentity>]: This indicates any property can be added to this object. [ZoneRedundant <Boolean?>]: Enabling this property creates a Standard Event Hubs Namespace in regions supported availability zones. PRIVATEENDPOINTCONNECTION <IPrivateEndpointConnection[]>: List of private endpoint connections. [ConnectionState <String>]: Status of the connection. [Description <String>]: Description of the connection state. [PrivateEndpointId <String>]: The ARM identifier for Private Endpoint. [ProvisioningState <String>]: Provisioning state of the Private Endpoint Connection. .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhubnamespace #> function New-AzEventHubNamespace { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEhNamespace])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Alias('NamespaceName')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Alternate name specified when alias and namespace names are same. ${AlternateName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Cluster ARM ID of the Namespace. ${ClusterArmId}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.Management.Automation.SwitchParameter] # This property disables SAS authentication for the Event Hubs namespace. ${DisableLocalAuth}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.Management.Automation.SwitchParameter] # Value that indicates whether AutoInflate is enabled for eventhub namespace. ${EnableAutoInflate}, [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INamespaceReplicaLocation[]] # A list of regions where replicas of the namespace are maintained. ${GeoDataReplicationLocation}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.Int32] # The maximum acceptable lag for data replication operations from the primary replica to a quorum of secondary replicas. # When the lag exceeds the configured amount, operations on the primary replica will be failed. # The allowed values are 0 and 5 minutes to 1 day. ${GeoDataReplicationMaxReplicationLagDurationInSecond}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", "None")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Type of managed service identity. ${IdentityType}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.Management.Automation.SwitchParameter] # Value that indicates whether Kafka is enabled for eventhub namespace. ${KafkaEnabled}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("Microsoft.KeyVault")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Enumerates the possible value of keySource for Encryption ${KeySource}, [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IKeyVaultProperties[]] # Properties of KeyVault ${KeyVaultProperty}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Resource location. ${Location}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.Int32] # Upper limit of throughput units when AutoInflate is enabled, value should be within 0 to 20 throughput units. # ( '0' if AutoInflateEnabled = true) ${MaximumThroughputUnit}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("1.0", "1.1", "1.2")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # The minimum TLS version for the cluster to support, e.g. # '1.2' ${MinimumTlsVersion}, [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IPrivateEndpointConnection[]] # List of private endpoint connections. ${PrivateEndpointConnection}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("Enabled", "Disabled", "SecuredByPerimeter")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # This determines if traffic is allowed over public network. # By default it is enabled. ${PublicNetworkAccess}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.Management.Automation.SwitchParameter] # Enable Infrastructure Encryption (Double Encryption) ${RequireInfrastructureEncryption}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.Int32] # The Event Hubs throughput units for Basic or Standard tiers, where value should be 0 to 20 throughput units. # The Event Hubs premium units for Premium tier, where value should be 0 to 10 premium units. ${SkuCapacity}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("Basic", "Standard", "Premium")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Name of this SKU. ${SkuName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("Basic", "Standard", "Premium")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # The billing tier of this particular SKU. ${SkuTier}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ITrackedResourceTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # Properties for User Assigned Identities ${UserAssignedIdentity}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.Management.Automation.SwitchParameter] # Enabling this property creates a Standard Event Hubs Namespace in regions supported availability zones. ${ZoneRedundant}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEhNamespace] # Single Namespace item in List or Get Operation ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command as a job ${AsJob}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Run the command asynchronously ${NoWait}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ CreateExpanded = 'Az.EventHub.private\New-AzEventHubNamespace_CreateExpanded'; CreateViaIdentity = 'Az.EventHub.private\New-AzEventHubNamespace_CreateViaIdentity'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create NetworkRuleSet for a Namespace. .Description Create NetworkRuleSet for a Namespace. .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INetworkRuleSet .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INetworkRuleSet .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. IPRULE <INwRuleSetIPRules[]>: List of IpRules [Action <String>]: The IP Filter Action [IPMask <String>]: IP Mask PARAMETER <INetworkRuleSet>: Description of topic resource. [DefaultAction <String>]: Default Action for Network Rule Set [IPRule <List<INwRuleSetIPRules>>]: List of IpRules [Action <String>]: The IP Filter Action [IPMask <String>]: IP Mask [PublicNetworkAccess <String>]: This determines if traffic is allowed over public network. By default it is enabled. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules. [TrustedServiceAccessEnabled <Boolean?>]: Value that indicates whether Trusted Service Access is Enabled or not. [VirtualNetworkRule <List<INwRuleSetVirtualNetworkRules>>]: List VirtualNetwork Rules [IgnoreMissingVnetServiceEndpoint <Boolean?>]: Value that indicates whether to ignore missing Vnet Service Endpoint [SubnetId <String>]: Resource ID of Virtual Network Subnet VIRTUALNETWORKRULE <INwRuleSetVirtualNetworkRules[]>: List VirtualNetwork Rules [IgnoreMissingVnetServiceEndpoint <Boolean?>]: Value that indicates whether to ignore missing Vnet Service Endpoint [SubnetId <String>]: Resource ID of Virtual Network Subnet .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhubnetworkruleset #> function New-AzEventHubNetworkRuleSet { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INetworkRuleSet])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("Allow", "Deny")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Default Action for Network Rule Set ${DefaultAction}, [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INwRuleSetIPRules[]] # List of IpRules ${IPRule}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("Enabled", "Disabled", "SecuredByPerimeter")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # This determines if traffic is allowed over public network. # By default it is enabled. # If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules. ${PublicNetworkAccess}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.Management.Automation.SwitchParameter] # Value that indicates whether Trusted Service Access is Enabled or not. ${TrustedServiceAccessEnabled}, [Parameter(ParameterSetName='CreateExpanded')] [AllowEmptyCollection()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INwRuleSetVirtualNetworkRules[]] # List VirtualNetwork Rules ${VirtualNetworkRule}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INetworkRuleSet] # Description of topic resource. ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ CreateExpanded = 'Az.EventHub.private\New-AzEventHubNetworkRuleSet_CreateExpanded'; CreateViaIdentity = 'Az.EventHub.private\New-AzEventHubNetworkRuleSet_CreateViaIdentity'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create PrivateEndpointConnections of service namespace. .Description Create PrivateEndpointConnections of service namespace. .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IPrivateEndpointConnection .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IPrivateEndpointConnection .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. NAMESPACEINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. PARAMETER <IPrivateEndpointConnection>: Properties of the PrivateEndpointConnection. [ConnectionState <String>]: Status of the connection. [Description <String>]: Description of the connection state. [PrivateEndpointId <String>]: The ARM identifier for Private Endpoint. [ProvisioningState <String>]: Provisioning state of the Private Endpoint Connection. .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhubprivateendpointconnection .Link https://msdn.microsoft.com/en-us/library/azure/mt639408.aspx #> function New-AzEventHubPrivateEndpointConnection { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IPrivateEndpointConnection])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityNamespace', Mandatory)] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded', Mandatory)] [Alias('PrivateEndpointConnectionName')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The PrivateEndpointConnection name ${Name}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='CreateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='CreateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='CreateViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${NamespaceInputObject}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # The ARM identifier for Private Endpoint. ${PrivateEndpointId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Description of the connection state. ${PrivateLinkServiceConnectionStateDescription}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("Pending", "Approved", "Rejected", "Disconnected")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Status of the connection. ${PrivateLinkServiceConnectionStateStatus}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateViaIdentityNamespaceExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.PSArgumentCompleterAttribute("Creating", "Updating", "Deleting", "Succeeded", "Canceled", "Failed")] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Provisioning state of the Private Endpoint Connection. ${ProvisioningState}, [Parameter(ParameterSetName='CreateViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CreateViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IPrivateEndpointConnection] # Properties of the PrivateEndpointConnection. ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ CreateExpanded = 'Az.EventHub.private\New-AzEventHubPrivateEndpointConnection_CreateExpanded'; CreateViaIdentity = 'Az.EventHub.private\New-AzEventHubPrivateEndpointConnection_CreateViaIdentity'; CreateViaIdentityNamespace = 'Az.EventHub.private\New-AzEventHubPrivateEndpointConnection_CreateViaIdentityNamespace'; CreateViaIdentityNamespaceExpanded = 'Az.EventHub.private\New-AzEventHubPrivateEndpointConnection_CreateViaIdentityNamespaceExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create an EventHub schema group. .Description Create an EventHub schema group. .Example $schemaGroup = New-AzEventHubSchemaGroup -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name mySchemaGroup -SchemaCompatibility Backward -SchemaType Avro .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ISchemaGroup .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ISchemaGroup .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. PARAMETER <ISchemaGroup>: Single item in List or Get Schema Group operation [GroupProperty <ISchemaGroupProperties>]: dictionary object for SchemaGroup group properties [(Any) <String>]: This indicates any property can be added to this object. [SchemaCompatibility <String>]: [SchemaType <String>]: .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhubschemagroup #> function New-AzEventHubSchemaGroup { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ISchemaGroup])] [CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ISchemaGroup] # Single item in List or Get Schema Group operation ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ CreateViaIdentity = 'Az.EventHub.private\New-AzEventHubSchemaGroup_CreateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Create a new Event Hub as a nested resource within a Namespace. .Description Create a new Event Hub as a nested resource within a Namespace. .Example New-AzEventHub -Name myEventHub -ResourceGroupName myResourceGroup -NamespaceName myNamespace -RetentionTimeInHour 168 -PartitionCount 5 -CleanupPolicy Delete .Example New-AzEventHub -Name myEventHub -ResourceGroupName myResourceGroup -NamespaceName myNamespace -ArchiveNameFormat "{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}" -BlobContainer container -CaptureEnabled -DestinationName EventHubArchive.AzureBlockBlob -Encoding Avro -IntervalInSeconds 600 -SizeLimitInBytes 11000000 -SkipEmptyArchive -StorageAccountResourceId "/subscriptions/subscriptionId/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount -CleanupPolicy Delete" .Example New-AzEventHub -Name myEventHub -ResourceGroupName myResourceGroup -NamespaceName myNamespace -CleanupPolicy Compact .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventhub .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventhub .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. PARAMETER <IEventhub>: Single item in List or Get Event Hub operation [ArchiveNameFormat <String>]: Blob naming convention for archive, e.g. {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. Here all the parameters (Namespace,EventHub .. etc) are mandatory irrespective of order [BlobContainer <String>]: Blob container Name [CaptureEnabled <Boolean?>]: A value that indicates whether capture description is enabled. [CleanupPolicy <String>]: Enumerates the possible values for cleanup policy [DataLakeAccountName <String>]: The Azure Data Lake Store name for the captured events [DataLakeFolderPath <String>]: The destination folder path for the captured events [DataLakeSubscriptionId <String>]: Subscription Id of Azure Data Lake Store [DestinationName <String>]: Name for capture destination [Encoding <String>]: Enumerates the possible values for the encoding format of capture description. Note: 'AvroDeflate' will be deprecated in New API Version [IdentityType <String>]: Type of Azure Active Directory Managed Identity. [IntervalInSeconds <Int32?>]: The time window allows you to set the frequency with which the capture to Azure Blobs will happen, value should between 60 to 900 seconds [MessageRetentionInDay <Int64?>]: Number of days to retain the events for this Event Hub, value should be 1 to 7 days [PartitionCount <Int64?>]: Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions. [RetentionTimeInHour <Int64?>]: Number of hours to retain the events for this Event Hub. This value is only used when cleanupPolicy is Delete. If cleanupPolicy is Compact the returned value of this property is Long.MaxValue [SizeLimitInBytes <Int32?>]: The size window defines the amount of data built up in your Event Hub before an capture operation, value should be between 10485760 to 524288000 bytes [SkipEmptyArchive <Boolean?>]: A value that indicates whether to Skip Empty Archives [Status <String>]: Enumerates the possible values for the status of the Event Hub. [StorageAccountResourceId <String>]: Resource id of the storage account to be used to create the blobs [TombstoneRetentionTimeInHour <Int32?>]: Number of hours to retain the tombstone markers of a compacted Event Hub. This value is only used when cleanupPolicy is Compact. Consumer must complete reading the tombstone marker within this specified amount of time if consumer begins from starting offset to ensure they get a valid snapshot for the specific key described by the tombstone marker within the compacted Event Hub [UserAssignedIdentityId <String>]: ARM ID of Managed User Identity. This property is required is the type is UserAssignedIdentity. If type is SystemAssigned, then the System Assigned Identity Associated with the namespace will be used. .Link https://learn.microsoft.com/powershell/module/az.eventhub/new-azeventhub #> function New-AzEventHub { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventhub])] [CmdletBinding(DefaultParameterSetName='CreateViaIdentity', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventhub] # Single item in List or Get Event Hub operation ${Parameter}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ CreateViaIdentity = 'Az.EventHub.private\New-AzEventHub_CreateViaIdentity'; } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Deletes an Event Hub AuthorizationRule. .Description Deletes an Event Hub AuthorizationRule. .Example Remove-AzEventHubAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -Name myAuthRule .Example Remove-AzEventHubAuthorizationRule -ResourceGroupName myResourceGroup -NamespaceName myNamespace -EventHubName myEventHub -Name myAuthRule .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. EVENTHUBINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. NAMESPACEINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link https://learn.microsoft.com/powershell/module/az.eventhub/remove-azeventhubauthorizationrule #> function Remove-AzEventHubAuthorizationRule { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Parameter(ParameterSetName='DeleteViaIdentityNamespace', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Event Hub name ${EventHubName}, [Parameter(ParameterSetName='Delete', Mandatory)] [Parameter(ParameterSetName='DeleteViaIdentityEventhub', Mandatory)] [Parameter(ParameterSetName='DeleteViaIdentityNamespace', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The authorization rule name. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityEventhub', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${EventhubInputObject}, [Parameter(ParameterSetName='DeleteViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${NamespaceInputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Az.EventHub.private\Remove-AzEventHubAuthorizationRule_Delete'; DeleteViaIdentity = 'Az.EventHub.private\Remove-AzEventHubAuthorizationRule_DeleteViaIdentity'; DeleteViaIdentityEventhub = 'Az.EventHub.private\Remove-AzEventHubAuthorizationRule_DeleteViaIdentityEventhub'; DeleteViaIdentityNamespace = 'Az.EventHub.private\Remove-AzEventHubAuthorizationRule_DeleteViaIdentityNamespace'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Deletes an AuthorizationRule for a Namespace. .Description Deletes an AuthorizationRule for a Namespace. .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs System.Boolean .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. NAMESPACEINPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. .Link https://learn.microsoft.com/powershell/module/az.eventhub/remove-azeventhubnamespaceauthorizationrule #> function Remove-AzEventHubNamespaceAuthorizationRule { [OutputType([System.Boolean])] [CmdletBinding(DefaultParameterSetName='Delete', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Delete', Mandatory)] [Parameter(ParameterSetName='DeleteViaIdentityNamespace', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The authorization rule name. ${Name}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='Delete', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='Delete')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='DeleteViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='DeleteViaIdentityNamespace', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${NamespaceInputObject}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Returns true when the command succeeds ${PassThru}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Delete = 'Az.EventHub.private\Remove-AzEventHubNamespaceAuthorizationRule_Delete'; DeleteViaIdentity = 'Az.EventHub.private\Remove-AzEventHubNamespaceAuthorizationRule_DeleteViaIdentity'; DeleteViaIdentityNamespace = 'Az.EventHub.private\Remove-AzEventHubNamespaceAuthorizationRule_DeleteViaIdentityNamespace'; } if (('Delete') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Check the give Namespace name availability. .Description Check the give Namespace name availability. .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICheckNameAvailabilityParameter .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICheckNameAvailabilityResult .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. INPUTOBJECT <IEventHubIdentity>: Identity Parameter [Alias <String>]: The Disaster Recovery configuration name [ApplicationGroupName <String>]: The Application Group name [AuthorizationRuleName <String>]: The authorization rule name. [ClusterName <String>]: The name of the Event Hubs Cluster. [ConsumerGroupName <String>]: The consumer group name [EventHubName <String>]: The Event Hub name [Id <String>]: Resource identity path [NamespaceName <String>]: The Namespace name [PrivateEndpointConnectionName <String>]: The PrivateEndpointConnection name [ResourceAssociationName <String>]: The ResourceAssociation Name [ResourceGroupName <String>]: Name of the resource group within the azure subscription. [SchemaGroupName <String>]: The Schema Group name [SubscriptionId <String>]: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. PARAMETER <ICheckNameAvailabilityParameter>: Parameter supplied to check Namespace name availability operation Name <String>: Name to check the namespace name availability .Link https://learn.microsoft.com/powershell/module/az.eventhub/test-azeventhubdisasterrecoveryconfignameavailability #> function Test-AzEventHubDisasterRecoveryConfigNameAvailability { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICheckNameAvailabilityResult])] [CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Check', Mandatory)] [Parameter(ParameterSetName='CheckExpanded', Mandatory)] [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # The Namespace name ${NamespaceName}, [Parameter(ParameterSetName='Check', Mandatory)] [Parameter(ParameterSetName='CheckExpanded', Mandatory)] [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [System.String] # Name of the resource group within the azure subscription. ${ResourceGroupName}, [Parameter(ParameterSetName='Check')] [Parameter(ParameterSetName='CheckExpanded')] [Parameter(ParameterSetName='CheckViaJsonFilePath')] [Parameter(ParameterSetName='CheckViaJsonString')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentityExpanded', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEventHubIdentity] # Identity Parameter ${InputObject}, [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Parameter(ParameterSetName='CheckViaIdentity', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICheckNameAvailabilityParameter] # Parameter supplied to check Namespace name availability operation ${Parameter}, [Parameter(ParameterSetName='CheckExpanded', Mandatory)] [Parameter(ParameterSetName='CheckViaIdentityExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Name to check the namespace name availability ${Name}, [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Path of Json file supplied to the Check operation ${JsonFilePath}, [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Json string supplied to the Check operation ${JsonString}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Check = 'Az.EventHub.private\Test-AzEventHubDisasterRecoveryConfigNameAvailability_Check'; CheckExpanded = 'Az.EventHub.private\Test-AzEventHubDisasterRecoveryConfigNameAvailability_CheckExpanded'; CheckViaIdentity = 'Az.EventHub.private\Test-AzEventHubDisasterRecoveryConfigNameAvailability_CheckViaIdentity'; CheckViaIdentityExpanded = 'Az.EventHub.private\Test-AzEventHubDisasterRecoveryConfigNameAvailability_CheckViaIdentityExpanded'; CheckViaJsonFilePath = 'Az.EventHub.private\Test-AzEventHubDisasterRecoveryConfigNameAvailability_CheckViaJsonFilePath'; CheckViaJsonString = 'Az.EventHub.private\Test-AzEventHubDisasterRecoveryConfigNameAvailability_CheckViaJsonString'; } if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } <# .Synopsis Check the give Namespace name availability. .Description Check the give Namespace name availability. .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICheckNameAvailabilityParameter .Outputs Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICheckNameAvailabilityResult .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. PARAMETER <ICheckNameAvailabilityParameter>: Parameter supplied to check Namespace name availability operation Name <String>: Name to check the namespace name availability .Link https://learn.microsoft.com/powershell/module/az.eventhub/test-azeventhubnamespacenameavailability #> function Test-AzEventHubNamespaceNameAvailability { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICheckNameAvailabilityResult])] [CmdletBinding(DefaultParameterSetName='CheckExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Path')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] # Subscription credentials that uniquely identify a Microsoft Azure subscription. # The subscription ID forms part of the URI for every service call. ${SubscriptionId}, [Parameter(ParameterSetName='Check', Mandatory, ValueFromPipeline)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.ICheckNameAvailabilityParameter] # Parameter supplied to check Namespace name availability operation ${Parameter}, [Parameter(ParameterSetName='CheckExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Name to check the namespace name availability ${Name}, [Parameter(ParameterSetName='CheckViaJsonFilePath', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Path of Json file supplied to the Check operation ${JsonFilePath}, [Parameter(ParameterSetName='CheckViaJsonString', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')] [System.String] # Json string supplied to the Check operation ${JsonString}, [Parameter()] [Alias('AzureRMContext', 'AzureCredential')] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Azure')] [System.Management.Automation.PSObject] # The DefaultProfile parameter is not functional. # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Check = 'Az.EventHub.private\Test-AzEventHubNamespaceNameAvailability_Check'; CheckExpanded = 'Az.EventHub.private\Test-AzEventHubNamespaceNameAvailability_CheckExpanded'; CheckViaJsonFilePath = 'Az.EventHub.private\Test-AzEventHubNamespaceNameAvailability_CheckViaJsonFilePath'; CheckViaJsonString = 'Az.EventHub.private\Test-AzEventHubNamespaceNameAvailability_CheckViaJsonString'; } if (('Check', 'CheckExpanded', 'CheckViaJsonFilePath', 'CheckViaJsonString') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId') ) { $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } if ($testPlayback) { $PSBoundParameters['SubscriptionId'] = . (Join-Path $PSScriptRoot '..' 'utils' 'Get-SubscriptionIdTestSafe.ps1') } else { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } # SIG # Begin signature block # MIIoLQYJKoZIhvcNAQcCoIIoHjCCKBoCAQExD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