All parameters should be configured through JSON
1. Create JSON files that will help in creation of new pools based on existing pools configuration. 2. Configure all the pool attributes through JSON file. 3. Validation of the attributes passed in the JSON file.
This commit is contained in:
@@ -1,17 +1,31 @@
|
||||
{
|
||||
"Type": "AUTOMATED",
|
||||
"Data": {
|
||||
"Name": "LCFarmTest",
|
||||
"DisplayName": "Ankit LC Farm Test",
|
||||
"Name": "LCFarmJson",
|
||||
"DisplayName": "FarmJsonTest",
|
||||
"AccessGroup": "Root",
|
||||
"Description": "created LC Farm from PS",
|
||||
"Description": "created LC Farm from PS via JSON",
|
||||
"Enabled": null,
|
||||
"Deleting": false,
|
||||
"Settings": null,
|
||||
"Settings": {
|
||||
"DisconnectedSessionTimeoutPolicy" : "NEVER",
|
||||
"DisconnectedSessionTimeoutMinutes" : 1,
|
||||
"EmptySessionTimeoutPolicy" : "AFTER",
|
||||
"EmptySessionTimeoutMinutes" : 1,
|
||||
"LogoffAfterTimeout" : false
|
||||
},
|
||||
"Desktop": null,
|
||||
"DisplayProtocolSettings": null,
|
||||
"DisplayProtocolSettings": {
|
||||
"DefaultDisplayProtocol" : "PCOIP",
|
||||
"AllowDisplayProtocolOverride" : false,
|
||||
"EnableHTMLAccess" : false
|
||||
},
|
||||
"ServerErrorThreshold": null,
|
||||
"MirageConfigurationOverrides": null
|
||||
"MirageConfigurationOverrides": {
|
||||
"OverrideGlobalSetting" : false,
|
||||
"Enabled" : false,
|
||||
"Url" : null
|
||||
}
|
||||
},
|
||||
"AutomatedFarmSpec": {
|
||||
"ProvisioningType": "VIEW_COMPOSER",
|
||||
@@ -19,7 +33,7 @@
|
||||
"RdsServerNamingSpec": {
|
||||
"NamingMethod": "PATTERN",
|
||||
"PatternNamingSettings": {
|
||||
"NamingPattern": "LCFarmVM_PS",
|
||||
"NamingPattern": "LCFarmVMPS",
|
||||
"MaxNumberOfRDSServers": 1
|
||||
}
|
||||
},
|
||||
@@ -28,17 +42,17 @@
|
||||
"StopProvisioningOnError": true,
|
||||
"MinReadyVMsOnVComposerMaintenance": 0,
|
||||
"VirtualCenterProvisioningData": {
|
||||
"ParentVm": "Win_Server_2012_R2",
|
||||
"Snapshot": "Snap_RDS",
|
||||
"ParentVm": "RDSServer",
|
||||
"Snapshot": "RDS_SNAP1",
|
||||
"Datacenter": null,
|
||||
"VmFolder": "AnkitPoolVM",
|
||||
"HostOrCluster": "cls",
|
||||
"ResourcePool": "cls"
|
||||
"VmFolder": "Praveen",
|
||||
"HostOrCluster": "CS-1",
|
||||
"ResourcePool": "CS-1"
|
||||
},
|
||||
"VirtualCenterStorageSettings": {
|
||||
"Datastores": [
|
||||
{
|
||||
"Datastore": "datastore1 (5)",
|
||||
"Datastore": "Datastore1",
|
||||
"StorageOvercommit": "UNBOUNDED"
|
||||
}
|
||||
],
|
||||
@@ -67,7 +81,7 @@
|
||||
"AdContainer": "CN=Computers",
|
||||
"ReusePreExistingAccounts": false,
|
||||
"SysprepCustomizationSettings": {
|
||||
"CustomizationSpec": "RDSH_Cust2"
|
||||
"CustomizationSpec": "PraveenCust"
|
||||
}
|
||||
},
|
||||
"RdsServerMaxSessionsData": {
|
||||
@@ -76,5 +90,5 @@
|
||||
}
|
||||
},
|
||||
"ManualFarmSpec": null,
|
||||
"NetBiosName" : "adankit"
|
||||
"NetBiosName" : "adviewdev"
|
||||
}
|
||||
@@ -7,17 +7,31 @@
|
||||
"Description": "Manual PS Test",
|
||||
"Enabled": null,
|
||||
"Deleting": false,
|
||||
"Settings": null,
|
||||
"Settings": {
|
||||
"DisconnectedSessionTimeoutPolicy" : "NEVER",
|
||||
"DisconnectedSessionTimeoutMinutes" : 1,
|
||||
"EmptySessionTimeoutPolicy" : "AFTER",
|
||||
"EmptySessionTimeoutMinutes" : 1,
|
||||
"LogoffAfterTimeout" : false
|
||||
},
|
||||
"Desktop": null,
|
||||
"DisplayProtocolSettings": null,
|
||||
"DisplayProtocolSettings": {
|
||||
"DefaultDisplayProtocol" : "PCOIP",
|
||||
"AllowDisplayProtocolOverride" : false,
|
||||
"EnableHTMLAccess" : false
|
||||
},
|
||||
"ServerErrorThreshold": null,
|
||||
"MirageConfigurationOverrides": null
|
||||
"MirageConfigurationOverrides": {
|
||||
"OverrideGlobalSetting" : false,
|
||||
"Enabled" : false,
|
||||
"Url" : null
|
||||
}
|
||||
},
|
||||
"AutomatedFarmSpec": null,
|
||||
"ManualFarmSpec": {
|
||||
"RdsServers": [
|
||||
{
|
||||
"rdsServer": "WIN-ORKA1Q8B0P7"
|
||||
"rdsServer": "RDSServer.adviewdev.eng.vmware.com"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5,7 +5,44 @@
|
||||
"AccessGroup": "Root",
|
||||
"Description": "create full clone via JSON"
|
||||
},
|
||||
"DesktopSettings": null,
|
||||
"DesktopSettings": {
|
||||
"enabled": true,
|
||||
"deleting": false,
|
||||
"connectionServerRestrictions": null,
|
||||
"logoffSettings": {
|
||||
"powerPolicy": "TAKE_NO_POWER_ACTION",
|
||||
"automaticLogoffPolicy": "NEVER",
|
||||
"automaticLogoffMinutes": 120,
|
||||
"allowUsersToResetMachines": false,
|
||||
"allowMultipleSessionsPerUser": false,
|
||||
"deleteOrRefreshMachineAfterLogoff": "NEVER",
|
||||
"refreshOsDiskAfterLogoff": "NEVER",
|
||||
"refreshPeriodDaysForReplicaOsDisk": 5,
|
||||
"refreshThresholdPercentageForReplicaOsDisk": 10
|
||||
},
|
||||
"displayProtocolSettings": {
|
||||
"supportedDisplayProtocols": ["PCOIP", "BLAST" ],
|
||||
"defaultDisplayProtocol": "BLAST",
|
||||
"allowUsersToChooseProtocol": true,
|
||||
"pcoipDisplaySettings": {
|
||||
"renderer3D": "DISABLED",
|
||||
"enableGRIDvGPUs": false,
|
||||
"vRamSizeMB": 96,
|
||||
"maxNumberOfMonitors": 3,
|
||||
"maxResolutionOfAnyOneMonitor": "WSXGA_PLUS"
|
||||
},
|
||||
"enableHTMLAccess": true
|
||||
},
|
||||
"flashSettings": {
|
||||
"quality": "NO_CONTROL",
|
||||
"throttling": "DISABLED"
|
||||
},
|
||||
"mirageConfigurationOverrides": {
|
||||
"overrideGlobalSetting": false,
|
||||
"enabled": false,
|
||||
"url": false
|
||||
}
|
||||
},
|
||||
"Type": "AUTOMATED",
|
||||
"AutomatedDesktopSpec": {
|
||||
"ProvisioningType": "VIRTUAL_CENTER",
|
||||
@@ -69,7 +106,7 @@
|
||||
"NoCustomizationSettings": {
|
||||
"DoNotPowerOnVMsAfterCreation": false
|
||||
},
|
||||
"SysprepCustomizationSettings": null,
|
||||
"SysprepCustomizationSettings": {"customizationSpec" : "praveencust"},
|
||||
"QuickprepCustomizationSettings": null,
|
||||
"CloneprepCustomizationSettings": null
|
||||
}
|
||||
@@ -77,6 +114,5 @@
|
||||
"ManualDesktopSpec": null,
|
||||
"RdsDesktopSpec": null,
|
||||
"GlobalEntitlementData": null,
|
||||
"NetBiosName" : "adviewdev",
|
||||
"SysPrepName" : "praveencust"
|
||||
"NetBiosName" : "adviewdev"
|
||||
}
|
||||
@@ -5,7 +5,44 @@
|
||||
"AccessGroup": "ROOT",
|
||||
"Description": "create instant pool"
|
||||
},
|
||||
"DesktopSettings": null,
|
||||
"DesktopSettings": {
|
||||
"enabled": true,
|
||||
"deleting": false,
|
||||
"connectionServerRestrictions": null,
|
||||
"logoffSettings": {
|
||||
"powerPolicy": "ALWAYS_POWERED_ON",
|
||||
"automaticLogoffPolicy": "NEVER",
|
||||
"automaticLogoffMinutes": 120,
|
||||
"allowUsersToResetMachines": false,
|
||||
"allowMultipleSessionsPerUser": false,
|
||||
"deleteOrRefreshMachineAfterLogoff": "DELETE",
|
||||
"refreshOsDiskAfterLogoff": "NEVER",
|
||||
"refreshPeriodDaysForReplicaOsDisk": 5,
|
||||
"refreshThresholdPercentageForReplicaOsDisk": 10
|
||||
},
|
||||
"displayProtocolSettings": {
|
||||
"supportedDisplayProtocols": ["PCOIP", "BLAST" ],
|
||||
"defaultDisplayProtocol": "BLAST",
|
||||
"allowUsersToChooseProtocol": true,
|
||||
"pcoipDisplaySettings": {
|
||||
"renderer3D": "DISABLED",
|
||||
"enableGRIDvGPUs": false,
|
||||
"vRamSizeMB": 96,
|
||||
"maxNumberOfMonitors": 3,
|
||||
"maxResolutionOfAnyOneMonitor": "WSXGA_PLUS"
|
||||
},
|
||||
"enableHTMLAccess": true
|
||||
},
|
||||
"flashSettings": {
|
||||
"quality": "NO_CONTROL",
|
||||
"throttling": "DISABLED"
|
||||
},
|
||||
"mirageConfigurationOverrides": {
|
||||
"overrideGlobalSetting": false,
|
||||
"enabled": false,
|
||||
"url": false
|
||||
}
|
||||
},
|
||||
"Type": "AUTOMATED",
|
||||
"AutomatedDesktopSpec": {
|
||||
"ProvisioningType": "INSTANT_CLONE_ENGINE",
|
||||
@@ -5,7 +5,44 @@
|
||||
"AccessGroup": "Root",
|
||||
"Description": "created linkedclone pool from ps"
|
||||
},
|
||||
"DesktopSettings": null,
|
||||
"DesktopSettings": {
|
||||
"enabled": true,
|
||||
"deleting": false,
|
||||
"connectionServerRestrictions": null,
|
||||
"logoffSettings": {
|
||||
"powerPolicy": "TAKE_NO_POWER_ACTION",
|
||||
"automaticLogoffPolicy": "NEVER",
|
||||
"automaticLogoffMinutes": 120,
|
||||
"allowUsersToResetMachines": false,
|
||||
"allowMultipleSessionsPerUser": false,
|
||||
"deleteOrRefreshMachineAfterLogoff": "NEVER",
|
||||
"refreshOsDiskAfterLogoff": "NEVER",
|
||||
"refreshPeriodDaysForReplicaOsDisk": 5,
|
||||
"refreshThresholdPercentageForReplicaOsDisk": 10
|
||||
},
|
||||
"displayProtocolSettings": {
|
||||
"supportedDisplayProtocols": ["RDP","PCOIP", "BLAST" ],
|
||||
"defaultDisplayProtocol": "PCOIP",
|
||||
"allowUsersToChooseProtocol": true,
|
||||
"pcoipDisplaySettings": {
|
||||
"renderer3D": "DISABLED",
|
||||
"enableGRIDvGPUs": false,
|
||||
"vRamSizeMB": 96,
|
||||
"maxNumberOfMonitors": 3,
|
||||
"maxResolutionOfAnyOneMonitor": "WSXGA_PLUS"
|
||||
},
|
||||
"enableHTMLAccess": true
|
||||
},
|
||||
"flashSettings": {
|
||||
"quality": "NO_CONTROL",
|
||||
"throttling": "DISABLED"
|
||||
},
|
||||
"mirageConfigurationOverrides": {
|
||||
"overrideGlobalSetting": false,
|
||||
"enabled": false,
|
||||
"url": null
|
||||
}
|
||||
},
|
||||
"Type": "AUTOMATED",
|
||||
"AutomatedDesktopSpec": {
|
||||
"ProvisioningType": "VIEW_COMPOSER",
|
||||
@@ -33,7 +70,7 @@
|
||||
"Template": null,
|
||||
"ParentVm": "Agent_pra",
|
||||
"Snapshot": "kb-hotfix",
|
||||
"Datacenter": null,
|
||||
"Datacenter": "Dev-Dc",
|
||||
"VmFolder": "Praveen",
|
||||
"HostOrCluster": "CS-1",
|
||||
"ResourcePool": "CS-1"
|
||||
@@ -52,7 +89,8 @@
|
||||
"UseNativeSnapshots": false,
|
||||
"SpaceReclamationSettings": {
|
||||
"ReclaimVmDiskSpace": false,
|
||||
"ReclamationThresholdGB": null
|
||||
"ReclamationThresholdGB": null,
|
||||
"BlackoutTimes" : null
|
||||
},
|
||||
"PersistentDiskSettings": {
|
||||
"RedirectWindowsProfile": false,
|
||||
@@ -75,19 +113,31 @@
|
||||
}
|
||||
},
|
||||
"VirtualCenterNetworkingSettings": {
|
||||
"Nics": null
|
||||
"Nics": [
|
||||
{
|
||||
"Nic": "nicName",
|
||||
"NetworkLabelAssignmentSpecs": [
|
||||
{
|
||||
"Enabled" : false,
|
||||
"networkLabel" : null,
|
||||
"maxLabelType" : null,
|
||||
"maxLabel" : null
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"VirtualCenterManagedCommonSettings": {
|
||||
"TransparentPageSharingScope": "VM"
|
||||
},
|
||||
"CustomizationSettings": {
|
||||
"CustomizationType": "QUICK_PREP",
|
||||
"DomainAdministrator": null,
|
||||
"CustomizationType": "SYS_PREP",
|
||||
"DomainAdministrator": "administrator",
|
||||
"AdContainer": "CN=Computers",
|
||||
"ReusePreExistingAccounts": false,
|
||||
"NoCustomizationSettings": null,
|
||||
"SysprepCustomizationSettings": null,
|
||||
"SysprepCustomizationSettings": {"customizationSpec" : "praveencust"},
|
||||
"QuickprepCustomizationSettings": {
|
||||
"PowerOffScriptName": null,
|
||||
"PowerOffScriptParameters": null,
|
||||
@@ -99,7 +149,6 @@
|
||||
},
|
||||
"ManualDesktopSpec": null,
|
||||
"RdsDesktopSpec": null,
|
||||
"GlobalEntitlementData": null,
|
||||
"NetBiosName" : "adviewdev",
|
||||
"SysPrepName" : "praveencust"
|
||||
"GlobalEntitlementData": null,
|
||||
"NetBiosName" : "adviewdev"
|
||||
}
|
||||
@@ -5,7 +5,44 @@
|
||||
"AccessGroup": "ROOT",
|
||||
"Description": "Manual pool creation"
|
||||
},
|
||||
"DesktopSettings": null,
|
||||
"DesktopSettings": {
|
||||
"enabled": true,
|
||||
"deleting": false,
|
||||
"connectionServerRestrictions": null,
|
||||
"logoffSettings": {
|
||||
"powerPolicy": "TAKE_NO_POWER_ACTION",
|
||||
"automaticLogoffPolicy": "NEVER",
|
||||
"automaticLogoffMinutes": 120,
|
||||
"allowUsersToResetMachines": false,
|
||||
"allowMultipleSessionsPerUser": false,
|
||||
"deleteOrRefreshMachineAfterLogoff": "NEVER",
|
||||
"refreshOsDiskAfterLogoff": "NEVER",
|
||||
"refreshPeriodDaysForReplicaOsDisk": 5,
|
||||
"refreshThresholdPercentageForReplicaOsDisk": 10
|
||||
},
|
||||
"displayProtocolSettings": {
|
||||
"supportedDisplayProtocols": ["PCOIP", "BLAST" ],
|
||||
"defaultDisplayProtocol": "BLAST",
|
||||
"allowUsersToChooseProtocol": true,
|
||||
"pcoipDisplaySettings": {
|
||||
"renderer3D": "DISABLED",
|
||||
"enableGRIDvGPUs": false,
|
||||
"vRamSizeMB": 96,
|
||||
"maxNumberOfMonitors": 3,
|
||||
"maxResolutionOfAnyOneMonitor": "WSXGA_PLUS"
|
||||
},
|
||||
"enableHTMLAccess": true
|
||||
},
|
||||
"flashSettings": {
|
||||
"quality": "NO_CONTROL",
|
||||
"throttling": "DISABLED"
|
||||
},
|
||||
"mirageConfigurationOverrides": {
|
||||
"overrideGlobalSetting": false,
|
||||
"enabled": false,
|
||||
"url": false
|
||||
}
|
||||
},
|
||||
"Type": "MANUAL",
|
||||
"AutomatedDesktopSpec": null,
|
||||
"ManualDesktopSpec": {
|
||||
@@ -16,7 +53,7 @@
|
||||
"Source": "VIRTUAL_CENTER",
|
||||
"Machines": [
|
||||
{
|
||||
"Machine" : "PowerCLI-VM"
|
||||
"Machine" : "Praveen_Agent"
|
||||
}
|
||||
],
|
||||
"VirtualCenter": null,
|
||||
@@ -32,4 +69,5 @@
|
||||
},
|
||||
"RdsDesktopSpec": null,
|
||||
"GlobalEntitlementData": null
|
||||
|
||||
}
|
||||
27
Modules/VMware.Hv.Helper/Json/Pool/RdsSpec.json
Normal file
27
Modules/VMware.Hv.Helper/Json/Pool/RdsSpec.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"Base": {
|
||||
"Name" : "RdsJson",
|
||||
"DisplayName": "TestRDSPS",
|
||||
"AccessGroup": "Root",
|
||||
"Description": "Testing PS"
|
||||
},
|
||||
"DesktopSettings": {
|
||||
"enabled": true,
|
||||
"deleting": false,
|
||||
"connectionServerRestrictions": null,
|
||||
"logoffSettings": null,
|
||||
"displayProtocolSettings": null,
|
||||
"flashSettings": {
|
||||
"quality": "NO_CONTROL",
|
||||
"throttling": "DISABLED"
|
||||
},
|
||||
"mirageConfigurationOverrides": null
|
||||
},
|
||||
"Type": "RDS",
|
||||
"AutomatedDesktopSpec": null,
|
||||
"ManualDesktopSpec": null,
|
||||
"RdsDesktopSpec": {
|
||||
"Farm": "test1"
|
||||
},
|
||||
"GlobalEntitlementData": null
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
{
|
||||
"Base": {
|
||||
"Name" : "RdsJson",
|
||||
"DisplayName": "TestRDSPS",
|
||||
"AccessGroup": "Root",
|
||||
"Description": "Testing PS"
|
||||
},
|
||||
"DesktopSettings": null,
|
||||
"Type": "RDS",
|
||||
"AutomatedDesktopSpec": null,
|
||||
"ManualDesktopSpec": null,
|
||||
"RdsDesktopSpec": {
|
||||
"Farm": "Farm2"
|
||||
},
|
||||
"GlobalEntitlementData": null
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user