Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AppService]: fix #17347- Fixed Import-AzWebAppKeyVaultCertificate to use certificate naming convention same as Az-CLI #19190

Merged
merged 1 commit into from
Aug 16, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Websites/Websites.Test/ScenarioTests/CertificatesTests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ Tests for importing a keyvaultcertificate to appservice
#>
function Test-ImportAzWebAppKeyVaultCertificate
{
$rgname = "lketmtestantps10"
$wname = "lketmtestantps10"
$keyvaultname = "testkv1611"
$keyvaultcertname = "testcertname1611"
$rgname = "RG-PS-UnitTesting"
$wname = "PS-AppServices-UnitTesting"
$keyvaultname = "PS-UnitTesting-Keyvault"
$keyvaultcertname = "PS-UnitTesting"
try
{
#Setup
$kvcert = Import-AzWebAppKeyVaultCertificate -ResourceGroupName $rgname -WebAppName $wname -KeyVaultName $keyvaultname -CertName $keyvaultcertname
$default_webapp_certname= $keyvaultname+'-'+$keyvaultcertname
$default_webapp_certname= $rgname+'-'+$keyvaultname+'-'+$keyvaultcertname
# Assert
Assert-AreEqual $kvcert.Name $default_webapp_certname

Expand Down
Loading