File tree Expand file tree Collapse file tree 10 files changed +42
-18
lines changed Expand file tree Collapse file tree 10 files changed +42
-18
lines changed Original file line number Diff line number Diff line change @@ -41,20 +41,24 @@ Gets the Dashboard.
41
41
42
42
### Example 1: List all dashboards in a subscription
43
43
``` powershell
44
- PS C:> Get-AzPortalDashboard
44
+ Get-AzPortalDashboard
45
+ ```
46
+
47
+ ``` output
45
48
Location Name Type
46
49
-------- ---- ----
47
50
eastasia my-custom-dashboard1 Microsoft.Portal/dashboards
48
51
westus my-second-custom-dashboard1 Microsoft.Portal/dashboards
49
-
50
52
```
51
53
52
54
List all dashboards in a subscription
53
55
54
56
### Example 2: Get details for a single Portal Dashboard
55
57
``` powershell
56
- PS C:\> Get-AzPortalDashboard -ResourceGroupName my-rg -Name mydashboard
58
+ Get-AzPortalDashboard -ResourceGroupName my-rg -Name mydashboard
59
+ ```
57
60
61
+ ``` output
58
62
Location Name Type
59
63
-------- ---- ----
60
64
eastus mydashboard Microsoft.Portal/dashboards
Original file line number Diff line number Diff line change @@ -38,8 +38,10 @@ Creates or updates a Dashboard.
38
38
39
39
### Example 1: Create a dashboard using a dashboard template file
40
40
``` powershell
41
- PS C:\> New-AzPortalDashboard -DashboardPath .\resources\dash1.json -ResourceGroupName mydash-rg -DashboardName my-dashboard03
41
+ New-AzPortalDashboard -DashboardPath .\resources\dash1.json -ResourceGroupName mydash-rg -DashboardName my-dashboard03
42
+ ```
42
43
44
+ ``` output
43
45
Location Name Type
44
46
-------- ---- ----
45
47
eastasia my-dashboard03 Microsoft.Portal/dashboards
Original file line number Diff line number Diff line change @@ -31,14 +31,14 @@ Deletes the Dashboard.
31
31
32
32
### Example 1: Remove a Dashboard
33
33
``` powershell
34
- PS C:\td\> Remove-AzPortalDashboard -ResourceGroupName my-rg -DashboardName dashbase02
34
+ Remove-AzPortalDashboard -ResourceGroupName my-rg -DashboardName dashbase02
35
35
```
36
36
37
37
Remove a Dashbaord using resource group name and dashboard name.
38
38
39
39
### Example 2: Remove a Dashboard using the pipeline
40
40
``` powershell
41
- PS C:\> Get-AzPortalDashboard -ResourceGroupName my-rg -DashboardName dashbase02 | Remove-AzPortalDashboard
41
+ Get-AzPortalDashboard -ResourceGroupName my-rg -DashboardName dashbase02 | Remove-AzPortalDashboard
42
42
```
43
43
44
44
Remove the dashboard returned from a Get-AzDashboard call.
Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ Creates or updates a Dashboard.
24
24
25
25
### Example 1: Update the dashboard definition using a dashboard template
26
26
``` powershell
27
- PS C:\> Set-AzPortalDashboard -DashboardPath .\resources\dash1-update.json -ResourceGroupName my-rg -DashboardName dashbase03
27
+ Set-AzPortalDashboard -DashboardPath .\resources\dash1-update.json -ResourceGroupName my-rg -DashboardName dashbase03
28
+ ```
28
29
30
+ ``` output
29
31
Location Name Type
30
32
-------- ---- ----
31
33
eastasia dashbase03 Microsoft.Portal/dashboards
Original file line number Diff line number Diff line change @@ -32,8 +32,10 @@ Updates an existing Dashboard.
32
32
33
33
### Example 1: Update the Tags of a Dashboard
34
34
``` powershell
35
- PS C:\> Update-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"}
35
+ Update-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"}
36
+ ```
36
37
38
+ ``` output
37
39
Location Name Type
38
40
-------- ---- ----
39
41
eastasia dashbase03 Microsoft.Portal/dashboards
@@ -44,8 +46,10 @@ Tags are represented as an inline hashtable.
44
46
45
47
### Example 2: Update Dashboard tags using the pipeline
46
48
``` powershell
47
- PS C:\> Get-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 | Update-AzPortalDashboard -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"}
49
+ Get-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 | Update-AzPortalDashboard -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"}
50
+ ```
48
51
52
+ ``` output
49
53
Location Name Type
50
54
-------- ---- ----
51
55
eastasia dashbase03 Microsoft.Portal/dashboards
Original file line number Diff line number Diff line change 1
1
### Example 1: List all dashboards in a subscription
2
2
``` powershell
3
- PS C:> Get-AzPortalDashboard
3
+ Get-AzPortalDashboard
4
+ ```
5
+
6
+ ``` output
4
7
Location Name Type
5
8
-------- ---- ----
6
9
eastasia my-custom-dashboard1 Microsoft.Portal/dashboards
7
10
westus my-second-custom-dashboard1 Microsoft.Portal/dashboards
8
-
9
11
```
10
12
11
13
List all dashboards in a subscription
12
14
13
15
### Example 2: Get details for a single Portal Dashboard
14
16
``` powershell
15
- PS C:\> Get-AzPortalDashboard -ResourceGroupName my-rg -Name mydashboard
17
+ Get-AzPortalDashboard -ResourceGroupName my-rg -Name mydashboard
18
+ ```
16
19
20
+ ``` output
17
21
Location Name Type
18
22
-------- ---- ----
19
23
eastus mydashboard Microsoft.Portal/dashboards
Original file line number Diff line number Diff line change 1
1
### Example 1: Create a dashboard using a dashboard template file
2
2
``` powershell
3
- PS C:\> New-AzPortalDashboard -DashboardPath .\resources\dash1.json -ResourceGroupName mydash-rg -DashboardName my-dashboard03
3
+ New-AzPortalDashboard -DashboardPath .\resources\dash1.json -ResourceGroupName mydash-rg -DashboardName my-dashboard03
4
+ ```
4
5
6
+ ``` output
5
7
Location Name Type
6
8
-------- ---- ----
7
9
eastasia my-dashboard03 Microsoft.Portal/dashboards
Original file line number Diff line number Diff line change 1
1
### Example 1: Remove a Dashboard
2
2
``` powershell
3
- PS C:\td\> Remove-AzPortalDashboard -ResourceGroupName my-rg -DashboardName dashbase02
3
+ Remove-AzPortalDashboard -ResourceGroupName my-rg -DashboardName dashbase02
4
4
```
5
5
6
6
Remove a Dashbaord using resource group name and dashboard name.
7
7
8
8
### Example 2: Remove a Dashboard using the pipeline
9
9
``` powershell
10
- PS C:\> Get-AzPortalDashboard -ResourceGroupName my-rg -DashboardName dashbase02 | Remove-AzPortalDashboard
10
+ Get-AzPortalDashboard -ResourceGroupName my-rg -DashboardName dashbase02 | Remove-AzPortalDashboard
11
11
```
12
12
13
13
Remove the dashboard returned from a Get-AzDashboard call.
Original file line number Diff line number Diff line change 1
1
### Example 1: Update the dashboard definition using a dashboard template
2
2
``` powershell
3
- PS C:\> Set-AzPortalDashboard -DashboardPath .\resources\dash1-update.json -ResourceGroupName my-rg -DashboardName dashbase03
3
+ Set-AzPortalDashboard -DashboardPath .\resources\dash1-update.json -ResourceGroupName my-rg -DashboardName dashbase03
4
+ ```
4
5
6
+ ``` output
5
7
Location Name Type
6
8
-------- ---- ----
7
9
eastasia dashbase03 Microsoft.Portal/dashboards
Original file line number Diff line number Diff line change 1
1
### Example 1: Update the Tags of a Dashboard
2
2
``` powershell
3
- PS C:\> Update-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"}
3
+ Update-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"}
4
+ ```
4
5
6
+ ``` output
5
7
Location Name Type
6
8
-------- ---- ----
7
9
eastasia dashbase03 Microsoft.Portal/dashboards
@@ -11,8 +13,10 @@ Update the tags in a dashboard. Tags are represented as an inline hashtable.
11
13
12
14
### Example 2: Update Dashboard tags using the pipeline
13
15
``` powershell
14
- PS C:\> Get-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 | Update-AzPortalDashboard -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"}
16
+ Get-AzPortalDashboard -ResourceGroupName my-rg -Name dashbase03 | Update-AzPortalDashboard -Tag @{'hidden-title'="My Dashboard Title"; NewTag="NewValue"}
17
+ ```
15
18
19
+ ``` output
16
20
Location Name Type
17
21
-------- ---- ----
18
22
eastasia dashbase03 Microsoft.Portal/dashboards
You can’t perform that action at this time.
0 commit comments