ScVmmExtensions.GetScVmmVirtualMachineTemplates 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.
Overloads
GetScVmmVirtualMachineTemplates(SubscriptionResource, CancellationToken) |
List of VirtualMachineTemplates in a subscription.
|
GetScVmmVirtualMachineTemplates(ResourceGroupResource) |
Gets a collection of ScVmmVirtualMachineTemplateResources in the ResourceGroupResource. MockingTo mock this method, please mock GetScVmmVirtualMachineTemplates() instead. |
GetScVmmVirtualMachineTemplates(SubscriptionResource, CancellationToken)
- Source:
- ScVmmExtensions.cs
List of VirtualMachineTemplates in a subscription.
- Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.ScVmm/virtualMachineTemplates
- Operation Id: VirtualMachineTemplates_ListBySubscription
- Default Api Version: 2023-10-07
- Resource: ScVmmVirtualMachineTemplateResource
public static Azure.Pageable<Azure.ResourceManager.ScVmm.ScVmmVirtualMachineTemplateResource> GetScVmmVirtualMachineTemplates (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetScVmmVirtualMachineTemplates : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.ScVmm.ScVmmVirtualMachineTemplateResource>
<Extension()>
Public Function GetScVmmVirtualMachineTemplates (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ScVmmVirtualMachineTemplateResource)
Parameters
- subscriptionResource
- SubscriptionResource
The SubscriptionResource instance the method will execute against.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
A collection of ScVmmVirtualMachineTemplateResource that may take multiple service requests to iterate over.
Exceptions
subscriptionResource
is null.
Applies to
GetScVmmVirtualMachineTemplates(ResourceGroupResource)
- Source:
- ScVmmExtensions.cs
Gets a collection of ScVmmVirtualMachineTemplateResources in the ResourceGroupResource. MockingTo mock this method, please mock GetScVmmVirtualMachineTemplates() instead.
public static Azure.ResourceManager.ScVmm.ScVmmVirtualMachineTemplateCollection GetScVmmVirtualMachineTemplates (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetScVmmVirtualMachineTemplates : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.ScVmm.ScVmmVirtualMachineTemplateCollection
<Extension()>
Public Function GetScVmmVirtualMachineTemplates (resourceGroupResource As ResourceGroupResource) As ScVmmVirtualMachineTemplateCollection
Parameters
- resourceGroupResource
- ResourceGroupResource
The ResourceGroupResource instance the method will execute against.
Returns
An object representing collection of ScVmmVirtualMachineTemplateResources and their operations over a ScVmmVirtualMachineTemplateResource.
Exceptions
resourceGroupResource
is null.
Applies to
Azure SDK for .NET