Share via


DesktopVirtualizationExtensions.GetVirtualWorkspaces Method

Definition

Overloads

GetVirtualWorkspaces(ResourceGroupResource)

Gets a collection of VirtualWorkspaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVirtualWorkspaces() instead.

GetVirtualWorkspaces(SubscriptionResource, CancellationToken)

List workspaces in subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces
  • Operation Id: Workspaces_ListBySubscription
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource

GetVirtualWorkspaces(ResourceGroupResource)

Source:
DesktopVirtualizationExtensions.cs

Gets a collection of VirtualWorkspaceResources in the ResourceGroupResource. MockingTo mock this method, please mock GetVirtualWorkspaces() instead.

public static Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceCollection GetVirtualWorkspaces (this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);
static member GetVirtualWorkspaces : Azure.ResourceManager.Resources.ResourceGroupResource -> Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceCollection
<Extension()>
Public Function GetVirtualWorkspaces (resourceGroupResource As ResourceGroupResource) As VirtualWorkspaceCollection

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of VirtualWorkspaceResources and their operations over a VirtualWorkspaceResource.

Exceptions

resourceGroupResource is null.

Applies to

GetVirtualWorkspaces(SubscriptionResource, CancellationToken)

Source:
DesktopVirtualizationExtensions.cs

List workspaces in subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.DesktopVirtualization/workspaces
  • Operation Id: Workspaces_ListBySubscription
  • Default Api Version: 2024-04-03
  • Resource: VirtualWorkspaceResource
public static Azure.Pageable<Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceResource> GetVirtualWorkspaces (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);
static member GetVirtualWorkspaces : Azure.ResourceManager.Resources.SubscriptionResource * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.DesktopVirtualization.VirtualWorkspaceResource>
<Extension()>
Public Function GetVirtualWorkspaces (subscriptionResource As SubscriptionResource, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of VirtualWorkspaceResource)

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

A collection of VirtualWorkspaceResource that may take multiple service requests to iterate over.

Exceptions

subscriptionResource is null.

Applies to