Skip to content

Commit

Permalink
[EventHub/ServiceBus] Moved cmdlets to V4 (Azure#24070)
Browse files Browse the repository at this point in the history
* R2D tesing

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Docs update

* Updates

* updates

* Revert "updates"

* Revert "Updates22"

This reverts commit d247880.

* Revert "Docs update2"

This reverts commit 66fa1e4.

* fixing the test failure

* updates

* Revert "updates"

This reverts commit 3f1bcd8.

* Final updatees

* Docs update

* Updates with test

* updates

* Suppressing the breaking change exceptions

* Breaking changes csv update

* Deleted the tring[] file
  • Loading branch information
schaudhari6254888 authored and qinzhouxu committed Jun 5, 2024
1 parent 6967533 commit c1dcc43
Show file tree
Hide file tree
Showing 296 changed files with 17,840 additions and 21,263 deletions.
4 changes: 2 additions & 2 deletions src/EventHub/EventHub.Autorest/Az.EventHub.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.EventHub.private.dll'
FormatsToProcess = './Az.EventHub.format.ps1xml'
FunctionsToExport = 'Approve-AzEventHubPrivateEndpointConnection', 'Deny-AzEventHubPrivateEndpointConnection', 'Get-AzEventHub', 'Get-AzEventHubApplicationGroup', 'Get-AzEventHubAuthorizationRule', 'Get-AzEventHubCluster', 'Get-AzEventHubClusterNamespace', 'Get-AzEventHubClustersAvailableRegion', 'Get-AzEventHubConsumerGroup', 'Get-AzEventHubGeoDRConfiguration', 'Get-AzEventHubKey', 'Get-AzEventHubNamespace', 'Get-AzEventHubNetworkRuleSet', 'Get-AzEventHubPrivateEndpointConnection', 'Get-AzEventHubPrivateLink', 'Get-AzEventHubSchemaGroup', 'New-AzEventHub', 'New-AzEventHubApplicationGroup', 'New-AzEventHubAuthorizationRule', 'New-AzEventHubCluster', 'New-AzEventHubConsumerGroup', 'New-AzEventHubGeoDRConfiguration', 'New-AzEventHubIPRuleConfig', 'New-AzEventHubKey', 'New-AzEventHubKeyVaultPropertiesObject', 'New-AzEventHubNamespace', 'New-AzEventHubSchemaGroup', 'New-AzEventHubThrottlingPolicyConfig', 'New-AzEventHubVirtualNetworkRuleConfig', 'Remove-AzEventHub', 'Remove-AzEventHubApplicationGroup', 'Remove-AzEventHubAuthorizationRule', 'Remove-AzEventHubCluster', 'Remove-AzEventHubConsumerGroup', 'Remove-AzEventHubGeoDRConfiguration', 'Remove-AzEventHubNamespace', 'Remove-AzEventHubPrivateEndpointConnection', 'Remove-AzEventHubSchemaGroup', 'Set-AzEventHub', 'Set-AzEventHubApplicationGroup', 'Set-AzEventHubAuthorizationRule', 'Set-AzEventHubCluster', 'Set-AzEventHubConsumerGroup', 'Set-AzEventHubGeoDRConfigurationBreakPair', 'Set-AzEventHubGeoDRConfigurationFailOver', 'Set-AzEventHubNamespace', 'Set-AzEventHubNetworkRuleSet', 'Test-AzEventHubName', '*'
AliasesToExport = 'Get-AzEventHubNamespaceV2', 'New-AzEventHubNamespaceV2', 'Remove-AzEventHubNamespaceV2', 'Set-AzEventHubNamespaceV2', '*'
FunctionsToExport = 'Approve-AzEventHubPrivateEndpointConnection', 'Deny-AzEventHubPrivateEndpointConnection', 'Get-AzEventHub', 'Get-AzEventHubApplicationGroup', 'Get-AzEventHubAuthorizationRule', 'Get-AzEventHubCluster', 'Get-AzEventHubClusterNamespace', 'Get-AzEventHubClustersAvailableRegion', 'Get-AzEventHubConsumerGroup', 'Get-AzEventHubGeoDRConfiguration', 'Get-AzEventHubKey', 'Get-AzEventHubNamespace', 'Get-AzEventHubNetworkRuleSet', 'Get-AzEventHubPrivateEndpointConnection', 'Get-AzEventHubPrivateLink', 'Get-AzEventHubSchemaGroup', 'New-AzEventHub', 'New-AzEventHubApplicationGroup', 'New-AzEventHubAuthorizationRule', 'New-AzEventHubCluster', 'New-AzEventHubConsumerGroup', 'New-AzEventHubGeoDRConfiguration', 'New-AzEventHubIPRuleConfig', 'New-AzEventHubKey', 'New-AzEventHubKeyVaultPropertiesObject', 'New-AzEventHubNamespace', 'New-AzEventHubSchemaGroup', 'New-AzEventHubThrottlingPolicyConfig', 'New-AzEventHubVirtualNetworkRuleConfig', 'Remove-AzEventHub', 'Remove-AzEventHubApplicationGroup', 'Remove-AzEventHubAuthorizationRule', 'Remove-AzEventHubCluster', 'Remove-AzEventHubConsumerGroup', 'Remove-AzEventHubGeoDRConfiguration', 'Remove-AzEventHubNamespace', 'Remove-AzEventHubPrivateEndpointConnection', 'Remove-AzEventHubSchemaGroup', 'Set-AzEventHub', 'Set-AzEventHubApplicationGroup', 'Set-AzEventHubAuthorizationRule', 'Set-AzEventHubCluster', 'Set-AzEventHubConsumerGroup', 'Set-AzEventHubGeoDRConfigurationBreakPair', 'Set-AzEventHubGeoDRConfigurationFailOver', 'Set-AzEventHubNamespace', 'Set-AzEventHubNetworkRuleSet', 'Test-AzEventHubName'
AliasesToExport = 'Get-AzEventHubNamespaceV2', 'New-AzEventHubNamespaceV2', 'Remove-AzEventHubNamespaceV2', 'Set-AzEventHubNamespaceV2'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'EventHub'
Expand Down
73 changes: 6 additions & 67 deletions src/EventHub/EventHub.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,13 @@ subject-prefix: $(service-name)
# uncomment following line to support viaIdentity for these post APIs
resourcegroup-append: true
nested-object-to-string: true

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"
keep-pec-and-plr: true
disable-transform-identity-type: true
flatten-userassignedidentity : false

directive:
- where:
variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^CreateViaJsonFilePath$|^CreateViaJsonString$
remove: true
- where:
variant: ^CreateViaIdentity$
Expand Down Expand Up @@ -456,65 +455,5 @@ directive:
suppress-format: true

- model-cmdlet:
- KeyVaultProperties

- where:
parameter-name: IdentityType
set:
breaking-change:
old-parameter-type: CaptureIdentityType
new-parameter-type: String
deprecated-by-version: 5.0.0
deprecated-by-azversion: 12.0.0
change-effective-date: 2024/05/21

- where:
parameter-name: CleanupPolicy
set:
breaking-change:
old-parameter-type: CleanupPolicyRetentionDescription
new-parameter-type: String
deprecated-by-version: 5.0.0
deprecated-by-azversion: 12.0.0
change-effective-date: 2024/05/21

- where:
parameter-name: Status
set:
breaking-change:
old-parameter-type: EntityStatus
new-parameter-type: String
deprecated-by-version: 5.0.0
deprecated-by-azversion: 12.0.0
change-effective-date: 2024/05/21

- where:
parameter-name: Encoding
set:
breaking-change:
old-parameter-type: EncodingCaptureDescription
new-parameter-type: String
deprecated-by-version: 5.0.0
deprecated-by-azversion: 12.0.0
change-effective-date: 2024/05/21

- where:
parameter-name: SchemaCompatibility
set:
breaking-change:
old-parameter-type: SchemaCompatibility
new-parameter-type: String
deprecated-by-version: 5.0.0
deprecated-by-azversion: 12.0.0
change-effective-date: 2024/05/21

- where:
parameter-name: SchemaType
set:
breaking-change:
old-parameter-type: SchemaType
new-parameter-type: String
deprecated-by-version: 5.0.0
deprecated-by-azversion: 12.0.0
change-effective-date: 2024/05/21

- model-name: KeyVaultProperties
cmdlet-name: New-AzEventHubKeyVaultPropertiesObject
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Approves an EventHub PrivateEndpointConnection
#>

function Approve-AzEventHubPrivateEndpointConnection{
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IPrivateEndpointConnection])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IPrivateEndpointConnection])]
[CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The name of the Private Endpoint Connection")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Denies an EventHub PrivateEndpointConnection
#>

function Deny-AzEventHubPrivateEndpointConnection{
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IPrivateEndpointConnection])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IPrivateEndpointConnection])]
[CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The name of the Private Endpoint Connection")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gets an EventHub Authorization Rule
#>

function Get-AzEventHubAuthorizationRule{
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAuthorizationRule])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule])]
[CmdletBinding(DefaultParameterSetName = 'GetExpandedNamespace', PositionalBinding = $false, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'GetExpandedEntity', HelpMessage = "The name of the Authorization Rule")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Gets an EventHub SAS key
#>

function Get-AzEventHubKey{
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAccessKeys])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys])]
[CmdletBinding(DefaultParameterSetName = 'GetExpandedNamespace', PositionalBinding = $false, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'GetExpandedEntity', Mandatory, HelpMessage = "The name of the Authorization Rule")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Creates an EventHub Authorization Rule
#>

function New-AzEventHubAuthorizationRule{
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAuthorizationRule])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule])]
[CmdletBinding(DefaultParameterSetName = 'NewExpandedNamespace', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'NewExpandedEntity', Mandatory, HelpMessage = "The name of the Authorization Rule")]
Expand Down Expand Up @@ -62,9 +62,8 @@ function New-AzEventHubAuthorizationRule{

[Parameter(HelpMessage = "The rights associated with the rule.")]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Support.AccessRights[]]
[System.String[]]
# The rights associated with the rule.
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.ParameterBreakingChangeAttribute("Rights","12.0.0", "5.0.0","2024-05-21" )]
${Rights},

