From c861e3e4d7359f0befdcd8252ea11ee01075ef1e Mon Sep 17 00:00:00 2001 From: Patrick Hallisey Date: Mon, 24 Feb 2025 14:21:06 -0800 Subject: [PATCH 1/4] Use PME for esrp release --- .../pipelines/templates/archetype-typespec-emitter.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/eng/common/pipelines/templates/archetype-typespec-emitter.yml b/eng/common/pipelines/templates/archetype-typespec-emitter.yml index 85a292b8c..5a9b9f21f 100644 --- a/eng/common/pipelines/templates/archetype-typespec-emitter.yml +++ b/eng/common/pipelines/templates/archetype-typespec-emitter.yml @@ -175,11 +175,12 @@ extends: - task: EsrpRelease@7 inputs: displayName: Publish to npmjs.org - ConnectedServiceName: Azure SDK Engineering System + ConnectedServiceName: Azure SDK PME Managed Identity ClientId: 5f81938c-2544-4f1f-9251-dd9de5b8a81b - KeyVaultName: AzureSDKEngKeyVault - AuthCertName: azure-sdk-esrp-release-auth-certificate - SignCertName: azure-sdk-esrp-release-sign-certificate + DomainTenantId: 975f013f-7f24-47e8-a7d3-abc4752bf346 + UseManagedIdentity: true + KeyVaultName: kv-azuresdk-codesign + SignCertName: azure-sdk-esrp-release-certificate Intent: PackageDistribution ContentType: npm FolderLocation: $(buildArtifactsPath)/packages From b8c404fd5c4bdb6cb0603b625787aa96d3310e9a Mon Sep 17 00:00:00 2001 From: Patrick Hallisey Date: Tue, 25 Feb 2025 14:03:31 -0800 Subject: [PATCH 2/4] Update to EsrpRelease@9 --- eng/common/pipelines/templates/archetype-typespec-emitter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/pipelines/templates/archetype-typespec-emitter.yml b/eng/common/pipelines/templates/archetype-typespec-emitter.yml index 5a9b9f21f..44d4fd935 100644 --- a/eng/common/pipelines/templates/archetype-typespec-emitter.yml +++ b/eng/common/pipelines/templates/archetype-typespec-emitter.yml @@ -172,7 +172,7 @@ extends: - ${{ if parameters.PublishPublic }}: # publish to npmjs.org using ESRP - - task: EsrpRelease@7 + - task: EsrpRelease@9 inputs: displayName: Publish to npmjs.org ConnectedServiceName: Azure SDK PME Managed Identity From 59af9fa944c70fa01bffabaedcb5e6cbf0ab33ce Mon Sep 17 00:00:00 2001 From: Patrick Hallisey Date: Tue, 25 Feb 2025 14:17:04 -0800 Subject: [PATCH 3/4] Remove extra DomainTenantId parameter --- eng/common/pipelines/templates/archetype-typespec-emitter.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/eng/common/pipelines/templates/archetype-typespec-emitter.yml b/eng/common/pipelines/templates/archetype-typespec-emitter.yml index 44d4fd935..21fafd58d 100644 --- a/eng/common/pipelines/templates/archetype-typespec-emitter.yml +++ b/eng/common/pipelines/templates/archetype-typespec-emitter.yml @@ -188,7 +188,6 @@ extends: Approvers: ${{ coalesce(variables['Build.RequestedForEmail'], 'azuresdk@microsoft.com') }} ServiceEndpointUrl: https://api.esrp.microsoft.com MainPublisher: ESRPRELPACMANTEST - DomainTenantId: 72f988bf-86f1-41af-91ab-2d7cd011db47 - task: PowerShell@2 displayName: Create emitter-package.json From 99d7d857483c4c5e143da2abed896d4ecb0db1a5 Mon Sep 17 00:00:00 2001 From: Patrick Hallisey Date: Fri, 28 Feb 2025 15:31:50 -0800 Subject: [PATCH 4/4] Add PME service connection to pipelines --- eng/common/pipelines/templates/jobs/prepare-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/pipelines/templates/jobs/prepare-pipelines.yml b/eng/common/pipelines/templates/jobs/prepare-pipelines.yml index cbfd4e4f3..d874216cc 100644 --- a/eng/common/pipelines/templates/jobs/prepare-pipelines.yml +++ b/eng/common/pipelines/templates/jobs/prepare-pipelines.yml @@ -82,7 +82,7 @@ jobs: $generateUnifiedWeekly = 'false' $testServiceConnections = '"Azure" "azure-sdk-tests" "azure-sdk-tests-preview" "azure-sdk-tests-public" "Azure SDK Test Resources - LiveTestSecrets"' - $internalServiceConnections = '"Azure" "Azure SDK Artifacts" "Azure SDK Engineering System" "opensource-api-connection" "AzureSDKEngKeyVault Secrets"' + $internalServiceConnections = '"Azure" "Azure SDK Artifacts" "Azure SDK Engineering System" "opensource-api-connection" "AzureSDKEngKeyVault Secrets" "Azure SDK PME Managed Identity"' # Map the language to the appropriate variable groups switch ($lang)