az lab vm apply-artifacts error read artifact.json
See original GitHub issueThis is autogenerated. Please review and update as needed.
Describe the bug
When i try to apply an artifact on my vm the exception occour.
Command Name
az lab vm apply-artifacts
Errors:
Unable to build a model: Cannot deserialize as [ArtifactParameterProperties] an object of type <class 'dict'>, DeserializationError: Cannot deserialize as [ArtifactParameterProperties] an object of type <class 'dict'>
Traceback (most recent call last):
pip-install-z6h9b3s8\msrest\msrest\serialization.py, ln 578, in body
pip-install-z6h9b3s8\msrest\msrest\serialization.py, ln 1324, in _deserialize
pip-install-z6h9b3s8\msrest\msrest\serialization.py, ln 1333, in _deserialize
...
msrest.exceptions.SerializationError: Unable to build a model: Cannot deserialize as [ArtifactParameterProperties] an object of type <class 'dict'>, DeserializationError: Cannot deserialize as [ArtifactParameterProperties] an object of type <class 'dict'>
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here… az lab artifact list --artifact-source-name $artifactRepo.name --resource-group $resourceEnv.resourceGroup --lab-name $devtestName --query “[?name==‘windows-chocolatey’]”
the output is my artifact.json
and i try to run this : az lab vm apply-artifacts --artifacts “@artifacts.json” --lab-name $devtestName --name VMlab01 --resource-group $resourceEnv.resourceGroup
The file is in current folder and is a valid json file
Expected Behavior
Environment Summary
Windows-10-10.0.18362-SP0
Python 3.6.6
Installer: MSI
azure-cli 2.4.0 *
Additional Context
Issue Analytics
- State:
- Created 3 years ago
- Comments:11
Top Results From Across the Web
Troubleshoot artifact application - Azure DevTest Labs
Navigate to the Artifacts page for the lab VM to make sure the VM is ready for ... You can see the error...
Read more >How to apply-artifact "Run PowerShell" for ... - Stack Overflow
Apply artifacts to a virtual machine in Azure DevTest Lab. az lab vm apply-artifacts --artifacts '@artifacts.json' --lab-name MyLab --name ...
Read more >https://raw.githubusercontent.com/petehauge/DTL-VM...
Checking for the presence of the Az module, brings it into memory which ... to parse the resource Id, so let's do the...
Read more >How to Create Your Custom Artifacts for DevTest Labs
Most of the time when we use an Azure Devtest Lab it to Test our own application. This means that will need to...
Read more >How to apply-artifact "Run PowerShell" for azure devtest lab ...
Apply artifacts to a virtual machine in Azure DevTest Lab. az lab vm apply-artifacts --artifacts '@artifacts.json' --lab-name MyLab --name MyVirtualMachine ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@EwertonJordao, the query you are doing is to fetch the artifact definition. It is not good to generate an
artifacts.json
file content.Here’s a sample
artifacts.json
file content to install Google Chrome using the windows-chocolatey artifact from the Public Repo.Hello @EwertonJordao, Thanks for reaching out. We are investigating this on our end. Will get back to you once I have an update.
Tanmayee