poshbotio / PoshBot

Powershell-based bot framework
MIT License
536 stars 108 forks source link

Feature Request/Issue : Connect to Azure AD #200

Closed erwincen closed 4 years ago

erwincen commented 4 years ago

Hi, I built the bot on my local PC to manage Azure AD. I've installed Azure AD module PS but every time the bot run the AzureAD cmdlet i.e get-azureaduser , PS threw error need to run "connect-azuread" before calling any cmdlet. I ran "connect-azuread" prior to launch the bot, hoping the session will be used by the bot but not in the case. For now I included the cred (username and password) and "connect-azuread" in the plugin that I built to pull Azure User's info. Is there a better way to make it persistent?