From 8633915723f0697917e960c3b18e4ef28372f462 Mon Sep 17 00:00:00 2001 From: Matthew Frahry Date: Wed, 22 Apr 2020 08:47:38 -0700 Subject: [PATCH] `azurerm_linux_virtual_machine_scale_set` - fixes crash with `boot_diagnositics` #6569 --- azurerm/internal/services/compute/shared_schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azurerm/internal/services/compute/shared_schema.go b/azurerm/internal/services/compute/shared_schema.go index d9b70eb28d8f..bc0e0e3cef9b 100644 --- a/azurerm/internal/services/compute/shared_schema.go +++ b/azurerm/internal/services/compute/shared_schema.go @@ -113,7 +113,7 @@ func bootDiagnosticsSchema() *schema.Schema { } func expandBootDiagnostics(input []interface{}) *compute.DiagnosticsProfile { - if len(input) == 0 { + if len(input) == 0 || input[0] == nil { return &compute.DiagnosticsProfile{ BootDiagnostics: &compute.BootDiagnostics{ Enabled: utils.Bool(false),