Skip to content

Commit b356a0c

Browse files
[EventHub/ServiceBus] Moved cmdlets to V4 (#24070)
* 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
1 parent ad26d7b commit b356a0c

File tree

296 files changed

+17840
-21263
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+17840
-21263
lines changed

src/EventHub/EventHub.Autorest/Az.EventHub.psd1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.EventHub.private.dll'
1313
FormatsToProcess = './Az.EventHub.format.ps1xml'
14-
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', '*'
15-
AliasesToExport = 'Get-AzEventHubNamespaceV2', 'New-AzEventHubNamespaceV2', 'Remove-AzEventHubNamespaceV2', 'Set-AzEventHubNamespaceV2', '*'
14+
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'
15+
AliasesToExport = 'Get-AzEventHubNamespaceV2', 'New-AzEventHubNamespaceV2', 'Remove-AzEventHubNamespaceV2', 'Set-AzEventHubNamespaceV2'
1616
PrivateData = @{
1717
PSData = @{
1818
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'EventHub'

src/EventHub/EventHub.Autorest/README.md

Lines changed: 6 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,13 @@ subject-prefix: $(service-name)
5959
# uncomment following line to support viaIdentity for these post APIs
6060
resourcegroup-append: true
6161
nested-object-to-string: true
62-
63-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
64-
use-extension:
65-
"@autorest/powershell": "3.x"
62+
keep-pec-and-plr: true
63+
disable-transform-identity-type: true
64+
flatten-userassignedidentity : false
6665

6766
directive:
6867
- where:
69-
variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$
68+
variant: ^Create$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^CreateViaJsonFilePath$|^CreateViaJsonString$
7069
remove: true
7170
- where:
7271
variant: ^CreateViaIdentity$
@@ -456,65 +455,5 @@ directive:
456455
suppress-format: true
457456

458457
- model-cmdlet:
459-
- KeyVaultProperties
460-
461-
- where:
462-
parameter-name: IdentityType
463-
set:
464-
breaking-change:
465-
old-parameter-type: CaptureIdentityType
466-
new-parameter-type: String
467-
deprecated-by-version: 5.0.0
468-
deprecated-by-azversion: 12.0.0
469-
change-effective-date: 2024/05/21
470-
471-
- where:
472-
parameter-name: CleanupPolicy
473-
set:
474-
breaking-change:
475-
old-parameter-type: CleanupPolicyRetentionDescription
476-
new-parameter-type: String
477-
deprecated-by-version: 5.0.0
478-
deprecated-by-azversion: 12.0.0
479-
change-effective-date: 2024/05/21
480-
481-
- where:
482-
parameter-name: Status
483-
set:
484-
breaking-change:
485-
old-parameter-type: EntityStatus
486-
new-parameter-type: String
487-
deprecated-by-version: 5.0.0
488-
deprecated-by-azversion: 12.0.0
489-
change-effective-date: 2024/05/21
490-
491-
- where:
492-
parameter-name: Encoding
493-
set:
494-
breaking-change:
495-
old-parameter-type: EncodingCaptureDescription
496-
new-parameter-type: String
497-
deprecated-by-version: 5.0.0
498-
deprecated-by-azversion: 12.0.0
499-
change-effective-date: 2024/05/21
500-
501-
- where:
502-
parameter-name: SchemaCompatibility
503-
set:
504-
breaking-change:
505-
old-parameter-type: SchemaCompatibility
506-
new-parameter-type: String
507-
deprecated-by-version: 5.0.0
508-
deprecated-by-azversion: 12.0.0
509-
change-effective-date: 2024/05/21
510-
511-
- where:
512-
parameter-name: SchemaType
513-
set:
514-
breaking-change:
515-
old-parameter-type: SchemaType
516-
new-parameter-type: String
517-
deprecated-by-version: 5.0.0
518-
deprecated-by-azversion: 12.0.0
519-
change-effective-date: 2024/05/21
520-
458+
- model-name: KeyVaultProperties
459+
cmdlet-name: New-AzEventHubKeyVaultPropertiesObject

src/EventHub/EventHub.Autorest/custom/Approve-AzEventHubPrivateEndpointConnection.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Approves an EventHub PrivateEndpointConnection
2020
#>
2121

2222
function Approve-AzEventHubPrivateEndpointConnection{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IPrivateEndpointConnection])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IPrivateEndpointConnection])]
2424
[CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The name of the Private Endpoint Connection")]

src/EventHub/EventHub.Autorest/custom/Deny-AzEventHubPrivateEndpointConnection.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Denies an EventHub PrivateEndpointConnection
2020
#>
2121

2222
function Deny-AzEventHubPrivateEndpointConnection{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IPrivateEndpointConnection])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IPrivateEndpointConnection])]
2424
[CmdletBinding(DefaultParameterSetName = 'SetExpanded', PositionalBinding = $false, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'SetExpanded', HelpMessage = "The name of the Private Endpoint Connection")]

src/EventHub/EventHub.Autorest/custom/Get-AzEventHubAuthorizationRule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gets an EventHub Authorization Rule
2020
#>
2121

2222
function Get-AzEventHubAuthorizationRule{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAuthorizationRule])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule])]
2424
[CmdletBinding(DefaultParameterSetName = 'GetExpandedNamespace', PositionalBinding = $false, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'GetExpandedEntity', HelpMessage = "The name of the Authorization Rule")]

src/EventHub/EventHub.Autorest/custom/Get-AzEventHubKey.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Gets an EventHub SAS key
2020
#>
2121

