policies
Creates, updates, deletes, gets or lists a policies
resource.
Overview
Name | policies |
Type | Resource |
Id | azure.billing.policies |
Fields
- vw_policies
- policies
Name | Datatype | Description |
---|---|---|
billingAccountName | text | field from the properties object |
billingProfileName | text | field from the properties object |
customerName | text | field from the properties object |
policies | text | field from the properties object |
policyName | text | field from the properties object |
provisioning_state | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Dictionary 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_charges | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | A policy at customer scope. |
tags | object | Dictionary 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 < > % & \ ? / |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get_by_billing_account | SELECT | billingAccountName | Get the policies for a billing account of Enterprise Agreement type. |
get_by_billing_profile | SELECT | billingAccountName, billingProfileName | Lists the policies for a billing profile. This operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
get_by_customer | SELECT | billingAccountName, billingProfileName, customerName, policyName | Lists the policies for a customer. This operation is supported only for billing accounts with agreement type Microsoft Partner Agreement. |
get_by_customer_at_billing_account | SELECT | billingAccountName, customerName | Lists 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_subscription | SELECT | subscriptionId | 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
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.
- vw_policies
- policies
SELECT
billingAccountName,
billingProfileName,
customerName,
policies,
policyName,
provisioning_state,
subscriptionId,
tags,
view_charges
FROM azure.billing.vw_policies
WHERE subscriptionId = '{{ subscriptionId }}';
SELECT
properties,
tags
FROM azure.billing.policies
WHERE subscriptionId = '{{ subscriptionId }}';