Microsoft.Azure.Commands.Batch.Models.BatchClient.GetAccount C# (CSharp) Method

GetAccount() public method

Get details about the Batch account
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
return 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);
        }
BatchClient