[Parameter(HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")]
Expand Down Expand Up @@ -131,7 +130,7 @@ function New-AzEventHubAuthorizationRule{
$null = $PSBoundParameters.Remove('WhatIf')
$null = $PSBoundParameters.Remove('Confirm')

$authRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAuthorizationRule]@{
$authRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule]@{
Rights = $Rights
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzEventHu
Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzEventHubNetworkRuleSet
#>
function New-AzEventHubIPRuleConfig{
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.INwRuleSetIPRules])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INwRuleSetIPRules])]
[CmdletBinding(PositionalBinding = $false, ConfirmImpact = 'Medium')]
param(
[Parameter(Mandatory, HelpMessage = "IP Mask")]
Expand All @@ -28,15 +28,14 @@ function New-AzEventHubIPRuleConfig{
${IPMask},

[Parameter(HelpMessage = "The IP Filter Action")]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Support.NetworkRuleIPAction]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.ParameterBreakingChangeAttribute("Action","12.0.0", "5.0.0","2024-05-21" )]
[System.String]
# The IP Filter Action
${Action}
)

process{
try{
$ipRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.INwRuleSetIPRules]@{
$ipRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INwRuleSetIPRules]@{
IPMask = $IPMask
Action = $Action
}
Expand Down
7 changes: 3 additions & 4 deletions src/EventHub/EventHub.Autorest/custom/New-AzEventHubKey.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Regenerates an EventHub SAS key
#>

function New-AzEventHubKey{
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAccessKeys])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys])]
[CmdletBinding(DefaultParameterSetName = 'NewExpandedNamespace', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'NewExpandedEntity', Mandatory, HelpMessage = "The name of the Authorization Rule")]
Expand Down Expand Up @@ -63,9 +63,8 @@ function New-AzEventHubKey{
[Parameter(HelpMessage = "The access key to regenerate.")]
[Alias('RegenerateKey')]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Support.KeyType]
[System.String]
# The access key to regenerate.
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.ParameterBreakingChangeAttribute("KeyType","12.0.0", "5.0.0","2024-05-21" )]
${KeyType},

