-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07a062d
commit 0f00633
Showing
3 changed files
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
if ($PSUAzureSecurityTenantId) { | ||
Connect-MgGraph -TenantId $PSUAzureSecurityTenantId -ClientSecretCredential $Secret:PSUAzureSecurityCredential -NoWelcome | ||
Get-MgGroup | ForEach-Object { | ||
New-PSURole -Name $_.DisplayName -ClaimType 'groups' -ClaimValue $_.Id -Description $_.Description | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@{ | ||
ModuleVersion = '1.0.0' | ||
GUID = '8c0637ef-efa0-4ccb-a9b6-f81b94b6b807' | ||
Author = 'Ironman Software' | ||
CompanyName = 'Ironman Software' | ||
Copyright = '(c) Ironman Software. All rights reserved.' | ||
Description = 'Azure Security integration for PowerShell Universal.' | ||
PrivateData = @{ | ||
PSData = @{ | ||
Tags = @('app', 'weather') | ||
LicenseUri = 'https://github.com/ironmansoftware/scripts/blob/main/LICENSE' | ||
ProjectUri = 'https://github.com/ironmansoftware/scripts/tree/main/Graph/Azure.Security' | ||
IconUri = 'https://raw.githubusercontent.com/ironmansoftware/scripts/main/images/script.png' | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Azure Security | ||
|
||
Creates PowerShell Universal roles based on Entra ID groups in Azure. In conjunction with OpenID Connect, the roles will automatically be assigned to users based on their group membership. You can then assign resources to these roles in PowerShell Universal. | ||
|
||
## Requirements | ||
|
||
- `Microsoft.Graph` module | ||
|
||
## Configuration | ||
|
||
- `$PSUAzureSecurityTenantId` - The Azure AD tenant ID. Required. | ||
- `$Secret:PSUAzureSecurityCredential` - The Azure AD application client ID (user name) and client secret (password). Required. |