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_log_analytics_workspace - DailyQuotaGb is a read only property and cannot be changed #9269

Closed
jdruffel opened this issue Nov 11, 2020 · 3 comments
Labels
bug duplicate service/log-analytics upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR v/2.x (legacy)
Milestone

Comments

@jdruffel
Copy link

jdruffel commented Nov 11, 2020

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 (and AzureRM Provider) Version

Terraform v0.13.5

  • provider registry.terraform.io/hashicorp/azurerm v2.35.0

Affected Resource(s)

azurerm_log_analytics_workspace

Terraform Configuration Files

resource "azurerm_resource_group" "bpg-it-rg-automation" {
  name     = "bpg-it-rg-automation"
  location = "westeurope"
}

resource "azurerm_automation_account" "bpg-it-automationaccount" {
  name                = "bpg-it-automationaccount"
  location            = azurerm_resource_group.bpg-it-rg-automation.location
  resource_group_name = azurerm_resource_group.bpg-it-rg-automation.name
  sku_name            = "Basic"
}

resource "azurerm_log_analytics_workspace" "bpg-it-loganalytics-automation" {
  name                = "bpg-it-loganalytics-automation"
  location            = azurerm_resource_group.bpg-it-rg-automation.location
  resource_group_name = azurerm_resource_group.bpg-it-rg-automation.name
  sku                 = "Free"

Debug Output

https://gist.github.com/jdruffel/88bbff8dc87aec0fd67edcafe09ce824

Panic Output

Expected Behaviour

azurerm_log_analytics_workspace should have deployed normally, no changes should have been made

Actual Behaviour

Terraform wants to change the readonly property DailyQuotaGb which it cannot change.
I did not specify that property, If I specify it it does not change anything.

Original Error: Code="BadRequest" Message="DailyQuotaGb is a read only property and cannot be changed"

Steps to Reproduce

  1. terraform apply
@tombuildsstuff tombuildsstuff added bug service/log-analytics upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR labels Nov 11, 2020
@tombuildsstuff tombuildsstuff added this to the v2.36.0 milestone Nov 11, 2020
@tombuildsstuff
Copy link
Member

hi @jdruffel

Thanks for opening this issue :)

This has been fixed in #9228 and will become available in version 2.36.0 of the Azure Provider - since support for this has been merged I'm going to close this issue for the moment; however I've assigned this to the 2.36.0 milestone so @hashibot will comment when the release is available.

Thanks!

@ghost
Copy link

ghost commented Nov 12, 2020

This has been released in version 2.36.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.36.0"
}
# ... other configuration ...

@ghost
Copy link

ghost commented Dec 12, 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 👉 hashibot-feedback@hashicorp.com. Thanks!

@hashicorp hashicorp locked as resolved and limited conversation to collaborators Dec 12, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug duplicate service/log-analytics upstream/microsoft Indicates that there's an upstream issue blocking this issue/PR v/2.x (legacy)
Projects
None yet
Development

No branches or pull requests

3 participants