Exchange Online Management v3.0.0 Connect-IPPSsession failing using CBA in Azure Automation

Jesus Chao 141 Reputation points
2022-11-02T12:36:01.647+00:00

We have an Azure Automation Runbook that uses the Security and Compliance cmdlets that are in Exchange Online Management module to set retention policies for Teams. We currently have version 2.0.6 Preview 7 loaded in Azure Automation. The following code works with this version of the module:

$org = "<domain>"
$connection = get-automationconnection -name "AzureRunAsConnection"
connect-exchangeonline -CertificateThumbPrint $connection.CertificateThumbprint -AppID $connection.ApplicationId -Organization $org
Connect-IPPSSession -CertificateThumbPrint $connection.CertificateThumbprint -AppID $connection.ApplicationId -Organization $org

Without changing the code in the runbook, if I upgrade to v3.0.0 of the Exchange Online Management module, the code results in the following error:

Unable to load DLL 'IEFRAME.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) (There was an error connecting to an Azure Resource. Error: Unable to load DLL 'IEFRAME.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E))

What changed between version 2.0.6 preview 7 and version 3.0.0 that CBA would fail to work?

I would love to use the managed identity instead but connect-ippssession does not support managed ids yet??? If I rewrite connect-ippssession with my own function and change the call to connect-exchangeonline to managed ID, the security and compliance cmdlets work just fine. But that is for another QA.

Thanks!

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,124 questions
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,191 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,357 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,381 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Amit Singh 4,846 Reputation points
    2022-11-03T10:22:24.57+00:00

    I think the best way forward is if you open a service ticket in your tenant so this can get resolved ASAP. Based on the outcome, let me know if it can be called out in the docs.

    Please follow this link to contact support for business products: https://learn.microsoft.com/office365/admin/contact-support-for-business-products.


  2. Jesus Chao 141 Reputation points
    2022-11-07T21:54:17.513+00:00

    In case anyone was interested, I received a response from Microsoft and there is an issue with the connect-ippssession cmdlet and using thumbprints. They are working on resolving the issue - not sure if that means by the next release.

    They recommend using the certificate instead of the thumbprint.