Skip to content

Commit

Permalink
[AppService]: fix #17347- Fixed Import-AzWebAppKeyVaultCertificate
Browse files Browse the repository at this point in the history
…to use certificate naming convention same as Az-CLI (#19190)
  • Loading branch information
Kotasudhakarreddy authored Aug 16, 2022
1 parent 2e5f5a7 commit af94f6c
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 117 deletions.
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

0 comments on commit af94f6c

Please sign in to comment.