The following steps outline Azure App Registration for OAuth Device Flow.
This will allow you to access the basic user information used in the sample. Should you want to go beyond the sample you will also need to add each permission you need in the API permission tab.
Once complete the TenantId and ClientId you need can be found on the Overview Page.
In Azure select to register a new application. You will need to select the Redirect URI as Public client/native.
From the Authentication tab you will need to add a platform and select "IoT & Limited entry Devices"
Once you have selected the platform you will need to check the Microsoft native client URI.
Finally you will need to set the application "Treat application as Public Client"



