简体   繁体   中英

i am trying to use local power shell as cloud power shell (azure power shell vs local power shell )

i am new I am trying to use local pc power shell to execute commands like on azure portal power shell. enter image description here in my local power shell i can login to azure using az login. az commands are running but i am trying to execute pg_dump --help but it say cannot recognize this command. but az commands are working fine.

enter image description here on azure power shell cli i can execute all the pg_dumb commands without issue.

please answer.

I think you need to install Azure CLI in order to use the same commands on local powershell: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-cli

you need to have also pg_dump and pg_restore command-line utilities installed.

pg_dump is not part of the Azure CLI but is a PostgreSQL client application .

Cloud Shell happens to have a lot of packages installed already (iE terraform) and apparently pg_dump.

If you want to use it locally on your client you might want to look at installing the corresponding client tools. Maybe this SO thread helps (if you are running Windows): How do I install just the client tools for PostgreSQL on Windows?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM