Skip to main content

policies

Creates, updates, deletes, gets or lists a policies resource.

Overview

Namepolicies
TypeResource
Idazure.billing.policies

Fields

NameDatatypeDescription
billingAccountNametextfield from the properties object
billingProfileNametextfield from the properties object
customerNametextfield from the properties object
policiestextfield from the properties object
policyNametextfield from the properties object
provisioning_statetextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextDictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /
view_chargestextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
get_by_billing_accountSELECTbillingAccountNameGet the policies for a billing account of Enterprise Agreement type.
get_by_billing_profileSELECTbillingAccountName, billingProfileNameLists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
get_by_customerSELECTbillingAccountName, billingProfileName, customerName, policyNameLists the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
get_by_customer_at_billing_accountSELECTbillingAccountName, customerNameLists the policies for a customer at billing account scope. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
get_by_subscriptionSELECTsubscriptionIdLists the policies that are managed by the Billing Admin for the defined subscriptions. This is supported for Microsoft Online Services Program, Microsoft Customer Agreement and Microsoft Partner Agreement.

SELECT examples

Lists the policies that are managed by the Billing Admin for the defined subscriptions. This is supported for Microsoft Online Services Program, Microsoft Customer Agreement and Microsoft Partner Agreement.

SELECT
billingAccountName,
billingProfileName,
customerName,
policies,
policyName,
provisioning_state,
subscriptionId,
tags,
view_charges
FROM azure.billing.vw_policies
WHERE subscriptionId = '{{ subscriptionId }}';