-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@Yionse @v-xuto I'm wondering when we're doing: pwsh -NoProfile myScript.ps1 This would actually:
which is less ideal. Something more comprehensive is probably allowing the configuration of the |
profile.ps1
loading in PowerShell Hooks by passing -NoProfile
pwsh
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
shel
field, for example:pwsh [more_options]
. Azd will directly launch the command window with this customized value.For example, to avoid loading the

profile.ps1
file, users can set theshell: pwsh -NoProfile
to start in no-profile mode, as shown:@rajeshkamal5050 for notification.