Partilhar via


DevTestLabResource.CreateEnvironmentAsync Método

Definição

Criar máquinas virtuais em um laboratório. Essa operação pode demorar um pouco para ser concluída.

  • Caminho da Solicitação/assinaturas/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{name}/createEnvironment
  • IdLabs_CreateEnvironment de operação
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation> CreateEnvironmentAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.DevTestLabs.Models.DevTestLabVmCreationContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateEnvironmentAsync : Azure.WaitUntil * Azure.ResourceManager.DevTestLabs.Models.DevTestLabVmCreationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
override this.CreateEnvironmentAsync : Azure.WaitUntil * Azure.ResourceManager.DevTestLabs.Models.DevTestLabVmCreationContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation>
Public Overridable Function CreateEnvironmentAsync (waitUntil As WaitUntil, content As DevTestLabVmCreationContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation)

Parâmetros

waitUntil
WaitUntil

Completed se o método deve aguardar para retornar até que a operação de execução prolongada seja concluída no serviço; Started se ele deve retornar depois de iniciar a operação. Para obter mais informações sobre operações de longa execução, consulte Exemplos de operação de Long-Running do Azure.Core.

content
DevTestLabVmCreationContent

Propriedades para criar uma máquina virtual.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

content é nulo.

Aplica-se a