[Parameter(HelpMessage = "Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType")]
Expand Down Expand Up @@ -140,7 +139,7 @@ function New-AzEventHubKey{
$null = $PSBoundParameters.Remove('WhatIf')
$null = $PSBoundParameters.Remove('Confirm')

$accessKeys = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IRegenerateAccessKeyParameters]@{
$accessKeys = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IRegenerateAccessKeyParameters]@{
KeyType = $KeyType
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Creates an EventHub Namespace

function New-AzEventHubNamespace{
[Alias("New-AzEventHubNamespaceV2")]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IEhNamespace])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IEhNamespace])]
[CmdletBinding(PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(

Expand Down Expand Up @@ -77,13 +77,12 @@ function New-AzEventHubNamespace{

[Parameter(HelpMessage = "Properties to configure Encryption")]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IKeyVaultProperties[]]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IKeyVaultProperties[]]
${KeyVaultProperty},

[Parameter(HelpMessage = "Type of managed service identity.")]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Support.ManagedServiceIdentityType]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.ParameterBreakingChangeAttribute("IdentityType","12.0.0", "5.0.0","2024-05-21" )]
[System.String]
${IdentityType},

[Parameter(HelpMessage = "Properties for User Assigned Identities")]
Expand All @@ -109,14 +108,12 @@ function New-AzEventHubNamespace{

[Parameter(HelpMessage = "The minimum TLS version for the cluster to support, e.g. '1.2'")]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Support.SkuName]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.ParameterBreakingChangeAttribute("SkuName","12.0.0", "5.0.0","2024-05-21" )]
[System.String]
${SkuName},

