Microsoft.ContainerService managedClusters/managedNamespaces 2025-08-02-preview

Bicep resource definition

The managedClusters/managedNamespaces resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ContainerService/managedClusters/managedNamespaces resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.ContainerService/managedClusters/managedNamespaces@2025-08-02-preview' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    adoptionPolicy: 'string'
    annotations: {
      {customized property}: 'string'
    }
    defaultNetworkPolicy: {
      egress: 'string'
      ingress: 'string'
    }
    defaultResourceQuota: {
      cpuLimit: 'string'
      cpuRequest: 'string'
      memoryLimit: 'string'
      memoryRequest: 'string'
    }
    deletePolicy: 'string'
    labels: {
      {customized property}: 'string'
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

Microsoft.ContainerService/managedClusters/managedNamespaces

Name Description Value
location The location of the namespace. string
name The resource name string

Constraints:
Min length = 1
Max length = 63
Pattern = [a-z0-9]([-a-z0-9]*[a-z0-9])? (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: managedClusters
properties Properties of a namespace. NamespaceProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

ManagedNamespaceTags

Name Description Value

NamespaceProperties

Name Description Value
adoptionPolicy Action if Kubernetes namespace with same name already exists. 'Always'
'IfIdentical'
'Never'
annotations The annotations of managed namespace. NamespacePropertiesAnnotations
defaultNetworkPolicy The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced. NetworkPolicies
defaultResourceQuota The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced. ResourceQuota
deletePolicy Delete options of a namespace. 'Delete'
'Keep'
labels The labels of managed namespace. NamespacePropertiesLabels

NamespacePropertiesAnnotations

Name Description Value

NamespacePropertiesLabels

Name Description Value

NetworkPolicies

Name Description Value
egress Egress policy for the network. 'AllowAll'
'AllowSameNamespace'
'DenyAll'
ingress Ingress policy for the network. 'AllowAll'
'AllowSameNamespace'
'DenyAll'

ResourceQuota

Name Description Value
cpuLimit CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details. string
cpuRequest CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details. string
memoryLimit Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details. string
memoryRequest Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details. string

ARM template resource definition

The managedClusters/managedNamespaces resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.ContainerService/managedClusters/managedNamespaces resource, add the following JSON to your template.

{
  "type": "Microsoft.ContainerService/managedClusters/managedNamespaces",
  "apiVersion": "2025-08-02-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "adoptionPolicy": "string",
    "annotations": {
      "{customized property}": "string"
    },
    "defaultNetworkPolicy": {
      "egress": "string",
      "ingress": "string"
    },
    "defaultResourceQuota": {
      "cpuLimit": "string",
      "cpuRequest": "string",
      "memoryLimit": "string",
      "memoryRequest": "string"
    },
    "deletePolicy": "string",
    "labels": {
      "{customized property}": "string"
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

Microsoft.ContainerService/managedClusters/managedNamespaces

Name Description Value
apiVersion The api version '2025-08-02-preview'
location The location of the namespace. string
name The resource name string

Constraints:
Min length = 1
Max length = 63
Pattern = [a-z0-9]([-a-z0-9]*[a-z0-9])? (required)
properties Properties of a namespace. NamespaceProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.ContainerService/managedClusters/managedNamespaces'

ManagedNamespaceTags

Name Description Value

NamespaceProperties

Name Description Value
adoptionPolicy Action if Kubernetes namespace with same name already exists. 'Always'
'IfIdentical'
'Never'
annotations The annotations of managed namespace. NamespacePropertiesAnnotations
defaultNetworkPolicy The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced. NetworkPolicies
defaultResourceQuota The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced. ResourceQuota
deletePolicy Delete options of a namespace. 'Delete'
'Keep'
labels The labels of managed namespace. NamespacePropertiesLabels

NamespacePropertiesAnnotations

Name Description Value

NamespacePropertiesLabels

Name Description Value

NetworkPolicies

Name Description Value
egress Egress policy for the network. 'AllowAll'
'AllowSameNamespace'
'DenyAll'
ingress Ingress policy for the network. 'AllowAll'
'AllowSameNamespace'
'DenyAll'

ResourceQuota

Name Description Value
cpuLimit CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details. string
cpuRequest CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details. string
memoryLimit Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details. string
memoryRequest Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details. string

Terraform (AzAPI provider) resource definition

The managedClusters/managedNamespaces resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ContainerService/managedClusters/managedNamespaces resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ContainerService/managedClusters/managedNamespaces@2025-08-02-preview"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      adoptionPolicy = "string"
      annotations = {
        {customized property} = "string"
      }
      defaultNetworkPolicy = {
        egress = "string"
        ingress = "string"
      }
      defaultResourceQuota = {
        cpuLimit = "string"
        cpuRequest = "string"
        memoryLimit = "string"
        memoryRequest = "string"
      }
      deletePolicy = "string"
      labels = {
        {customized property} = "string"
      }
    }
  }
}

Property Values

Microsoft.ContainerService/managedClusters/managedNamespaces

Name Description Value
location The location of the namespace. string
name The resource name string

Constraints:
Min length = 1
Max length = 63
Pattern = [a-z0-9]([-a-z0-9]*[a-z0-9])? (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: managedClusters
properties Properties of a namespace. NamespaceProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.ContainerService/managedClusters/managedNamespaces@2025-08-02-preview"

ManagedNamespaceTags

Name Description Value

NamespaceProperties

Name Description Value
adoptionPolicy Action if Kubernetes namespace with same name already exists. 'Always'
'IfIdentical'
'Never'
annotations The annotations of managed namespace. NamespacePropertiesAnnotations
defaultNetworkPolicy The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced. NetworkPolicies
defaultResourceQuota The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced. ResourceQuota
deletePolicy Delete options of a namespace. 'Delete'
'Keep'
labels The labels of managed namespace. NamespacePropertiesLabels

NamespacePropertiesAnnotations

Name Description Value

NamespacePropertiesLabels

Name Description Value

NetworkPolicies

Name Description Value
egress Egress policy for the network. 'AllowAll'
'AllowSameNamespace'
'DenyAll'
ingress Ingress policy for the network. 'AllowAll'
'AllowSameNamespace'
'DenyAll'

ResourceQuota

Name Description Value
cpuLimit CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details. string
cpuRequest CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details. string
memoryLimit Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details. string
memoryRequest Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details. string