Skip to content

Commit

Permalink
Merge pull request #4901 from ricmestre/changeauthmethod
Browse files Browse the repository at this point in the history
Change to SPN auth in Intune tests
  • Loading branch information
NikCharlebois committed Jul 17, 2024
2 parents 973a908 + 3af7773 commit c21e8c0
Show file tree
Hide file tree
Showing 233 changed files with 3,262 additions and 955 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ It is not meant to use as a production baseline.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$Credscredential
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC

Expand Down Expand Up @@ -39,7 +47,9 @@ Configuration Example
UntrustedExecutableType = 'block'
UntrustedUSBProcessType = 'block'
Ensure = 'Present'
Credential = $Credscredential
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ It is not meant to use as a production baseline.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$Credscredential
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC

Expand Down Expand Up @@ -39,7 +47,9 @@ Configuration Example
UntrustedExecutableType = 'block'
UntrustedUSBProcessType = 'block'
Ensure = 'Present'
Credential = $Credscredential
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ It is not meant to use as a production baseline.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$Credscredential
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -18,7 +26,9 @@ Configuration Example
{
DisplayName = 'test'
Ensure = 'Absent'
Credential = $Credscredential
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ It is not meant to use as a production baseline.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$Credscredential
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -19,7 +27,6 @@ Configuration Example
DisplayName = "Account Protection LAPS Policy";
Description = "My revised description";
Ensure = "Present";
Credential = $Credscredential
Assignments = @(
MSFT_IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicyAssignments{
deviceAndAppManagementAssignmentFilterType = 'none'
Expand All @@ -30,6 +37,9 @@ Configuration Example
PasswordAgeDays_AAD = 10;
AdministratorAccountName = "Administrator";
PasswordAgeDays = 20;
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ It is not meant to use as a production baseline.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$Credscredential
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -19,7 +27,6 @@ Configuration Example
DisplayName = "Account Protection LAPS Policy";
Description = "My revised description";
Ensure = "Present";
Credential = $Credscredential
Assignments = @(
MSFT_IntuneAccountProtectionLocalAdministratorPasswordSolutionPolicyAssignments{
deviceAndAppManagementAssignmentFilterType = 'none'
Expand All @@ -30,6 +37,9 @@ Configuration Example
PasswordAgeDays_AAD = 15; # Updated Property
AdministratorAccountName = "Administrator";
PasswordAgeDays = 20;
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ It is not meant to use as a production baseline.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$Credscredential
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -19,7 +27,9 @@ Configuration Example
DisplayName = "Account Protection LAPS Policy";
Description = "My revised description";
Ensure = "Absent";
Credential = $Credscredential
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ It is not meant to use as a production baseline.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$Credscredential
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -19,7 +27,6 @@ Configuration Example
DisplayName = "Account Protection LUGM Policy";
Description = "My revised description";
Ensure = "Present";
Credential = $Credscredential
Assignments = @(
MSFT_IntuneAccountProtectionLocalUserGroupMembershipPolicyAssignments{
deviceAndAppManagementAssignmentFilterType = 'none'
Expand All @@ -34,6 +41,9 @@ Configuration Example
UserSelectionType = 'users'
}
);
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ It is not meant to use as a production baseline.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$Credscredential
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -19,7 +27,6 @@ Configuration Example
DisplayName = "Account Protection LUGM Policy";
Description = "My revised description";
Ensure = "Present";
Credential = $Credscredential
Assignments = @(); # Updated Property
LocalUserGroupCollection = @(
MSFT_IntuneAccountProtectionLocalUserGroupCollection{
Expand All @@ -29,6 +36,9 @@ Configuration Example
UserSelectionType = 'users'
}
);
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ It is not meant to use as a production baseline.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$Credscredential
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -19,7 +27,9 @@ Configuration Example
DisplayName = "Account Protection LUGM Policy";
Description = "My revised description";
Ensure = "Absent";
Credential = $Credscredential
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ It is not meant to use as a production baseline.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$Credscredential
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -22,7 +30,9 @@ Configuration Example
PinMinimumLength = 5
PinSpecialCharactersUsage = 'required'
Ensure = 'Present'
Credential = $Credscredential
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ It is not meant to use as a production baseline.
Configuration Example
{
param(
[Parameter(Mandatory = $true)]
[PSCredential]
$Credscredential
[Parameter()]
[System.String]
$ApplicationId,

[Parameter()]
[System.String]
$TenantId,

[Parameter()]
[System.String]
$CertificateThumbprint
)
Import-DscResource -ModuleName Microsoft365DSC

Expand All @@ -22,7 +30,9 @@ Configuration Example
PinMinimumLength = 10 # Updated Property
PinSpecialCharactersUsage = 'required'
Ensure = 'Present'
Credential = $Credscredential
ApplicationId = $ApplicationId;
TenantId = $TenantId;
CertificateThumbprint = $CertificateThumbprint;
}
}
}
Loading

0 comments on commit c21e8c0

Please sign in to comment.