Azure-docs: azurerm_public_ip

Created on 21 Jan 2019  Â·  7Comments  Â·  Source: MicrosoftDocs/azure-docs

To avoid the deprecation warning, update allocation method syntax from:
public_ip_address_allocation = "static"
to:
allocation_method = "Static"
(present in multiple locations in the doc)


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

cxp doc-bug terraforsvc triaged

Most helpful comment

Hi guys - I'm still seeing the lower case "static" in the code snippet above. Terraform returns an error when I apply. Have corrected locally, but thought you might want to know it's still up here as lower case. Just to confirm, Terraform 0.11.11 throws error:

"Error: azurerm_public_ip.vmss: expected allocation_method to be one of [Static Dynamic], got static"

All 7 comments

Thanks for the feedback! We are currently investigating and will update you shortly.

@matt-FFFFFF thanks for pointing this out! I have corrected the doc.

Once the PR merges the changes will go live in a few hours.

Hi guys - I'm still seeing the lower case "static" in the code snippet above. Terraform returns an error when I apply. Have corrected locally, but thought you might want to know it's still up here as lower case. Just to confirm, Terraform 0.11.11 throws error:

"Error: azurerm_public_ip.vmss: expected allocation_method to be one of [Static Dynamic], got static"

@TomArcherMsft could you take a look at this one? I don't see why the code sample throws an error if we set the allocation method to static. We of course could just change it to dynamic but I don't understand why the error is there in the first place.

@MicahMcKittrick-MSFT This is a case sensitivity issue. The string must have a capital 'S'.

e.g. 'Static' = :)
'static' = :(

@matt-FFFFFF ahhh okay. That's odd I swear I corrected that.... I will submit a PR now.

Done!

image

Changes should go live in a few hours :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AronT-TLV picture AronT-TLV  Â·  3Comments

DeepPuddles picture DeepPuddles  Â·  3Comments

Favna picture Favna  Â·  3Comments

bityob picture bityob  Â·  3Comments

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments