Skip to content

Commit 07085e7

Browse files
committed
update per team feedback
1 parent 00c3e19 commit 07085e7

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

articles/cost-management-billing/manage/discover-cloud-footprint.md

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -101,24 +101,9 @@ The article provides details about all types of Azure accounts.
101101

102102
Administrators can manage trials and purchases that they made, and self-service purchases and trials made by non-administrators. For more information, see [Manage self-service purchases and trials (for admins)](/microsoft-365/commerce/subscriptions/manage-self-service-purchases-admins).
103103

104-
## How can I programmatically get a list of subscriptions and tenants for a billing account?
104+
## How can I get a list of subscriptions and tenants for a billing account?
105105

106-
You can view the tenants associated with a subscription in the Azure portal on the Subscriptions page under Cost Management + Billing.
107-
108-
There’s also a publicly available API for customers to get billing accounts that returns all associated billing subscriptions. The API also supports an optional header that returns all tenant IDs associated with the billing account. For more information, see [Billing Subscriptions - List By Billing Account](/rest/api/billing/billing-subscriptions/list-by-billing-account).
109-
110-
CLI snippet
111-
112-
```azurecli
113-
# login
114-
az login
115-
# Get BillingAccounts
116-
az rest --method get --url https://management.azure.com/providers/Microsoft.Billing/billingAccounts?api- version=2022-10-01-privatepreview
117-
118-
119-
# Get BillingSubscriptions with provisioning tenant
120-
az rest --method get --url https://management.azure.com/providers/Microsoft.Billing/billingAccounts/<BillingAcc ountId>/billingSubscriptions?api-version=2020-12-15-privatepreview --headers x-ms- service-tenant-info=true
121-
```
106+
You can view the tenants associated with a subscription in the Azure portal on the **Subscriptions** page under **Cost Management + Billing**.
122107

123108
## How can I view the Azure tenant that I am currently signed in to?
124109

0 commit comments

Comments
 (0)