-
Notifications
You must be signed in to change notification settings - Fork 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
stat: path too long for Windows - error when using large parameters.json file #11646
Comments
@zhoxing-ms Please take a look. |
Any update? |
@ajklotz Sorry for the late reply. Could you send the json file of |
I sent the attachments to your email @zhoxing-ms |
@ajklotz I tried to use the parameter file provided by you, and the problem was not reproduced even after I changed the content of the file to a larger size. |
@zhoxing-ms Just curious, are you using Powershell or Bash? In my example provided above, the parameter file resided in the same directory as the current working directory for powershell. To answer your question, my parameter file resided in a path that looks like this:
But my powershell session was set to that path already so it used relative path to access the file. Edit: I tested command by copying the template and parameter file to a shorter path in Windows and still had the same problem. I moved my files to |
In the file I emailed to you, do a "replace all" and replace |
Were you able to reproduce the problem with values for every key? |
@a-vishar Because I'm taking Chinese annual leave and the internet condition at home is not good, so I'm sorry to reply so late. |
Not sure why I was tagged here. |
@ajklotz please look at the above comment by @zhoxing-ms |
@a-vishar Please add |
|
@zhoxing-ms - Please stop tagging me in this issue, I have nothing to do with it. |
@ajklotz I found out that the problem is probably caused by the |
@ajklotz Am I being punked? Please stop mentioning me in this random GitHub issue. I have nothing to do with this issue and for some reason you all keep mentioning me. |
Sorry @a-vishar |
@ajklotz This problem is also related to the version of Python, so you can reinstall azure-cli by using Python 3.8 first. |
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az group deployment create
Errors:
To Reproduce:
Create a parameters.json file that has 490+ lines with name value pairs. The total character count of said JSON file is 37343. Total file size is 37KB. The structure of the json file looks similar this:
For each object in applicationSettings, there are 78 name value pairs with a value. When I remove chunks of JSON, the command works. The JSON file is formatted correctly and there are no errors. There appears to be a problem parsing a json file with a lot of content.
az group deployment create --resource-group WB-CI --template-file .\function-app-orderProcessing.json --parameter @function-app-orderProcessing.parameters.json
Expected Behavior
Environment Summary
Additional Context
The text was updated successfully, but these errors were encountered: