From ac2fca344d136dbe7bdd7159bf57eb21fa086c8f Mon Sep 17 00:00:00 2001 From: 3u13r Date: Wed, 27 Sep 2023 17:40:17 +0200 Subject: [PATCH] cli: write MAAUrl to idfile again (#2387) --- cli/internal/cmd/create.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cli/internal/cmd/create.go b/cli/internal/cmd/create.go index fd2ca5473..de82d99bc 100644 --- a/cli/internal/cmd/create.go +++ b/cli/internal/cmd/create.go @@ -193,6 +193,11 @@ func convertToIDFile(infra state.Infrastructure, provider cloudprovider.Provider file.APIServerCertSANs = infra.APIServerCertSANs file.InitSecret = []byte(infra.InitSecret) // Convert string to []byte file.UID = infra.UID + + if infra.Azure != nil { + file.AttestationURL = infra.Azure.AttestationURL + } + return file }