Remove-AzCostManagementExport
要刪除匯出的作業。
Syntax
Remove-AzCostManagementExport
-Name <String>
-Scope <String>
[-DefaultProfile <PSObject>]
[-PassThru]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Remove-AzCostManagementExport
-InputObject <ICostManagementIdentity>
[-DefaultProfile <PSObject>]
[-PassThru]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Description
要刪除匯出的作業。
範例
範例 1:依範圍和名稱刪除 AzCostManagementExport
Remove-AzCostManagementExport -Scope 'subscriptions/********' -name 'TestExportDatasetAggregationInfoYouri'
刪除 AzCostManagementExport By Scope 和 ExportName
範例 2:刪除 AzCostManagementExport by Export 物件
$getExport = Get-AzCostManagementExport -Scope 'subscriptions/*********' -name 'TestExportDatasetAggregationYouori'
Remove-AzCostManagementExport -InputObject $getExport
刪除 AzCostManagementExport By InputObject
參數
-Confirm
執行 Cmdlet 之前先提示您確認。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
用於與 Azure 通訊的認證、帳戶、租用戶和訂用帳戶。
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
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 |
-PassThru
當命令成功時傳回 true
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
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 |
-WhatIf
顯示執行 Cmdlet 後會發生的情況。 未執行 Cmdlet。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
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 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應