ComputeExtensions.GetDiskImageAsync Method

Definition

Gets an image. <item> Mocking. To mock this method, please mock GetDiskImageAsync(String, String, CancellationToken) instead. </item>

public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.DiskImageResource>> GetDiskImageAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string imageName, string expand = default, System.Threading.CancellationToken cancellationToken = default);
static member GetDiskImageAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.Compute.DiskImageResource>>
<Extension()>
Public Function GetDiskImageAsync (resourceGroupResource As ResourceGroupResource, imageName As String, Optional expand As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of DiskImageResource))

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource the method will execute against.

imageName
String

The name of the image.

expand
String

The expand expression to apply on the operation.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

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

resourceGroupResource is null.

Applies to