You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Exporting Power Platform configuration with application certificate thumbpriint authentication fails while testing the native command such as get-dlppolicy works with the application identity.
Microsoft 365 DSC Version
1.25.219.2
Which workloads are affected
Power Platform
The DSC configuration
Exporting Power Platform configuration with application certificate thumbpriint authentication fails
The following fails
Export-M365DSCConfiguration-Path $Path-FileName $FileName-ApplicationId $ApplicationId-CertificateThumbprint $CertificateThumbprint-TenantId $TenantId-Components PPAdminDLPPolicy
While the following works
Add-PowerAppsAccount-Endpoint prod -TenantID $tenantId-ApplicationId $applicationId-CertificateThumbprint $CertificateThumbprint-Verbose
Get-DlpPolicy
Verbose logs showing the problem
[2025/02/2605:04:45]
{InvalidOperation}
System.Net.WebException: The remote server returned an error: (403) Forbidden.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
"Error during Export:"
at Invoke-M365DSCPowerPlatformRESTWebRequest, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\WorkloadHelpers\M365DSCPowerPlatformRESTHelper.psm1: line 31
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\DSCResources\MSFT_PPAdminDLPPolicy\MSFT_PPAdminDLPPolicy.psm1: line 435
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\M365DSCReverse.psm1: line 689
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\M365DSCUtil.psm1: line 1491
at <ScriptBlock>,<No file>: line 1
TenantId: hfsgdev.onmicrosoft.com
[2025/02/2605:04:45]
{InvalidOperation}
System.Net.WebException: The remote server returned an error: (403) Forbidden.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
"Error during Export:"
at Invoke-M365DSCPowerPlatformRESTWebRequest, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\WorkloadHelpers\M365DSCPowerPlatformRESTHelper.psm1: line 31
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\DSCResources\MSFT_PPDLPPolicyConnectorConfigurations\MSFT_PPDLPPolicyConnectorConfigurations.psm1: line 414
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\M365DSCReverse.psm1: line 689
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\M365DSCUtil.psm1: line 1491
at <ScriptBlock>,<No file>: line 1
TenantId: hfsgdev.onmicrosoft.com
[2025/02/2605:05:46]
{InvalidOperation}
System.Net.WebException: The remote server returned an error: (403) Forbidden.
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.GetResponse(WebRequest request)
at Microsoft.PowerShell.Commands.WebRequestPSCmdlet.ProcessRecord()
"Error during Export:"
at Invoke-M365DSCPowerPlatformRESTWebRequest, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\WorkloadHelpers\M365DSCPowerPlatformRESTHelper.psm1: line 31
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\DSCResources\MSFT_PPPowerAppPolicyUrlPatterns\MSFT_PPPowerAppPolicyUrlPatterns.psm1: line 402
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\M365DSCReverse.psm1: line 689
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.219.2\Modules\M365DSCUtil.psm1: line 1491
at <ScriptBlock>,<No file>: line 1
TenantId: hfsgdev.onmicrosoft.com
Description of the issue
Exporting Power Platform configuration with application certificate thumbpriint authentication fails while testing the native command such as get-dlppolicy works with the application identity.
Microsoft 365 DSC Version
1.25.219.2
Which workloads are affected
Power Platform
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: