From 203984555677ae54f3fd535eb516ba7f13587cb6 Mon Sep 17 00:00:00 2001 From: Leonard Cohnen Date: Wed, 27 Sep 2023 14:38:27 +0200 Subject: [PATCH] cli: write MAAUrl to idfile again --- 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 fd2ca54736..de82d99bcc 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 }