Check if subscription ID exists in endpoint URL. Throws an exception
otherwise