# Enable Public IP Node Access for Azure Deployments

The public IP feature has to be enabled for the Azure account before we could set public IP access for a specific node pool.

1. Download and install Azure CLI by following [these](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli) steps.
2. Log in to Azure account.

```sh
az login
```

3. Add **aks-preview** extension using azure-cli

```sh
az extension add --name aks-preview
```

4. Register the NodePublicIPPreview feature

```sh
az feature register --name NodePublicIPPreview --namespace Microsoft.ContainerService
```

5. Check status using the following command if it moved to 'registered' then the NodePublicIPPreview enabled successfully. It takes nearly 20-30 minutes.

```sh
az feature list -o table --query "[?contains(name, 'Microsoft.ContainerService/NodePublicIPPreview')].{Name:name,State:properties.state}"
```

6. While adding NodePools to the Azure cluster, choose the “Enable Node Public IP “ option in the gopaddle UI.
7. Open the firewall port from your azure account to access the workloads.

→ Login to azure portal.

→ In the search bar filter “**Network security**”. In that list choose your agent pool.

→ On the left side panel, click on the ‘**Inbound rule**’ option, in that you have to add the port number which you want to open.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.gopaddle.io/overview/provision-new-cluster/provision-clusters-on-cloud/azure-aks/enable-public-ip-node-access-for-azure-deployments.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
