Skip to content

Commit

Permalink
Merge pull request #4882 from NikCharlebois/Tests-Improvements
Browse files Browse the repository at this point in the history
Additional Fixes
  • Loading branch information
NikCharlebois committed Jul 15, 2024
2 parents 5c47729 + 44f35ee commit 3cda1d8
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function Get-TargetResource

if ($null -eq $getValue -and -not [string]::IsNullOrEmpty($DisplayName))
{
Write-Verbose -Message "Could not find an Azure AD Administrative Unit with Id {$Id}"
Write-Verbose -Message "Could not find an Azure AD Administrative Unit by Id, trying by DisplayName {$DisplayName}"
if (-Not [string]::IsNullOrEmpty($DisplayName))
{
if ($null -ne $Script:exportedInstances -and $Script:ExportMode)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class MSFT_AADAuthenticationFlowPolicy : OMI_BaseResource
[Write, Description("Unique identifier of the Authentication Flow Policy.")] String Id;
[Write, Description("Display name of the Authentication Flow Policy.")] String DisplayName;
[Write, Description("Description of the Authentication Flow Policy.")] String Description;
[Write, Description("Indicates whether self-service sign-up flow is enabled or disabled. The default value is false. This property isn't a key. Required.")] String SelfServiceSignUpEnabled;
[Write, Description("Indicates whether self-service sign-up flow is enabled or disabled. The default value is false. This property isn't a key. Required.")] Boolean SelfServiceSignUpEnabled;
[Write, Description("Credentials of the Azure Active Directory Admin"), EmbeddedInstance("MSFT_Credential")] string Credential;
[Write, Description("Id of the Azure Active Directory application to authenticate with.")] String ApplicationId;
[Write, Description("Id of the Azure Active Directory tenant used for authentication.")] String TenantId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,6 @@ function Export-TargetResource
[array]$resources = Get-MgBetaEntitlementManagementAccessPackageCatalogAccessPackageResource -AccessPackageCatalogId $catalogId -ErrorAction Stop

$j = 1
$dscContent = ''

if ($resources.Length -eq 0)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,16 @@ Configuration Example
{
AADEntitlementManagementAccessPackageCatalogResource 'myAccessPackageCatalogResource'
{
DisplayName = 'Human Resources'
CatalogId = 'My Catalog'
Description = "https://$($TenantId.Split('.')[0]).sharepoint.com/sites/HumanResources"
IsPendingOnboarding = $true
OriginId = "https://$($TenantId.Split('.')[0]).sharepoint.com/sites/HumanResources"
OriginSystem = 'SharePointOnline'
ResourceType = 'SharePoint Online Site'
Url = "https://$($TenantId.Split('.')[0]).sharepoint.com/sites/HumanResources"
Ensure = 'Present'
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
ApplicationId = $ApplicationId;
CatalogId = "My Catalog";
CertificateThumbprint = $CertificateThumbprint;
DisplayName = "Integration Package Resource";
OriginSystem = "AADGroup";
OriginId = '849b3661-61a8-44a8-92e7-fcc91d296235'
Ensure = "Present";
IsPendingOnboarding = $True;
TenantId = $TenantId;
Url = "https://myapps.microsoft.com/$TenantId/signin/$ApplicationId/";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,16 @@ Configuration Example
{
AADEntitlementManagementAccessPackageCatalogResource 'myAccessPackageCatalogResource'
{
DisplayName = 'Human Resources'
CatalogId = 'My Catalog'
Description = "https://$($TenantId.Split('.')[0]).sharepoint.com/sites/HumanResources"
IsPendingOnboarding = $false # Updated Property
OriginId = "https://$($TenantId.Split('.')[0]).sharepoint.com/sites/HumanResources"
OriginSystem = 'SharePointOnline'
ResourceType = 'SharePoint Online Site'
Url = "https://$($TenantId.Split('.')[0]).sharepoint.com/sites/HumanResources"
Ensure = 'Present'
ApplicationId = $ApplicationId
TenantId = $TenantId
CertificateThumbprint = $CertificateThumbprint
ApplicationId = $ApplicationId;
CatalogId = "My Catalog";
CertificateThumbprint = $CertificateThumbprint;
DisplayName = "Integration Package Resource";
OriginSystem = "AADGroup";
OriginId = '849b3661-61a8-44a8-92e7-fcc91d296235'
Ensure = "Present";
IsPendingOnboarding = $False;
TenantId = $TenantId;
Url = "https://myapps.microsoft.com/$TenantId/signin/$ApplicationId/";
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Configuration Example
{
AADEntitlementManagementAccessPackageCatalogResource 'myAccessPackageCatalogResource'
{
DisplayName = 'Communication site'
DisplayName = 'Integration Package Resource'
Ensure = 'Absent'
ApplicationId = $ApplicationId
TenantId = $TenantId
Expand Down

0 comments on commit 3cda1d8

Please sign in to comment.