Skip to content
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

Powershell Task #2

Open
dhruvchand opened this issue Apr 19, 2023 · 4 comments
Open

Powershell Task #2

dhruvchand opened this issue Apr 19, 2023 · 4 comments
Labels
P1 priority for preview

Comments

@dhruvchand
Copy link
Collaborator

dhruvchand commented Apr 19, 2023

Run a linked powershell script as a Dev Box customization task

Describe the solution you'd like
As a user, I should be able to:

  • Specify a single line or multi-line powershell script "inline"
  • This will only run during provisioning (and not at login)

Sample usage:

setupTasks:

  - task: powershell
    inputs:
      command: "Run-Powershell var1 var2"

@xnkevinnguyen
Copy link
Contributor

I'm assuming we expect the powershell scripts to be stored in the same catalog as the devboxyaml, hence a different catalog than our sample task repo

@dhruvchand
Copy link
Collaborator Author

@xnkevinnguyen @DavidObando the one caveat here is: do we really need to specify a "RunDuring" here, if we could just have a higher level devbox.yaml construct?

@dhruvchand dhruvchand added the P1 priority for preview label May 10, 2023
@dhruvchand
Copy link
Collaborator Author

dhruvchand commented May 12, 2023

this can be an escape hatch command. While we wait for customer feedback on how to structure a devbox.yaml in a way to infer when something ought to run

Notes from v-team meeting:

when you attach catalog and press sync - we search for devboxyaml and task yaml. these files are ingested. for each task, we cache the folder where we found the said task. (these go to storage account).

feedback:

  1. runAs: this term in windows means something different. We should find a different term to annotate whether something runs during provisioning, or after login.
  2. is there a valid scenario to run something as an admin after login? RunDuring? Lets not do this on each task, try and simplify it.
  3. direct command itself (no file)
  4. you can't interleave stuff b/w provisioning and login

@xnkevinnguyen
Copy link
Contributor

Ok, then we can go ahead and start with the solution mentioned above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P1 priority for preview
Projects
None yet
Development

No branches or pull requests

2 participants