Error when using parentheses () in the Users directory when running azd up

Kato Keigo (Tribeck) 10 Reputation points
2023-08-08T05:56:28.5+00:00

Azureにデプロイを行おうとし、

azd upを実行したところ以下のようなエラーが発生しました。

PS C:\work\AzureGPT\jp-azureopenai-samples> azd up --debug
2023/08/08 14:50:09 main.go:53: azd version: 1.1.0 (commit ea9cb12575734ee6a5f99c4d415c1a51d6f32d3e)
2023/08/08 14:50:09 main.go:203: using cached latest version: 1.1.0 (expires on: 2023-08-08T11:26:46Z)
2023/08/08 14:50:09 manager.go:157: creating empty config since 'C:\Users\XxxXxx(CompanyName)\.azd\config.json' did not exist.
2023/08/08 14:50:09 project.go:114: Reading project from file 'C:\work\AzureGPT\jp-azureopenai-samples\azure.yaml'
2023/08/08 14:50:09 manager.go:62: configuration file 'C:\Users\XxxXxx(CompanyName)\.azd\config.json' does not exist. Creating new empty config.
2023/08/08 14:50:09 cobra_builder.go:141: Resolved action 'azd-up-action'
2023/08/08 14:50:09 middleware.go:124: running middleware 'debug'
2023/08/08 14:50:09 middleware.go:124: running middleware 'telemetry'
2023/08/08 14:50:09 telemetry.go:45: TraceID: 4e8abcc5eda836f33522d31a40343ff0
2023/08/08 14:50:09 middleware.go:124: running middleware 'hooks'
2023/08/08 14:50:09 hooks.go:80: azd project is not available or does not contain any command hooks, skipping command hook registrations.
2023/08/08 14:50:09 command_runner.go:307: Run exec: 'C:\Users\XxxXxx(CompanyName)\.azd\bin\bicep.exe --version' , exit code: 1
-------------------------------------stderr-------------------------------------------
'C:\Users\XxxXxx' is not recognized as an internal or external command,
operable program or batch file.
ERROR: initializing infrastructure provider: failed resolving IaC provider 'bicep': checking bicep version: exit code: 1, stdout: , stderr: 'C:\Users\XxxXxx(CompanyName)' is not recognized as an internal or external command,
operable program or batch file.

エラーメッセージを確認したところ、どうやらUsersディレクトリに括弧()を利用しているためbicep.exeが実行できずエラーになっているようです。

このエラーを回避する方法はありますか?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
41,892 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.