EventHub: regenerate cmdlets for api-version 2026-07-01-preview - #30087
Open
schaudhari6254888 wants to merge 1 commit into
Open
EventHub: regenerate cmdlets for api-version 2026-07-01-preview#30087schaudhari6254888 wants to merge 1 commit into
schaudhari6254888 wants to merge 1 commit into
Conversation
Regenerate Az.EventHub for spec commit f21f311355ed5f01e1ed2a2c24f7d7f0d62e622b. Adds FabricShortcut cmdlets (Get/New/Remove/Approve/Invoke-Reject) and UpgradePreferences cmdlets (Get/New-...Operation). Purely additive; no breaking changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 91af4899-a1a4-4ed3-a64b-8ecd42bf4b90
Contributor
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR regenerates the Az.EventHub AutoRest-based module against the Event Hub 2026-07-01-preview swagger (spec commit f21f311...), updating the module’s default API version and introducing new cmdlets for Fabric Shortcuts and Dedicated cluster upgrade preferences.
Changes:
- Updated the EventHub swagger input and UX metadata to use
2026-07-01-previewas the default API version. - Added new cmdlets and generated help/docs for Fabric Shortcut operations and Upgrade Preferences operations.
- Updated EventHub tests and existing test assertions to account for sanitized recordings.
Reviewed changes
Copilot reviewed 47 out of 47 changed files in this pull request and generated 10 comments.
Show a summary per file
| File | Description |
|---|---|
| src/EventHub/EventHub/help/Remove-AzEventHubFabricShortcut.md | Adds reference help for new Fabric Shortcut remove cmdlet. |
| src/EventHub/EventHub/help/New-AzEventHubUpgradePreferencesOperation.md | Adds reference help for new Upgrade Preferences create cmdlet. |
| src/EventHub/EventHub/help/New-AzEventHubFabricShortcut.md | Adds reference help for new Fabric Shortcut create cmdlet. |
| src/EventHub/EventHub/help/Invoke-AzEventHubRejectFabricShortcut.md | Adds reference help for new Fabric Shortcut reject cmdlet. |
| src/EventHub/EventHub/help/Get-AzEventHubUpgradePreferencesOperation.md | Adds reference help for new Upgrade Preferences get cmdlet. |
| src/EventHub/EventHub/help/Get-AzEventHubFabricShortcut.md | Adds reference help for new Fabric Shortcut get/list cmdlet. |
| src/EventHub/EventHub/help/Az.EventHub.md | Updates module help index to include new cmdlets. |
| src/EventHub/EventHub/help/Approve-AzEventHubFabricShortcut.md | Adds reference help for new Fabric Shortcut approve cmdlet. |
| src/EventHub/EventHub/ChangeLog.md | Documents the default API version update and new cmdlets. |
| src/EventHub/EventHub/Az.EventHub.psd1 | Exports the new functions and updates generated metadata. |
| src/EventHub/EventHub.Autorest/UX/Microsoft.EventHub/namespaces.json | Updates UX apiVersion to 2026-07-01-preview. |
| src/EventHub/EventHub.Autorest/UX/Microsoft.EventHub/namespaces-schemagroups.json | Updates UX apiVersion to 2026-07-01-preview. |
| src/EventHub/EventHub.Autorest/UX/Microsoft.EventHub/namespaces-privateEndpointConnections.json | Updates UX apiVersion to 2026-07-01-preview. |
| src/EventHub/EventHub.Autorest/UX/Microsoft.EventHub/namespaces-networkSecurityPerimeterConfigurations.json | Updates UX apiVersion to 2026-07-01-preview. |
| src/EventHub/EventHub.Autorest/UX/Microsoft.EventHub/namespaces-eventhubs.json | Updates UX apiVersion to 2026-07-01-preview. |
| src/EventHub/EventHub.Autorest/UX/Microsoft.EventHub/namespaces-eventhubs-fabricShortcuts.json | Adds UX metadata for Fabric Shortcut commands. |
| src/EventHub/EventHub.Autorest/UX/Microsoft.EventHub/namespaces-eventhubs-consumergroups.json | Updates UX apiVersion to 2026-07-01-preview. |
| src/EventHub/EventHub.Autorest/UX/Microsoft.EventHub/namespaces-disasterRecoveryConfigs.json | Updates UX apiVersion to 2026-07-01-preview. |
| src/EventHub/EventHub.Autorest/UX/Microsoft.EventHub/namespaces-applicationGroups.json | Updates UX apiVersion to 2026-07-01-preview. |
| src/EventHub/EventHub.Autorest/UX/Microsoft.EventHub/clusters.json | Updates UX apiVersion and adds Upgrade Preferences get command metadata. |
| src/EventHub/EventHub.Autorest/test/Remove-AzEventHubFabricShortcut.Tests.ps1 | Adds placeholder Pester coverage for new remove cmdlet. |
| src/EventHub/EventHub.Autorest/test/New-AzEventHubUpgradePreferencesOperation.Tests.ps1 | Adds placeholder Pester coverage for new create cmdlet. |
| src/EventHub/EventHub.Autorest/test/New-AzEventHubKey.Tests.ps1 | Adjusts key regeneration assertions due to masked recordings. |
| src/EventHub/EventHub.Autorest/test/New-AzEventHubGeoDRConfiguration.Tests.ps1 | Adjusts key comparison assertions due to masked recordings. |
| src/EventHub/EventHub.Autorest/test/New-AzEventHubFabricShortcut.Tests.ps1 | Adds placeholder Pester coverage for new create cmdlet. |
| src/EventHub/EventHub.Autorest/test/Invoke-AzEventHubRejectFabricShortcut.Tests.ps1 | Adds placeholder Pester coverage for new reject cmdlet. |
| src/EventHub/EventHub.Autorest/test/Get-AzEventHubUpgradePreferencesOperation.Tests.ps1 | Adds placeholder Pester coverage for new get cmdlet. |
| src/EventHub/EventHub.Autorest/test/Get-AzEventHubFabricShortcut.Tests.ps1 | Adds placeholder Pester coverage for new get/list cmdlet. |
| src/EventHub/EventHub.Autorest/test/Approve-AzEventHubFabricShortcut.Tests.ps1 | Adds placeholder Pester coverage for new approve cmdlet. |
| src/EventHub/EventHub.Autorest/README.md | Updates AutoRest config to the new spec commit and preview input-file. |
| src/EventHub/EventHub.Autorest/Properties/AssemblyInfo.cs | Updates assembly version metadata to 5.6.0. |
| src/EventHub/EventHub.Autorest/generate-info.json | Updates the generation identifier for this regen. |
| src/EventHub/EventHub.Autorest/examples/Remove-AzEventHubFabricShortcut.md | Adds example stub content for new remove cmdlet. |
| src/EventHub/EventHub.Autorest/examples/New-AzEventHubUpgradePreferencesOperation.md | Adds example stub content for new create cmdlet. |
| src/EventHub/EventHub.Autorest/examples/New-AzEventHubFabricShortcut.md | Adds example stub content for new create cmdlet. |
| src/EventHub/EventHub.Autorest/examples/Invoke-AzEventHubRejectFabricShortcut.md | Adds example stub content for new reject cmdlet. |
| src/EventHub/EventHub.Autorest/examples/Get-AzEventHubUpgradePreferencesOperation.md | Adds example stub content for new get cmdlet. |
| src/EventHub/EventHub.Autorest/examples/Get-AzEventHubFabricShortcut.md | Adds example stub content for new get/list cmdlet. |
| src/EventHub/EventHub.Autorest/examples/Approve-AzEventHubFabricShortcut.md | Adds example stub content for new approve cmdlet. |
| src/EventHub/EventHub.Autorest/docs/Remove-AzEventHubFabricShortcut.md | Adds generated docs page for new remove cmdlet. |
| src/EventHub/EventHub.Autorest/docs/New-AzEventHubUpgradePreferencesOperation.md | Adds generated docs page for new create cmdlet. |
| src/EventHub/EventHub.Autorest/docs/New-AzEventHubFabricShortcut.md | Adds generated docs page for new create cmdlet. |
| src/EventHub/EventHub.Autorest/docs/Invoke-AzEventHubRejectFabricShortcut.md | Adds generated docs page for new reject cmdlet. |
| src/EventHub/EventHub.Autorest/docs/Get-AzEventHubUpgradePreferencesOperation.md | Adds generated docs page for new get cmdlet. |
| src/EventHub/EventHub.Autorest/docs/Get-AzEventHubFabricShortcut.md | Adds generated docs page for new get/list cmdlet. |
| src/EventHub/EventHub.Autorest/docs/Az.EventHub.md | Updates docs module index to include new cmdlets. |
| src/EventHub/EventHub.Autorest/docs/Approve-AzEventHubFabricShortcut.md | Adds generated docs page for new approve cmdlet. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+17
to
+37
| Describe 'New-AzEventHubFabricShortcut' { | ||
| It 'CreateExpanded' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'CreateViaIdentityNamespaceExpanded' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'CreateViaIdentityNamespace' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'CreateViaIdentityEventhubExpanded' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'CreateViaIdentityEventhub' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
| } |
Comment on lines
+17
to
+37
| Describe 'Get-AzEventHubFabricShortcut' { | ||
| It 'List' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'GetViaIdentityNamespace' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'Get' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'GetViaIdentityEventhub' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'GetViaIdentity' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
| } |
Comment on lines
+17
to
+33
| Describe 'Remove-AzEventHubFabricShortcut' { | ||
| It 'Delete' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'DeleteViaIdentityNamespace' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'DeleteViaIdentityEventhub' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'DeleteViaIdentity' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
| } |
Comment on lines
+17
to
+33
| Describe 'Approve-AzEventHubFabricShortcut' { | ||
| It 'Approve' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'ApproveViaIdentityNamespace' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'ApproveViaIdentityEventhub' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'ApproveViaIdentity' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
| } |
Comment on lines
+17
to
+33
| Describe 'Invoke-AzEventHubRejectFabricShortcut' { | ||
| It 'Reject' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'RejectViaIdentityNamespace' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'RejectViaIdentityEventhub' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'RejectViaIdentity' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
| } |
Comment on lines
+17
to
+25
| Describe 'Get-AzEventHubUpgradePreferencesOperation' { | ||
| It 'Get' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
|
|
||
| It 'GetViaIdentity' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
| } |
Comment on lines
+17
to
+21
| Describe 'New-AzEventHubUpgradePreferencesOperation' { | ||
| It 'CreateExpanded' -skip { | ||
| { throw [System.NotImplementedException] } | Should -Not -Throw | ||
| } | ||
| } |
Comment on lines
18
to
24
| It 'NewExpandedNamespace' { | ||
| $currentKeys = Get-AzEventHubKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule | ||
|
|
||
| $newKeys = New-AzEventHubKey -ResourceGroupName $env.resourceGroup -NamespaceName $env.namespace -Name $env.authRule -KeyType PrimaryKey | ||
| $newKeys.PrimaryKey | Should -Not -Be $currentKeys.PrimaryKey | ||
| $newKeys.SecondaryKey | Should -Be $currentKeys.SecondaryKey | ||
| # $newKeys.PrimaryKey | Should -Not -Be $currentKeys.PrimaryKey # commented out: recorded keys are masked (sanitizedN) so key-value comparison is not meaningful in playback | ||
| # $newKeys.SecondaryKey | Should -Be $currentKeys.SecondaryKey # commented out: recorded keys are masked (sanitizedN) so key-value comparison is not meaningful in playback | ||
|
|
Comment on lines
+47
to
+48
| # $drKeys.PrimaryKey | Should -Be $namespaceKeys.PrimaryKey # commented out: recorded keys are masked (sanitizedN) so key-value comparison is not meaningful in playback | ||
| # $drKeys.SecondaryKey | Should -Be $namespaceKeys.SecondaryKey # commented out: recorded keys are masked (sanitizedN) so key-value comparison is not meaningful in playback |
Comment on lines
+65
to
+75
| ### Example 1: {{ Add title here }} | ||
| ```powershell | ||
| {{ Add code here }} | ||
| ``` | ||
|
|
||
| ```output | ||
| {{ Add output here (remove the output block if the example doesn't have an output) }} | ||
| ``` | ||
|
|
||
| {{ Add description here }} | ||
|
|
Member
|
/azp run |
Contributor
|
Azure Pipelines: Successfully started running 3 pipeline(s). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 PR Validation — ❌ Action needed
️✔️Az.Accounts
❌Az.EventHub
️✔️Az.KeyVault
️✔️Az.Monitor
️✔️Az.Network
️✔️Az.OperationalInsights
️✔️Az.Sql
️✔️Az.Storage
Regenerate Az.EventHub for spec commit f21f311355ed5f01e1ed2a2c24f7d7f0d62e622b. Adds FabricShortcut cmdlets (Get/New/Remove/Approve/Invoke-Reject) and UpgradePreferences cmdlets (Get/New-...Operation). Purely additive; no breaking changes.
Description
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.mdand reviewed the following information:ChangeLog.mdfile(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.## Upcoming Releaseheader in the past tense.ChangeLog.mdif no new release is required, such as fixing test case only.