I have recently been trying to program against the Azure Active Directory (AAD) using the
Microsoft.Azure.ActiveDirectory.GraphClient library. Unfortunately this library literally has no useful comments to assist understanding or clarify parameters etc.. Let alone how best to use or implement objects and methods or what and why exception may occur.
Equally the MSDN documentation seems to be lacking in any examples and really has minimal comments (although I see it’s getting a bit better…I think).
To this end I have created a ‘wrapper / handler’ to simplify all sorts of AAD interactions called AADGraphHandler. It effectively will help manage the creation of the
ActiveDirectoryClient and a bunch of it’s operations. You can find this on GitHub at https://github.com/nrogoff/AADGraphHandler
You can get access to the ActiveDirectoryClient directly, and so any methods not covered yet. (e.g. Adding and removing roles to a user. Just not needed it yet!)
Continue reading “Azure Active Directory Graph API Wrapper to help make it a bit easier!”
If you are getting ‘This file cannot be previewed because of an error with the following previewer: PDF Preview Handler’ when selecting a PDF in Outlook, and you have Acrobat DC installed…
…then one potential fix is as follows: Continue reading “Fix broken Adobe Acrobat DC PDF Preview Handler in Outlook”
I recently had a bet with some friends as to whether beer or wine would have the most calories by volume. So I did some research.
It turns out that pure alcohol is surprisingly high in calories on it’s own.
So there are 3 ways we can break this down.
- Calories per 100ml (per volume of liquid!)
- Calories per serving (how many drinks you have?)
- Calories per unit of alcohol (how drunk you get for each kcal?)
Continue reading “Which alcoholic drinks have the most calories?”
Thanks to Simon J.K. Pedersen (https://github.com/sjkp) there is now a reasonably easy way to get auto-updating “Let’s Encrypt” SSL certificates in you Azure App Services using the “Azure Let’s Encrypt” Extension (https://github.com/sjkp/letsencrypt-siteextension).
There are some very comprehensive install and setup steps here https://github.com/sjkp/letsencrypt-siteextension/wiki/How-to-install
Continue reading “Let’s Encrypt Extension for Azure App Services”
When you have dozens of apps open and working across different tasks, then Windows 10 Virtual Desktops can help. By using virtual desktops you can open or move the right apps and browsers for a particular task to it’s own desktop.
Continue reading “Windows 10 Virtual Desktops – Quick guide and shortcut keys”
Quick helper boiler plates for setting up your Unit Test.
I have included ReSharper Template here that you can import directly Resharper Templates. Also thanks you to Alessandro Aeberli for making the these Visual Studio Snippets
After importing the ReSharper Templates then you can use ‘uTestBoiler’ or ‘uTestnUnitBoiler’ shortcuts to add the code below into any test class.
If you want to make your own snippets you can use the Visual Studios Snippet Manager by following the instructions here https://msdn.microsoft.com/en-us/library/ms165394.aspx
Continue reading “Unit Test Class ReSharper Template and Snippets for nUnit and MS Test”