We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d817ab3 commit 142af53Copy full SHA for 142af53
azure/converters/diagnostics.go
@@ -39,11 +39,13 @@ func GetDiagnosticsProfile(diagnostics *infrav1.Diagnostics) *armcompute.Diagnos
39
},
40
}
41
case infrav1.UserManagedDiagnosticsStorage:
42
- return &armcompute.DiagnosticsProfile{
43
- BootDiagnostics: &armcompute.BootDiagnostics{
44
- Enabled: ptr.To(true),
45
- StorageURI: &diagnostics.Boot.UserManaged.StorageAccountURI,
46
- },
+ if diagnostics.Boot.UserManaged != nil {
+ return &armcompute.DiagnosticsProfile{
+ BootDiagnostics: &armcompute.BootDiagnostics{
+ Enabled: ptr.To(true),
+ StorageURI: &diagnostics.Boot.UserManaged.StorageAccountURI,
47
+ },
48
+ }
49
50
51
0 commit comments