Skip to content
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

ERROR: error executing step command 'provision': failed running post hooks: 'postprovision' hook failed with exit code: '1' #2122

Open
A-studentGege opened this issue Nov 5, 2024 · 1 comment

Comments

@A-studentGege
Copy link

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

normally going through the setup procedure, select location as westus, allowedIpAddresses empty, authMode identity, deploySearch true, enableAuthentication false, implementation assistant, model gpt4o 2024-05-13, modelCapacity 50, myPrincipaltype user, publicNetworkAccess disabled, stack Python3.10

Any log messages given by the failure

ERROR: error executing step command 'provision': failed running post hooks: 'postprovision' hook failed with exit code: '1', Path: 'C:\Users\CHENFA~1\AppData\Local\Temp\azd-postprovision-3403096840.ps1'. : exit code: 1, stdout: , stderr: 'pwsh' is not recognized as an internal or external command,
operable program or batch file

Expected/desired behavior

Successfully deployed the solution to my Azure environment

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)
Windows 11 Enterprise Version 10.0.22631 Build 22631

azd version?

run azd version and copy paste here.
azd version 1.10.3 (commit 0595f33fe948ee6df3da492567e3e7943cb9a733)

Versions

Mention any other details that might be useful

In the azure.yaml the following code is selected for use:
genai-bot-app-backend:
project: src/python
host: appservice
language: python


Thanks! We'll be in touch soon.

@pamelafox
Copy link
Collaborator

If you are using a local environment, you must set up pwsh. See prerequisites here:
https://github.com/Azure-Samples/azure-search-openai-demo?tab=readme-ov-file#local-environment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants