Skip to content

Commit cf539d1

Browse files
Split Az.CustomLocation Examples (#17047)
1 parent bb009af commit cf539d1

File tree

5 files changed

+26
-12
lines changed

5 files changed

+26
-12
lines changed

src/CustomLocation/help/Get-AzCustomLocation.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,10 @@ Gets the details of the customLocation with a specified resource group and name.
4141

4242
### Example 1: List the details of the customLocation.
4343
```powershell
44-
PS C:\> Get-AzCustomLocation
44+
Get-AzCustomLocation
45+
```
4546

47+
```output
4648
Location Name Namespace
4749
-------- ---- ----
4850
eastus azps_test_cluster arc
@@ -52,8 +54,10 @@ List the details of the customLocation.
5254

5355
### Example 2: List the details of the customLocation with a specified resource group.
5456
```powershell
55-
PS C:\> Get-AzCustomLocation -ResourceGroupName azps_test_group
57+
Get-AzCustomLocation -ResourceGroupName azps_test_group
58+
```
5659

60+
```output
5761
Location Name Namespace
5862
-------- ---- ----
5963
eastus azps_test_cluster arc
@@ -63,8 +67,10 @@ List the details of the customLocation with a specified resource group.
6367

6468
### Example 3: Gets the details of the customLocation with a specified resource group and name.
6569
```powershell
66-
PS C:\> Get-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster
70+
Get-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster
71+
```
6772

73+
```output
6874
Location Name Namespace
6975
-------- ---- ----
7076
eastus azps_test_cluster arc
@@ -74,8 +80,10 @@ Gets the details of the customLocation with a specified resource group and name.
7480

7581
### Example 4: Gets the details of the customLocation.
7682
```powershell
77-
PS C:\> New-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster -Location eastus -ClusterExtensionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster/providers/Microsoft.KubernetesConfiguration/extensions/azps_test_extension" -HostResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster" -Namespace arc | Get-AzCustomLocation
83+
New-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster -Location eastus -ClusterExtensionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster/providers/Microsoft.KubernetesConfiguration/extensions/azps_test_extension" -HostResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster" -Namespace arc | Get-AzCustomLocation
84+
```
7885

86+
```output
7987
Location Name Namespace
8088
-------- ---- ----
8189
eastus azps_test_cluster arc

src/CustomLocation/help/Get-AzCustomLocationEnabledResourceType.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ Gets the list of the Enabled Resource Types.
2424

2525
### Example 1: Gets the list of the Enabled Resource Types.
2626
```powershell
27-
PS C:\> Get-AzCustomLocationEnabledResourceType -ResourceGroupName azps_test_group -Name azps_test_cluster
27+
Get-AzCustomLocationEnabledResourceType -ResourceGroupName azps_test_group -Name azps_test_cluster
28+
```
2829

30+
```output
2931
Name Type
3032
---- ----
3133
017e563408cfcbaad0604875fef1f0e5a36d5fefa5e81a4c1c212c5a77fbcbde Microsoft.ExtendedLocation/customLocations/enabledResourceTypes

src/CustomLocation/help/New-AzCustomLocation.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,10 @@ Creates or updates a Custom Location in the specified Subscription and Resource
2727

2828
### Example 1: Creates or updates a Custom Location in the specified Subscription and Resource Group
2929
```powershell
30-
PS C:\> New-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster -Location eastus -ClusterExtensionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster/providers/Microsoft.KubernetesConfiguration/extensions/azps_test_extension" -HostResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster" -Namespace arc
30+
New-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster -Location eastus -ClusterExtensionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster/providers/Microsoft.KubernetesConfiguration/extensions/azps_test_extension" -HostResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster" -Namespace arc
31+
```
3132

33+
```output
3234
Location Name Namespace
3335
-------- ---- ----
3436
eastus azps_test_cluster arc

src/CustomLocation/help/Remove-AzCustomLocation.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,14 @@ Deletes the Custom Location with the specified Resource Name, Resource Group, an
3131

3232
### Example 1: Deletes the Custom Location.
3333
```powershell
34-
PS C:\> Remove-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster
35-
34+
Remove-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster
3635
```
3736

3837
Deletes the Custom Location.
3938

4039
### Example 2: Deletes the Custom Location.
4140
```powershell
42-
PS C:\> Get-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster | Remove-AzCustomLocation
43-
41+
Get-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster | Remove-AzCustomLocation
4442
```
4543

4644
Deletes the Custom Location.

src/CustomLocation/help/Update-AzCustomLocation.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ Updates a Custom Location with the specified Resource Name in the specified Reso
3636

3737
### Example 1: Updates a Custom Location with the specified Resource Name in the specified Resource Group and Subscription.
3838
```powershell
39-
PS C:\> Update-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster_1 -ClusterExtensionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster/providers/Microsoft.KubernetesConfiguration/extensions/azps_test_extension" -HostResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster" -Namespace arc
39+
Update-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster_1 -ClusterExtensionId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster/providers/Microsoft.KubernetesConfiguration/extensions/azps_test_extension" -HostResourceId "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/azps_test_group/providers/Microsoft.Kubernetes/connectedClusters/azps_test_cluster" -Namespace arc
40+
```
4041

42+
```output
4143
Location Name Namespace
4244
-------- ---- ----
4345
eastus azps_test_cluster_1 arc
@@ -47,8 +49,10 @@ Updates a Custom Location with the specified Resource Name in the specified Reso
4749

4850
### Example 2: Updates a Custom Location.
4951
```powershell
50-
PS C:\> Get-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster | Update-AzCustomLocation
52+
Get-AzCustomLocation -ResourceGroupName azps_test_group -Name azps_test_cluster | Update-AzCustomLocation
53+
```
5154

55+
```output
5256
Location Name Namespace
5357
-------- ---- ----
5458
eastus azps_test_cluster_1 arc

0 commit comments

Comments
 (0)