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?
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?