Skip to content

Yash/ekm hsm public preview#29775

Open
notyashhh wants to merge 9 commits into
Az.KeyVault-previewfrom
yash/ekm-hsm-public-preview
Open

Yash/ekm hsm public preview#29775
notyashhh wants to merge 9 commits into
Az.KeyVault-previewfrom
yash/ekm-hsm-public-preview

Conversation

@notyashhh

@notyashhh notyashhh commented Jun 29, 2026

Copy link
Copy Markdown
Member

Description

Mandatory Checklist

  • 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

- New cmdlets: New/Update/Get/Test/Remove-AzKeyVaultEkmConnection and
  Get-AzKeyVaultEkmConnectionCertificate (via KeyVaultEkmClient).
- Add -ExternalKeyId to Add-AzKeyVaultKey to create EKM-backed external keys.
- Bump Azure.Security.KeyVault.Administration 4.9.0-beta.1 / Keys 4.11.0-beta.1.
- Local Azure.Core 1.57.0 override (required by the new betas); to be removed
  once the central Azure.Core bump lands.
- Rename the New/Update-AzKeyVaultEkmConnection parameter -Host to -HostName
  (alias Host) to avoid shadowing PSCmdlet.Host.
- Add platyPS help markdown for the 6 EKM cmdlets.
- Add EkmConnectionHelper unit tests (host/path-prefix/cert loading).
- Add EkmConnection scenario tests + script (LiveOnly; record once the HSM is up).
- PSKeyVaultKey now exposes ExternalKeyId (from the Track2 key's external key).
- Add -ExternalKeyId to Add-AzKeyVaultKey.md (syntax + parameter).
- Assert ExternalKeyId in the external-key scenario test.
…y fixes

- Rename the 6 EKM connection cmdlets to include ManagedHsm in the noun
  (New/Update/Get/Test/Remove-AzKeyVaultManagedHsmEkmConnection,
  Get-AzKeyVaultManagedHsmEkmConnectionCertificate) for Az.KeyVault consistency.
- Add dedicated external-key parameter sets so -ExternalKeyId cannot be combined
  with -KeyType/-Size/-CurveName/-Exportable (matches CLI fail-fast); guard -KeyOps.
- Add -ServerCn alias on -ServerSubjectCommonName (CLI parity with --server-cn).
- Fix HsmResourceId resolution bug in Add-AzKeyVaultKey.
…anary

- Rename 6 EKM help markdown files to *-AzKeyVaultManagedHsmEkmConnection.
- Read + write ops verified against canary MHSM (Get/Test/Certificate/Update/
  external key); connection restored to original state. Help bodies finalize via GenerateHelp.
@azure-client-tools-bot-prd

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

…uires 5.5.0; central Azure.Core 1.57 stays for CI only
…Vault only

Path B (central 1.56->1.57) broke the whole repo's Analyze + all test legs:
Az.Accounts ships Azure.Core 1.56 in its lib from a separate pin the central
bump doesn't update, so every module referenced 1.57 but loaded 1.56.
Reverting to the isolated KeyVault-local 1.57 override (builds 0/0).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant