Skip to content

Commit

Permalink
Merge pull request #40 from swissbuechi/custom-enterprise-app
Browse files Browse the repository at this point in the history
Switched to custom enterprise app
  • Loading branch information
swissbuechi authored Sep 16, 2024
2 parents dfccd3d + 0a1b0c9 commit 97952ca
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion AzureAdDeployer.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
RootModule = 'AzureAdDeployer.psm1'

# Version number of this module.
ModuleVersion = '2.16.8'
ModuleVersion = '2.16.9'

# Supported PSEditions
CompatiblePSEditions = @("Core")
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,10 @@ Alias: `aaddepl`

Checkout the [AzureAdDeployer project board](https://github.com/users/swissbuechi/projects/4)

## Development

`Import-Module .\AzureAdDeployer.psm1 -Force`

## Credits

### Icon
Expand Down
4 changes: 2 additions & 2 deletions public/Helper/Invoke-DependencyCheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Function Get-AllModulesInstalled {
$Dependencies = @(
@{
ModuleName = "PnP.PowerShell";
ModuleVersion = "2.2.0";
ModuleVersion = "2.12.0";
}, @{
ModuleName = "ExchangeOnlineManagement";
ModuleVersion = "3.2.0";
Expand All @@ -19,7 +19,7 @@ Function Get-AllModulesInstalled {
}, @{
ModuleName = "Microsoft.Graph.Users";
ModuleVersion = "1.28.0";
}, @{
}, @{
ModuleName = "Microsoft.Graph.Groups";
ModuleVersion = "1.28.0";
}, @{
Expand Down
2 changes: 1 addition & 1 deletion public/Session/Register-SPOSession.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function Connect-SPOSession {
# if (Request-SPOSession) { Disconnect-SPOSession }
Disconnect-SPOSession
Write-Host "Connecting SharePoint Online PowerShell"
Connect-PnPOnline -Url (Get-SPOAdminURL) -Interactive -LaunchBrowser
Connect-PnPOnline -Url (Get-SPOAdminURL) -Interactive -LaunchBrowser -ClientId "acecb20a-2e59-48c2-8a3c-aa9a9bd3352c"
if ( -not (Request-SPOSession)) { return }
}
function Get-SPOAdminURL {
Expand Down
2 changes: 1 addition & 1 deletion public/Session/Reqister-GraphSession.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function Connect-GraphSession {
# if (Request-GraphSession) { Disconnect-GraphSession }
Disconnect-GraphSession
Write-Host "Connecting Graph API PowerShell"
Connect-MgGraph -ContextScope Process -Scopes "Policy.Read.All, Policy.ReadWrite.ConditionalAccess, Policy.ReadWrite.Authorization, Application.Read.All, User.ReadWrite.All, Domain.Read.All, Directory.ReadWrite.All, RoleManagement.ReadWrite.Directory, DeviceManagementApps.ReadWrite.All, Sites.Read.All, AuditLog.Read.All, UserAuthenticationMethod.Read.All, Organization.Read.All" | Out-Null
Connect-MgGraph -ContextScope Process -ClientId "acecb20a-2e59-48c2-8a3c-aa9a9bd3352c" -Scopes "Policy.Read.All, Policy.ReadWrite.ConditionalAccess, Policy.ReadWrite.Authorization, Application.Read.All, User.ReadWrite.All, Domain.Read.All, Directory.ReadWrite.All, RoleManagement.ReadWrite.Directory, DeviceManagementApps.ReadWrite.All, Sites.Read.All, AuditLog.Read.All, UserAuthenticationMethod.Read.All, Organization.Read.All" | Out-Null
if ( -not (Request-GraphSession)) { return }
}
function Disconnect-GraphSession {
Expand Down

0 comments on commit 97952ca

Please sign in to comment.