{
  "parameters": {
    "api-version": "2026-06-01",
    "billingAccountId": "123456",
    "exportName": "TestExport",
    "parameters": {
      "identity": {
        "type": "SystemAssigned"
      },
      "location": "centralus",
      "properties": {
        "format": "Csv",
        "compressionMode": "gzip",
        "dataOverwriteBehavior": "OverwritePreviousReport",
        "definition": {
          "type": "PriceSheet",
          "dataSet": {
            "configuration": {
              "dataVersion": "2023-05-01"
            },
            "granularity": "Daily"
          },
          "timeframe": "TheCurrentMonth"
        },
        "deliveryInfo": {
          "destination": {
            "type": "AzureBlob",
            "container": "exports",
            "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
            "rootFolderPath": "ad-hoc"
          }
        },
        "exportDescription": "This is a test export.",
        "partitionData": true,
        "schedule": {
          "recurrence": "Daily",
          "recurrencePeriod": {
            "from": "2023-06-01T00:00:00Z",
            "to": "2023-06-30T00:00:00Z"
          },
          "status": "Active"
        }
      }
    },
    "scope": "providers/Microsoft.Billing/billingAccounts/123456"
  },
  "responses": {
    "200": {
      "body": {
        "name": "TestExport",
        "type": "Microsoft.CostManagement/exports",
        "eTag": "\"00000000-0000-0000-0000-000000000000\"",
        "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport",
        "identity": {
          "type": "SystemAssigned",
          "principalId": "00000000-0000-0000-0000-000000000000",
          "tenantId": "00000000-0000-0000-0000-000000000000"
        },
        "location": "centralus",
        "properties": {
          "format": "Csv",
          "compressionMode": "gzip",
          "dataOverwriteBehavior": "OverwritePreviousReport",
          "definition": {
            "type": "PriceSheet",
            "dataSet": {
              "configuration": {
                "dataVersion": "2023-05-01"
              },
              "granularity": "Daily"
            },
            "timeframe": "TheCurrentMonth"
          },
          "deliveryInfo": {
            "destination": {
              "container": "exports",
              "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
              "rootFolderPath": "ad-hoc"
            }
          },
          "exportDescription": "This is a test export.",
          "nextRunTimeEstimate": "2023-06-01T23:00:00Z",
          "partitionData": true,
          "schedule": {
            "recurrence": "Daily",
            "recurrencePeriod": {
              "from": "2023-06-01T00:00:00Z",
              "to": "2023-06-30T00:00:00Z"
            },
            "status": "Active"
          }
        }
      }
    },
    "201": {
      "body": {
        "name": "TestExport",
        "type": "Microsoft.CostManagement/exports",
        "eTag": "\"00000000-0000-0000-0000-000000000000\"",
        "id": "/providers/Microsoft.Billing/billingAccounts/123456/providers/Microsoft.CostManagement/exports/TestExport",
        "identity": {
          "type": "SystemAssigned",
          "principalId": "00000000-0000-0000-0000-000000000000",
          "tenantId": "00000000-0000-0000-0000-000000000000"
        },
        "location": "centralus",
        "properties": {
          "format": "Csv",
          "compressionMode": "gzip",
          "dataOverwriteBehavior": "OverwritePreviousReport",
          "definition": {
            "type": "PriceSheet",
            "dataSet": {
              "configuration": {
                "dataVersion": "2023-05-01"
              },
              "granularity": "Daily"
            },
            "timeframe": "TheCurrentMonth"
          },
          "deliveryInfo": {
            "destination": {
              "container": "exports",
              "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MYDEVTESTRG/providers/Microsoft.Storage/storageAccounts/ccmeastusdiag182",
              "rootFolderPath": "ad-hoc"
            }
          },
          "exportDescription": "This is a test export.",
          "nextRunTimeEstimate": "2023-06-01T23:00:00Z",
          "partitionData": true,
          "schedule": {
            "recurrence": "Daily",
            "recurrencePeriod": {
              "from": "2023-06-01T00:00:00Z",
              "to": "2023-06-30T00:00:00Z"
            },
            "status": "Active"
          }
        }
      }
    }
  },
  "operationId": "Exports_CreateOrUpdate",
  "title": "ExportCreateOrUpdateByBillingAccountPricesheet"
}
