Please vote on this issue by adding a :thumbsup: 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 and review the contribution guide to help.
Description
Add support for the function, master, and system keys. This will let us update the key to keep them in sync across resources. Basing this off of AzureCLI az functionapp keys set command.
resource "azurerm_function_app_host_keys" "this" {
resource_group_name = var.azurerm_function_app.resource_group_name
name = var.azurerm_function_app.name
key {
type = "function"
name = "MyFunctionName"
value = var.my_function_name_key
}
key {
type = "master"
name = "MyMasterKey"
value = var.my_function_key
}
key {
type = "system"
name = "MySystemKey"
value = var.my_function_system_key
}
}
# Real world use, for setting the Event Grid extension system key
resource "azurerm_function_app_host_keys" "this" {
resource_group_name = var.azurerm_function_app.resource_group_name
name = var.azurerm_function_app.name
key {
type = "system"
name = "eventgrid_extension"
value = var.eventgrid_extension_key
}
}
Is there an existing issue for this?
Community Note
Description
Add support for the function, master, and system keys. This will let us update the key to keep them in sync across resources. Basing this off of AzureCLI
az functionapp keys set
command.New or Affected Resource(s)/Data Source(s)
azurerm_function_app_host_keys, azurerm_function_app_slot_host_keys
Potential Terraform Configuration
References
No response