You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -17,190 +17,108 @@ DevTest Labs collects two main pieces of personal data from the user. They are:
17
17
### User email address
18
18
DevTest Labs uses the user email address to send auto shutdown email notifications to lab users. The email notifies users of their machine being shut down. The users can either postpone or skip the shutdown if they wish to do so. You configure the email address at the lab level or at the VM level.
19
19
20
-
**Setting email at the lab:**
21
-
22
-

23
-
24
-
**Setting email at the VM:**
25
-
26
-

27
-
28
-
### User object ID
29
-
DevTest Labs uses the user object ID to show month-over-month cost trends and cost by resource information to lab admins. It allows them to track costs and manage thresholds for their Lab.
30
-
31
-
**Estimated cost trend for the current calendar month:**
32
-

33
-
34
-
**Estimated month-to-date cost by resource:**
35
-

36
-
37
-
38
20
## Why do we need this personal data?
39
-
The DevTest Labs service uses the personal data for operational purposes. This data is critical for the service to deliver key features. If you set a retention policy on the user email address, lab users do not receive timely auto shutdown email notifications after their email address is deleted from our system. Similarly, the lab admin can't view month-over-month cost trends and cost by resource for machines in their labs if the user object IDs are deleted based on a retention policy. Therefore, this data needs to be retained for as long as the user's resource is active in the Lab.
21
+
The DevTest Labs service uses the personal data for operational purposes. This data is critical for the service to deliver key features. If you set a retention policy on the user email address, lab users do not receive timely auto shutdown email notifications after their email address is deleted from our system. Therefore, this data needs to be retained for as long as the user's resource is active in the Lab.
40
22
41
-
## How can I have the system to forget my personal data?
42
-
As a lab user, if you like to have this personal data deleted, you can do so by deleting the corresponding resource in the Lab. The DevTest Labs service anonymizes the deleted personal data 30 days after it's deleted by the user.
23
+
## How can I have the system forget my personal data?
24
+
As a lab user, you can delete your personal by deleting the corresponding resource in the Lab. The DevTest Labs service anonymizes the deleted personal data 30 days after it's deleted by the user.
43
25
44
-
For example, If you delete your VM, or removed your email address, the DevTest Labs service anonymizes this data 30 days after the resource is deleted. The 30-day retention policy after deletion is to make sure that we provide an accurate month-over-month cost projection to the lab admin.
26
+
For example, if you delete your VM, or remove your email address, the DevTest Labs service anonymizes this data 30 days after the resource is deleted. The 30-day retention policy after deletion ensures that DevTest Labs provides an accurate month-over-month cost projection to the lab admin.
45
27
46
28
## How can I request an export on my personal data?
47
-
You can export personal and lab usage data by using the Azure portal or PowerShell. The data is exported as two different CSV files:
48
-
49
-
-**disks.csv** - contains information about the disks being used by the different VMs
50
-
-**virtualmachines.csv** - contains information about the VMs in the lab.
51
-
52
-
### Azure portal
53
-
As a lab user, you can request an export on the personal data that the DevTest Labs service stores. To request for an export, navigate to the **Personal data** option on the **Overview** page of your lab. Select the **Request export** button kicks off the creation of a downloadable excel file in your Lab admin's storage account. You can then contact your lab admin to view this data.
54
-
55
-
1. Select **Personal data** on the left menu.
56
-
57
-

