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_data_lake_analytics_firewall_rule sample code does not work #1684

Closed
WodansSon opened this issue Jul 30, 2018 · 1 comment · Fixed by #2449
Closed

azurerm_data_lake_analytics_firewall_rule sample code does not work #1684

WodansSon opened this issue Jul 30, 2018 · 1 comment · Fixed by #2449

Comments

@WodansSon
Copy link
Collaborator

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

Terraform v0.11.7
+ provider.azurerm v1.11.0

Affected Resource(s)

  • azurerm_data_lake_analytics_firewall_rule
  • data_lake_store_firewall_rule.html.markdown

Terraform Configuration Files

provider "azurerm" {
 version = "~> 1.11.0"
}

resource "azurerm_resource_group" "example" {
  name     = "example"
  location = "northeurope"
}

resource "azurerm_data_lake_store" "example" {
  name                = "consumptiondatalake"
  resource_group_name = "${azurerm_resource_group.example.name}"
  location            = "${azurerm_resource_group.example.location}"
}

resource "azurerm_data_lake_analytics_account" "example" {
  name                = "acctest%s"
  resource_group_name = "${azurerm_resource_group.example.name}"
  location            = "${azurerm_resource_group.example.location}"

  default_store_account_name = "${azurerm_data_lake_store.example.name}"
}

resource "azurerm_data_lake_analytics_firewall_rule" "example" {
  name                = "office-ip-range"
  account_name        = "${azurerm_data_lake_analytics.example.name}"
  resource_group_name = "${azurerm_resource_group.example.name}"
  start_ip_address    = "1.2.3.4"
  end_ip_address      = "2.3.4.5"
}

Expected Behavior

Sample code should have worked as is out of the documentation.

Actual Behavior

Error: resource 'azurerm_data_lake_analytics_firewall_rule.example' config: unknown resource 'azurerm_data_lake_analytics.example' referenced in variable azurerm_data_lake_analytics.example.name

I then fix the name and run plan and get a second error

Error: azurerm_data_lake_analytics_account.example: invalid value for name (Name can only consist of lowercase letters and numbers and must be between 3 and 24 characters long)

Steps to Reproduce

For the first error, copy and past sample code directly from the documentation and run

  1. terraform init

Fix the naming issue then run:

  1. terraform init
  2. terraform plan

References

@ghost
Copy link

ghost commented Mar 5, 2019

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 Mar 5, 2019
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.

4 participants