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

Add IP configuration in the azure_rm_privateendpoint module #1766

Open
pwakano opened this issue Nov 22, 2024 · 0 comments
Open

Add IP configuration in the azure_rm_privateendpoint module #1766

pwakano opened this issue Nov 22, 2024 · 0 comments

Comments

@pwakano
Copy link

pwakano commented Nov 22, 2024

SUMMARY

The Private Endpoint can have a custom IP configuration as shown here https://learn.microsoft.com/en-us/rest/api/virtualnetwork/private-endpoints/create-or-update?view=rest-virtualnetwork-2024-03-01&tabs=HTTP#privateendpointipconfiguration and here https://learn.microsoft.com/en-us/cli/azure/network/private-endpoint?view=azure-cli-latest#az-network-private-endpoint-create
This option is not yet available in the azure_rm_privateendpoint module, so it would be nice to have this option when creating a private endpoint. By having this, azure won't pick any random empty IP available in the subnet, which might cause conflicts later.

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

azure_rm_privateendpoint

ADDITIONAL INFORMATION

If the IP is freely chosen by Azure when creating the private endpoint, it may conflict with some IP which is manually assigned to some other resource such as a VM.

- name: Create private endpoint with custom ip configuration
  azure_rm_privateendpoint:
    name: testprivateendpoint
    resource_group: v-xisuRG
    private_link_service_connections:
      - name: Test_private_link_service
        private_link_service_id: /subscriptions/xxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/privateLinkServices/testervice
    subnet:
      id: /subscriptions/xxx/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/fredvnet/subnets/default
    ip_configurations:
      - name: myEndpointIPConfig
        properties:
          group_id: blob
          member_name: blob
          private_ip_address: 1.2.3.4
    tags:
      key1: value1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant