azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Onboard HorizonDB to Private Link common cmdlets

Open petarperin-mdcs opened this issue 5 months ago • 5 comments

Description

Onboards HorizonDB clusters to the existing generic Az.Network Private Link common cmdlets by registering Microsoft.HorizonDB/clusters in the Private Link provider map.

This enables the generic cmdlet flows for HorizonDB cluster resource IDs:

Get-AzPrivateLinkResource -PrivateLinkResourceId $clusterId
Get-AzPrivateEndpointConnection -PrivateLinkResourceId $clusterId
Approve-AzPrivateEndpointConnection -ResourceId $privateEndpointConnectionId
Deny-AzPrivateEndpointConnection -ResourceId $privateEndpointConnectionId
Remove-AzPrivateEndpointConnection -ResourceId $privateEndpointConnectionId

No new cmdlets, parameters, or markdown help regeneration are needed because this is provider-map-only onboarding for existing common cmdlets.

Validation performed:

  • Built Az.Network successfully with dotnet msbuild build.proj /p:Scope=Network.
  • Verified the built provider map contains Microsoft.HorizonDB/clusters, API version 2026-01-20-preview, HasConnectionsURI = true, SupportGetPrivateLinkResource = true, and SupportListPrivateLinkResource = true.
  • Validated read flows against a live HorizonDB cluster:
    • Get-AzPrivateLinkResource -PrivateLinkResourceId $clusterId
    • Get-AzPrivateLinkResource -PrivateLinkResourceId $clusterId -Name DefaultPool
    • Get-AzPrivateEndpointConnection -PrivateLinkResourceId $clusterId
    • Get-AzPrivateEndpointConnection -ResourceId $privateEndpointConnectionId
  • Validated full disposable private endpoint lifecycle against a live HorizonDB cluster in UK South:
    • Created two manual private endpoints.
    • Approved one private endpoint connection.
    • Rejected one private endpoint connection.
    • Removed both validation private endpoint connections.
    • Confirmed no validation private endpoint connections remained.
    • Deleted and confirmed cleanup of the disposable validation resource group.

Note: HorizonDB approval and rejection complete asynchronously. The generic cmdlet returns immediately after PUT plus immediate GET, so the immediate output can still show Pending; follow-up Get-AzPrivateEndpointConnection reaches final Approved or Rejected.

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.)

    • [x] General release
    • [ ] Public preview
    • [ ] Private preview
    • [ ] Engineering build
    • [ ] No need for a release
  • [x] Check this box to confirm: I have read the Submitting Changes section of CONTRIBUTING.md and reviewed the following information:

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

petarperin-mdcs avatar Jun 24 '26 14:06 petarperin-mdcs

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

/azp run

thomas-temby avatar Jun 24 '26 14:06 thomas-temby

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Jun 24 '26 14:06 azure-pipelines[bot]

/azp run

petarperin-mdcs avatar Jun 24 '26 15:06 petarperin-mdcs

Commenter does not have sufficient privileges for PR 29764 in repo Azure/azure-powershell

azure-pipelines[bot] avatar Jun 24 '26 15:06 azure-pipelines[bot]

@yonzhan thank you for the quick response on our other PRs, could you help us getting a review on this one as well? This should be one of the last things we need for HorizonDB NRP compliance

petarperin-mdcs avatar Jun 26 '26 17:06 petarperin-mdcs

/azp run

necusjz avatar Jun 29 '26 01:06 necusjz

Azure Pipelines successfully started running 3 pipeline(s).

azure-pipelines[bot] avatar Jun 29 '26 01:06 azure-pipelines[bot]