I am wondering if it's possible to change the client id,secret, tenant, session variables programmatically. This would allow for multiple single-tenant apps. Functions provide the necessary details either during service provision or at a later point. I accept that there is the option for common as the tenant but being able to change all of the details as required eliminates the points raised by Microsoft.