From 837499f32d22cf44f274f9fb757782b735c02ebc Mon Sep 17 00:00:00 2001 From: Kajalp1079 Date: Fri, 25 Oct 2024 09:59:51 -0700 Subject: [PATCH] Addressed comments. --- ...of => MSFT_IntuneMobileThreatDefenseConnector.schema.mof} | 0 .../MSFT_IntuneMobileThreatDefenseConnector/readme.md | 4 ++-- .../MSFT_IntuneMobileThreatDefenseConnector/settings.json | 2 +- .../IntuneMobileThreatDefenseConnector/1-Create.ps1 | 3 +++ .../IntuneMobileThreatDefenseConnector/2-Update.ps1 | 5 +++++ .../IntuneMobileThreatDefenseConnector/3-Remove.ps1 | 5 +++++ 6 files changed, 16 insertions(+), 3 deletions(-) rename Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/{MSFT_IntuneMobileThreatDefenseConnector.mof => MSFT_IntuneMobileThreatDefenseConnector.schema.mof} (100%) diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/MSFT_IntuneMobileThreatDefenseConnector.mof b/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/MSFT_IntuneMobileThreatDefenseConnector.schema.mof similarity index 100% rename from Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/MSFT_IntuneMobileThreatDefenseConnector.mof rename to Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/MSFT_IntuneMobileThreatDefenseConnector.schema.mof diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/readme.md b/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/readme.md index 7d8e6c6dcd..19046bad50 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/readme.md +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/readme.md @@ -1,6 +1,6 @@ -# IntuneMobileAppsMacOSLobApp +# IntuneMobileThreatDefenseConnector ## Description -This resouce configures a connection to Mobile Threat Defense partner. +This resource configures a connection to Mobile Threat Defense partner. diff --git a/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/settings.json b/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/settings.json index e197e32ae5..448e3e179c 100644 --- a/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/settings.json +++ b/Modules/Microsoft365DSC/DSCResources/MSFT_IntuneMobileThreatDefenseConnector/settings.json @@ -1,6 +1,6 @@ { "resourceName": "IntuneMobileThreatDefenseConnector", - "description": "This resouce configures a connection to Mobile Threat Defense partner.", + "description": "This resource configures a connection to Mobile Threat Defense partner.", "permissions": { "graph": { "delegated": { diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneMobileThreatDefenseConnector/1-Create.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneMobileThreatDefenseConnector/1-Create.ps1 index aa94970b25..6243030b1e 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneMobileThreatDefenseConnector/1-Create.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneMobileThreatDefenseConnector/1-Create.ps1 @@ -43,6 +43,9 @@ Configuration Example WindowsDeviceBlockedOnMissingPartnerData = $False; WindowsEnabled = $False; Ensure = "Present"; + ApplicationId = $ApplicationId; + TenantId = $TenantId; + CertificateThumbprint = $CertificateThumbprint; } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneMobileThreatDefenseConnector/2-Update.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneMobileThreatDefenseConnector/2-Update.ps1 index 48a671ca3d..8765456e07 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneMobileThreatDefenseConnector/2-Update.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneMobileThreatDefenseConnector/2-Update.ps1 @@ -18,7 +18,9 @@ Configuration Example [System.String] $CertificateThumbprint ) + Import-DscResource -ModuleName Microsoft365DSC + node localhost { IntuneMobileThreatDefenseConnector "IntuneMobileThreatDefenseConnector-Microsoft Defender for Endpoint" @@ -41,6 +43,9 @@ Configuration Example WindowsDeviceBlockedOnMissingPartnerData = $False; WindowsEnabled = $False; Ensure = "Present"; + ApplicationId = $ApplicationId; + TenantId = $TenantId; + CertificateThumbprint = $CertificateThumbprint; } } } diff --git a/Modules/Microsoft365DSC/Examples/Resources/IntuneMobileThreatDefenseConnector/3-Remove.ps1 b/Modules/Microsoft365DSC/Examples/Resources/IntuneMobileThreatDefenseConnector/3-Remove.ps1 index d0f9fec94b..c5529f47ca 100644 --- a/Modules/Microsoft365DSC/Examples/Resources/IntuneMobileThreatDefenseConnector/3-Remove.ps1 +++ b/Modules/Microsoft365DSC/Examples/Resources/IntuneMobileThreatDefenseConnector/3-Remove.ps1 @@ -18,7 +18,9 @@ Configuration Example [System.String] $CertificateThumbprint ) + Import-DscResource -ModuleName Microsoft365DSC + node localhost { IntuneMobileThreatDefenseConnector "IntuneMobileThreatDefenseConnector-Microsoft Defender for Endpoint" @@ -41,6 +43,9 @@ Configuration Example WindowsDeviceBlockedOnMissingPartnerData = $False; WindowsEnabled = $False; Ensure = "Absent"; + ApplicationId = $ApplicationId; + TenantId = $TenantId; + CertificateThumbprint = $CertificateThumbprint; } } }