Skip to content

Commit 4c9233c

Browse files
authored
Merge pull request #185366 from bandersmsft/save-share-views-01182022
CMB - Updated save-share-views
2 parents 514994c + b0e8191 commit 4c9233c

File tree

1 file changed

+93
-28
lines changed

1 file changed

+93
-28
lines changed

articles/cost-management-billing/costs/save-share-views.md

Lines changed: 93 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Save and share customized views - Azure Cost Management and Billing
33
description: This article explains how to save and share a customized view with others.
44
author: bandersmsft
55
ms.author: banders
6-
ms.date: 12/07/2021
6+
ms.date: 01/18/2021
77
ms.topic: how-to
88
ms.service: cost-management-billing
99
ms.subservice: cost-management
@@ -12,56 +12,121 @@ ms.reviewer: micflan
1212

1313
# Save and share customized views
1414

15-
You can save and share customized views with others by pinning cost analysis to the Azure portal dashboard or by copying a link to cost analysis. You can also download a snapshot of the data or views and manually share it with others.
15+
Cost analysis is used to explore costs and get quick answers for things like finding the top cost contributors or understanding how you're charged for the services you use. As you analyze cost, you may find specific views you want to save or share with others.
1616

17-
Watch the video [Sharing and saving views in Cost Management](https://www.youtube.com/watch?v=kQkXXj-SmvQ) to learn more about how to use the portal to share cost knowledge around your organization. To watch other videos, visit the [Cost Management YouTube channel](https://www.youtube.com/c/AzureCostManagement).
17+
## Save and share cost views
1818

19-
## Save and share a view
19+
A *view* is a saved query in Cost Management. When you save a view, all settings in cost analysis are saved, including filters, grouping, granularity, the main chart type, and donut charts. Underlying data isn't saved. Only you can see private views, while everyone with Cost Management Reader access or greater to the scope can see shared views.
2020

21-
When you save a view, all settings in cost analysis are saved, including filters, grouping, granularity, the main chart type, and donut charts. Underlying data isn't saved.
21+
Check out the [Sharing and saving views](https://www.youtube.com/watch?v=kQkXXj-SmvQ) video.
2222

23-
After you save a view, you can share the URL to it with others using the **Share** command. The URL is specific to your current scope. Sharing only shares the view configuration and doesn't grant others access to the underlying data. If you don't have access to the scope, you'll see an `access denied` message.
23+
After you save a view, you can share a link to it with others using the **Share** command. The link is specific to your current scope and view configuration. The link doesn't grant others access to the view itself, which may change over time, or the underlying data. If you don't have access to the scope, you'll see an `access denied` message. We recommend using the Cost Management Contributor role to allow others to save and share views with others.
2424

25-
You can also pin the current view to an Azure portal dashboard. The pinned view is a condensed view of the main chart or table and doesn't update when the view is updated. A pinned dashboard isn't the same thing as a saved view.
25+
You can also pin the current view to an Azure portal dashboard. This only includes a snapshot of the main chart or table and doesn't update when the view is updated. A pinned dashboard isn't the same thing as a saved view.
2626

2727
### To save a view
2828

29-
1. In Cost analysis, make sure that the settings for your current view are the ones that you want saved.
30-
2. Under your billing scope or subscription name, select **Save** to update your current view or **Save as** to save a new view.
29+
1. In cost analysis, make sure that the settings that you want saved are chosen.
30+
1. Select the **Save** command at the top of the page to update your current view or **Save as** to save a new view.
3131
:::image type="content" source="./media/save-share-views/save-options.png" alt-text="Screen shot showing the view save options." lightbox="./media/save-share-views/save-options.png" :::
3232
1. Enter a name for the view and then select **Save**.
3333
:::image type="content" source="./media/save-share-views/save-box.png" alt-text="Screen shot showing Save box where you enter a name to save." lightbox="./media/save-share-views/save-box.png" :::
34-
1. After you save a view, it's available to select from the **View** list.
35-
:::image type="content" source="./media/save-share-views/view-list.png" alt-text="Screen shot showing the View list." lightbox="./media/save-share-views/view-list.png" :::
34+
1. After you save a view, it's available to select from the **View** menu.
35+
:::image type="content" source="./media/save-share-views/view-list.png" alt-text="Screen shot showing the View list." lightbox="./media/save-share-views/view-list.png" :::
3636

3737
### To share a view
3838

39-
1. In Cost analysis, ensure that the currently selected view is the one that you want to share.
40-
2. Under your billing scope or subscription name, select **Share**.
41-
3. In the **Share** box, select **Copy to clipboard** to copy the URL and then select **OK**.
42-
:::image type="content" source="./media/save-share-views/share.png" alt-text="Screen shot showing the Share box." lightbox="./media/save-share-views/share.png" :::
43-
1. Paste the URL using any application that you like to send to others.
39+
1. In cost analysis, ensure that the currently selected view is the one that you want to share.
40+
1. Select the **Share** command at the top of the page.
41+
1. In the **Share** box, copy the URL and then select **OK**.
42+
:::image type="content" source="./media/save-share-views/share.png" alt-text="Screen shot showing the Share box." lightbox="./media/save-share-views/share.png" :::
43+
1. You can paste the URL using any application that you like to send to others.
4444

45-
## Pin to dashboard
45+
If you need to generate a link to a view programmatically, use one of the following formats:
4646

47-
As mentioned previously, a pinned dashboard is only a saved main chart or table view. It's essentially a thumbnail view of the main chart you can select to get back to the view where the dashboard was originally pinned from.
47+
- View configuration – `https://<portal-domain>/@<directory-domain>/#blade/Microsoft_Azure_CostManagement/Menu/open/costanalysis/scope/<scope-id>/view/<view-config>`
48+
- Saved view – `https://<portal-domain>/@<directory-domain>/#blade/Microsoft_Azure_CostManagement/Menu/open/costanalysis/scope/<scope-id>/viewId/<view-id>`
4849

49-
To pin cost analysis to a dashboard
5050

51-
1. In Cost analysis, ensure that the currently selected view is the one that you want to pin.
52-
2. To the right of your billing scope or subscription name, select the **Pin** symbol.
53-
3. In the Pin to dashboard window, choose **Existing** to pin the current view to the existing dashboard or choose **Create new** to pin the current view to a new dashboard.
54-
:::image type="content" source="./media/save-share-views/pin-dashboard.png" alt-text="Screen shot showing the Pin to dashboard page." lightbox="./media/save-share-views/pin-dashboard.png" :::
55-
1. Select **Private** to if you don't want to share the dashboard and then select Pin or select **Shared to share** the dashboard with multiple subscriptions and then select **Pin**.
56-
1. To view the dashboard after you've pinned it, from the Azure portal menu, select **Dashboard**.
57-
:::image type="content" source="./media/save-share-views/saved-dashboard.png" alt-text="Screen shot showing the saved Dashboard page." lightbox="./media/save-share-views/saved-dashboard.png" :::
51+
Use the following table for each property in the URL.
5852

59-
## Download data
53+
| URL property | Description|
54+
| --- | --- |
55+
| **portal-domain** | Primary domain for the Azure portal. For example, `portal.azure.com` or `portal.azure.us`). |
56+
| **directory-domain** | Domain used by your Azure Active Directory. You can also use the tenant ID. If it is omitted, the portal tries to use the default directory for the user that selected the link - it might differ from the scope. |
57+
| **scope-id** | Full Resource Manager ID for the resource group, subscription, management group, or billing account you want to view cost for. If not specified, Cost Management uses the last view the user used in the Azure portal. The value must be URL encoded. |
58+
| **view-config** | Encoded view configuration. See details below. If not specified, cost analysis uses the `view-id` parameter. If neither are specified, cost analysis uses the built-in Accumulated cost view. |
59+
| **view-id** | Full Resource Manager ID for the private or shared view to load. This value must be URL encoded. If not specified, cost analysis uses the `view` parameter. If neither are specified, cost analysis uses the built-in Accumulated cost view. |
6060

61-
When you want to share information with others that don't have access to Cost analysis, you can **Download** the current view in PNG, Excel, and CSV formats. Then you can share it with them by email or other means. The downloaded data is a snapshot, so it isn't automatically updated.
61+
The `view-config` parameter is an encoded version of the JSON view configuration. For more information about the view body, see the [Views API reference](/rest/api/cost-management/views). To learn how to build specific customizations, pin the desired view to an empty Azure portal dashboard, then download the dashboard JSON to review the JSON view configuration.
62+
63+
After you have the desired view configuration:
64+
65+
1. Use Base 64 encode for the JSON view configuration.
66+
1. Use Gzip to compress the encoded string.
67+
1. URL encode the compressed string.
68+
1. Add the final encoded string to the URL after the `/view/` parameter.
69+
70+
## Pin a view to the Azure portal dashboard
71+
72+
As mentioned previously, pinning a view to an Azure portal dashboard only saves the main chart or table. It's essentially a thumbnail you can select to get back to the view configuration in cost analysis. Keep in mind the dashboard tile is a copy of your view configuration – if you save a view that was previously pinned, the pinned tile doesn't update. To update the tile, pin the saved view again.
73+
74+
### To pin cost analysis to a dashboard
75+
76+
1. In cost analysis, ensure that the currently selected view is the one that you want to pin.
77+
1. To the right of your billing scope or subscription name, select the **Pin** symbol.
78+
1. In the Pin to dashboard window, choose **Existing** to pin the current view to the existing dashboard or choose **Create new** to pin the current view to a new dashboard.
79+
:::image type="content" source="./media/save-share-views/pin-dashboard.png" alt-text="Screen shot showing the Pin to dashboard page." lightbox="./media/save-share-views/pin-dashboard.png" :::
80+
1. Select **Private** to if you don't want to share the dashboard and then select **Pin** or select **Shared** to share the dashboard with others and then select **Pin**.
81+
82+
To view the dashboard after you've pinned it, from the Azure portal menu, select **Dashboard**.
83+
84+
:::image type="content" source="./media/save-share-views/saved-dashboard.png" alt-text="Screen shot showing the saved Dashboard page." lightbox="./media/save-share-views/saved-dashboard.png" :::
85+
86+
### To rename a tile
87+
88+
1. From the dashboard where your tile is pinned, select the title of the tile you want to rename. This action opens cost analysis with that view.
89+
1. Select the **Save** command at the top of the page.
90+
1. Enter the name of the tile you want to use.
91+
1. Select **Save**.
92+
1. Select the **Pin** symbol to the right of the page header.
93+
1. From the dashboard, you can now remove the original tile.
94+
95+
For more advanced dashboard customizations, you can also export the dashboard, customize the dashboard JSON, and upload a new dashboard. This can include additional tile sizes or names without saving new views. For more information, see [Create a dashboard in the Azure portal](../../azure-portal/azure-portal-dashboards.md).
96+
97+
## Download data or charts
98+
99+
When you want to share information with others that don't have access to the scope, you can download the view in PNG, Excel, and CSV formats. Then you can share it with them by email or other means. The downloaded data is a snapshot, so it isn't automatically updated.
62100

63101
:::image type="content" source="./media/save-share-views/download.png" alt-text="Screen shot showing the Download page." lightbox="./media/save-share-views/download.png" :::
64102

103+
When downloading data, cost analysis includes summarized data as it's shown in the table. The cost by resource view includes all resource meters in addition to the resource details. If you want a download of only resources and not the nested meters, use the cost analysis preview. You can access the preview from the **Cost by resource** menu at the top of the page, where you can select the Resources, Resource groups, Subscriptions, Services, or Reservations view.
104+
105+
If you need more advanced summaries or you're interested in raw data that hasn't been summarized, schedule an export to publish raw data to a storage account on a recurring basis.
106+
107+
## Subscribe to cost alerts
108+
109+
In addition to saving and opening views repeatedly or sharing them with others manually, you can also subscribe to updates or a recurring schedule to get alerted as costs change. You can also set up alerts to be shared with others who may not have direct access to costs in the portal.
110+
111+
### To subscribe to cost alerts
112+
113+
1. In cost analysis, select a private or shared view you want to subscribe to alerts for or create and save a new chart view.
114+
1. Select **Subscribe** at the top of the page.
115+
1. Select **+ Add** at the top of the list of alerts.
116+
1. Specify the desired email settings and select **Save**.
117+
- The **Name** helps you distinguish the different emails setup for the current view. Use it to indicate audience or purpose of this specific email.
118+
- The **Subject** is what people will see when they receive the email.
119+
- You can include up to 20 recipients. Consider using a distribution list if you have a large audience. To see how the email looks, start by sending it only to yourself. You can update it later.
120+
- The **Message** is shown in the email to give people some additional context about why they're receiving the email. You may want to include what it covers, who requested it, or who to contact to make changes.
121+
- If you want to include an unauthenticated link to the data (for people who don't have access to the scope/view), select **CSV** in the **Include link to data** list.
122+
- If you want to allow people who have write access to the scope to change the email configuration settings, check the **Allow contributors to change these settings** option. For example, you might to allow billing account admins or Cost Management Contributors. By default it is unselected and only you can see or edit the scheduled email.
123+
- The **Start date** is when you'll start receiving the email. It defaults to the current day.
124+
- The **End date** is when you'll receive the last email. It can be up to one year from the current day, which is the default. You can update this later.
125+
- The **Frequency** indicates how often you want the email to be sent. It's based on the start date, so if want a weekly email on a different day of the week, change the start date first. To get an email after the month is closed, select **After invoice finalized**. Ensure your view is looking at last month. If you use the current month, it will only send you the first few days of the month. By default, all emails are sent at 8:00 AM local time. To customize any of the options, select **Custom**.
126+
1. After saving your alert, you'll see a list of configured alerts for the current view. If want to see a preview of the email, select the row and select **Send now** at the top to send the email to all recipients.
127+
128+
Keep in mind that if you choose to include a link to data, anyone who receives the email will have access to the data included in that email. Data expires after seven days.
129+
65130
## Next steps
66131

67132
- For more information about creating dashboards, see [Create a dashboard in the Azure portal](../../azure-portal/azure-portal-dashboards.md).

0 commit comments

Comments
 (0)