Skip to content

Instantly share code, notes, and snippets.

@mikarapace
Created November 9, 2021 15:53
Show Gist options
  • Save mikarapace/0f74d637be2f2735b2baff61e4187e74 to your computer and use it in GitHub Desktop.
Save mikarapace/0f74d637be2f2735b2baff61e4187e74 to your computer and use it in GitHub Desktop.
azurerm_windows_virtual_machine_scale_set creates inconsistent final plan while using both automatic_instance_repair and inline extensions
│ Error: Provider produced inconsistent final plan
│ When expanding the plan for module.entrypoint.azurerm_windows_virtual_machine_scale_set.web to include new values learned so far during apply, provider
│ "registry.terraform.io/hashicorp/azurerm" produced an invalid new value for .extension: planned set element
│ cty.ObjectVal(map[string]cty.Value{"auto_upgrade_minor_version":cty.True, "force_update_tag":cty.NullVal(cty.String), "name":cty.StringVal("ApplicationHealthWindows"),
│ "protected_settings":cty.NullVal(cty.String), "provision_after_extensions":cty.ListValEmpty(cty.String), "publisher":cty.StringVal("Microsoft.ManagedServices"),
│ "settings":cty.StringVal("{\"port\":\"443\",\"protocol\":\"https\",\"requestPath\":\"/periscope/\"}"), "type":cty.StringVal("ApplicationHealthWindows"),
│ "type_handler_version":cty.StringVal("1.0")}) does not correlate with any element in actual.
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
│ Error: Provider produced inconsistent final plan
│ When expanding the plan for module.entrypoint.azurerm_windows_virtual_machine_scale_set.web to include new values learned so far during apply, provider
│ "registry.terraform.io/hashicorp/azurerm" produced an invalid new value for .extension: planned set element
│ cty.ObjectVal(map[string]cty.Value{"auto_upgrade_minor_version":cty.True, "force_update_tag":cty.NullVal(cty.String), "name":cty.StringVal("VaultConfig"),
│ "protected_settings":cty.NullVal(cty.String), "provision_after_extensions":cty.ListValEmpty(cty.String), "publisher":cty.StringVal("Microsoft.Azure.KeyVault"),
│ "settings":cty.StringVal("{\"secretsManagementSettings\":{\"authenticationSettings\":{\"msiClientId\":\"1ae1a061-1d62-4442-9efc-6b66d69f8f97\",\"msiEndpoint\":\"http://169.254.169.254/metadata/identity\"},\"certificateStoreLocation\":\"LocalMachine\",\"certificateStoreName\":\"MY\",\"linkOnRenewal\":true,\"observedCertificates\":[\"https://kv-inva-ss-eastus.vault.azure.net/secrets/GSinvafreshSSL/6dee2fb3c5394b3faeec32a525d728d2\"],\"pollingIntervalInS\":\"3600\",\"requireInitialSync\":false}}"),
│ "type":cty.StringVal("KeyVaultForWindows"), "type_handler_version":cty.StringVal("1.0")}) does not correlate with any element in actual.
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment