You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the error I get when following the instructions on VM-SETUP.md
{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The 'AzureAsyncOperationWaiting' resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"VMExtensionProvisioningError\",\r\n \"message\": \"VM has reported a failure when processing extension 'farmvibes-ai_setup_script'. Error message: \\\"Enable failed: failed to get configuration: invalid configuration: 'commandToExecute' is not specified\\\"\\r\\n\\r\\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot \"\r\n }\r\n ]\r\n }\r\n}"}]}}
The text was updated successfully, but these errors were encountered:
Thanks for trying to use our project. Apparently, I managed to replicate the issue you are having. In my case, I copied the VM setup script without the last line.
Please, also certify yourself you are using the repository root when trying to execute the command. I believe executing the full command should fix the issue.
When I run it via WSL I get a working VM with git, python, and docker installed. When I run it in Windows via Powershell 7, I get the same error. I think it's because I don't have gzip installed, which looks like a complicated install.
I worked around the gzip issue and got a working VM by using 7zip.
First compress the .sh file in gzip format: & "C:\Program Files\7-Zip\7z.exe" a -tgzip -mx=5 setup_farmvibes_ai_vm.gz resources/vm/setup_farmvibes_ai_vm.sh
Then convert it to base64: $encodedScript = [Convert]::ToBase64String([System.IO.File]::ReadAllBytes("C:\Users\xxxxxx\source\repos\github\farmvibes-ai\setup_farmvibes_ai_vm.gz"))
Finally the creation of the VM: az deployment group create --resource-group xxxxxxx --name dep006 --template-file resources/vm/farmvibes_ai_vm.bicep --parameters ssh_public_key="$(cat ~/.ssh/xxxxxx.pub)" vm_suffix_name="xxxx" encoded_script=$encodedScript
This is the error I get when following the instructions on VM-SETUP.md
{"status":"Failed","error":{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"Conflict","message":"{\r\n \"status\": \"Failed\",\r\n \"error\": {\r\n \"code\": \"ResourceDeploymentFailure\",\r\n \"message\": \"The 'AzureAsyncOperationWaiting' resource operation completed with terminal provisioning state 'Failed'.\",\r\n \"details\": [\r\n {\r\n \"code\": \"VMExtensionProvisioningError\",\r\n \"message\": \"VM has reported a failure when processing extension 'farmvibes-ai_setup_script'. Error message: \\\"Enable failed: failed to get configuration: invalid configuration: 'commandToExecute' is not specified\\\"\\r\\n\\r\\nMore information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot \"\r\n }\r\n ]\r\n }\r\n}"}]}}
The text was updated successfully, but these errors were encountered: