MonitorPrivateLinkScopeCollection.CreateOrUpdate Method

Definition

Creates (or updates) a Azure Monitor PrivateLinkScope. Note: You cannot specify a different value for InstrumentationKey nor AppId in the Put operation.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/privateLinkScopes/{scopeName}
  • Operation Id: PrivateLinkScopes_CreateOrUpdate
  • Default Api Version: 2021-07-01-preview
  • Resource: MonitorPrivateLinkScopeResource
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string scopeName, Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeData * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Monitor.MonitorPrivateLinkScopeResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, scopeName As String, data As MonitorPrivateLinkScopeData, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of MonitorPrivateLinkScopeResource)

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.

scopeName
String

The name of the Azure Monitor PrivateLinkScope resource.

data
MonitorPrivateLinkScopeData

Properties that need to be specified to create or update a Azure Monitor PrivateLinkScope.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

scopeName or data is null.

Applies to