AutomationExtensions.GetAutomationAccounts Method

Definition

Overloads

GetAutomationAccounts(ResourceGroupResource)

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

GetAutomationAccounts(SubscriptionResource, CancellationToken)

Retrieve a list of accounts within a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts
  • Operation Id: AutomationAccount_List

GetAutomationAccounts(ResourceGroupResource)

Source:
AutomationExtensions.cs
Source:
AutomationExtensions.cs

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

C#
public static Azure.ResourceManager.Automation.AutomationAccountCollection GetAutomationAccounts(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource);

Parameters

resourceGroupResource
ResourceGroupResource

The ResourceGroupResource instance the method will execute against.

Returns

An object representing collection of AutomationAccountResources and their operations over a AutomationAccountResource.

Exceptions

resourceGroupResource is null.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview

GetAutomationAccounts(SubscriptionResource, CancellationToken)

Source:
AutomationExtensions.cs
Source:
AutomationExtensions.cs

Retrieve a list of accounts within a given subscription.

  • Request Path: /subscriptions/{subscriptionId}/providers/Microsoft.Automation/automationAccounts
  • Operation Id: AutomationAccount_List
C#
public static Azure.Pageable<Azure.ResourceManager.Automation.AutomationAccountResource> GetAutomationAccounts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default);

Parameters

subscriptionResource
SubscriptionResource

The SubscriptionResource instance the method will execute against.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

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

Exceptions

subscriptionResource is null.

Applies to

Azure SDK for .NET Preview and Azure SDK for .NET Latest
Product Versions
Azure SDK for .NET Latest, Preview