-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
PermissionError
occurs at the creating ACR task step when executing az containerapp up
on Windows
#5743
Comments
In case of WSL, the same command is succeeded. |
route to CXP team |
@horihiro Thanks for reaching out to us and reporting this issue. We are looking into this issue and we will provide an update. |
@horihiro Could you please let me know if the issue occurs if you run the AzCLI from As per this documentation for
Please check if you are on the right supported platform and runtime versions:
|
Even using admin mode for My app I tried to deploy is very simple PHP app. There is just one file Can't you reproduce this issue by your Windows with Azure CLI @ 2.44.x and containerapp extension @ 0.3.20? |
fixes Azure#5743 PermissionError for temp file We get the below error When executing az containerapp up without Dockerfile on Windows OS, PermissionError occurs at the ACR task creation step. It seems that temporary files cannot be accessed. This issue can be reproduced on Windows Sandbox also. And it was succeeded to deploy this app from WSL(Ubuntu 22.04) by executing the same command. ``` File "C:\Users\WDAGUtilityAccount\.azure\cliextensions\containerapp\azext_containerapp\_up_utils.py", line 407, in run_acr_build self.build_container_from_source(image_name, source) File "C:\Users\WDAGUtilityAccount\.azure\cliextensions\containerapp\azext_containerapp\_up_utils.py", line 375, in build_container_from_source acr_task_create(self.cmd, task_client, task_name, registry_name, context_path="/dev/null", file=task_file.name) File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acr/task.py", line 137, in acr_task_create File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acr/task.py", line 292, in create_task_step File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/acr/_utils.py", line 266, in get_yaml_template PermissionError: [Errno 13] Permission denied: 'C:\\Users\\WDAGUT~1\\AppData\\Local\\Temp\\tmpaa2d2k9z' ```
This is autogenerated. Please review and update as needed.
Describe the bug
When executing
az containerapp up
without Dockerfile on Windows OS,PermissionError
occurs at the ACR task creation step.It seems that temporary files cannot be accessed.
This issue can be reproduced on Windows Sandbox also.
Command Name
az containerapp up Extension Name: containerapp. Version: 0.3.20.
Errors:
The following traceback was generated on Windows Sandbox.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az containerapp up --name {} --source {} --ingress {}
Expected Behavior
The ACR task can be added.
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: