az costmanagement export

Not

Bu başvuru, Azure CLI (sürüm 2.3.1 veya üzeri) için maliyet yönetimi uzantısının bir parçasıdır. Uzantı, az costmanagement export komutunu ilk kez çalıştırdığınızda otomatik olarak yüklenir. Uzantılar hakkında daha fazla bilgi edinin.

Maliyet yönetimi dışarı aktarma.

Komutlar

az costmanagement export create

Dışarı aktarma oluşturma işlemi.

az costmanagement export delete

Dışarı aktarmayı silme işlemi.

az costmanagement export list

Verilen kapsamdaki tüm dışarı aktarmaları listeleme işlemi.

az costmanagement export show

Dışarı aktarma adına göre tanımlanan kapsam için dışarı aktarmanın yürütme geçmişini alma işlemi.

az costmanagement export update

Dışarı aktarmayı güncelleştirme işlemi.

az costmanagement export create

Dışarı aktarma oluşturma işlemi.

az costmanagement export create --name
                                --scope
                                --storage-account-id
                                --storage-container
                                --timeframe {BillingMonthToDate, Custom, MonthToDate, TheLastBillingMonth, TheLastMonth, WeekToDate}
                                [--dataset-configuration]
                                [--recurrence {Annually, Daily, Monthly, Weekly}]
                                [--recurrence-period]
                                [--schedule-status {Active, Inactive}]
                                [--storage-directory]
                                [--time-period]
                                [--type {ActualCost, AmortizedCost, Usage}]

Örnekler

ManagementGroup kapsamı için dışarı aktarma oluşturma

az costmanagement export create --name "TestExport" --type "Usage" --dataset-configuration columns="Date" columns="MeterId" columns="InstanceId" columns="ResourceLocation" columns="PreTaxCost" --timeframe "MonthToDate" --storage-container="exports" --storage-account-id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182" --storage-directory="ad-hoc" --recurrence "Weekly" --recurrence-period from="2018-06-01T00:00:00Z" to="2018-10-31T00:00:00Z" --schedule-status "Active" --scope "providers/Microsoft.Management/managementGroups/TestMG"

ResourceGroup kapsamı için dışarı aktarma oluşturma

az costmanagement export create --name "TestExport" --type "Usage" --dataset-configuration columns="Date" columns="MeterId" columns="InstanceId" columns="ResourceLocation" columns="PreTaxCost" --timeframe "MonthToDate" --storage-container="exports" --storage-account-id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182" --storage-directory="ad-hoc" --recurrence "Weekly" --recurrence-period from="2018-06-01T00:00:00Z" to="2018-10-31T00:00:00Z" --schedule-status "Active" --scope "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"

Abonelik kapsamı için dışarı aktarma oluşturma

az costmanagement export create --name "TestExport" --type "Usage" --dataset-configuration columns="Date" columns="MeterId" columns="InstanceId" columns="ResourceLocation" columns="PreTaxCost" --timeframe "MonthToDate" --storage-container="exports" --storage-account-id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182" --storage-directory="ad-hoc" --recurrence "Weekly" --recurrence-period from="2018-06-01T00:00:00Z" to="2018-10-31T00:00:00Z" --schedule-status "Active" --scope "subscriptions/00000000-0000-0000-0000-000000000000"

Gerekli Parametreler

--name

Dışarı Aktarma Adı.

--scope

Sorgu ve dışarı aktarma işlemleriyle ilişkili kapsam. Buna abonelik kapsamı için '/subscriptions/{subscriptionId}/', resourceGroup kapsamı için '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', Yönetim Grubu kapsamı için '/providers/Microsoft.Management/managementGroups/{managementGroupId} dahildir.

--storage-account-id

Dışarı aktarmaları depolamak için depolama hesabının kimliği.

--storage-container

Dışarı aktarmaları teslim etmek için depolama kapsayıcısı.

--timeframe

Sorgu için veri çekme zaman çerçevesi. Özelse, belirli bir zaman aralığı sağlanmalıdır.

kabul edilen değerler: BillingMonthToDate, Custom, MonthToDate, TheLastBillingMonth, TheLastMonth, WeekToDate

İsteğe Bağlı Parametreler

--dataset-configuration

Dışarı aktarmadaki veriler için yapılandırma bilgilerine sahiptir. Toplama ve gruplandırma sağlanırsa yapılandırma yoksayılır. Beklenen değer: columns=xx.

--recurrence

Zamanlama yinelenme.

kabul edilen değerler: Annually, Daily, Monthly, Weekly
--recurrence-period

