MockableComputeSubscriptionResource.GetVirtualMachineRunCommandAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets specific run command for a subscription in a location.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}
- Operation Id: VirtualMachineRunCommands_Get
- Default Api Version: 2024-07-01
- Resource: VirtualMachineRunCommandResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.RunCommandDocument>> GetVirtualMachineRunCommandAsync (Azure.Core.AzureLocation location, string commandId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualMachineRunCommandAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.RunCommandDocument>>
override this.GetVirtualMachineRunCommandAsync : Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.Models.RunCommandDocument>>
Public Overridable Function GetVirtualMachineRunCommandAsync (location As AzureLocation, commandId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RunCommandDocument))
Parameters
- location
- AzureLocation
The location upon which run commands is queried.
- commandId
- String
The command id.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
commandId
is an empty string, and was expected to be non-empty.
commandId
is null.
Applies to
Met ons samenwerken op GitHub
De bron voor deze inhoud vindt u op GitHub, waar u ook problemen en pull-aanvragen kunt maken en controleren. Bekijk onze gids voor inzenders voor meer informatie.
Azure SDK for .NET