-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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_windows_function_app_slot now requires a globally unique name for the slot itself #16305
Comments
Hi @bdorplatt does this issue occur for you when recreating the slot (because it was deleted either by terraform of ui) |
Hello @AaldertVanWijk-TomTom, We have only tested this as net new as we hadn't previously used this resource to deploy a slot. All previous deployments used the now-deprecated azurerm_function_app_slot resource. I'd be curious if running the Terraform code again against the imported resource would try to destroy and re-create the slot. Have you tested that scenario with the workaround? |
@bdorplatt In my case after the import there are a lot of changes to the slot but there is no delete/create cycle |
Hello all, We are having the same issue when we are creating the "staging" slot with the latest provider version,
Could someone help here? Thanks!! in advance, |
There is a PR for this now so hopefully it makes it into the next release: #16410 |
@aasier
|
Thanks! @AaldertVanWijk-TomTom for your suggestions, |
Co-authored-by: jackofallops <[email protected]>
I'm also seeing the same behavior in |
This functionality has been released in v3.8.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
0.15.4
AzureRM Provider Version
3.0.2
Affected Resource(s)/Data Source(s)
azurerm_windows_function_app_slot
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
The slot would be created with the Function app name and the slot name appended with a forward slash and would be globally unique.
Example:
testapp-azf/dev
Actual Behaviour
Error is thrown: Hostname 'dev' already exists.
The slot will only deploy if it is given its own globally unique name.
Steps to Reproduce
Run a plan with the slot named something common that wouldn't be globally unique on its own.
Important Factoids
This works as expected with the new resource: azurerm_windows_web_app_slot and previously worked correctly with the azurerm_function_app_slot resource
References
No response
The text was updated successfully, but these errors were encountered: