public GetAccount ( string resourceGroupName, string accountName ) : BatchAccountContext | ||
resourceGroupName | string | The name of the resource group the account is under. If unspecified, it will be looked up. |
accountName | string | The account name |
Résultat | BatchAccountContext |
public virtual BatchAccountContext GetAccount(string resourceGroupName, string accountName)
{
// single account lookup - find its resource group if not specified
if (string.IsNullOrEmpty(resourceGroupName))
{
resourceGroupName = GetGroupForAccount(accountName);
}
var response = BatchManagementClient.BatchAccount.Get(resourceGroupName, accountName);
return BatchAccountContext.ConvertAccountResourceToNewAccountContext(response);
}