Compartilhar via


BatchClient.ListAccounts(Hashtable, String) Method

Definition

Lists all accounts in a subscription or in a resource group if its name is specified

public virtual System.Collections.Generic.IEnumerable<Microsoft.Azure.Commands.Batch.BatchAccountContext> ListAccounts (System.Collections.Hashtable tag, string resourceGroupName = default);
abstract member ListAccounts : System.Collections.Hashtable * string -> seq<Microsoft.Azure.Commands.Batch.BatchAccountContext>
override this.ListAccounts : System.Collections.Hashtable * string -> seq<Microsoft.Azure.Commands.Batch.BatchAccountContext>
Public Overridable Function ListAccounts (tag As Hashtable, Optional resourceGroupName As String = Nothing) As IEnumerable(Of BatchAccountContext)

Parameters

tag
Hashtable

The tag to filter accounts on

resourceGroupName
String

The name of the resource group to search under for accounts. If unspecified, all accounts will be looked up.

Returns

A collection of BatchAccountContext objects

Applies to