From a900976802edd2995a2eff8cbbc6b847f8bb9a21 Mon Sep 17 00:00:00 2001 From: aristosvo <8375124+aristosvo@users.noreply.github.com> Date: Wed, 15 Sep 2021 15:46:37 +0200 Subject: [PATCH] `azurerm_app_service_managed_certificate`: Fix for empty `issue_date` (#13357) --- .../web/app_service_managed_certificate_resource.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/internal/services/web/app_service_managed_certificate_resource.go b/internal/services/web/app_service_managed_certificate_resource.go index dc7b91765b3b..5c17c4570b42 100644 --- a/internal/services/web/app_service_managed_certificate_resource.go +++ b/internal/services/web/app_service_managed_certificate_resource.go @@ -218,7 +218,11 @@ func resourceAppServiceManagedCertificateRead(d *pluginsdk.ResourceData, meta in d.Set("subject_name", props.SubjectName) d.Set("host_names", props.HostNames) d.Set("issuer", props.Issuer) - d.Set("issue_date", props.IssueDate.Format(time.RFC3339)) + issueDate := "" + if props.IssueDate != nil { + issueDate = props.IssueDate.Format(time.RFC3339) + } + d.Set("issue_date", issueDate) expirationDate := "" if props.ExpirationDate != nil { expirationDate = props.ExpirationDate.Format(time.RFC3339)