Welcome to the source code repo for the Entra ID Scanner. You can start browsing the source code by clicking on 'src' folder above. To learn more, go through the complete documentation here.
Open Windows PowerShell ISE or Windows PowerShell terminal and run the following commands:
-
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
[Optional] Set the execution policy to allow the installation of the module. -
Install-Module -Name PowerShellGet -RequiredVersion 2.2.5 -Scope CurrentUser -Repository PSGallery -AllowClobber
[Optional] Most systems have an older version of PowerShellGet which is not trusted anymore by the repositories. -
Register-PSRepository -Name PoshTestGallery -SourceLocation https://www.poshtestgallery.com/api/v2/ -InstallationPolicy Trusted
Registers a PowerShell repository.
(Set the gallery name to PSGallery for the prod version and PoshTestGallery for dev version/bugbash purpose) -
Install latest version of the module from PoshTestGallery
Install-module AzSKStaging.AAD -Repository PoshTestGallery -Force -AllowClobber -Scope CurrentUser
(Prod version:Install-module AzSK.AAD -Repository PSGallery -Force -AllowClobber -Scope CurrentUser
)
-
ipmo AzSKStaging.AAD
Import the package -
Get-AzSKAADSecurityStatusTenant -TenantId <yourTenantId> -IncludeDetailedResult #Tenant scan
Tenant scan cmdlet -
Get-AzSKAADSecurityStatusUser -TenantId <yourTenantId> -IncludeDetailedResult -mo 10 #User owned objects scan
User owned objects scan cmdlet
-
Navigate to the cloned repository and run
.\requirements.ps1
. -
Copy
debug.local-template.ps1
content todebug.local.ps1
and fill in the required values.