@@ -3,8 +3,8 @@ layout: default
3
3
grand_parent : PowerShell
4
4
parent : Cost Management
5
5
title : Get-FinOpsCostExport
6
- nav_order : 1
7
- description : ' Get a list of Cost Management exports.'
6
+ nav_order : 10
7
+ description : Get a list of Cost Management exports.
8
8
permalink : /powershell/cost/Get-FinOpsCostExport
9
9
---
10
10
@@ -20,7 +20,6 @@ Get a list of Cost Management exports.
20
20
21
21
- [ 🧮 Syntax] ( #-syntax )
22
22
- [ 📥 Parameters] ( #-parameters )
23
- - [ 📤 Return value] ( #-return-value )
24
23
- [ 🌟 Examples] ( #-examples )
25
24
- [ 🧰 Related tools] ( #-related-tools )
26
25
@@ -42,81 +41,37 @@ This command has been tested with the following API versions:
42
41
43
42
``` powershell
44
43
Get-FinOpsCostExport `
45
- [-Name <string>] `
46
- [-Scope <string>] `
47
- [-DataSet <string>] `
48
- [-StorageAccountId <string>] `
49
- [-StorageContainer <string>] `
50
- [-RunHistory] `
51
- [-ApiVersion <string>]
44
+ [[‑Name] <String>] `
45
+ [‑Scope <String>] `
46
+ [‑Dataset <String>] `
47
+ [‑DatasetVersion <String>] `
48
+ [‑StorageAccountId <String>] `
49
+ [‑StorageContainer <String>] `
50
+ [‑RunHistory] `
51
+ [‑ApiVersion <String>] `
52
+ [<CommonParameters>]
52
53
```
53
54
54
55
<br >
55
56
56
57
## 📥 Parameters
57
58
58
- | Name | Description |
59
- | ------------------- | ------------------------------------------------------------------------------------------------------------------- |
60
- | ` ‑Name ` | Optional. Name of the export. Supports wildcards. |
61
- | ` ‑Scope ` | Optional. Resource ID of the scope the export was created for. If empty, defaults to current subscription context. |
62
- | ` ‑DataSet ` | Optional. Dataset to get exports for. Allowed values = "ActualCost", "AmortizedCost". Default = null (all exports). |
63
- | ` ‑StorageAccountId ` | Optional. Resource ID of the storage account to get exports for. Default = null (all exports). |
64
- | ` ‑StorageContainer ` | Optional. Name of the container to get exports for. Supports wildcards. Default = null (all exports). |
65
- | ` ‑RunHistory ` | Optional. Indicates whether the run history should be expanded. Default = false. |
66
- | ` ‑ApiVersion ` | Optional. API version to use when calling the Cost Management exports API. Default = 2023-07-01-preview. |
67
-
68
- <br >
69
-
70
- ## 📤 Return value
71
-
72
- ### FinOpsCostExport object
73
-
74
- | Property | Type | JSON path |
75
- | --------------------- | ---------------------------- | ---------------------------------------------------------------------------- |
76
- | ` Name ` | String | ` name ` |
77
- | ` Id ` | String | ` id ` |
78
- | ` Type ` | String | ` type ` |
79
- | ` eTag ` | String | ` eTag ` |
80
- | ` Description ` | String | ` properties.exportDescription ` |
81
- | ` Dataset ` | String | ` properties.definition.type ` |
82
- | ` DatasetVersion ` | String | ` properties.definition.configuration.dataVersion ` |
83
- | ` DatasetFilters ` | String | ` properties.definition.configuration.filter ` |
84
- | ` DatasetTimeFrame ` | String | ` properties.definition.timeframe ` |
85
- | ` DatasetStartDate ` | DateTime | ` properties.definition.timePeriod.from ` |
86
- | ` DatasetEndDate ` | DateTime | ` properties.definition.timePeriod.to ` |
87
- | ` DatasetGranularity ` | String | ` properties.definition.dataset.granularity ` |
88
- | ` ScheduleStatus ` | String | ` properties.schedule.status ` |
89
- | ` ScheduleRecurrence ` | String | ` properties.schedule.recurrence ` |
90
- | ` ScheduleStartDate ` | DateTime | ` properties.schedule.recurrencePeriod.from ` |
91
- | ` ScheduleEndDate ` | DateTime | ` properties.schedule.recurrencePeriod.to ` |
92
- | ` NextRuntimeEstimate ` | DateTime | ` properties.nextRunTimeEstimate ` |
93
- | ` Format ` | String | ` properties.format ` |
94
- | ` StorageAccountId ` | String | ` properties.deliveryInfo.destination.resourceId ` |
95
- | ` StorageContainer ` | String | ` properties.deliveryInfo.destination.container ` |
96
- | ` StoragePath ` | String | ` properties.deliveryInfo.destination.rootfolderpath ` |
97
- | ` OverwriteData ` | Boolean | ` properties.deliveryInfo.dataOverwriteBehavior ` == "OverwritePreviousReport" |
98
- | ` PartitionData ` | Boolean | ` properties.deliveryInfo.partitionData ` |
99
- | ` CompressionMode ` | String | ` properties.deliveryInfo.compressionMode ` |
100
- | ` RunHistory ` | FinOpsCostExportRunHistory[ ] | ` properties.runHistory.value ` |
101
-
102
- ### FinOpsCostExportRunHistory object
103
-
104
- | Property | Type | JSON path |
105
- | --------------- | -------- | -------------------------------------------------------- |
106
- | ` Id ` | String | ` properties.runHistory.value[].id ` |
107
- | ` ExecutionType ` | String | ` properties.runHistory.value[].properties.executionType ` |
108
- | ` FileName ` | String | ` properties.runHistory.value[].fileName ` |
109
- | ` StartTime ` | DateTime | ` properties.runHistory.value[].processingStartTime ` |
110
- | ` EndTime ` | DateTime | ` properties.runHistory.value[].processingEndTime ` |
111
- | ` Status ` | String | ` properties.runHistory.value[].status ` |
112
- | ` SubmittedBy ` | String | ` properties.runHistory.value[].submittedBy ` |
113
- | ` SubmittedTime ` | DateTime | ` properties.runHistory.value[].submittedTime ` |
59
+ | Name | Description |
60
+ | ---- | ----------- |
61
+ | ` ‑Name ` | Optional. Name of the export. Supports wildcards. |
62
+ | ` ‑Scope ` | Optional. Resource ID of the scope the export was created for. If empty, defaults to current subscription context. |
63
+ | ` ‑Dataset ` | Optional. Dataset to export. Allowed values = "ActualCost", "AmortizedCost", "FocusCost", "PriceSheet", "ReservationDetails", "ReservationTransactions", "ReservationRecommendations". Default = null (all exports). |
64
+ | ` ‑DatasetVersion ` | Optional. Schema version of the dataset to export. Default = null (all exports). |
65
+ | ` ‑StorageAccountId ` | Optional. Resource ID of the storage account to get exports for. Default = null (all exports). |
66
+ | ` ‑StorageContainer ` | Optional. Name of the container to get exports for. Supports wildcards. Default = null (all exports). |
67
+ | ` ‑RunHistory ` | Optional. Indicates whether the run history should be expanded. Default = false. |
68
+ | ` ‑ApiVersion ` | Optional. API version to use when calling the Cost Management exports API. Default = 2023-07-01-preview. |
114
69
115
70
<br >
116
71
117
72
## 🌟 Examples
118
73
119
- ### Get all cost exports for a subscription
74
+ ### Get cost exports for a subscription
120
75
121
76
``` powershell
122
77
Get-FinOpsCostExport `
@@ -133,28 +88,28 @@ Get-FinOpsCostExport `
133
88
-Scope "providers/Microsoft.Billing/billingAccounts/00000000"
134
89
```
135
90
136
- Gets export with name matching wildcard mtd\ * within the specified billing account scope. Does not include exports in nested resource groups.
91
+ Gets export with name matching wildcard mtd* within the specified billing account scope. Does not include exports in nested resource groups.
137
92
138
- ### Get all amortized cost exports
93
+ ### Get amortized cost exports
139
94
140
95
``` powershell
141
96
Get-FinOpsCostExport `
142
- -DataSet "AmortizedCost"
97
+ -Dataset "AmortizedCost"
143
98
```
144
99
145
100
Gets all exports within the current context subscription scope and filtered by dataset AmortizedCost.
146
101
147
- ### Get exports using a specific storage account
102
+ ### Get exports using a storage account
148
103
149
104
``` powershell
150
105
Get-FinOpsCostExport `
151
- -Scope "/subscriptions/00000000-0000-0000-0000-000000000000"`
106
+ -Scope "/subscriptions/00000000-0000-0000-0000-000000000000" `
152
107
-StorageAccountId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.Storage/storageAccounts/MyStorageAccount"
153
108
```
154
109
155
110
Gets all exports within the subscription scope filtered by a specific storage account.
156
111
157
- ### Get exports using a specific container
112
+ ### Get exports using a storage container
158
113
159
114
``` powershell
160
115
Get-FinOpsCostExport `
@@ -164,23 +119,24 @@ Get-FinOpsCostExport `
164
119
165
120
Gets all exports within the subscription scope for a specific container. Supports wildcard.
166
121
167
- ### Get exports using a specific API version
122
+ ### Get exports using an API version
168
123
169
124
``` powershell
170
125
Get-FinOpsCostExport `
171
- -Scope "/subscriptions/00000000-0000-0000-0000-000000000000"
172
- -StorageContainer "mtd*"
173
- -ApiVersion "2023-08-01"
174
- -StorageContainer "MyContainer*"
126
+ -Scope "/subscriptions/00000000-0000-0000-0000-000000000000" `
127
+ -StorageContainer "mtd*" `
128
+ -ApiVersion "2023-07-01-preview"
175
129
```
176
130
177
131
Gets all exports within the subscription scope for a container matching wildcard pattern and using a specific API version.
132
+
178
133
<br >
179
134
180
135
---
181
136
182
137
## 🧰 Related tools
183
138
184
- {% include tools.md hubs="1" pbi="1" %}
139
+ {% include tools.md aoe="1" data="0" hubs="1" pbi="1" %}
185
140
186
141
<br >
142
+
0 commit comments