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

missing import documentation for azurerm_app_service_active_slot #15827

Closed
shubha-rajan opened this issue Mar 14, 2022 · 2 comments
Closed

missing import documentation for azurerm_app_service_active_slot #15827

shubha-rajan opened this issue Mar 14, 2022 · 2 comments

Comments

@shubha-rajan
Copy link

shubha-rajan commented Mar 14, 2022

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 v1.1.5
on darwin_arm64
+ provider registry.terraform.io/hashicorp/azurerm v2.95.0
+ provider registry.terraform.io/hashicorp/random v3.1.0

Affected Resource(s)

  • azurerm_app_service_active_slot

Terraform Configuration Files

resource "azurerm_app_service_active_slot" "active_slot" {
  resource_group_name   = data.azurerm_resource_group.rg.name
  app_service_name      = azurerm_app_service.app.name
  app_service_slot_name = azurerm_app_service_slot.canary.name
}

Expected Behaviour

Terraform should have swapped the active slot.

Actual Behaviour

╷
│ Error: ID contained more segments than required: "/subscriptions/ec814e56-5241-4d0b-9cd2-02d608c99732/resourceGroups/shubharajan/providers/Microsoft.Web/sites/shubharajan-champion-perch/slots/canary", map[slots:canary]
│
│   with module.app.azurerm_app_service_active_slot.active_slot,
│   on ../../azure/modules/app/main.tf line 177, in resource "azurerm_app_service_active_slot" "active_slot":
│  177: resource "azurerm_app_service_active_slot" "active_slot" {
│
╵

Steps to Reproduce

  1. terraform apply

Important Factoids

References

@tombuildsstuff tombuildsstuff changed the title Unable to set app service active slot missing import documentation for azurerm_app_service_active_slot Mar 15, 2022
@tombuildsstuff
Copy link
Contributor

hi @shubha-rajan

Thanks for opening this issue.

Taking a look through here this is a case of missing documentation, as such I've marked this as a documentation issue - but in this case you can specify the App Service ID rather than the specific Slot as the Resource ID here, as it's the App Service which is being managed (and updated).

Thanks!

@github-actions
Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 31, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants