You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once data collection is complete, provide the output packages to whoever is completing the assessment. Please avoid making any changes to the generated files including the name of the file.
### I want to use a service principal identity to run the assessment instead of a user identity
77
-
```PowerShell
78
-
## If you prefer to use your own app registration (service principal) for automation purposes, you may connect using your own ClientId and Certificate like the example below. Your app registration should include Directory.Read.All and Policy.Read.All permissions to MS Graph for a complete assessment. Once added, ensure you have completed admin consent on the service principal for those application permissions.
### I want to use a service principal identity to run the assessment instead of a user identity
86
+
If you prefer to use your own app registration (service principal) for automation purposes, you may connect using your own ClientId and Certificate like the example below. Your app registration should include Directory.Read.All and Policy.Read.All permissions to MS Graph for a complete assessment. Once added, ensure you have completed admin consent on the service principal for those application permissions.
87
+
```PowerShell
88
+
## Connect using Service Principal identity with app permissions.
### I have a tenant in sovereign cloud, how do I run this assessment?
93
+
You must create an application registration in your tenant and provide the ClientId when running Connect-AADAssessment. The default application configuration should work as long as you define the correct redirect URI for your cloud environment. For example, a "Mobile and desktop application" Redirect URI of `https://login.microsoftonline.us/common/oauth2/nativeclient`.
94
+
```PowerShell
95
+
## Example connecting to USGov cloud environment using user delegated permissions.
### When trying to install the module I'm receiving the error 'A parameter cannot be found that matches parameter name 'AcceptLicense'
87
-
Run the following command to update PowerShellGet to the latest version before attempting to install the AzureADAssessment module again.
103
+
Run the following command to update PowerShellGet to the latest version before attempting to install the AzureADAssessment module again. Option 1 is a single command executing a script (<https://aka.ms/Update-PowerShellGet>), while option 2 requires multiple commands and some possible troubleshooting.
88
104
89
105
```PowerShell
106
+
### Option 1: Run the following command to download and execute a script to update PowerShellGet. Note: Navigate to this URL in a web browser to see the contents of the script in GitHub.
107
+
iex $(irm 'https://aka.ms/Update-PowerShellGet')
108
+
109
+
### Option 2: Run the following commands individually.
if ($CloudEnvironment-ne'Global'-and$ClientId-eq$script:ModuleConfig.'aad.clientId') {
48
+
Write-Error-Exception (New-Object System.ArgumentException -ArgumentList "Connecting to Cloud Environment [$CloudEnvironment] requires a ClientId to be specified for an application in your tenant.") -ErrorId 'ClientIdParameterRequired'-Category InvalidArgument -ErrorAction Stop
49
+
}
50
+
46
51
## Update WebSession User Agent String with Module Info
0 commit comments