Skip to content

Commit

Permalink
Merge pull request #4870 from NikCharlebois/Tests-Improvements
Browse files Browse the repository at this point in the history
Fixing Examples
  • Loading branch information
NikCharlebois authored Jul 12, 2024
2 parents 1de104f + 48a9462 commit 02313f5
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Configuration Example
)

Import-DscResource -ModuleName Microsoft365DSC
$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
AADAdministrativeUnit 'TestUnit'
Expand All @@ -36,7 +35,7 @@ Configuration Example
RoleName = 'User Administrator'
RoleMemberInfo = MSFT_MicrosoftGraphMember
{
Identity = "admin@$Domain"
Identity = "admin@$TenantId"
Type = "User"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Configuration Example
)

Import-DscResource -ModuleName Microsoft365DSC
$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
AADAdministrativeUnit 'TestUnit'
Expand All @@ -37,7 +36,7 @@ Configuration Example
RoleName = 'User Administrator'
RoleMemberInfo = MSFT_MicrosoftGraphMember
{
Identity = "AdeleV@$Domain" # Updated Property
Identity = "AdeleV@$TenantId" # Updated Property
Type = "User"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Configuration Example
)

Import-DscResource -ModuleName Microsoft365DSC
$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
AADAdministrativeUnit 'TestUnit'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ Configuration Example
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC

$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
AADApplication 'AADApp1'
Expand All @@ -29,12 +27,12 @@ Configuration Example
AvailableToOtherTenants = $false
Description = "Application Description"
GroupMembershipClaims = "None"
Homepage = "https://$Domain"
IdentifierUris = "https://$Domain"
Homepage = "https://$TenandId"
IdentifierUris = "https://$TenandId"
KnownClientApplications = ""
LogoutURL = "https://$Domain/logout"
LogoutURL = "https://$TenandId/logout"
PublicClient = $false
ReplyURLs = "https://$Domain"
ReplyURLs = "https://$TenandId"
Permissions = @(
MSFT_AADApplicationPermission
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ Configuration Example
)
Import-DscResource -ModuleName Microsoft365DSC

$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
AADApplication 'AADApp1'
Expand All @@ -29,12 +28,12 @@ Configuration Example
AvailableToOtherTenants = $true # Updated Property
Description = "Application Description"
GroupMembershipClaims = "None"
Homepage = "https://$Domain"
IdentifierUris = "https://$Domain"
Homepage = "https://$TenandId"
IdentifierUris = "https://$TenandId"
KnownClientApplications = ""
LogoutURL = "https://$Domain/logout"
LogoutURL = "https://$TenandId/logout"
PublicClient = $false
ReplyURLs = "https://$Domain"
ReplyURLs = "https://$TenandId"
Permissions = @(
MSFT_AADApplicationPermission
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,18 @@ Configuration Example
)
Import-DscResource -ModuleName Microsoft365DSC

$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
AADEntitlementManagementAccessPackageCatalogResource 'myAccessPackageCatalogResource'
{
DisplayName = 'Human Resources'
CatalogId = 'My Catalog'
Description = "https://$($Domain.Split('.')[0]).sharepoint.com/sites/HumanResources"
Description = "https://$($TenantId.Split('.')[0]).sharepoint.com/sites/HumanResources"
IsPendingOnboarding = $true
OriginId = "https://$($Domain.Split('.')[0]).sharepoint.com/sites/HumanResources"
OriginId = "https://$($TenantId.Split('.')[0]).sharepoint.com/sites/HumanResources"
OriginSystem = 'SharePointOnline'
ResourceType = 'SharePoint Online Site'
Url = "https://$($Domain.Split('.')[0]).sharepoint.com/sites/HumanResources"
Url = "https://$($TenantId.Split('.')[0]).sharepoint.com/sites/HumanResources"
Ensure = 'Present'
ApplicationId = $ApplicationId
TenantId = $TenantId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,18 @@ Configuration Example
)
Import-DscResource -ModuleName Microsoft365DSC

$Domain = $Credscredential.Username.Split('@')[1]
node localhost
{
AADEntitlementManagementAccessPackageCatalogResource 'myAccessPackageCatalogResource'
{
DisplayName = 'Human Resources'
CatalogId = 'My Catalog'
Description = "https://$($Domain.Split('.')[0]).sharepoint.com/sites/HumanResources"
Description = "https://$($TenantId.Split('.')[0]).sharepoint.com/sites/HumanResources"
IsPendingOnboarding = $false # Updated Property
OriginId = "https://$($Domain.Split('.')[0]).sharepoint.com/sites/HumanResources"
OriginId = "https://$($TenantId.Split('.')[0]).sharepoint.com/sites/HumanResources"
OriginSystem = 'SharePointOnline'
ResourceType = 'SharePoint Online Site'
Url = "https://$($Domain.Split('.')[0]).sharepoint.com/sites/HumanResources"
Url = "https://$($TenantId.Split('.')[0]).sharepoint.com/sites/HumanResources"
Ensure = 'Present'
ApplicationId = $ApplicationId
TenantId = $TenantId
Expand Down

0 comments on commit 02313f5

Please sign in to comment.