VirtualEnclaveResource.GetVirtualEnclaveWorkloadAsync 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.
Get a WorkloadResource
- Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Mission/virtualEnclaves/{virtualEnclaveName}/workloads/{workloadName}
- Operation Id: WorkloadResource_Get
- Default Api Version: 2025-05-01-preview
- Resource: VirtualEnclaveWorkloadResource
public virtual System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadResource>> GetVirtualEnclaveWorkloadAsync(string workloadName, System.Threading.CancellationToken cancellationToken = default);
abstract member GetVirtualEnclaveWorkloadAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadResource>>
override this.GetVirtualEnclaveWorkloadAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.VirtualEnclaves.VirtualEnclaveWorkloadResource>>
Public Overridable Function GetVirtualEnclaveWorkloadAsync (workloadName As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of VirtualEnclaveWorkloadResource))
Parameters
- workloadName
- String
The name of the workloadResource Resource.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
workloadName is null.
workloadName is an empty string, and was expected to be non-empty.