Support Custom Command Format for pwsh in the shell Field#4595
Conversation
profile.ps1 loading in PowerShell Hooks by passing -NoProfile
|
@rajeshkamal5050 Who should we reach out to for reviewing this PR? |
|
@Yionse @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 |
profile.ps1 loading in PowerShell Hooks by passing -NoProfilepwsh in the shell Field
|
@weikanglim, According to your suggestion, I have resubmitted. Now can configure the |
|
@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
|
@weikanglim, @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:@rajeshkamal5050 for notification.