Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
PiyushDub committed Oct 4, 2024
1 parent 2f4f0bb commit 9cc1a46
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function Get-TargetResource
$Authentication,

[Parameter()]
[ValidateSet('Exchange Remote', 'Outlook Anywhere', 'Google Workspace', 'IMAP')]
[ValidateSet('IMAP')]
[System.String]
$EndpointType,

Expand Down Expand Up @@ -208,7 +208,7 @@ function Set-TargetResource
$Authentication,

[Parameter()]
[ValidateSet('Exchange Remote', 'Outlook Anywhere', 'Google Workspace', 'IMAP')]
[ValidateSet('IMAP')]
[System.String]
$EndpointType,

Expand Down Expand Up @@ -379,7 +379,7 @@ function Test-TargetResource
$Authentication,

[Parameter()]
[ValidateSet('Exchange Remote', 'Outlook Anywhere', 'Google Workspace', 'IMAP')]
[ValidateSet('IMAP')]
[System.String]
$EndpointType,

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class MSFT_EXOMigrationEndpoint : OMI_BaseResource
[Write, Description("The Application ID used for authentication.")] String AppID;
[Write, Description("The URL of the Key Vault that stores the application secret.")] String AppSecretKeyVaultUrl;
[Write, Description("The authentication method for the migration endpoint.")] String Authentication;
[Write, Description("The type of migration endpoint."), ValueMap{"Exchange Remote", "Outlook Anywhere", "Google Workspace", "IMAP"}, Values{"Exchange Remote", "Outlook Anywhere", "Google Workspace", "IMAP"}] String EndpointType;
[Write, Description("The type of migration endpoint."), ValueMap{"IMAP"}, Values{"IMAP"}] String EndpointType;
[Write, Description("The Exchange Server address for the migration endpoint.")] String ExchangeServer;
[Write, Description("The mailbox permission for the migration endpoint.")] String MailboxPermission;
[Write, Description("The maximum number of concurrent incremental syncs.")] String MaxConcurrentIncrementalSyncs;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,20 @@ Configuration Example
Import-DscResource -ModuleName Microsoft365DSC
node localhost
{

EXOMigrationEndpoint "EXOMigrationEndpoint-testIMAP"
{
AcceptUntrustedCertificates = $True;
Authentication = "Basic";
Credential = $Credscredential;
EndpointType = "IMAP";
Ensure = "Present";
Identity = "testIMAP";
MailboxPermission = "Admin";
MaxConcurrentIncrementalSyncs = "10";
MaxConcurrentMigrations = "20";
Port = 993;
RemoteServer = "gmail.com";
Security = "Tls";
}
}
}

0 comments on commit 9cc1a46

Please sign in to comment.