Yinelenmenin başlangıç ve bitiş tarihidir. Başlangıç tarihi gelecekte olmalıdır. Varsa, bitiş tarihi başlangıç tarihinden büyük olmalıdır. Beklenen değer: ANAHTAR1=DEĞER1 ANAHTAR2=DEĞER2 ... , kullanılabilir KEY'ler şunlardır: başlangıç, son. Saat biçimi 2020-05-01T00:00:00 şeklindedir.

--schedule-status

Dışarı aktarma zamanlamasının durumu. Etkin değilse, dışarı aktarmanın zamanlanmış yürütmesi duraklatılır.

kabul edilen değerler: Active, Inactive
varsayılan değer: Inactive
--storage-directory

Dışarı aktarmaları depolamak için depolama kapsayıcısında kök dizin.

--time-period

Sorgu için veri çekme süresi vardır. Beklenen değer: from=TIMESTAMP1 to=TIMESTAMP2. Zaman damgası biçimi 2020-05-01T00:00:00 şeklindedir. TIMESTAMP1'in gelecekte olması ve TIMESTAMP2'nin TIMESTAMP1'den büyük olması gerekir.

--type

Sorgunun türü.

kabul edilen değerler: ActualCost, AmortizedCost, Usage
varsayılan değer: Usage

az costmanagement export delete

Dışarı aktarmayı silme işlemi.

az costmanagement export delete --name
                                --scope
                                [--yes]

Örnekler

ManagementGroup kapsamı için dışarı aktarmayı silme

az costmanagement export delete --name "TestExport" --scope "providers/Microsoft.Management/managementGroups/TestMG"

ResourceGroup kapsamı için dışarı aktarmayı silme

az costmanagement export delete --name "TestExport" --scope "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"

Abonelik kapsamı için dışarı aktarmayı silme

az costmanagement export delete --name "TestExport" --scope "subscriptions/00000000-0000-0000-0000-000000000000"

Gerekli Parametreler

--name

Dışarı Aktarma Adı.

--scope

Sorgu ve dışarı aktarma işlemleriyle ilişkili kapsam. Buna abonelik kapsamı için '/subscriptions/{subscriptionId}/', resourceGroup kapsamı için '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', Yönetim Grubu kapsamı için '/providers/Microsoft.Management/managementGroups/{managementGroupId} dahildir.

İsteğe Bağlı Parametreler

--yes -y

Onay isteminde bulunmayın.

az costmanagement export list

Verilen kapsamdaki tüm dışarı aktarmaları listeleme işlemi.

az costmanagement export list --scope

Örnekler

ManagementGroup kapsamındaki dışarı aktarmaları listeleme

az costmanagement export list --scope "providers/Microsoft.Management/managementGroups/TestMG"

ResourceGroup kapsamındaki dışarı aktarmaları listeleme

az costmanagement export list --scope "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"

Abonelik kapsamındaki dışarı aktarmaları listeleme

az costmanagement export list --scope "subscriptions/00000000-0000-0000-0000-000000000000"

Gerekli Parametreler

--scope

Sorgu ve dışarı aktarma işlemleriyle ilişkili kapsam. Buna abonelik kapsamı için '/subscriptions/{subscriptionId}/', resourceGroup kapsamı için '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', Yönetim Grubu kapsamı için '/providers/Microsoft.Management/managementGroups/{managementGroupId} dahildir.

az costmanagement export show

Dışarı aktarma adına göre tanımlanan kapsam için dışarı aktarmanın yürütme geçmişini alma işlemi.

az costmanagement export show --name
                              --scope

Örnekler

ManagementGroup kapsamında dışarı aktarmayı gösterme

az costmanagement export show --name "TestExport" --scope "providers/Microsoft.Management/managementGroups/TestMG"

ResourceGroup kapsamında dışarı aktarmayı gösterme

az costmanagement export show --name "TestExport" --scope "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"

Abonelik kapsamında dışarı aktarmayı gösterme

az costmanagement export show --name "TestExport" --scope "subscriptions/00000000-0000-0000-0000-000000000000"

Gerekli Parametreler

--name

Dışarı Aktarma Adı.

--scope

Sorgu ve dışarı aktarma işlemleriyle ilişkili kapsam. Buna abonelik kapsamı için '/subscriptions/{subscriptionId}/', resourceGroup kapsamı için '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', Yönetim Grubu kapsamı için '/providers/Microsoft.Management/managementGroups/{managementGroupId} dahildir.

az costmanagement export update

Dışarı aktarmayı güncelleştirme işlemi.

