Compartilhar via


DevTestLabEnvironmentResource.UpdateAsync Método

Definição

Permite modificar marcas de ambientes. Todas as outras propriedades serão ignoradas.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/users/{userName}/environments/{name}
  • Operação IdEnvironments_Update
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabEnvironmentResource>> UpdateAsync (Azure.ResourceManager.DevTestLabs.Models.DevTestLabEnvironmentPatch patch, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateAsync : Azure.ResourceManager.DevTestLabs.Models.DevTestLabEnvironmentPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabEnvironmentResource>>
override this.UpdateAsync : Azure.ResourceManager.DevTestLabs.Models.DevTestLabEnvironmentPatch * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabEnvironmentResource>>
Public Overridable Function UpdateAsync (patch As DevTestLabEnvironmentPatch, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DevTestLabEnvironmentResource))

Parâmetros

patch
DevTestLabEnvironmentPatch

Um ambiente, que é essencialmente uma implantação de modelo do ARM.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

patch é nulo.

Aplica-se a