> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/appsec-rules/iac-security/iam/appsec-azure-6.md).

# Azure AKS cluster configured with overly permissive API server access misconfiguration detected in c

## Rule Details

|                        |                                       |
| ---------------------- | ------------------------------------- |
| Cortex AppSec Rule ID  | APPSEC\_AZURE\_6                      |
| Category - Subcategory | Kubernetes - Access Control           |
| Provider               | AZURE                                 |
| Severity               | LOW                                   |
| Framework              | ARM, Bicep, Terraform, Terraform Plan |
| Mapped CSPM/KSPM Rule  | 8d05a24e-e700-41b2-8d9d-56af90e1dcdf  |

## Impact

The AKS API server receives requests to perform actions in the cluster , for example, to create resources, and scale the number of nodes. The API server provides a secure way to manage a cluster. To enhance cluster security and minimize attacks, the API server should only be accessible from a limited set of IP address ranges. These IP ranges allow defined IP address ranges to communicate with the API server. A request made to the API server from an IP address that is not part of these authorized IP ranges is blocked.

## How to Fix

*Resource:* Microsoft.ContainerService/managedClusters

* *Arguments:* apiServerAuthorizedIPRanges \[source,go]

***

{ "name": "string", "type": "Microsoft.ContainerService/managedClusters", "apiVersion": "2019-06-01", "location": "string", "tags": {}, "properties": { "kubernetesVersion": "string", "dnsPrefix": "string", "agentPoolProfiles": \[ { "count": "integer", "vmSize": "string", "osDiskSizeGB": "integer", "vnetSubnetID": "string", "maxPods": "integer", "osType": "string", "maxCount": "integer", "minCount": "integer", "enableAutoScaling": "boolean", "type": "string", "orchestratorVersion": "string", "availabilityZones": \[ "string" ], "enableNodePublicIP": "boolean", "scaleSetPriority": "string", "scaleSetEvictionPolicy": "string", "nodeTaints": \[ "string" ], "name": "string" } ], "linuxProfile": { "adminUsername": "string", "ssh": { "publicKeys": \[ { "keyData": "string" } ] } }, "windowsProfile": { "adminUsername": "string", "adminPassword": "string" }, "servicePrincipalProfile": { "clientId": "string", "secret": "string" }, "addonProfiles": {}, "nodeResourceGroup": "string", "enableRBAC": "boolean", "enablePodSecurityPolicy": "boolean", "networkProfile": { "networkPlugin": "string", "networkPolicy": "string", "podCidr": "string", "serviceCidr": "string", "dnsServiceIP": "string", "dockerBridgeCidr": "string", "loadBalancerSku": "string" }, "aadProfile": { "clientAppID": "string", "serverAppID": "string", "serverAppSecret": "string", "tenantID": "string" },

* "apiServerAuthorizedIPRanges": \[ "string" ] }, "identity": { "type": "string" }, "resources": \[] }

***


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://cortex-docs.paloaltonetworks.com/appsec-rules/iac-security/iam/appsec-azure-6.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
