Language

ScopeMapCollection.CreateOrUpdate Method

Definition

Creates a scope map for a container registry with the specified parameters.

  • Request Path. : /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/scopeMaps/{scopeMapName}.
  • Operation Id. : ScopeMaps_Create.
  • Default Api Version. : 2026-03-01-preview.
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.ScopeMapResource> CreateOrUpdate(Azure.WaitUntil waitUntil, string scopeMapName, Azure.ResourceManager.ContainerRegistry.ScopeMapData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ContainerRegistry.ScopeMapData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.ScopeMapResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.ContainerRegistry.ScopeMapData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.ContainerRegistry.ScopeMapResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, scopeMapName As String, data As ScopeMapData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of ScopeMapResource)

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.

scopeMapName
String

The name of the scope map.

data
ScopeMapData

The parameters for creating a scope map.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

scopeMapName or data is null.

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

Applies to