[英]i am trying to use local power shell as cloud power shell (azure power shell vs local power shell )
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
您還需要安裝 pg_dump 和 pg_restore 命令行實用程序。
pg_dump 不是 Azure CLI 的一部分,而是一個PostgreSQL 客戶端應用程序。
Cloud Shell 恰好已經安裝了很多軟件包(iE terraform)並且顯然是 pg_dump。
如果您想在客戶端本地使用它,您可能需要查看安裝相應的客戶端工具。 也許這個 SO 線程有幫助(如果您正在運行 Windows): 如何在 Windows 上僅安裝 PostgreSQL 的客戶端工具?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.