Prepare the PowerShell scriptScript parametersModel and API parametersModel parametersAPI parametersSet Az ContextUpdate your PowerShell profile scriptLet's chat!Use the defaultsOutput to browserUse different AI modelsInclude token statisticsReview session statisticsStart a new chatReview your chat historyIncrease the max tokens countProvide a context fileSearch the internet with AIChange the system promptSend multiple promptsChange the temperatureConclusion In our last … Continue reading Harnessing AI in PowerShell: Create a multi-model command-line AI assistant (Part 2)
Tag: cloud
Harnessing AI in PowerShell: Create a multi-model command-line AI assistant (Part 1)
Azure AICreate a projectAdd AI modelsGrant role permissionsMonitoring cost and usageAnthropic AIOpenAIGoogle AIX AIPerplexity AIStoring your API keys in Azure KeyVaultConclusion AI is virtually inescapable these days. From annoying website chat bots to the assimilation of the Microsoft product portfolio by Copilot, AI has been busy spreading its tentacles every which way it can. I … Continue reading Harnessing AI in PowerShell: Create a multi-model command-line AI assistant (Part 1)
Getting an access token for Microsoft Entra in PowerShell using the Web Account Manager (WAM) broker in Windows
Some months ago, in my quest to look at different methods for obtaining an access token interactively for Microsoft Graph in PowerShell, I wrote a simple PowerShell wrapper around the Microsoft.Identity.Client library, aka MSAL.Net - the supported MS library for authenticating with Microsoft Entra. Microsoft's apps and modules have been trending toward using the Web … Continue reading Getting an access token for Microsoft Entra in PowerShell using the Web Account Manager (WAM) broker in Windows
Activating PIM Roles that require MFA or Conditional Access Authentication Context with PowerShell
For some time, I've been activating and scheduling activations for Azure roles under Privileged Identity Management (PIM) using the Microsoft Graph PowerShell SDK. However recently we secured these role activations to require a conditional access authentication context with MFA. This basically requires me to MFA when I activate a role with PIM. Problem is, by … Continue reading Activating PIM Roles that require MFA or Conditional Access Authentication Context with PowerShell