你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PrivateLinkScopesOperationsExtensions.CreateOrUpdateAsync 方法

定义

) Azure Monitor PrivateLinkScope 创建 (或更新。 注意:不能在 Put 操作中为 InstrumentationKey 和 AppId 指定其他值。

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)

参数

operations
IPrivateLinkScopesOperations

此扩展方法的操作组。

resourceGroupName
String

资源组的名称。 此名称不区分大小写。

scopeName
String

Azure Monitor PrivateLinkScope 资源的名称。

azureMonitorPrivateLinkScopePayload
AzureMonitorPrivateLinkScope

需要指定以创建或更新 Azure Monitor PrivateLinkScope 的属性。

cancellationToken
CancellationToken

取消标记。

返回

适用于