Skip to content

Commit bacff5f

Browse files
Split Az.Quota Examples in generation (#17305)
1 parent 27423c2 commit bacff5f

12 files changed

+66
-28
lines changed

src/Quota/docs/Get-AzQuota.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ The response can be used to determine the remaining quota to calculate a new quo
3636

3737
### Example 1: List the quota limits of a scope
3838
```powershell
39-
PS C:\> Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
39+
Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
40+
```
4041

42+
```output
4143
Name ResourceGroupName Unit ETag
4244
---- ----------------- ---- ----
4345
VirtualNetworks Count
@@ -52,8 +54,10 @@ This command lists the quota limits of a scope.
5254

5355
### Example 2: Get the quota limit of a resource
5456
```powershell
55-
PS C:\> Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -ResourceName "MinPublicIpInterNetworkPrefixLength"
57+
Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -ResourceName "MinPublicIpInterNetworkPrefixLength"
58+
```
5659

60+
```output
5761
Name NameLocalizedValue Unit ETag
5862
---- ------------------ ---- ----
5963
MinPublicIpInterNetworkPrefixLength Public IPv4 Prefix Length Count

src/Quota/docs/Get-AzQuotaRequestStatus.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,10 @@ The quota request ID **id** is returned in the response of the PUT operation.
3232

3333
### Example 1: List the quota request details and status for the scope
3434
```powershell
35-
PS C:\> Get-AzQuotaRequestStatus -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
35+
Get-AzQuotaRequestStatus -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
36+
```
3637

38+
```output
3739
Name ProvisioningState ErrorMessage Code
3840
---- ----------------- ------------ ----
3941
171f4e10-f396-48bc-a93f-245cfd7ebe75 Succeeded
@@ -51,8 +53,10 @@ This command lists the quota request details and status for the scope.
5153

5254
### Example 2: Get the quota request details and status by quota request ID for the resources of the resource provider at a specific location
5355
```powershell
54-
PS C:\> Get-AzQuotaRequestStatus -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -Id "6cf5716a-3df8-421a-8457-719e10381dbc"
56+
Get-AzQuotaRequestStatus -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -Id "6cf5716a-3df8-421a-8457-719e10381dbc"
57+
```
5558

59+
```output
5660
Name ProvisioningState ErrorMessage Code
5761
---- ----------------- ------------ ----
5862
6cf5716a-3df8-421a-8457-719e10381dbc Failed Request failed. QuotaReductionNotSupported

src/Quota/docs/Get-AzQuotaUsage.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ Get the current usage of a resource.
2929

3030
### Example 1: List the currents usage of a resource
3131
```powershell
32-
PS C:\> Get-AzQuotaUsage -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
32+
Get-AzQuotaUsage -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
33+
```
3334

35+
```output
3436
Name ResourceGroupName UsageUsagesType UsageValue ETag
3537
---- ----------------- --------------- ---------- ----
3638
VirtualNetworks 0
@@ -54,8 +56,10 @@ This command lists the currents usage of a resource
5456

5557
### Example 2: Get the current usage of a resource
5658
```powershell
57-
PS C:\> Get-AzQuotaUsage -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -Name "MinPublicIpInterNetworkPrefixLength"
59+
Get-AzQuotaUsage -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -Name "MinPublicIpInterNetworkPrefixLength"
60+
```
5861

62+
```output
5963
Name NameLocalizedValue UsageUsagesType UsageValue ETag
6064
---- ------------------ --------------- ---------- ----
6165
MinPublicIpInterNetworkPrefixLength Public IPv4 Prefix Length 0

src/Quota/docs/New-AzQuota.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ Please check the URI in location header for the detailed status of the request.
3535

3636
### Example 1: Create or update the quota limit for the specified resource with the requested value
3737
```powershell
38-
PS C:\> $limit = New-AzQuotaLimitObject -Value 1003
39-
PS C:\> New-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" -Name "PublicIPAddresses" -Limit $limit
38+
$limit = New-AzQuotaLimitObject -Value 1003
39+
New-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" -Name "PublicIPAddresses" -Limit $limit
40+
```
4041

42+
```output
4143
Name NameLocalizedValue Unit ETag
4244
---- ------------------ ---- ----
4345
PublicIPAddresses Public IP Addresses - Basic Count

src/Quota/docs/New-AzQuotaLimitObject.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ Create an in-memory object for LimitObject.
2323

2424
### Example 1: Create an in-memory object for LimitValue
2525
```powershell
26-
PS C:\> New-AzQuotaLimitObject -Value 1003
26+
New-AzQuotaLimitObject -Value 1003
27+
```
2728

29+
```output
2830
LimitObjectType LimitType Value
2931
--------------- --------- -----
3032
LimitValue 1003

src/Quota/docs/Update-AzQuota.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ Please check the URI in location header for the detailed status of the request.
4141

4242
### Example 1: Update the quota limit for a specific resource to the specified value
4343
```powershell
44-
PS C:\> $limit = New-AzQuotaLimitObject -Value 1001
45-
PS C:\> Update-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" -Name "PublicIPAddresses" -Limit $limit
44+
$limit = New-AzQuotaLimitObject -Value 1001
45+
Update-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" -Name "PublicIPAddresses" -Limit $limit
46+
```
4647

48+
```output
4749
Name NameLocalizedValue UsageUsagesType UsageValue ETag
4850
---- ------------------ --------------- ---------- ----
4951
PublicIPAddresses Public IP Addresses - Basic 0
@@ -53,10 +55,11 @@ This command update the quota limit for a specific resource to the specified val
5355

5456
### Example 2: Update the quota limit for a specific resource to the specified value by pipeline
5557
```powershell
56-
PS C:\>
57-
PS C:\> $limit = New-AzQuotaLimitObject -Value 1007
58-
PS C:\> Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" | Update-AzQuota -Name "PublicIPAddresses" -Limit $limit
58+
$limit = New-AzQuotaLimitObject -Value 1007
59+
Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" | Update-AzQuota -Name "PublicIPAddresses" -Limit $limit
60+
```
5961

62+
```output
6063
Name NameLocalizedValue UsageUsagesType UsageValue ETag
6164
---- ------------------ --------------- ---------- ----
6265
PublicIPAddresses Public IP Addresses - Basic 0

src/Quota/examples/Get-AzQuota.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
### Example 1: List the quota limits of a scope
22
```powershell
3-
PS C:\> Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
3+
Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
4+
```
45

6+
```output
57
Name ResourceGroupName Unit ETag
68
---- ----------------- ---- ----
79
VirtualNetworks Count
@@ -16,8 +18,10 @@ This command lists the quota limits of a scope.
1618

1719
### Example 2: Get the quota limit of a resource
1820
```powershell
19-
PS C:\> Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -ResourceName "MinPublicIpInterNetworkPrefixLength"
21+
Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -ResourceName "MinPublicIpInterNetworkPrefixLength"
22+
```
2023

24+
```output
2125
Name NameLocalizedValue Unit ETag
2226
---- ------------------ ---- ----
2327
MinPublicIpInterNetworkPrefixLength Public IPv4 Prefix Length Count

src/Quota/examples/Get-AzQuotaRequestStatus.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
### Example 1: List the quota request details and status for the scope
22
```powershell
3-
PS C:\> Get-AzQuotaRequestStatus -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
3+
Get-AzQuotaRequestStatus -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
4+
```
45

6+
```output
57
Name ProvisioningState ErrorMessage Code
68
---- ----------------- ------------ ----
79
171f4e10-f396-48bc-a93f-245cfd7ebe75 Succeeded
@@ -19,8 +21,10 @@ This command lists the quota request details and status for the scope.
1921

2022
### Example 2: Get the quota request details and status by quota request ID for the resources of the resource provider at a specific location
2123
```powershell
22-
PS C:\> Get-AzQuotaRequestStatus -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -Id "6cf5716a-3df8-421a-8457-719e10381dbc"
24+
Get-AzQuotaRequestStatus -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -Id "6cf5716a-3df8-421a-8457-719e10381dbc"
25+
```
2326

27+
```output
2428
Name ProvisioningState ErrorMessage Code
2529
---- ----------------- ------------ ----
2630
6cf5716a-3df8-421a-8457-719e10381dbc Failed Request failed. QuotaReductionNotSupported

src/Quota/examples/Get-AzQuotaUsage.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
### Example 1: List the currents usage of a resource
22
```powershell
3-
PS C:\> Get-AzQuotaUsage -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
3+
Get-AzQuotaUsage -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus"
4+
```
45

6+
```output
57
Name ResourceGroupName UsageUsagesType UsageValue ETag
68
---- ----------------- --------------- ---------- ----
79
VirtualNetworks 0
@@ -25,8 +27,10 @@ This command lists the currents usage of a resource
2527

2628
### Example 2: Get the current usage of a resource
2729
```powershell
28-
PS C:\> Get-AzQuotaUsage -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -Name "MinPublicIpInterNetworkPrefixLength"
30+
Get-AzQuotaUsage -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus" -Name "MinPublicIpInterNetworkPrefixLength"
31+
```
2932

33+
```output
3034
Name NameLocalizedValue UsageUsagesType UsageValue ETag
3135
---- ------------------ --------------- ---------- ----
3236
MinPublicIpInterNetworkPrefixLength Public IPv4 Prefix Length 0

src/Quota/examples/New-AzQuota.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
### Example 1: Create or update the quota limit for the specified resource with the requested value
22
```powershell
3-
PS C:\> $limit = New-AzQuotaLimitObject -Value 1003
4-
PS C:\> New-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" -Name "PublicIPAddresses" -Limit $limit
3+
$limit = New-AzQuotaLimitObject -Value 1003
4+
New-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" -Name "PublicIPAddresses" -Limit $limit
5+
```
56

7+
```output
68
Name NameLocalizedValue Unit ETag
79
---- ------------------ ---- ----
810
PublicIPAddresses Public IP Addresses - Basic Count

src/Quota/examples/New-AzQuotaLimitObject.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
### Example 1: Create an in-memory object for LimitValue
22
```powershell
3-
PS C:\> New-AzQuotaLimitObject -Value 1003
3+
New-AzQuotaLimitObject -Value 1003
4+
```
45

6+
```output
57
LimitObjectType LimitType Value
68
--------------- --------- -----
79
LimitValue 1003

src/Quota/examples/Update-AzQuota.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
### Example 1: Update the quota limit for a specific resource to the specified value
22
```powershell
3-
PS C:\> $limit = New-AzQuotaLimitObject -Value 1001
4-
PS C:\> Update-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" -Name "PublicIPAddresses" -Limit $limit
3+
$limit = New-AzQuotaLimitObject -Value 1001
4+
Update-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" -Name "PublicIPAddresses" -Limit $limit
5+
```
56

7+
```output
68
Name NameLocalizedValue UsageUsagesType UsageValue ETag
79
---- ------------------ --------------- ---------- ----
810
PublicIPAddresses Public IP Addresses - Basic 0
@@ -12,10 +14,11 @@ This command update the quota limit for a specific resource to the specified val
1214

1315
### Example 2: Update the quota limit for a specific resource to the specified value by pipeline
1416
```powershell
15-
PS C:\>
16-
PS C:\> $limit = New-AzQuotaLimitObject -Value 1007
17-
PS C:\> Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" | Update-AzQuota -Name "PublicIPAddresses" -Limit $limit
17+
$limit = New-AzQuotaLimitObject -Value 1007
18+
Get-AzQuota -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/providers/Microsoft.Network/locations/eastus2" -ResourceName "PublicIPAddresses" | Update-AzQuota -Name "PublicIPAddresses" -Limit $limit
19+
```
1820

21+
```output
1922
Name NameLocalizedValue UsageUsagesType UsageValue ETag
2023
---- ------------------ --------------- ---------- ----
2124
PublicIPAddresses Public IP Addresses - Basic 0

0 commit comments

Comments
 (0)