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

Azure provider: Resource to reserve public IPs on Azure #3101

Closed
keymon opened this issue Aug 28, 2015 · 3 comments
Closed

Azure provider: Resource to reserve public IPs on Azure #3101

keymon opened this issue Aug 28, 2015 · 3 comments

Comments

@keymon
Copy link
Contributor

keymon commented Aug 28, 2015

But terraform does not provide a explicit way to allocate IPs (only by creating public endpoints in one instance).

IPs can be allocated and queried by the azure-cli with:

azure config mode arm
azure resource create \
     ${resource_group_name} \
     ${ip_name} \
     Microsoft.Network/publicIPAddresses \
     "West Europe" 2015-05-01-preview \
     -p "{\"publicIPAllocationMethod\":\"static\"}"


azure resource show \
     ${resource_group_name} \
     ${ip_name} \
     Microsoft.Network/publicIPAddresses \
     2015-05-01-preview 

A terraform resource would reserve the ip and provide a way to query it.

In our project we used the script azure-create-public-ip.sh, which you can check as reference.

@aznashwan
Copy link
Contributor

@keymon: same ASM vs. ARM story. Varying PublicIP allocation methods are pretty much exclusively available using the new ARM API's.

Do please refer to the raised issue on the matter for further updates/requests: #3212

@stack72
Copy link
Contributor

stack72 commented Jul 27, 2016

Hi @keymon

I am going to close this out - this is available via azurerm_public_ip in the ARM provider. Since our bash file switches to arm mode, I'm assuming this is ok

Paul

@stack72 stack72 closed this as completed Jul 27, 2016
@ghost
Copy link

ghost commented Apr 24, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 24, 2020
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

4 participants