Get-AzCostManagementExport
依匯出名稱取得所定義範圍導出的作業。
Syntax
Get-AzCostManagementExport
-Scope <String>
[-Expand <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzCostManagementExport
-Name <String>
-Scope <String>
[-Expand <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzCostManagementExport
-InputObject <ICostManagementIdentity>
[-Expand <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
依匯出名稱取得所定義範圍導出的作業。
範例
範例 1:依範圍取得所有 AzCostManagementExports
Get-AzCostManagementExport -Scope 'subscriptions/**********'
ETag Name Type
---- ---- ----
"************" TestExport Microsoft.CostManagement/exports
"************" TestExport1 Microsoft.CostManagement/exports
"************" TestExport2 Microsoft.CostManagement/exports
依範圍取得所有 AzCostManagementExports
範例 2:依名稱和範圍取得 AzCostManagementExport
Get-AzCostManagementExport -Name 'TestExport' -Scope 'subscriptions/**********'
ETag Name Type
---- ---- ----
"************" TestExport Microsoft.CostManagement/exports
依名稱和範圍取得 AzCostManagementExport
參數
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Expand
可用來展開導出內的屬性。 目前僅支援 『runHistory』,且會傳回最後 10 次匯出執行的資訊。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | ICostManagementIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
匯出名稱。
Type: | String |
Aliases: | ExportName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Scope
此參數會從不同的檢視方塊 'Subscription'、'ResourceGroup' 和 'Provide Service' 定義 costmanagement 的範圍。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
輸入
輸出
備註
別名
COMPLEX PARAMETER PROPERTIES
若要建立以下所述的參數,請建構包含適當屬性的哈希表。 如需哈希表的相關信息,請執行 Get-Help about_Hash_Tables。
INPUTOBJECT <ICostManagementIdentity>
:Identity 參數
[AlertId <String>]
:警示標識碼[BillingAccountId <String>]
:註冊標識碼 (舊版 BillingAccount 標識符)[BillingProfileId <String>]
:BillingProfile 標識符[ExportName <String>]
:匯出名稱。[ExternalCloudProviderId <String>]
:鏈接帳戶的 '{externalSubscriptionId}' 可以是 '{externalBillingAccountId}',或用於維度/查詢作業的合併帳戶'{externalBillingAccountId}'。[ExternalCloudProviderType <ExternalCloudProviderType?>]
:與維度/查詢作業相關聯的外部雲端提供者類型。 這包括鏈接帳戶的 'externalSubscriptions',以及合併帳戶的 'externalBillingAccounts'。[Id <String>]
:資源識別路徑[OperationId <String>]
:目標作業識別碼。[Scope <String>]
:與檢視作業相關聯的範圍。 這包括訂用帳戶範圍的 『subscriptions/{subscriptionId}』, 資源群組範圍的 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}'、計費帳戶範圍的 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}'、'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/departments/{departmentId}' 、'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/enrollmentAccounts/{EnrollmentAccount 範圍的 enrollmentAccountId}'、BillingProfile 範圍的 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/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}' 和外部訂用帳戶範圍的 'providers/Microsoft.CostManagement/externalSubscriptions/{externalSubscriptionName}' 。[ViewName <String>]
:檢視名稱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應