Closed techthoughts2 closed 4 months ago
Thanks for the feedback. Let me route to the Azure Functions team
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4.
The Functions team is looking into this. For anyone blocked by the same issue, as a temporary work-around, please run Connect-AzAccount
to login before importing the Az.Functions
module or Az
.
This issue is a duplicate of https://github.com/Azure/azure-powershell/issues/23788, which is fixed in Az 11.6.0.
/cc @dolauli @AnatoliB @andystaples @shreyabatra4
Description
Issue
Importing the
Az.Functions
module fails if there is no active Azure PowerShell session:Situation 1 - Az.Accounts is already imported
If
Az.Accounts
is already import into the session importingAz.Functions
fails if there is no active Azure PowerShell session:Situation 2 - Az.Accounts is not already imported
If
Az.Accounts
is not already import into the session importingAz.Functions
fails stating it can not find theGet-AzContext
command:Expected Result
Context
This looks like it was introduced here: Migrate Functions from generation to main - #23277
Issue script & Debug output
Environment data
Module versions
Error output