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

MaintenanceExtensions.CreateOrUpdateConfigurationAssignmentBySubscriptionAsync 方法

定义

注册资源的配置。

  • 请求路径/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments/{configurationAssignmentName}
  • 操作IdConfigurationAssignmentsForSubscriptions_CreateOrUpdate
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>> CreateOrUpdateConfigurationAssignmentBySubscriptionAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string configurationAssignmentName, Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData data, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateConfigurationAssignmentBySubscriptionAsync : Azure.ResourceManager.Resources.SubscriptionResource * string * Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Maintenance.Models.MaintenanceConfigurationAssignmentData>>
<Extension()>
Public Function CreateOrUpdateConfigurationAssignmentBySubscriptionAsync (subscriptionResource As SubscriptionResource, configurationAssignmentName As String, data As MaintenanceConfigurationAssignmentData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of MaintenanceConfigurationAssignmentData))

参数

subscriptionResource
SubscriptionResource

方法 SubscriptionResource 将对其执行的实例。

configurationAssignmentName
String

配置分配名称。

data
MaintenanceConfigurationAssignmentData

configurationAssignment。

cancellationToken
CancellationToken

要使用的取消标记。

返回

例外

configurationAssignmentName 是一个空字符串,预期为非空。

configurationAssignmentNamedata 为 null。

适用于