# 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.
