AdvisorExtensions.CreateConfigurationAsync Método

Definição

Sobrecargas

CreateConfigurationAsync(ResourceGroupResource, ConfigurationName, ConfigData, CancellationToken)

Criar/substituir a configuração do Assistente do Azure.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations/{configurationName}
  • Operação IdConfigurations_CreateInResourceGroup
CreateConfigurationAsync(SubscriptionResource, ConfigurationName, ConfigData, CancellationToken)

Crie/substitua a configuração do Assistente do Azure e exclua todas as configurações de grupos de recursos independentes.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Advisor/configurations/{configurationName}
  • Operação IdConfigurations_CreateInSubscription

CreateConfigurationAsync(ResourceGroupResource, ConfigurationName, ConfigData, CancellationToken)

Criar/substituir a configuração do Assistente do Azure.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Advisor/configurations/{configurationName}
  • Operação IdConfigurations_CreateInResourceGroup
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Advisor.Models.ConfigData>> CreateConfigurationAsync (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default);
static member CreateConfigurationAsync : Azure.ResourceManager.Resources.ResourceGroupResource * Azure.ResourceManager.Advisor.Models.ConfigurationName * Azure.ResourceManager.Advisor.Models.ConfigData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Advisor.Models.ConfigData>>
<Extension()>
Public Function CreateConfigurationAsync (resourceGroupResource As ResourceGroupResource, configurationName As ConfigurationName, data As ConfigData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConfigData))

Parâmetros

resourceGroupResource
ResourceGroupResource

A ResourceGroupResource instância em que o método será executado.

configurationName
ConfigurationName

Nome da configuração do Assistente. O valor deve ser 'default'.

data
ConfigData

A estrutura de dados de configuração do Assistente do Azure.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

data é nulo.

Aplica-se a

CreateConfigurationAsync(SubscriptionResource, ConfigurationName, ConfigData, CancellationToken)

Crie/substitua a configuração do Assistente do Azure e exclua todas as configurações de grupos de recursos independentes.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/providers/Microsoft.Advisor/configurations/{configurationName}
  • Operação IdConfigurations_CreateInSubscription
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Advisor.Models.ConfigData>> CreateConfigurationAsync (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.ResourceManager.Advisor.Models.ConfigurationName configurationName, Azure.ResourceManager.Advisor.Models.ConfigData data, System.Threading.CancellationToken cancellationToken = default);
static member CreateConfigurationAsync : Azure.ResourceManager.Resources.SubscriptionResource * Azure.ResourceManager.Advisor.Models.ConfigurationName * Azure.ResourceManager.Advisor.Models.ConfigData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Advisor.Models.ConfigData>>
<Extension()>
Public Function CreateConfigurationAsync (subscriptionResource As SubscriptionResource, configurationName As ConfigurationName, data As ConfigData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of ConfigData))

Parâmetros

subscriptionResource
SubscriptionResource

A SubscriptionResource instância em que o método será executado.

configurationName
ConfigurationName

Nome da configuração do Assistente. O valor deve ser 'default'.

data
ConfigData

A estrutura de dados de configuração do Assistente do Azure.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

data é nulo.

Aplica-se a