Skip to main content

departments

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

Overview

Namedepartments
TypeResource
Idazure.billing.departments

Fields

NameDatatypeDescription
idtextfield from the properties object
billingAccountNametextfield from the properties object
cost_centertextfield from the properties object
departmentNametextfield from the properties object
display_nametextfield from the properties object
statustextfield 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 < > % & \ ? /

Methods

NameAccessible byRequired ParamsDescription
getSELECTbillingAccountName, departmentNameGets a department by ID. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
list_by_billing_accountSELECTbillingAccountNameLists the departments that a user has access to. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

SELECT examples

Lists the departments that a user has access to. The operation is supported only for billing accounts with agreement type Enterprise Agreement.

SELECT
id,
billingAccountName,
cost_center,
departmentName,
display_name,
status,
tags
FROM azure.billing.vw_departments
WHERE billingAccountName = '{{ billingAccountName }}';