---
title: "GET /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default"
method: GET
path: "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default"
tags: ["Policies"]
---

# GET /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default

`GET /providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/policies/default`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Lists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

## Path parameters

- `billingAccountName` string, required
- `billingProfileName` string, required

## Query parameters

- `api-version` string, required

## Response `200`

OK. The request has succeeded.

- Policy: A policy.
  - `id` string: Resource Id.
  - `name` string: Resource name.
  - `type` string: Resource type.
  - `properties` PolicyProperties: The properties of a policy.
    - `marketplacePurchases` 'AllAllowed' | 'OnlyFreeAllowed' | 'NotAllowed': The policy that controls whether Azure marketplace purchases are allowed for a billing profile.
    - `reservationPurchases` 'Allowed' | 'NotAllowed': The policy that controls whether Azure reservation purchases are allowed for a billing profile.
    - `viewCharges` 'Allowed' | 'NotAllowed': The policy that controls whether users with Azure RBAC access to a subscription can view its charges.

## Other responses

- `default`: Error response describing why the operation failed.

## Changes

- **2019-08-14** (2019-10-01-preview) `4ff6e8983572`: 1 info
  - api operation id `Policies_GetByBillingProfileName` removed and replaced with `Policies_GetByBillingProfile`

[Operation history](https://skmtc.dev/azure/apis/billingmanagementclient/changes/providers/Microsoft.Billing/billingAccounts/:billingAccountName/billingProfiles/:billingProfileName/policies/default/get.md)

---

[API](https://skmtc.dev/azure/apis/billingmanagementclient.md) - [All operations](https://skmtc.dev/azure/apis/billingmanagementclient/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/billingmanagementclient/revisions/481e7355ac16?raw)
