ExchangeOnline-Management not installing despite being set in requirements.psd1

Alexandro Valdez 20 Reputation points
2024-01-17T17:36:50.1166667+00:00

I am using the following code to see which modules are installed:Screenshot 2024-01-17 at 11.19.32 AM

However, this is what the output looks like:
Screenshot 2024-01-17 at 11.19.45 AM

This is what my requirements.psd1 looks like so I know I'm installing ExchangeOnlineManagement: Screenshot 2024-01-17 at 11.21.46 AM

I also set Exchange.ManageAsApp in Permissions through Powershell:Screenshot 2024-01-17 at 11.19.54 AM

I've even tried to install ExchangeOnlineManagement in the ps1 script using:
Install-Module -Name ExchangeOnlineManagement -RequiredVersion 3.4.0

Does anybody know why I'm not seeing ExchangeOnlineManagement when I query for the available modules?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,402 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,740 questions
{count} votes

Accepted answer
  1. Gulnaz Mushtaq 410 Reputation points MVP
    2024-01-17T17:58:15.03+00:00

    There could be several reasons why you're not seeing the ExchangeOnlineManagement module when you query for available modules in PowerShell. Here are a few possibilities:

    1. Module not installed: The ExchangeOnlineManagement module might not be installed on your system. You can install it using the Install-Module -Name ExchangeOnlineManagement command in PowerShell.
    2. Incorrect PowerShellGet version: If you're getting an error message that says "The specified module 'ExchangeOnlineManagement' with PowerShellGetFormatVersion '<version>' isn't supported by the current version of PowerShellGet", you might need to update your PowerShellGet module.
    3. Module not imported: Even if the module is installed, it needs to be imported into your PowerShell session before you can use it. You can do this with the Import-Module ExchangeOnlineManagement command.
    4. Multi-Factor Authentication (MFA) enabled: If you have recently enabled MFA for your Office 365 account, it could be causing issues with the ExchangeOnlineManagement module.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Alexandro Valdez 20 Reputation points
    2024-01-17T22:54:24.1733333+00:00

    I ended up just recreating another Function App. I still don't know why ExchangeOnline-Management wasn't available, but starting from scratch worked.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.