2222
function Get-AzEventHubKey{
23-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAccessKeys])]
23+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAccessKeys])]
2424
[CmdletBinding(DefaultParameterSetName = 'GetExpandedNamespace', PositionalBinding = $false, ConfirmImpact = 'Medium')]
2525
param(
2626
[Parameter(ParameterSetName = 'GetExpandedEntity', Mandatory, HelpMessage = "The name of the Authorization Rule")]

src/EventHub/EventHub.Autorest/custom/New-AzEventHubAuthorizationRule.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Creates an EventHub Authorization Rule
2020
#>
2121

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

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

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

134-
$authRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IAuthorizationRule]@{
133+
$authRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IAuthorizationRule]@{
135134
Rights = $Rights
136135
}
137136

src/EventHub/EventHub.Autorest/custom/New-AzEventHubIPRuleConfig.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzEventHu
1919
Constructs an INwRuleSetIPRules object that can be fed as input to Set-AzEventHubNetworkRuleSet
2020
#>
2121
function New-AzEventHubIPRuleConfig{
22-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.INwRuleSetIPRules])]
22+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INwRuleSetIPRules])]
2323
[CmdletBinding(PositionalBinding = $false, ConfirmImpact = 'Medium')]
2424
param(
2525
[Parameter(Mandatory, HelpMessage = "IP Mask")]
@@ -28,15 +28,14 @@ function New-AzEventHubIPRuleConfig{
2828
${IPMask},
2929

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

3736
process{
3837
try{
39-
$ipRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.INwRuleSetIPRules]@{
38+
$ipRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INwRuleSetIPRules]@{
4039
IPMask = $IPMask
4140
Action = $Action
4241
}

src/EventHub/EventHub.Autorest/custom/New-AzEventHubKey.ps1

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Regenerates an EventHub SAS key
2020
#>
2121

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

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

143-
$accessKeys = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IRegenerateAccessKeyParameters]@{
142+
$accessKeys = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IRegenerateAccessKeyParameters]@{
144143
KeyType = $KeyType
145144
}
146145

src/EventHub/EventHub.Autorest/custom/New-AzEventHubNamespace.ps1

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Creates an EventHub Namespace
2121

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

@@ -77,13 +77,12 @@ function New-AzEventHubNamespace{
7777

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

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

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

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

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

122119
[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.")]
@@ -203,7 +200,7 @@ function New-AzEventHubNamespace{
203200
$identityHashTable = @{}
204201

205202
foreach ($resourceID in $UserAssignedIdentityId){
206-
$identityHashTable.Add($resourceID, [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.UserAssignedIdentity]::new())
203+
$identityHashTable.Add($resourceID, [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.UserAssignedIdentity]::new())
207204
}
208205

209206
$PSBoundParameters.Add("UserAssignedIdentity", $identityHashTable)

src/EventHub/EventHub.Autorest/custom/New-AzEventHubThrottlingPolicyConfig.ps1

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Constructs an IThrottlingPolicy object that can be fed as input to New-AzEventHu
1919
Constructs an IThrottlingPolicy object that can be fed as input to New-AzEventHubApplicationGroup or Set-AzEventHubApplicationGroup
2020
#>
2121
function New-AzEventHubThrottlingPolicyConfig{
22-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IThrottlingPolicy])]
22+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IThrottlingPolicy])]
2323
[CmdletBinding(PositionalBinding = $false, ConfirmImpact = 'Medium')]
2424
param(
2525
[Parameter(Mandatory, HelpMessage = "Name of Throttling Policy Config")]
@@ -33,15 +33,14 @@ function New-AzEventHubThrottlingPolicyConfig{
3333
${RateLimitThreshold},
3434

3535
[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")]
36-
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Support.MetricId]
36+
[System.String]
3737
# 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.
38-
[Microsoft.Azure.PowerShell.Cmdlets.EventHub.Runtime.ParameterBreakingChangeAttribute("MetricId","12.0.0", "5.0.0","2024-05-21" )]
39-
${MetricId}
38+
${MetricId}
4039
)
4140

4241
process{
4342
try{
44-
$policy = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.IThrottlingPolicy]@{
43+
$policy = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.IThrottlingPolicy]@{
4544
Name = $Name
4645
MetricId = $MetricId
4746
RateLimitThreshold = $RateLimitThreshold

src/EventHub/EventHub.Autorest/custom/New-AzEventHubVirtualNetworkRuleConfig.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Constructs an INwRuleSetVirtualNetworkRules object that can be fed as input to S
1919
Constructs an INwRuleSetVirtualNetworkRules object that can be fed as input to Set-AzEventHubNetworkRuleSet
2020
#>
2121
function New-AzEventHubVirtualNetworkRuleConfig{
22-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.INwRuleSetVirtualNetworkRules])]
22+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INwRuleSetVirtualNetworkRules])]
2323
[CmdletBinding(PositionalBinding = $false, ConfirmImpact = 'Medium')]
2424
param(
2525
[Parameter(Mandatory, HelpMessage = "Resource ID of Virtual Network Subnet")]
@@ -35,7 +35,7 @@ function New-AzEventHubVirtualNetworkRuleConfig{
3535

3636
process{
3737
try{
38-
$virtualNetworkRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.Api202301Preview.INwRuleSetVirtualNetworkRules]@{
38+
$virtualNetworkRule = [Microsoft.Azure.PowerShell.Cmdlets.EventHub.Models.INwRuleSetVirtualNetworkRules]@{
3939
SubnetId = $SubnetId
4040
}
4141

src/EventHub/EventHub.Autorest/custom/Remove-AzEventHubAuthorizationRule.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Removes an EventHub Authorization Rule
2020
#>
2121

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

0 commit comments

Comments
 (0)