Support Custom Command Format for pwsh in the shell Field - #4595
Conversation
profile.ps1 loading in PowerShell Hooks by passing -NoProfile
|
Rajesh Kamal (@rajeshkamal5050) Who should we reach out to for reviewing this PR? |
|
Marina He (@hemarina) Victor Vazquez (@vhvb1989) can you help review? |
|
Yionse (@Yionse) Tong Xu (MSFT) (@v-xuto) I'm wondering when we're doing: pwsh -NoProfile myScript.ps1This would actually:
which is less ideal. Something more comprehensive is probably allowing the configuration of the |
863faf7 to
bbc5835
Compare
profile.ps1 loading in PowerShell Hooks by passing -NoProfilepwsh in the shell Field
|
Wei Lim (@weikanglim), According to your suggestion, I have resubmitted. Now can configure the |
|
Yionse (@Yionse) , unit tests are failing. Please take a look |
8ef1568 to
eacd436
Compare
eacd436 to
8ef1568
Compare
fix ci error
8ef1568 to
213a7ef
Compare
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
Wei Lim (@weikanglim), Victor Vazquez (@vhvb1989) The CI error has been resolved, Please re-review. |
Fix issue #4592. This PR supports users to customize the command format of pwsh in the
shelfield, for example:pwsh [more_options]. Azd will directly launch the command window with this customized value.For example, to avoid loading the

profile.ps1file, users can set theshell: pwsh -NoProfileto start in no-profile mode, as shown:Rajesh Kamal (@rajeshkamal5050) for notification.