# Enabling End Users To View Usage Costs And Quota Consumption For Subscriptions Across Stamps

The tenant users can view the usage cost and quota consumption for the subscriptions that they own across stamps. the following are the steps to enable the same.

{% hint style="info" %}
This feature is currently supported only for connected Azure Stack Hub integrated with single Azure Active directory tenant.
{% endhint %}

### Azure Portal

* Create new multi-tenant app E.g. Billing\_Consent\_App.

![](https://1379937765-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MWSKNjW0gznJcam3vCo%2F-MWTHinyOmoT3Rk3nEdD%2Fapp%20registration.JPG?alt=media\&token=200e86a4-7ad6-4a64-b33f-bbf43d3d634a)

* Ensure redirect URL is specified.
  * Redirect URL Format: [https://billing.cloudassert.FQDN:44303/Client/Billing/Templates/AadAuth.html](https://billing.cloudassert.fqdn:44303/Client/Billing/Templates/AadAuth.html)
* Ensure the following Authentication is given.

![](https://1379937765-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MWSKNjW0gznJcam3vCo%2F-MWTHsu9Fa4KLMjtloLC%2Fapp%20authentication.JPG?alt=media\&token=1240991c-25e1-435d-b1b1-769ee85e026d)

* Ensure the following API permissions are specified.
  * Microsoft. Graph -> Directory.Read.All, openid, profile and User.Read

![](https://1379937765-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MWSKNjW0gznJcam3vCo%2F-MWTI4dIK4kfBV3OkPpa%2Fapp%20permissions.JPG?alt=media\&token=af47facf-ddbd-4a32-8d80-aa8689b18593)

### Billing Resource Provider VM

* Update the app ID created in Azure portal using the command 'UpdateBillingConsentAppId.ps1' from the Billing resource provider VM.&#x20;
* When prompted, specify the app ID.
* The script 'UpdateBillingConsentAppId.ps1' will be available as part of the patch updates.

![](https://1379937765-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MWSKNjW0gznJcam3vCo%2F-MWTIB1wK8DIDH5OOoLZ%2Fupdate%20app%20id.JPG?alt=media\&token=9d71ba06-9df7-432e-b26c-0f003e4e96f9)

* Use the billing tool command '[Update VConnect API Credentials](https://docs.cloudassert.com/azure-stack-billing/installation/configuration/billing-tool-command#update-vconnect-api-credentials)' to update the VConnect API credentials in the Billing 'AppSettings' table.

### Azure Stack Portals

* Create a plan 'CrossStampmanagement' with billing service.
* Create an offer and attach the plan.
* Create a User Subscription (E.g. 'CrossStampManagementSubscription') for an operator account.

![](https://1379937765-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MWSKNjW0gznJcam3vCo%2F-MWTIbReGqeJmqJUkdp3%2Fcross%20stamp%20sub.png?alt=media\&token=846463e4-10ed-46ed-8e79-8612f3064e72)

* Login to tenant portal as the operator and register the billing service for CrossStampManagementSubscription.

![](https://1379937765-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MWSKNjW0gznJcam3vCo%2F-MWTIhUubm2VK6iu5ejr%2Fregister%20billing%20rp.png?alt=media\&token=c3b722ac-e129-4017-846f-fde6275adec5)

* Click Billing -> Manage Subscriptions, click master stamp and click the 'Associate' button.

![](https://1379937765-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MWSKNjW0gznJcam3vCo%2F-MWTIorBMqLyrs3xX9eU%2Fmaster%20stamp%20associate.png?alt=media\&token=70628d67-8a78-446d-931a-70ae0362916e)

* Login to the user account when prompted.

![](https://1379937765-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MWSKNjW0gznJcam3vCo%2F-MWTIt_t65R_-H4omSj_%2Flogin%20user.png?alt=media\&token=01815b47-3cff-4a58-989b-e1799410b403)

* Give consent to the Azure app if prompted.

![](https://1379937765-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MWSKNjW0gznJcam3vCo%2F-MWSlD6X8Y7qcoeYCRG4%2Fconsent.png?alt=media\&token=2f24801b-1e8e-444d-8031-facbc893ad75)

* Click the newly created subscription - 'CrossStampManagementSubscription' and click the 'Delegate Access' button.

![](https://1379937765-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MWSKNjW0gznJcam3vCo%2F-MWTJ2PUYLiYSgxktLcH%2Fdelegate%20access%20cross%20stamp%20sub.png?alt=media\&token=38ba5a90-a750-4d52-aca4-bc287a858f4e)

* From the admin portal click Billing -> settings -> Multi-Stamp Management Settings.

![](https://1379937765-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MWSKNjW0gznJcam3vCo%2F-MWTJ9lKAv8aiT8105HS%2Fadmin%20msm%20setting.png?alt=media\&token=9941c0b6-9206-4e60-9feb-fa24074414ae)

* Update the 'CrossStampManagementSubscription' subscription ID in 'Management Subscription ID' field and click on the 'Save' button.

![](https://1379937765-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LnRvmq3Z7NHbI7KSziq%2F-MWSKNjW0gznJcam3vCo%2F-MWTJEeKqvcuxvn3eeNA%2Fupdate%20management%20sub%20id.png?alt=media\&token=c083d6cc-be1c-40cc-8bd8-41a65ca4e32f)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudassert.com/azure-stack-billing/features/admin-features/enabling-end-users-to-view-usage-costs-and-quota-consumption-for-subscriptions-across-stamps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
