Skip to content

Commit 2511b07

Browse files
[AppService]: fix #14790- updated Import-AzWebAppKeyVaultCertificate1 to set the default name with combination of keyvault name and cert name (#15937)
* Updated changelog.md * fix #14790- updated `Import-AzWebAppKeyVaultCertificate1` to set the default name with combination of keyvault name and cert name * Update ChangeLog.md Co-authored-by: Yunchi Wang <[email protected]>
1 parent 75bf9b9 commit 2511b07

File tree

4 files changed

+68
-64
lines changed

4 files changed

+68
-64
lines changed

src/Websites/Websites.Test/ScenarioTests/CertificatesTests.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ function Test-ImportAzWebAppKeyVaultCertificate
155155
{
156156
#Setup
157157
$kvcert = Import-AzWebAppKeyVaultCertificate -ResourceGroupName $rgname -WebAppName $wname -KeyVaultName $keyvaultname -CertName $keyvaultcertname
158+
$default_webapp_certname= $keyvaultname+'-'+$keyvaultcertname
159+
# Assert
160+
Assert-AreEqual $kvcert.Name $default_webapp_certname
158161

159162
}
160163
finally{

0 commit comments

Comments
 (0)