Skip to content

Commit

Permalink
test: generate integration account certificate key name (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnmoreels authored Mar 7, 2022
1 parent 531a3ea commit c4b1cdb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ InModuleScope Arcus.Scripting.IntegrationAccount {
$expectedCertificateName = $certificate.BaseName
$executionDateTime = (Get-Date).ToUniversalTime()
$subscriptionId = $config.Arcus.SubscriptionId
$keyName = "PrivateCertificateKey"
$keyName = "PrivateCertificateKey-$([System.Guid]::NewGuid())"
$keyVaultName = $config.Arcus.KeyVault.VaultName
$keyVaultId = "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.KeyVault/vaults/$keyVaultName"

Expand Down Expand Up @@ -737,7 +737,7 @@ InModuleScope Arcus.Scripting.IntegrationAccount {
$expectedCertificateName = $artifactsPrefix + $certificate.BaseName
$executionDateTime = (Get-Date).ToUniversalTime()
$subscriptionId = $config.Arcus.SubscriptionId
$keyName = 'PrivateCertificateKeyPrefix'
$keyName = "PrivateCertificateKeyPrefix-$([System.Guid]::NewGuid())"
$keyVaultName = $config.Arcus.KeyVault.VaultName
$keyVaultId = "/subscriptions/$subscriptionId/resourceGroups/$resourceGroupName/providers/Microsoft.KeyVault/vaults/$keyVaultName"

Expand Down Expand Up @@ -1094,4 +1094,4 @@ InModuleScope Arcus.Scripting.IntegrationAccount {
}
}
}
}
}

0 comments on commit c4b1cdb

Please sign in to comment.