ManagedClusterNamespaceCollection.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates or updates a namespace managed by ARM for the specified managed cluster. Users can configure aspects like resource quotas, network ingress/egress policies, and more. See aka.ms/aks/managed-namespaces for more details.
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/managedNamespaces/{managedNamespaceName}
- Operation Id: ManagedNamespaces_CreateOrUpdate
- Default Api Version: 2025-10-01
- Resource: ManagedClusterNamespaceResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ManagedClusterNamespaceResource>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string managedNamespaceName, Azure.ResourceManager.ContainerService.ManagedClusterNamespaceData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ContainerService.ManagedClusterNamespaceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ManagedClusterNamespaceResource>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.ResourceManager.ContainerService.ManagedClusterNamespaceData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerService.ManagedClusterNamespaceResource>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, managedNamespaceName As String, data As ManagedClusterNamespaceData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of ManagedClusterNamespaceResource))
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- managedNamespaceName
- String
The name of the managed namespace.
The namespace to create or update.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
managedNamespaceName is an empty string, and was expected to be non-empty.
managedNamespaceName or data is null.