Delen via


PrivateLinkScopesOperationsExtensions.CreateOrUpdateAsync Method

Definition

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

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.AzureMonitorPrivateLinkScope> CreateOrUpdateAsync (this Microsoft.Azure.Management.Monitor.IPrivateLinkScopesOperations operations, string resourceGroupName, string scopeName, Microsoft.Azure.Management.Monitor.Models.AzureMonitorPrivateLinkScope azureMonitorPrivateLinkScopePayload, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Monitor.IPrivateLinkScopesOperations * string * string * Microsoft.Azure.Management.Monitor.Models.AzureMonitorPrivateLinkScope * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.AzureMonitorPrivateLinkScope>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IPrivateLinkScopesOperations, resourceGroupName As String, scopeName As String, azureMonitorPrivateLinkScopePayload As AzureMonitorPrivateLinkScope, Optional cancellationToken As CancellationToken = Nothing) As Task(Of AzureMonitorPrivateLinkScope)

Parameters

operations
IPrivateLinkScopesOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group. The name is case insensitive.

scopeName
String

The name of the Azure Monitor PrivateLinkScope resource.

azureMonitorPrivateLinkScopePayload
AzureMonitorPrivateLinkScope

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

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to