My understanding is that the client id is actually the application id in Azure. The present article suggests incorrectly that the client id is the object id.
From the Azure documentation: "Copy the Application ID and store it in your application code. Some sample applications refer to this value as the client ID." (docs.microsoft.com/.../resource-group-create-service-principal-portal