From 6058e235b22b5ff7634b01082f3e18282a78333f 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 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 }