ContainerRegistryTasksExtensions.ScheduleRunAsync 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.
Schedules a new run based on the request parameters and add it to the run queue. <item> Mocking. To mock this method, please mock ScheduleRunAsync(String, RunContent, CancellationToken) instead. </item>
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerRegistry.Tasks.RunResource>> ScheduleRunAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string registryName, Azure.ResourceManager.ContainerRegistry.Tasks.Models.RunContent content, System.Threading.CancellationToken cancellationToken = default);
static member ScheduleRunAsync : Azure.ResourceManager.Resources.ResourceGroupResource * string * Azure.ResourceManager.ContainerRegistry.Tasks.Models.RunContent * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.ContainerRegistry.Tasks.RunResource>>
<Extension()>
Public Function ScheduleRunAsync (resourceGroupResource As ResourceGroupResource, registryName As String, content As RunContent, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of RunResource))
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource the method will execute against.
- registryName
- String
The name of the container registry.
- content
- RunContent
The request body.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
resourceGroupResource is null.