Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azurerm_automation_account - encryption - key_vault_key_id optional when key_source is Microsoft.Automation #20421

Closed
1 task done
dbiegunski opened this issue Feb 10, 2023 · 1 comment · Fixed by #21041
Closed
1 task done

Comments

@dbiegunski
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

1.3.5

AzureRM Provider Version

3.43

Affected Resource(s)/Data Source(s)

azurerm_automation_account

Terraform Configuration Files

resource "azurerm_automation_account" "this" {
  name                = var.name
  location            = var.location
  resource_group_name = var.resource_group_name

  public_network_access_enabled = var.public_network_access_enabled
  sku_name                      = var.sku_name

  identity {
    type = "SystemAssigned"
  }

  encryption {
    key_source       = "Microsoft.Automation"
  }


module "auto_sharepoint_dev_001" {
  source = "../../../../TerraformResources/automation-account"

  location            = module.this.location
  resource_group_name = module.this.name

  log_analytics_workspace_id = data.azurerm_log_analytics_workspace.log_analytique_ws_hub_001.id

  name     = "auto-sharepoint-dev-001"
  sku_name = "Basic"
}

Debug Output/Panic Output

https://gist.github.com/dbiegunski/7efce8edac46725829864abf1e21593a

Expected Behaviour

No error. Argument not missing because it is optional.

An encryption block supports the following:

[user_assigned_identity_id] - (Optional) The User Assigned Managed Identity ID to be used for accessing the Customer Managed Key for encryption.
[key_source] - (Optional) The source of the encryption key. Possible values are Microsoft.Automation and Microsoft.Keyvault.
[key_vault_key_id] - (OPTIONAL) The ID of the Key Vault Key which should be used to Encrypt the data in this Automation Account. Required when key_source is set to Microsoft.Keyvault.

Actual Behaviour

Error: Missing required argument

The argument "key_vault_key_id" is required, but no definition was found.

Steps to Reproduce

terraform plan

Important Factoids

No response

References

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/automation_account

@github-actions
Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.