diff --git a/internal/services/appconfiguration/app_configuration_resource.go b/internal/services/appconfiguration/app_configuration_resource.go index ef9a52ed8462..4c1bd7415e50 100644 --- a/internal/services/appconfiguration/app_configuration_resource.go +++ b/internal/services/appconfiguration/app_configuration_resource.go @@ -647,11 +647,12 @@ type flattenedAccessKeys struct { } func expandAppConfigurationEncryption(input []interface{}) *configurationstores.EncryptionProperties { - if len(input) == 0 { + if len(input) == 0 || input[0] == nil { return nil } encryptionParam := input[0].(map[string]interface{}) + result := &configurationstores.EncryptionProperties{ KeyVaultProperties: &configurationstores.KeyVaultProperties{}, }