-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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_public_ip doesn't change from dynamic to static #1234
Comments
Hello @bernadinm, As per the documentation , dynamic Public IP Addresses aren't allocated until they're attached to a device. The property should just be empty but due to an oversight it wasn't being set to anything so I've opened a PR to fix this in 1.6.0 onwards. Thank you for opening this issue 🙂 |
Hi @katbyte, thanks for replying. I am aware that the it doesn't assign the IP address when it is set to The work around here is that the user will first need to destroy the resources entirely first, change from |
Hey @bernadinm, Just wanted to let you know we have released v1.6.0 of the provider hopefully fixing this issue 🙂 |
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! |
This issue was originally opened by @bernadinm as hashicorp/terraform#18045. It was migrated here as a result of the provider split. The original body of the issue is below.
When changing the azurerm_public_ip's public_ip_address_allocation from
dynamic
tostatic
it fails to return a new IP.Terraform Version
Terraform Configuration Files
Debug Output
Error: Error running plan: 1 error(s) occurred:
Expected Behavior
An IP address should be returned after switching public_ip_address_allocation from
dynamic
tostatic
.Actual Behavior
It fails.
Steps to Reproduce
Please list the full steps required to reproduce the issue, for example:
terraform init
terraform apply
dynamic
tostatic
terraform apply
The text was updated successfully, but these errors were encountered: