Add-NCAzServer
The Add-NCAzServer PowerShell cmdlet adds one or more new virtual machines (servers) to an existing NCache Azure environment.
These servers inherit the configuration (location, VM size, OS, zone, etc.) from the environment previously created using New-NCAzureEnvironment.
Warning
The more servers you add, the longer the provisioning time will be.
Note
If the deployment process fails after partially creating resources, the operation is rolled back automatically.
Add-NCAzServer -EnvName [-VMCount] [-Password] [-LicenseDuration] [-Key] [-InstallNCacheDir]
Examples
- This command adds 2 new virtual machine to the existing environment named Production:
Add-NCAzureServer -EnvName Production
- This command adds 5 new virtual machines to the existing environment named Production:
Add-NCAzureServer -EnvName Production -VmCounts 5
Properties
Note
Parameters with an asterisk (*) are required.
| Parameter | Data Type | Description | Default Value |
|---|---|---|---|
-EnvName* |
<String> |
Specifies the name of the environment where the servers will be added. | - |
-Password |
<String> |
Password for the admin user. | - |
-Key |
<String> |
The license key to be used when adding the servers. | - |
-VmCount |
<Int32> |
Number of virtual machines to add. Minimum: 1 | 1 |
-Port |
<Int32> |
The port on which the server will be listening (default: 8250). | 8250 |
-LicenseDuration |
`{Hourly | Monthly | Annual}` |
-InstallNCacheDir |
<String> |
Directory path on the virtual machine where NCache should be installed. | - |