DevTestLabResource.GetDevTestLabVm(String, String, CancellationToken) メソッド

定義

仮想マシンを取得します。

  • 要求パス/サブスクリプション/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevTestLab/labs/{labName}/virtualmachines/{name}
  • 操作IdVirtualMachines_Get
public virtual Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabVmResource> GetDevTestLabVm (string name, string expand = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetDevTestLabVm : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabVmResource>
override this.GetDevTestLabVm : string * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.DevTestLabs.DevTestLabVmResource>
Public Overridable Function GetDevTestLabVm (name As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of DevTestLabVmResource)

パラメーター

name
String

仮想マシンの名前。

expand
String

$expand クエリを指定します。 例: 'properties($expand=artifacts,computeVm,networkInterface,applicableSchedule)'

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

例外

name は空の文字列であり、空でないと予想されていました。

name が null です。

適用対象