public AvailabilitySetInner getByResourceGroup(String resourceGroupName, String availabilitySetName) {
        return getByResourceGroupWithServiceResponseAsync(resourceGroupName, availabilitySetName).toBlocking().single().body();
    }
public AvailabilitySetInner getByResourceGroup ( String resourceGroupName , String availabilitySetName ) { return getByResourceGroupWithServiceResponseAsync ( resourceGroupName , availabilitySetName ) . toBlocking ( ) . single ( ) . body ( ) ; }
Retrieves information about an availability set.

@param resourceGroupName The name of the resource group.
@param availabilitySetName The name of the availability set.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws CloudException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the AvailabilitySetInner object if successful.