Get-AzCostManagementExport
This cmdlet is part of a Preview module. Preview versions aren't recommended for use in production environments. For more information, see https://aka.ms/azps-refstatus.
The operation to get the export for the defined scope by export name.
Syntax
List (Default)
Get-AzCostManagementExport
-Scope <String>
[-Expand <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get
Get-AzCostManagementExport
-Name <String>
-Scope <String>
[-Expand <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentity
Get-AzCostManagementExport
-InputObject <ICostManagementIdentity>
[-Expand <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
The operation to get the export for the defined scope by export name.
Examples
Example 1: Get all AzCostManagementExports by scope
Get-AzCostManagementExport -Scope 'subscriptions/**********'
ETag Name Type
---- ---- ----
"************" TestExport Microsoft.CostManagement/exports
"************" TestExport1 Microsoft.CostManagement/exports
"************" TestExport2 Microsoft.CostManagement/exports
Get all AzCostManagementExports by Scope
Example 2: Get AzCostManagementExport by Name and scope
Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********'
ETag Name Type
---- ---- ----
"************" TestExport Microsoft.CostManagement/exports
Get AzCostManagementExport by Name and scope
Parameters
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
| Type: | PSObject |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | AzureRMContext, AzureCredential |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Expand
May be used to expand the properties within an export. Currently only 'runHistory' is supported and will return information for the last 10 executions of the export.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-InputObject
Identity Parameter
Parameter properties
| Type: | ICostManagementIdentity |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
GetViaIdentity
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Name
Export Name.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | ExportName |
Parameter sets
Get
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Scope
This parameter defines the scope of costmanagement from different perspectives 'Subscription','ResourceGroup' and 'Provide Service'.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
List
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
Get
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.