From 68e924d999f5b6e2efce67c3bfef9a7f928ba67a Mon Sep 17 00:00:00 2001
From: Sune Keller <absukl@almbrand.dk>
Date: Fri, 25 Sep 2020 14:33:11 +0200
Subject: [PATCH] Also set "upns" part of "subject_alternative_names"

Signed-off-by: Sune Keller <absukl@almbrand.dk>
---
 .../internal/services/keyvault/key_vault_certificate_resource.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/azurerm/internal/services/keyvault/key_vault_certificate_resource.go b/azurerm/internal/services/keyvault/key_vault_certificate_resource.go
index bca01b496c34..d2af55b7370c 100644
--- a/azurerm/internal/services/keyvault/key_vault_certificate_resource.go
+++ b/azurerm/internal/services/keyvault/key_vault_certificate_resource.go
@@ -814,6 +814,7 @@ func flattenKeyVaultCertificatePolicy(input *keyvault.CertificatePolicy, certDat
 			} else {
 				sanOutput["emails"] = set.FromStringSlice(cert.EmailAddresses)
 				sanOutput["dns_names"] = set.FromStringSlice(cert.DNSNames)
+				sanOutput["upns"] = set.FromStringSlice([]string{})
 				sanOutputs = append(sanOutputs, sanOutput)
 			}
 		}