|
| 1 | +--- |
| 2 | +external help file: |
| 3 | +Module Name: Az.Cost |
| 4 | +online version: https://docs.microsoft.com/en-us/powershell/module/az.cost/get-azcostmanagementexportexecutionhistory |
| 5 | +schema: 2.0.0 |
| 6 | +--- |
| 7 | + |
| 8 | +# Get-AzCostManagementExportExecutionHistory |
| 9 | + |
| 10 | +## SYNOPSIS |
| 11 | +The operation to get the execution history of an export for the defined scope by export name. |
| 12 | + |
| 13 | +## SYNTAX |
| 14 | + |
| 15 | +### Get (Default) |
| 16 | +``` |
| 17 | +Get-AzCostManagementExportExecutionHistory -ExportName <String> -Scope <String> [-DefaultProfile <PSObject>] |
| 18 | + [<CommonParameters>] |
| 19 | +``` |
| 20 | + |
| 21 | +### GetViaIdentity |
| 22 | +``` |
| 23 | +Get-AzCostManagementExportExecutionHistory -InputObject <ICostIdentity> [-DefaultProfile <PSObject>] |
| 24 | + [<CommonParameters>] |
| 25 | +``` |
| 26 | + |
| 27 | +## DESCRIPTION |
| 28 | +The operation to get the execution history of an export for the defined scope by export name. |
| 29 | + |
| 30 | +## EXAMPLES |
| 31 | + |
| 32 | +### Example 1: Get execution history of cost management export |
| 33 | +```powershell |
| 34 | +PS C:\> Get-AzCostManagementExportExecutionHistory -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f" -ExportName "ps-customcolum-t" |
| 35 | +
|
| 36 | +ExecutionType ProcessingStartTime ProcessingEndTime Status FileName |
| 37 | +------------- ------------------- ----------------- ------ -------- |
| 38 | +OnDemand 6/29/2020 6:03:26 AM 6/29/2020 6:04:28 AM Completed ad-hoc/ps-customcolum-t/20200601-20200630/ps-customcolum-t_041c4d56-f25e-4e37-99fb-ab201309e07f.csv |
| 39 | +Scheduled 6/30/2020 12:02:53 PM 6/30/2020 12:03:34 PM Completed ad-hoc/ps-customcolum-t/20200601-20200630/ps-customcolum-t_cd5bd8b1-014f-4521-b20a-69168288263d.csv |
| 40 | +``` |
| 41 | + |
| 42 | +This command gets execution history of cost management export. |
| 43 | + |
| 44 | +### Example 2: Get execution history of cost management export by object |
| 45 | +```powershell |
| 46 | +PS C:\> $export = Get-AzCostManagementExport -Scope "subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f" -ExportName "ps-customcolum-t" |
| 47 | +PS C:\> $export | Get-AzCostManagementExportExecutionHistory -InputObject $export |
| 48 | +
|
| 49 | +ExecutionType ProcessingStartTime ProcessingEndTime Status FileName |
| 50 | +------------- ------------------- ----------------- ------ -------- |
| 51 | +OnDemand 6/29/2020 6:03:26 AM 6/29/2020 6:04:28 AM Completed ad-hoc/ps-customcolum-t/20200601-20200630/ps-customcolum-t_041c4d56-f25e-4e37-99fb-ab201309e07f.csv |
| 52 | +Scheduled 6/30/2020 12:02:53 PM 6/30/2020 12:03:34 PM Completed ad-hoc/ps-customcolum-t/20200601-20200630/ps-customcolum-t_cd5bd8b1-014f-4521-b20a-69168288263d.csv |
| 53 | +``` |
| 54 | + |
| 55 | +This command gets execution history of cost management export by object. |
| 56 | + |
| 57 | +## PARAMETERS |
| 58 | + |
| 59 | +### -DefaultProfile |
| 60 | +The credentials, account, tenant, and subscription used for communication with Azure. |
| 61 | + |
| 62 | +```yaml |
| 63 | +Type: System.Management.Automation.PSObject |
| 64 | +Parameter Sets: (All) |
| 65 | +Aliases: AzureRMContext, AzureCredential |
| 66 | + |
| 67 | +Required: False |
| 68 | +Position: Named |
| 69 | +Default value: None |
| 70 | +Accept pipeline input: False |
| 71 | +Accept wildcard characters: False |
| 72 | +``` |
| 73 | +
|
| 74 | +### -ExportName |
| 75 | +Export Name. |
| 76 | +
|
| 77 | +```yaml |
| 78 | +Type: System.String |
| 79 | +Parameter Sets: Get |
| 80 | +Aliases: |
| 81 | + |
| 82 | +Required: True |
| 83 | +Position: Named |
| 84 | +Default value: None |
| 85 | +Accept pipeline input: False |
| 86 | +Accept wildcard characters: False |
| 87 | +``` |
| 88 | +
|
| 89 | +### -InputObject |
| 90 | +Identity Parameter |
| 91 | +To construct, see NOTES section for INPUTOBJECT properties and create a hash table. |
| 92 | +
|
| 93 | +```yaml |
| 94 | +Type: Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.ICostIdentity |
| 95 | +Parameter Sets: GetViaIdentity |
| 96 | +Aliases: |
| 97 | + |
| 98 | +Required: True |
| 99 | +Position: Named |
| 100 | +Default value: None |
| 101 | +Accept pipeline input: True (ByValue) |
| 102 | +Accept wildcard characters: False |
| 103 | +``` |
| 104 | +
|
| 105 | +### -Scope |
| 106 | +The scope associated with query and export operations. |
| 107 | +This includes '/subscriptions/{subscriptionId}/' for subscription scope, '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, '/providers/Microsoft.Management/managementGroups/{managementGroupId} for Management Group scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for billingProfile scope, '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}/invoiceSections/{invoiceSectionId}' for invoiceSection scope, and '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for partners. |
| 108 | +
|
| 109 | +```yaml |
| 110 | +Type: System.String |
| 111 | +Parameter Sets: Get |
| 112 | +Aliases: |
| 113 | + |
| 114 | +Required: True |
| 115 | +Position: Named |
| 116 | +Default value: None |
| 117 | +Accept pipeline input: False |
| 118 | +Accept wildcard characters: False |
| 119 | +``` |
| 120 | +
|
| 121 | +### CommonParameters |
| 122 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). |
| 123 | +
|
| 124 | +## INPUTS |
| 125 | +
|
| 126 | +### Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.ICostIdentity |
| 127 | +
|
| 128 | +## OUTPUTS |
| 129 | +
|
| 130 | +### Microsoft.Azure.PowerShell.Cmdlets.Cost.Models.Api20191101.IExportExecution |
| 131 | +
|
| 132 | +## NOTES |
| 133 | +
|
| 134 | +ALIASES |
| 135 | +
|
| 136 | +COMPLEX PARAMETER PROPERTIES |
| 137 | +
|
| 138 | +To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. |
| 139 | +
|
| 140 | +
|
| 141 | +INPUTOBJECT <ICostIdentity>: Identity Parameter |
| 142 | + - `[AlertId <String>]`: Alert ID |
| 143 | + - `[ExportName <String>]`: Export Name. |
| 144 | + - `[ExternalCloudProviderId <String>]`: This can be '{externalSubscriptionId}' for linked account or '{externalBillingAccountId}' for consolidated account used with dimension/query operations. |
| 145 | + - `[ExternalCloudProviderType <ExternalCloudProviderType?>]`: The external cloud provider type associated with dimension/query operations. This includes 'externalSubscriptions' for linked account and 'externalBillingAccounts' for consolidated account. |
| 146 | + - `[Id <String>]`: Resource identity path |
| 147 | + - `[Scope <String>]`: The scope associated with view operations. This includes 'subscriptions/{subscriptionId}' for subscription scope, 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resourceGroup scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for Billing Account scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' for Department scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{enrollmentAccountId}' for EnrollmentAccount scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for BillingProfile scope, 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/invoiceSections/{invoiceSectionId}' for InvoiceSection scope, 'providers/Microsoft.Management/managementGroups/{managementGroupId}' for Management Group scope, 'providers/Microsoft.CostManagement/externalBillingAccounts/{externalBillingAccountName}' for External Billing Account scope and 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' for External Subscription scope. |
| 148 | + - `[ViewName <String>]`: View name |
| 149 | + |
| 150 | +## RELATED LINKS |
| 151 | + |
0 commit comments