Skip to content

Commit cd03567

Browse files
authored
update DevTestLabs (#16853)
1 parent 4b0acde commit cd03567

File tree

6 files changed

+120
-0
lines changed

6 files changed

+120
-0
lines changed

src/DevTestLabs/DevTestLabs/help/Get-AzDtlAllowedVMSizesPolicy.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,26 @@ The cmdlet returns the enabled or disabled status of the policy and a list of al
2424

2525
## EXAMPLES
2626

27+
### Example 1
28+
```powershell
29+
PS C:\> Get-AzDtlAllowedVMSizesPolicy -LabName debtestlab -ResourceGroupName yuzhi-rg
30+
31+
Name : AllowedVmSizesInLab
32+
Type : Microsoft.DevTestLab/labs/policySets/policies
33+
Tags :
34+
Id : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/yuzhi-rg/providers/microsoft.devtestlab/labs/debte
35+
stlab/policysets/default/policies/allowedvmsizesinlab
36+
Location :
37+
Fact Name : LabVmSize
38+
Threshold : ["Basic_A0"]
39+
Evaluator Type : AllowedValuesPolicy
40+
Description :
41+
Status : Enabled
42+
Provisioning State :
43+
```
44+
Gets the allowed virtual machine sizes policy of a lab in DevTest Labs.
45+
46+
2747
## PARAMETERS
2848

2949
### -DefaultProfile

src/DevTestLabs/DevTestLabs/help/Get-AzDtlVMsPerLabPolicy.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,26 @@ The cmdlet returns the enabled or disabled status of the policy, and the total n
2424

2525
## EXAMPLES
2626

27+
### Example 1
28+
```powershell
29+
PS C:\> Get-AzDtlVMsPerLabPolicy -LabName debtestlab -ResourceGroupName yuzhi-rg
30+
31+
Name : MaxVmsAllowedPerLab
32+
Type : Microsoft.DevTestLab/labs/policySets/policies
33+
Tags :
34+
Id : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/yuzhi-rg/providers/microsoft.devtestlab/labs/debte
35+
stlab/policysets/default/policies/maxvmsallowedperlab
36+
Location :
37+
Fact Name : LabVmCount
38+
Threshold : 1
39+
Evaluator Type : MaxValuePolicy
40+
Description :
41+
Status : Enabled
42+
Provisioning State :
43+
```
44+
Gets the virtual machines per lab policy of a lab in DevTest Labs.
45+
46+
2747
## PARAMETERS
2848

2949
### -DefaultProfile

src/DevTestLabs/DevTestLabs/help/Get-AzDtlVMsPerUserPolicy.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,26 @@ The cmdlet returns the enabled or disabled status of the policy and the maximum
2424

2525
## EXAMPLES
2626

27+
### Example 1
28+
```powershell
29+
PS C:\> Get-AzDtlVMsPerUserPolicy -LabName debtestlab -ResourceGroupName yuzhi-rg
30+
31+
Name : MaxVmsAllowedPerUser
32+
Type : Microsoft.DevTestLab/labs/policySets/policies
33+
Tags :
34+
Id : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/yuzhi-rg/providers/microsoft.devtestlab/labs/debte
35+
stlab/policysets/default/policies/maxvmsallowedperuser
36+
Location :
37+
Fact Name : UserOwnedLabVmCount
38+
Threshold : 1
39+
Evaluator Type : MaxValuePolicy
40+
Description :
41+
Status : Enabled
42+
Provisioning State :
43+
```
44+
Gets the virtual machines per user policy of a lab in DevTest Labs.
45+
46+
2747
## PARAMETERS
2848

2949
### -DefaultProfile

src/DevTestLabs/DevTestLabs/help/Set-AzDtlAllowedVMSizesPolicy.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,26 @@ The cmdlet uses the specified resource group and name of the lab to set the poli
3333

3434
## EXAMPLES
3535

36+
### Example 1
37+
```powershell
38+
PS C:\> Set-AzDtlAllowedVMSizesPolicy -LabName debtestlab -ResourceGroupName yuzhi-rg
39+
40+
Name : AllowedVmSizesInLab
41+
Type : Microsoft.DevTestLab/labs/policySets/policies
42+
Tags :
43+
Id : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/yuzhi-rg/providers/microsoft.devtestlab/labs/debte
44+
stlab/policysets/default/policies/allowedvmsizesinlab
45+
Location :
46+
Fact Name : LabVmSize
47+
Threshold : ["Basic_A0"]
48+
Evaluator Type : AllowedValuesPolicy
49+
Description :
50+
Status : Enabled
51+
Provisioning State :
52+
```
53+
Sets the allowed virtual machine sizes policy of a lab in DevTest Labs.
54+
55+
3656
## PARAMETERS
3757

3858
### -DefaultProfile

src/DevTestLabs/DevTestLabs/help/Set-AzDtlVMsPerLabPolicy.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,26 @@ The cmdlet uses the specified resource group and name of the lab to set the poli
3131

3232
## EXAMPLES
3333

34+
### Example 1
35+
```powershell
36+
PS C:\> Set-AzDtlVMsPerLabPolicy -LabName debtestlab -ResourceGroupName yuzhi-rg
37+
38+
Name : MaxVmsAllowedPerLab
39+
Type : Microsoft.DevTestLab/labs/policySets/policies
40+
Tags :
41+
Id : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/yuzhi-rg/providers/microsoft.devtestlab/labs/debte
42+
stlab/policysets/default/policies/maxvmsallowedperlab
43+
Location :
44+
Fact Name : LabVmCount
45+
Threshold : 1
46+
Evaluator Type : MaxValuePolicy
47+
Description :
48+
Status : Enabled
49+
Provisioning State :
50+
```
51+
Sets the virtual machines per lab policy of a lab in DevTest Labs.
52+
53+
3454
## PARAMETERS
3555

3656
### -DefaultProfile

src/DevTestLabs/DevTestLabs/help/Set-AzDtlVMsPerUserPolicy.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,26 @@ The cmdlet uses the specified resource group and name of the lab to set the poli
3131

3232
## EXAMPLES
3333

34+
### Example 1
35+
```powershell
36+
PS C:\> Set-AzDtlVMsPerUserPolicy -LabName debtestlab -ResourceGroupName yuzhi-rg
37+
38+
Name : MaxVmsAllowedPerUser
39+
Type : Microsoft.DevTestLab/labs/policySets/policies
40+
Tags :
41+
Id : /subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/yuzhi-rg/providers/microsoft.devtestlab/labs/debte
42+
stlab/policysets/default/policies/maxvmsallowedperuser
43+
Location :
44+
Fact Name : UserOwnedLabVmCount
45+
Threshold : 1
46+
Evaluator Type : MaxValuePolicy
47+
Description :
48+
Status : Enabled
49+
Provisioning State :
50+
```
51+
Sets the virtual machines per user policy of a lab in DevTest Labs.
52+
53+
3454
## PARAMETERS
3555

3656
### -DefaultProfile

0 commit comments

Comments
 (0)