public AutomationAccountInner getByResourceGroup(String resourceGroupName, String automationAccountName) {
        return getByResourceGroupWithServiceResponseAsync(resourceGroupName, automationAccountName).toBlocking().single().body();
    }
public AutomationAccountInner getByResourceGroup ( String resourceGroupName , String automationAccountName ) { return getByResourceGroupWithServiceResponseAsync ( resourceGroupName , automationAccountName ) . toBlocking ( ) . single ( ) . body ( ) ; }
Get information about an Automation Account.

@param resourceGroupName Name of an Azure Resource group.
@param automationAccountName The name of the automation account.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws ErrorResponseException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the AutomationAccountInner object if successful.