[Parameter(HelpMessage = "This determines if traffic is allowed over public network. By default it is enabled.")]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Support.PublicNetworkAccess]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.ParameterBreakingChangeAttribute("PublicNetworkAccess","12.0.0", "5.0.0","2024-05-21" )]
[System.String]
${PublicNetworkAccess},

[Parameter(HelpMessage = "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.")]
Expand Down Expand Up @@ -203,7 +200,7 @@ function New-AzEventHubNamespace{
$identityHashTable = @{}

foreach ($resourceID in $UserAssignedIdentityId){
$identityHashTable.Add($resourceID, [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.UserAssignedIdentity]::new())
$identityHashTable.Add($resourceID, [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.UserAssignedIdentity]::new())
}

$PSBoundParameters.Add("UserAssignedIdentity", $identityHashTable)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Constructs an IThrottlingPolicy object that can be fed as input to New-AzEventHu
Constructs an IThrottlingPolicy object that can be fed as input to New-AzEventHubApplicationGroup or Set-AzEventHubApplicationGroup
#>
function New-AzEventHubThrottlingPolicyConfig{
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IThrottlingPolicy])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IThrottlingPolicy])]
[CmdletBinding(PositionalBinding = $false, ConfirmImpact = 'Medium')]
param(
[Parameter(Mandatory, HelpMessage = "Name of Throttling Policy Config")]
Expand All @@ -33,15 +33,14 @@ function New-AzEventHubThrottlingPolicyConfig{
${RateLimitThreshold},

[Parameter(Mandatory, HelpMessage = "Metric Id on which the throttle limit should be set, MetricId can be discovered by hovering over Metric in the Metrics section of Event Hub Namespace inside Azure Portal")]
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Support.MetricId]
[System.String]
# Metric Id on which the throttle limit should be set, MetricId can be discovered by hovering over Metric in the Metrics section of Event Hub Namespace inside Azure Portal.
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.ParameterBreakingChangeAttribute("MetricId","12.0.0", "5.0.0","2024-05-21" )]
${MetricId}
${MetricId}
)

process{
try{
$policy = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IThrottlingPolicy]@{
$policy = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IThrottlingPolicy]@{
Name = $Name
MetricId = $MetricId
RateLimitThreshold = $RateLimitThreshold
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Constructs an INwRuleSetVirtualNetworkRules object that can be fed as input to S
Constructs an INwRuleSetVirtualNetworkRules object that can be fed as input to Set-AzEventHubNetworkRuleSet
#>
function New-AzEventHubVirtualNetworkRuleConfig{
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.INwRuleSetVirtualNetworkRules])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INwRuleSetVirtualNetworkRules])]
[CmdletBinding(PositionalBinding = $false, ConfirmImpact = 'Medium')]
param(
[Parameter(Mandatory, HelpMessage = "Resource ID of Virtual Network Subnet")]
Expand All @@ -35,7 +35,7 @@ function New-AzEventHubVirtualNetworkRuleConfig{

process{
try{
$virtualNetworkRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.INwRuleSetVirtualNetworkRules]@{
$virtualNetworkRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INwRuleSetVirtualNetworkRules]@{
SubnetId = $SubnetId
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Removes an EventHub Authorization Rule
#>

function Remove-AzEventHubAuthorizationRule{
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAuthorizationRule])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule])]
[CmdletBinding(DefaultParameterSetName = 'RemoveExpandedNamespace', PositionalBinding = $false, SupportsShouldProcess, ConfirmImpact = 'Medium')]
param(
[Parameter(ParameterSetName = 'RemoveExpandedEntity', HelpMessage = "The name of the Authorization Rule")]
Expand Down
Loading

0 comments on commit c1dcc43

Please sign in to comment.