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

Support for configuring "Daily Usage Quota" in azurerm_function_app #6076

Closed
danielwertheim opened this issue Mar 11, 2020 · 5 comments · Fixed by #6100
Closed

Support for configuring "Daily Usage Quota" in azurerm_function_app #6076

danielwertheim opened this issue Mar 11, 2020 · 5 comments · Fixed by #6100
Milestone

Comments

@danielwertheim
Copy link

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

Description

When using the consumption plan for an Azure Function there's a setting to set the "Daily Usage Quota in GB-s". Would be great if this could be configured via e.g daily_usage_quota

image

New or Affected Resource(s)

  • azurerm_function_app

Potential Terraform Configuration

resource "azurerm_function_app" "example" {
  name                      = "test-azure-functions"
  location                  = azurerm_resource_group.example.location
  resource_group_name       = azurerm_resource_group.example.name
  app_service_plan_id       = azurerm_app_service_plan.example.id
  storage_connection_string = azurerm_storage_account.example.primary_connection_string

  daily_usage_quota         = 10000
}

References

@danielwertheim
Copy link
Author

If there's a workaround, e.g. running a "script" or similar (relatively new to Terraform) feel free to suggest how this can be achieved.

@danielwertheim
Copy link
Author

This worked fine.

resource "null_resource" "test" {
  provisioner "local-exec" {
    command = "az functionapp update -g ${azurerm_resource_group.example.name} -n ${azurerm_function_app.example.name} --set dailyMemoryTimeQuota=5000"
  }
}

@aqche
Copy link
Contributor

aqche commented Mar 12, 2020

I can look into getting a PR open for this.

@ghost
Copy link

ghost commented Mar 18, 2020

This has been released in version 2.2.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example:

provider "azurerm" {
    version = "~> 2.2.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Apr 15, 2020

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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants