Share via


VirtualMachineResource.GetMachineExtension(String, CancellationToken) Method

Definition

The operation to get the extension.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/extensions/{extensionName}
  • Operation Id: MachineExtensions_Get
public virtual Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.MachineExtensionResource> GetMachineExtension (string extensionName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMachineExtension : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.MachineExtensionResource>
override this.GetMachineExtension : string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.ConnectedVMwarevSphere.MachineExtensionResource>
Public Overridable Function GetMachineExtension (extensionName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of MachineExtensionResource)

Parameters

extensionName
String

The name of the machine extension.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

extensionName is null.

Applies to