Giter VIP home page Giter VIP logo

Comments (5)

tarunaroraonline avatar tarunaroraonline commented on September 25, 2024

Any thoughts?

from azure-devtestlab.

ajay-arora avatar ajay-arora commented on September 25, 2024

Applying artifacts via RestAPI is a HTTP Post action on labs/virtualmachines/applyartifacts.
Making POST calls via ARM template is not possible.

from azure-devtestlab.

ajay-arora avatar ajay-arora commented on September 25, 2024

There is a workaround though. We allow you to apply artifacts while creating a LabVM. And creating a LabVM is a PUT, and thus possible via ARM template.
Here is RestAPI reference : https://docs.microsoft.com/en-us/rest/api/dtl/virtualmachines

from azure-devtestlab.

tarunaroraonline avatar tarunaroraonline commented on September 25, 2024

Do you have a code snippet to hand?

from azure-devtestlab.

ericame avatar ericame commented on September 25, 2024

Hi Tarun,

We currently don't provide a sample, but you can generate an arm template for creating a VM with artifacts via the portal UI and save it following these steps:

  1. Navigate to your lab.
  2. Click +Add at the top of the Overview blade to add VM.
  3. Choose a base image.
  4. Fill out the required fields.
  5. Click on Artifacts and add the artifacts that you want to install.
  6. When you're done, click View ARM Template. From the new blade that opens, you can do CTRL-A to select the template and CTRL-C to copy it so that you can save it to a local file.

from azure-devtestlab.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.