-
Notifications
You must be signed in to change notification settings - Fork 662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DeviceConfiguration_Import_FromJSON.ps1 #271
Comments
Not OP but when I run DeviceConfiguration_Import_FromJSON.ps1 Please specify your user principal name for Azure Authentication: [email protected] Checking for AzureAD module...
Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///C:\Program
Cannot find type [Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext]: verify that the assembly containing this type is loaded. |
@charliedontsurf To fix that error just run Install-Module -Name AzureAD -RequiredVersion 2.0.2.140 and Install-Module -Name Microsoft.Graph |
I too am having the same issue. This is preventing me from importing the NCSC recommended baselines in to my Tenant. The DeviceConfiguration_Import_FromJSON.ps1 script no longer works, and I have no idea how to import their JSON profiles in to my Tenant: https://github.com/ukncsc/Device-Security-Guidance-Configuration-Packs#microsoft-endpoint-manager |
FYI - Resolution It seems the instructions are not very helpful, but if you unpick the PS Script, you will notice a comment that states to create an App Registration in Azure and provide the Client ID to the PS Script. If you use the specific AzureAD Module version listed in this thread, and then create an App Registration in Azure, set the App Registration to use the Redirect URI as per the Script, and grant the App Registration the MS Graph Permission "DeviceManagementConfiguration.ReadWrite.All" as required by the Script, you will be able to import JSON Profiles. |
I applied this suggested fix but it didn't change anything I still encounter an error
|
DeviceConfiguration_Import_FromJSON.ps1 is no longer working
The text was updated successfully, but these errors were encountered: