Language

ContextCacheContainerCollection.CreateOrUpdate Method

Definition

Create or update a container in a Context Cache.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/contextCaches/{contextCacheName}/contextCacheContainers/{contextCacheContainerName}.
  • Operation Id. : ContextCacheContainers_CreateOrUpdate.
  • Default Api Version. : 2026-06-01.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Storage.ContextCacheContainerResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string contextCacheContainerName, Azure.ResourceManager.Storage.ContextCacheContainerData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Storage.ContextCacheContainerData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Storage.ContextCacheContainerResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Storage.ContextCacheContainerData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Storage.ContextCacheContainerResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, contextCacheContainerName As String, data As ContextCacheContainerData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ContextCacheContainerResource)

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.

contextCacheContainerName
String

The name of the context cache container.

data
ContextCacheContainerData

Resource create parameters.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

contextCacheContainerName or data is null.

contextCacheContainerName is an empty string, and was expected to be non-empty.

Applies to