az costmanagement export update --name
                                --scope
                                [--dataset-configuration]
                                [--recurrence {Annually, Daily, Monthly, Weekly}]
                                [--recurrence-period]
                                [--schedule-status {Active, Inactive}]
                                [--storage-account-id]
                                [--storage-container]
                                [--storage-directory]
                                [--time-period]
                                [--timeframe {BillingMonthToDate, Custom, MonthToDate, TheLastBillingMonth, TheLastMonth, WeekToDate}]

Örnekler

ManagementGroup kapsamında dışarı aktarmayı güncelleştirme

az costmanagement export update --name "TestExport" --dataset-configuration columns="Date" columns="MeterId" columns="InstanceId" columns="ResourceLocation" columns="PreTaxCost" --timeframe "MonthToDate" --storage-container="exports" --storage-account-id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182" --storage-directory="ad-hoc" --recurrence "Weekly" --recurrence-period from="2018-06-01T00:00:00Z" to="2018-10-31T00:00:00Z" --schedule-status "Active" --scope "providers/Microsoft.Management/managementGroups/TestMG"

ResourceGroup kapsamında dışarı aktarmayı güncelleştirme

az costmanagement export update --name "TestExport" --dataset-configuration columns="Date" columns="MeterId" columns="InstanceId" columns="ResourceLocation" columns="PreTaxCost" --timeframe "MonthToDate" --storage-container="exports" --storage-account-id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182" --storage-directory="ad-hoc" --recurrence "Weekly" --recurrence-period from="2018-06-01T00:00:00Z" to="2018-10-31T00:00:00Z" --schedule-status "Active" --scope "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG"

Abonelik kapsamında dışarı aktarmayı güncelleştirme

az costmanagement export update --name "TestExport" --dataset-configuration columns="Date" columns="MeterId" columns="InstanceId" columns="ResourceLocation" columns="PreTaxCost" --timeframe "MonthToDate" --storage-container="exports" --storage-account-id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182" --storage-directory="ad-hoc" --recurrence "Weekly" --recurrence-period from="2018-06-01T00:00:00Z" to="2018-10-31T00:00:00Z" --schedule-status "Active" --scope "subscriptions/00000000-0000-0000-0000-000000000000"

Gerekli Parametreler

--name

Dışarı Aktarma Adı.

--scope

Sorgu ve dışarı aktarma işlemleriyle ilişkili kapsam. Buna abonelik kapsamı için '/subscriptions/{subscriptionId}/', resourceGroup kapsamı için '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}', Yönetim Grubu kapsamı için '/providers/Microsoft.Management/managementGroups/{managementGroupId} dahildir.

İsteğe Bağlı Parametreler

--dataset-configuration

Dışarı aktarmadaki veriler için yapılandırma bilgilerine sahiptir. Toplama ve gruplandırma sağlanırsa yapılandırma yoksayılır. Beklenen değer: columns=xx.

--recurrence

Zamanlama yinelenme.

kabul edilen değerler: Annually, Daily, Monthly, Weekly
--recurrence-period

Yinelenmenin başlangıç ve bitiş tarihidir. Başlangıç tarihi gelecekte olmalıdır. Varsa, bitiş tarihi başlangıç tarihinden büyük olmalıdır. Beklenen değer: ANAHTAR1=DEĞER1 ANAHTAR2=DEĞER2 ... , kullanılabilir KEY'ler şunlardır: başlangıç, son. Saat biçimi 2020-05-01T00:00:00 şeklindedir.

--schedule-status

Dışarı aktarma zamanlamasının durumu. Etkin değilse, dışarı aktarmanın zamanlanmış yürütmesi duraklatılır.

kabul edilen değerler: Active, Inactive
--storage-account-id

Dışarı aktarmaları depolamak için depolama hesabının kimliği.

--storage-container

Dışarı aktarmaları teslim etmek için depolama kapsayıcısı.

--storage-directory

Dışarı aktarmaları depolamak için depolama kapsayıcısında kök dizin.

--time-period

Sorgu için veri çekme süresi vardır. Beklenen değer: from=TIMESTAMP1 to=TIMESTAMP2. Zaman damgası biçimi 2020-05-01T00:00:00 şeklindedir. TIMESTAMP1'in gelecekte olması ve TIMESTAMP2'nin TIMESTAMP1'den büyük olması gerekir.

--timeframe

Sorgu için veri çekme zaman çerçevesi. Özelse, belirli bir zaman aralığı sağlanmalıdır.

kabul edilen değerler: BillingMonthToDate, Custom, MonthToDate, TheLastBillingMonth, TheLastMonth, WeekToDate