Google Cloud SDK
Google Cloud SDK faq and some tips.
Windows PowerShell cannot be loaded
因 Windows PowerShell 預設的執行原則限制,在使用 PowerShell 執行 gcloud
指令時會產生以下錯誤
scripts is disabled on this system. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlin
k/?LinkID=135170.
At line:1 char:1
+ gcloud auth list
+ ~~~~~~
+ CategoryInfo : SecurityError: (:) [], PSSecurityException
+ FullyQualifiedErrorId : UnauthorizedAccess
PowerShell Set Execution Policy
- Set PowerShell Execution Policy
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned