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 data source reports InvalidApiVersionParameter #6691

Closed
laughtonsm opened this issue Apr 29, 2020 · 2 comments · Fixed by #6864
Closed

azurerm_log_analytics_workspace data source reports InvalidApiVersionParameter #6691

laughtonsm opened this issue Apr 29, 2020 · 2 comments · Fixed by #6864
Assignees

Comments

@laughtonsm
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

Terraform (and AzureRM Provider) Version

2.7

Affected Resource(s)

  • azurerm_log_analytics_workspace - Data Source

Terraform Configuration Files

data "azurerm_log_analytics_workspace" "security_center" {
  name                = var.log_analytics_workspace_name
  resource_group_name = var.log_analytics_workspace_resource_group_name
}

Debug Output

Panic Output

Expected Behavior

Should return the output of the data source

Actual Behavior

Generated the following error

Error: Error making Read request on AzureRM Log Analytics workspaces 'DefaultWorkspace-xxxxxxxxxxxxxxxxxxxx-SUK': operationalinsights.WorkspacesClient#Get: Failure responding to request: StatusCode=400 -- Original Error: autorest/azure: Service returned an error. Status=400 Code="InvalidApiVersionParameter" Message="The api-version '2015-11-01-preview' is invalid. The supported versions are '2020-01-01,2019-11-01,2019-10-01,2019-09-01,2019-08-01,2019-07-01,2019-06-01,2019-05-10,2019-05-01,2019-03-01,2018-11-01,2018-09-01,2018-08-01,2018-07-01,2018-06-01,2018-05-01,2018-02-01,2018-01-01,2017-12-01,2017-08-01,2017-06-01,2017-05-10,2017-05-01,2017-03-01,2016-09-01,2016-07-01,2016-06-01,2016-02-01,2015-11-01,2015-01-01,2014-04-01-preview,2014-04-01,2014-01-01,2013-03-01,2014-02-26,2014-04'."

Steps to Reproduce

  1. terraform apply

Important Factoids

References

  • #0000
@magodo
Copy link
Collaborator

magodo commented May 7, 2020

Thank you for letting us know this issue 👍
Would you please check whether you are passing in a resource group ID instead of its name? In case you incorrectly specify an ID, Azure would give you the "meaningless" error as shown above.

@ghost
Copy link

ghost commented Jun 11, 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 Jun 11, 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