Hello,
I am looking for the Powercli commands to use when creating vCD Organizations to 1. set the following Quota and Limits = unlimited
2. set Password Policies so Account lockout is enabled, invalid logins before lockout = 5, and Account lockout interval = 10 minutes.
Screenshot attached screenshot.
Quota fields are:
All VMs Quota = unlimited
Running VMs = unlimited
Limit Fields are:
Number of resource intensive operations per user = unlimited
Number of resource intensive operations per organization = unlimited
Number of simultaneous connections per VM = unlimited
this should work for you:
# Set vApp lease times
$leases = $org.ExtensionData.Settings.GetVAppLeaseSettings()
$leases.DeploymentLeaseSeconds = 0
$leases.StorageLeaseSeconds = 0
$leases.DeleteOnStorageLeaseExpiration = $False
$leases.UpdateServerData()
# Set vApp template lease times
$templateleases = $org.ExtensionData.Settings.GetVAppTemplateLeaseSettings()
$templateleases.StorageLeaseSeconds = 0
$templateleases.DeleteOnStorageLeaseExpiration = $False
$templateleases.UpdateServerData()
# Set Org operations limits
$limits = $org.ExtensionData.Settings.GetOperationLimitsSettings()
$limits.OperationsPerUser = "3"
$limits.OperationsPerOrg = "6"
$limits.UpdateServerData()
# Set Password Policy Limits
$PasswordLimits = $org.ExtensionData.Settings.OrgPasswordPolicySettings
$PasswordLimits.AccountLockoutEnabled = $True
$PasswordLimits.UpdateServerData()