次の方法で共有


MockableNetworkCloudResourceGroupResource.GetNetworkCloudVirtualMachine Method

Definition

Get properties of the provided virtual machine.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/virtualMachines/{virtualMachineName}
  • Operation Id: VirtualMachines_Get
  • Default Api Version: 2024-06-01-preview
  • Resource: NetworkCloudVirtualMachineResource
public virtual Azure.Response<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineResource> GetNetworkCloudVirtualMachine (string virtualMachineName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetNetworkCloudVirtualMachine : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineResource>
override this.GetNetworkCloudVirtualMachine : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.NetworkCloud.NetworkCloudVirtualMachineResource>
Public Overridable Function GetNetworkCloudVirtualMachine (virtualMachineName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of NetworkCloudVirtualMachineResource)

Parameters

virtualMachineName
String

The name of the virtual machine.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

virtualMachineName is null.

virtualMachineName is an empty string, and was expected to be non-empty.

Applies to