-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting error in Function app " Run Connect-AzAccount to login." #26828
Comments
@DharshiniThil is the key vault in the same tenant/directory that you sign in with or set up in the Function App? They need to be the same otherwise the credentials won't work. I'll also loop in Functions team |
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4. |
1 similar comment
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @AnatoliB, @Francisco-Gamino, @shreyabatra4. |
I am having the exact same issue , did you manage to resolve it ? |
Description
I was trying to get the Azure key vault secret value from function app in Powershell 7.4.
$secret = Get-AzKeyVaultSecret -VaultName "<your-unique-keyvault-name>" -Name "ExamplePassword" -AsPlainText
which is giving error "[Error] ERROR: Run Connect-AzAccount to login."
After this I have added
'Az' = '13.*' 'Az.KeyVault' = "6.3.0" 'Az.Accounts'='4.*'
in requirements.psd1 file and
Install-Module -Name Az.KeyVault -RequiredVersion "6.3.0"
in profile.ps1 file.But the function app is giving Response code 500 Internal error
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: