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

Allow to use custom ARM template to start machines #45

Closed
dtretyakov opened this issue Oct 19, 2016 · 9 comments
Closed

Allow to use custom ARM template to start machines #45

dtretyakov opened this issue Oct 19, 2016 · 9 comments

Comments

@dtretyakov
Copy link
Contributor

Currently ARM plugin generates ARM templates internally and provides a limited set of customizations.
We can provide advanced mode for customers who needs to use their own custom ARM JSON templates.

@trzombie
Copy link

I'm very interested in this. Any news?

@dtretyakov
Copy link
Contributor Author

@trzombie, we're still evaluating this feature request. Could you please specify what kind of resources you need to deploy via ARM template?

@trzombie
Copy link

Examples could be size of disk, additional data disk(s), forced shutdown time etc. In general I would like to have the possibility of using a full custom template, also because this can be stored in source control, versioned etc.

Thanks

@jacksobt
Copy link

jacksobt commented Aug 4, 2017

In addition to trzombie's examples above my team would also use this for post-generation configuration tasks (such as joining the domain and updating time zones). Actually, with the use of the ARM template, we would likely use that to deploy the entire VM from a custom image and perform all post-generation configuration tasks.

@dtretyakov
Copy link
Contributor Author

In the latest plugin builds you could specify custom ARM template to start virtual machines. Please let me know if you need any additional features related to that mode.

@dtretyakov
Copy link
Contributor Author

It also allows to specify custom script extension for Linux and Windows machines to execute preparation on machine start.

@tom-dudley
Copy link

@dtretyakov Great to see templates are now supported. Can you clarify whether you support deploying to a single resource group when using a template?

For example, if I have an ARM template with a VM resource with the name 'agent' and a NIC resource with name 'agent-nic' and I tell the plugin to spin up two agents in the same resource group, how are you avoiding clashes of resource names?

@dtretyakov
Copy link
Contributor Author

@tom-dudley, you could use [parameters('vmName')] parameter in your template to make and set ids for resources. It'll be filled by generated name on build agent start.

@tom-dudley
Copy link

@dtretyakov Thanks, I'll give that a go. I assume the generated VM name is based off the 'Name prefix' field. The description of Unique name prefix to create resource groups is what threw me off slightly. It sounds as though its more Unique name prefix of resources

dtretyakov added a commit that referenced this issue Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants