Comments (5)
@PerPedersenMSFT has taken care of this. Recycling one of his statements:
Simply add the machine to the script and re-run the entire part of the script which creates the machines.
Ie, add a line with Add-LabMachineDefinition -Name NewMachineName and run the lines beginning with New-LabDefinition ending with Install-Lab line(s)
I am not sure if this works with all roles but definitely with AD.
from automatedlab.
Thanks for the idea, I will give it a shot! For the lab I'm working on this might become complicated however because the lab can be installed in different ways (the subnet can be customized, machine OS can be customized, it can be installed with or without an externally facing adapter, etc.)
I will need to find a way to keep those settings "in sync" so they don't contradict each other, the easiest way would really have been to just re-import the existing lab definition. Other things like installing software etc. also work fine when doing this, but sadly not the creation of additional machines.
Are you aware of any technical or design restrictions why this isn't possible? Maybe I'll look into that myself when I have a little more time to spare..
from automatedlab.
Perhaps when a lab is created, a 'state' file could be defined with it, basically marking lab creation steps as done or complete as they execute.
For example, you create a lab with a DC, a root CA, and two member servers. Once it is finished, the basic steps involved (create domain, join domain, create each server, join each server, etc) could be marked as completed in an xml file. If you add a new definition to the lab later, when you execute the script, it checks against the xml and finds that all steps are completed except there is no info for this newly added definition, so it does the steps needed to only the newly defined server.
from automatedlab.
Yes it would be great to have this feature implemented!
from automatedlab.
Closing this. We continue to track this on #123, which is about almost the same.
from automatedlab.
Related Issues (20)
- [Bug]: ConfigurationManager (SCCM) deployment doesn't work. HOT 6
- Error 'No machine definitions imported' HOT 5
- Error creating VM HOT 4
- Improve/Create role properties documentation
- [Bug]: Invoke-LabCommand...leaving: No machine definitions imported, so there is nothing to do HOT 1
- [Bug]: WARNING: (544,45): warning CS0168: The variable 'e' is declared but never used HOT 1
- [New Feature]: Improve discoverability HOT 1
- [Bug]: Error when attempting to add a VM with Add-LabMachineDefinition HOT 4
- You are not connected to any servers. HOT 10
- [Bug]: WinRM port never opens
- Is there a way to install sysmon with options? HOT 2
- [New Feature]: Map Host Folders to VM HOT 2
- [Bug]: Timeout when 'Starting remaining machines' HOT 5
- [Bug]: Hyper-V VM created with -VmGeneration 1 fails to boot HOT 8
- [Bug]: Hyper-V VM having network adapter created with -UseDhcp gets static IP assigned HOT 4
- [New Feature]: Do not delete Virtual Switch during Remove-Lab HOT 1
- Get-Lab command only reports one response HOT 6
- [New Feature]: Support for Oracle Linux HOT 3
- [Bug]: CM-2103.ps1 not working, loose "lab context" in Customroles script, (Get-LabVM return NULL)
- [New Feature]: HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automatedlab.