ComputeExtensions.GetVirtualMachineRunCommand 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 static Azure.Response<Azure.ResourceManager.Compute.Models.RunCommandDocument> GetVirtualMachineRunCommand (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string commandId, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualMachineRunCommand : Azure.ResourceManager.Resources.SubscriptionResource * Azure.Core.AzureLocation * string * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Compute.Models.RunCommandDocument>
<Extension()>
Public Function GetVirtualMachineRunCommand (subscriptionResource As SubscriptionResource, location As AzureLocation, commandId As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of RunCommandDocument)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- 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.
subscriptionResource
or commandId
is null.
Applies to
Berkolaborasi dengan kami di GitHub
Sumber untuk konten ini dapat ditemukan di GitHub, yang juga dapat Anda gunakan untuk membuat dan meninjau masalah dan menarik permintaan. Untuk informasi selengkapnya, lihat panduan kontributor kami.
Azure SDK for .NET