The Set-AzDtlVMsPerLabPolicy cmdlet sets the virtual machines per lab policy of a lab, which sets the total number of virtual machines allowed in a lab.
The cmdlet uses the specified resource group and name of the lab to set the policy.
Name : MaxVmsAllowedPerLab
Type : Microsoft.DevTestLab/labs/policySets/policies
Tags :
Id : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/yuzhi-rg/providers/microsoft.devtestlab/labs/debte
stlab/policysets/default/policies/maxvmsallowedperlab
Location :
Fact Name : LabVmCount
Threshold : 1
Evaluator Type : MaxValuePolicy
Description :
Status : Enabled
Provisioning State :
Sets the virtual machines per lab policy of a lab in DevTest Labs.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
-InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable,
-ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see
about_CommonParameters.
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.