Subscription ID - Can we get it added as a distinct value?

In recent dev work on gathering data via the API, I found myself wanting to log the subscriptionid value, but nowhere in the API methods can I seem to find it as an output item.    I can extrapolate it from countless other queries, like host pools, workspaces, etc - but I have to manipulate a string to get it out.   

I do recognize that NMM now supports multiple azure subscriptions, and while that is rare in my case, that might complicate this - but it feels like it should already be there somewhere, even if it is its own method.   Maybe something that spits out all of the existing subscriptions associated to an account under NMM.

Icing on the cake if you add an add method, but I'm focused on reporting at the moment, not necessarily manipulating.   Others may feel differently. 

0

Comments (1 comment)

0
Avatar
John Tokash

With a fresh set of eyes and Monday morning coffee - I found it as a distinct value (no stripping away unnecessary string parts) under - https://nmm.azureatwork.com/rest-api/v1/accounts/<accountid>/environment-variables

So with that said, I'm curious how this would respond in an environment with more than one subscription?   Anyone have one and willing to share, or know the answer already?

Please sign in to leave a comment.