58
-
2. Select the **resource group** that contains the lab.
6. Select the **folder** named after your lab. You find **csv** files for **disks** and **virtual machines** in your lab in this folder. You can download these csv files, filter the content for the lab user requesting an access, and share it with them.
You can export personal and lab usage data by using Azure PowerShell. DevTest Labs exports the data as a csv file with the date and time of the export requested in the name.
71
30
72
31
### Azure PowerShell
73
32
74
33
```powershell
75
34
Param (
76
-
[Parameter (Mandatory=$true, HelpMessage="The storage account name where to store usage data")]
- **blobStorageAbsoluteSasUri** - The storage account URI with the Shared Access Signature (SAS) token. In the PowerShell script, this value could be passed in instead of the storage key.
145
-
- **usageStartDate** - The beginning date to pull data, with the end date being the current date on which the action is executed. The granularity is at the day level, so even if you add time information, it will be ignored.
146
-
147
-
### Exported data - a closer look
148
-
Now let’s take a closer look at the exported data. As mentioned earlier, once the data are successfully exported, there will be two CSV files.
149
-
150
-
The **virtualmachines.csv** contains the following data columns:
151
-
152
-
| Column name | Description |
153
-
| ----------- | ----------- |
154
-
| SubscriptionId | The subscription identifier that the lab exists in. |
| Claimable | Set to true if the VM is a claimable VM |
169
-
| EnvironmentId | The environment resource identifier within which the Virtual machine was created in. It's empty when the VM wasn't created as part of an environment resource. |
170
-
| ExpirationDate | Expiration date for the VM. It's set to empty, if an expiration date hasn't been set.
171
-
| GalleryImageReferenceVersion | Version of the VM base image. |
172
-
| GalleryImageReferenceOffer | Offer of the VM base image. |
173
-
| GalleryImageReferencePublisher | Publisher of the VM base image. |
174
-
| GalleryImageReferenceSku | Sku of the VM base image |
175
-
| GalleryImageReferenceOsType | OS type of the VM base image |
176
-
| CustomImageId | Fully qualified ID of the VM base custom image. |
177
-
178
-
The data columns contained in **disks.csv** are listed below:
179
-
180
-
| Column name | Description |
181
-
| ----------- | ----------- |
182
-
| SubscriptionId | ID of the subscription that contains the lab |
183
-
| LabUId | GUID for the lab |
184
-
| LabName | Name of the lab |
185
-
| LabResourceId | Fully qualified resource ID for the lab |
186
-
| ResourceGroupName | Name of the resource group that contains the lab |
187
-
| ResourceId | Fully qualified resource ID for the VM. |
188
-
| ResourceUId | GUID for the VM |
189
-
|Name | The name of the attached disk |
190
-
| CreatedTime |The date and time at which the data disk was created. |
191
-
| DeletedDate | The date and time at which the data disk was deleted. |
192
-
| ResourceStatus | Status of the resource. Active, if the resource exists. Inactive, when deleted. |
193
-
| DiskBlobName | Blob name for the data disk. |
194
-
| DiskSizeGB | The size of the data disk. |
195
-
| DiskType | Type of the data disk. 0 for Standard, 1 for Premium. |
196
-
| LeasedByVmId | Resource ID of the VM to which the data disk has been attached. |
197
-
198
-
199
-
> [!NOTE]
200
-
> If you are dealing with multiple labs and want to get overall information, the two key columns are the **LabUID** and the **ResourceUId**, which are the unique ids across subscriptions.
201
-
202
-
The exported data can be manipulated and visualized using tools, like SQL Server, Power BI, etc. This feature is especially useful when you want to report usage of your lab to your management team that may not be using the same Azure subscription as you do.
203
-
119
+
- **blobStorageAbsoluteSasUri** - The storage account URI with the Shared Access Signature (SAS) token. In the PowerShell script, this value could be passed in instead of the storage key.
120
+
- **usageStartDate** - The beginning date to pull data, with the end date being the current date on which the action is executed. The granularity is at the day level, so even if you add time information, it will be ignored.
Copy file name to clipboardExpand all lines: articles/devtest-labs/report-usage-across-multiple-labs-subscriptions.md
+1-11Lines changed: 1 addition & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,17 +30,7 @@ Before you can export DevTest Labs resource usage, you have to set up an Azure S
30
30
> [!NOTE]
31
31
> The date parameter doesn't include a time stamp so the data includes everything from midnight based on the time zone where the lab is located.
32
32
33
-
Once the export is complete, there will be multiple CSV files in the blob storage with the different resource information.
34
-
35
-
Currently there are two CSV files:
36
-
37
-
**virtualmachines.csv* - contains information about the virtual machines in the lab
38
-
**disks.csv* - contains information about the different disks in the lab
39
-
40
-
These files are stored in the *labresourceusage* blob container. The files are under the lab name, lab unique ID, date executed, and either `full` or the start date of the export request. An example blob structure is:
0 commit comments