It is possible to get the Azure Subscription offer, or offerId with PowerShell? The 2019 Stack Overflow Developer Survey Results Are InHow to get Azure offer details using the API?How do you get the OfferDurableId for an Azure subscription?Determine installed PowerShell versionPowerShell says “execution of scripts is disabled on this system.”How do you comment out code in PowerShell?How to get the azure account tenant Id?Get azure coadministrators of a subscription with powershellAzure powershell Select-AzureSubscription - error: the subscription name doesn't existAzure soft limits and ARM resourcesIs it possible to use wildcard App Service Certificate across subscriptions?Unable to see subscriptions with Get-AzureSubscription via Azure PowerShellSetting 'ForwardTo' property on Azure Service Bus Topic Subscription through Powershell
What is the use of option -o in the useradd command?
Does duplicating a spell with Wish count as casting that spell?
What effect does the “loading” weapon property have in practical terms?
Is it possible for the two major parties in the UK to form a coalition with each other instead of a much smaller party?
What does "rabbited" mean/imply in this sentence?
Limit the amount of RAM Mathematica may access?
Patience, young "Padovan"
Inflated grade on resume at previous job, might former employer tell new employer?
What is the motivation for a law requiring 2 parties to consent for recording a conversation
How come people say “Would of”?
If the Wish spell is used to duplicate the effect of Simulacrum, are existing duplicates destroyed?
Is bread bad for ducks?
What are my rights when I have a Sparpreis ticket but can't board an overcrowded train?
Is domain driven design an anti-SQL pattern?
How was Skylab's orbit inclination chosen?
How can I create a character who can assume the widest possible range of creature sizes?
What could be the right powersource for 15 seconds lifespan disposable giant chainsaw?
Why isn't airport relocation done gradually?
Realistic Alternatives to Dust: What Else Could Feed a Plankton Bloom?
Why did Howard Stark use all the Vibranium they had on a prototype shield?
Inversion Puzzle
Why is my p-value correlated to difference between means in two sample tests?
Geography at the pixel level
Inline version of a function returns different value than non-inline version
It is possible to get the Azure Subscription offer, or offerId with PowerShell?
The 2019 Stack Overflow Developer Survey Results Are InHow to get Azure offer details using the API?How do you get the OfferDurableId for an Azure subscription?Determine installed PowerShell versionPowerShell says “execution of scripts is disabled on this system.”How do you comment out code in PowerShell?How to get the azure account tenant Id?Get azure coadministrators of a subscription with powershellAzure powershell Select-AzureSubscription - error: the subscription name doesn't existAzure soft limits and ARM resourcesIs it possible to use wildcard App Service Certificate across subscriptions?Unable to see subscriptions with Get-AzureSubscription via Azure PowerShellSetting 'ForwardTo' property on Azure Service Bus Topic Subscription through Powershell
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Is it possible to get Azure Subscription Offer, or offerId, using Powershell? Through the portal this would be Subscription -> properties -> Offer or offer ID?
I've been searching for a while, but I can't see it.
Thanks,
azure powershell subscription
add a comment |
Is it possible to get Azure Subscription Offer, or offerId, using Powershell? Through the portal this would be Subscription -> properties -> Offer or offer ID?
I've been searching for a while, but I can't see it.
Thanks,
azure powershell subscription
Could you include details such as, "I searched X Y and Z modules" or "I could not identify the web request at X/Y"?
– Jacob Colvin
Oct 1 '18 at 15:08
I did web searches with no luck. I attempted to look into subscriptions, subscription context the AzureRM.Billing module had some promis, but didn't work out. I looked into the equivalent rest API (billing) and the offerID is there but is more tied to the resource, than the subscription. Does that help?
– Gene Laisne
Oct 1 '18 at 15:47
add a comment |
Is it possible to get Azure Subscription Offer, or offerId, using Powershell? Through the portal this would be Subscription -> properties -> Offer or offer ID?
I've been searching for a while, but I can't see it.
Thanks,
azure powershell subscription
Is it possible to get Azure Subscription Offer, or offerId, using Powershell? Through the portal this would be Subscription -> properties -> Offer or offer ID?
I've been searching for a while, but I can't see it.
Thanks,
azure powershell subscription
azure powershell subscription
asked Oct 1 '18 at 14:59
Gene LaisneGene Laisne
565
565
Could you include details such as, "I searched X Y and Z modules" or "I could not identify the web request at X/Y"?
– Jacob Colvin
Oct 1 '18 at 15:08
I did web searches with no luck. I attempted to look into subscriptions, subscription context the AzureRM.Billing module had some promis, but didn't work out. I looked into the equivalent rest API (billing) and the offerID is there but is more tied to the resource, than the subscription. Does that help?
– Gene Laisne
Oct 1 '18 at 15:47
add a comment |
Could you include details such as, "I searched X Y and Z modules" or "I could not identify the web request at X/Y"?
– Jacob Colvin
Oct 1 '18 at 15:08
I did web searches with no luck. I attempted to look into subscriptions, subscription context the AzureRM.Billing module had some promis, but didn't work out. I looked into the equivalent rest API (billing) and the offerID is there but is more tied to the resource, than the subscription. Does that help?
– Gene Laisne
Oct 1 '18 at 15:47
Could you include details such as, "I searched X Y and Z modules" or "I could not identify the web request at X/Y"?
– Jacob Colvin
Oct 1 '18 at 15:08
Could you include details such as, "I searched X Y and Z modules" or "I could not identify the web request at X/Y"?
– Jacob Colvin
Oct 1 '18 at 15:08
I did web searches with no luck. I attempted to look into subscriptions, subscription context the AzureRM.Billing module had some promis, but didn't work out. I looked into the equivalent rest API (billing) and the offerID is there but is more tied to the resource, than the subscription. Does that help?
– Gene Laisne
Oct 1 '18 at 15:47
I did web searches with no luck. I attempted to look into subscriptions, subscription context the AzureRM.Billing module had some promis, but didn't work out. I looked into the equivalent rest API (billing) and the offerID is there but is more tied to the resource, than the subscription. Does that help?
– Gene Laisne
Oct 1 '18 at 15:47
add a comment |
3 Answers
3
active
oldest
votes
Depends what do you need it for. There is no point in getting OfferTypes via PS script as you won't be creating the new subscription like this. The process is more complicated than that. Although, if you just need a list, it is available on the MS website:
https://azure.microsoft.com/en-us/support/legal/offer-details/
1
So, I have 60+ subscriptions, and we, from time to time, do M&As where the subscription should be under MSDN or Enterprise. I want to have a script which can pull the offer out of existing subscriptions so I know if I have to move them to the proper subscription.
– Gene Laisne
Oct 1 '18 at 19:57
add a comment |
Unfortunally, I don't think it is possible. I think it would be wise to find a work around solution for your problem.
And maybe you could add a request to add this functionality in the future:
https://github.com/Azure/azure-docs-powershell/blob/master/azuresmps-4.0.0/AzureRM.Profile/Get-AzureRmSubscription.md
add a comment |
There is an unofficial possibility to get the offer id which is used by the Azure Portal itself. I tested it with my subscription and it worked. It may lead to issues for specific offer ids. Please provide feedback on that.
These are the required steps:
Acquire an Bearer authentication token
- https://docs.microsoft.com/en-us/rest/api/azure/#acquire-an-access-token
Assemble a POST REST call
- URL: https://s2.billing.ext.azure.com/api/Billing/Subscription/Subscription
- Headers: Add the authorization header with your Bearer token (Authorization: Bearer ej...)
- Request Body Type: application/json
- Request Body Content:
"subscriptionId": "########-####-####-####-############"
- URL: https://s2.billing.ext.azure.com/api/Billing/Subscription/Subscription
The result looks like this:
"accountInfo":
"userRole": 6,
"billingSystemType": 2,
"isAccountAdmin": true,
"isTokenMatch": false,
"locale": "en-US",
"currency": "EUR",
"countryCode": "DE",
"accountAdminEmail": "****@****.com",
"commerceAccountId": "########-####-####-####-############",
"currencyMigrationInfo": null,
"displaySpecifiedRole": false
,
"essentials":
"offerId": "MS-AZR-0063P",
"roles":
"2": null,
"4":
"isDirectCancel": true
,
"5": null
,
"freeMetersEndDate": null,
"provisioningStatus": 1,
"hasPendingTransfer": false
I've managed to come back around to this. Unfortunately, I wasn't able to get this to work. thanks for you time anyways.
– Gene Laisne
Mar 8 at 19:50
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52593867%2fit-is-possible-to-get-the-azure-subscription-offer-or-offerid-with-powershell%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Depends what do you need it for. There is no point in getting OfferTypes via PS script as you won't be creating the new subscription like this. The process is more complicated than that. Although, if you just need a list, it is available on the MS website:
https://azure.microsoft.com/en-us/support/legal/offer-details/
1
So, I have 60+ subscriptions, and we, from time to time, do M&As where the subscription should be under MSDN or Enterprise. I want to have a script which can pull the offer out of existing subscriptions so I know if I have to move them to the proper subscription.
– Gene Laisne
Oct 1 '18 at 19:57
add a comment |
Depends what do you need it for. There is no point in getting OfferTypes via PS script as you won't be creating the new subscription like this. The process is more complicated than that. Although, if you just need a list, it is available on the MS website:
https://azure.microsoft.com/en-us/support/legal/offer-details/
1
So, I have 60+ subscriptions, and we, from time to time, do M&As where the subscription should be under MSDN or Enterprise. I want to have a script which can pull the offer out of existing subscriptions so I know if I have to move them to the proper subscription.
– Gene Laisne
Oct 1 '18 at 19:57
add a comment |
Depends what do you need it for. There is no point in getting OfferTypes via PS script as you won't be creating the new subscription like this. The process is more complicated than that. Although, if you just need a list, it is available on the MS website:
https://azure.microsoft.com/en-us/support/legal/offer-details/
Depends what do you need it for. There is no point in getting OfferTypes via PS script as you won't be creating the new subscription like this. The process is more complicated than that. Although, if you just need a list, it is available on the MS website:
https://azure.microsoft.com/en-us/support/legal/offer-details/
answered Oct 1 '18 at 19:40
John BullJohn Bull
7412
7412
1
So, I have 60+ subscriptions, and we, from time to time, do M&As where the subscription should be under MSDN or Enterprise. I want to have a script which can pull the offer out of existing subscriptions so I know if I have to move them to the proper subscription.
– Gene Laisne
Oct 1 '18 at 19:57
add a comment |
1
So, I have 60+ subscriptions, and we, from time to time, do M&As where the subscription should be under MSDN or Enterprise. I want to have a script which can pull the offer out of existing subscriptions so I know if I have to move them to the proper subscription.
– Gene Laisne
Oct 1 '18 at 19:57
1
1
So, I have 60+ subscriptions, and we, from time to time, do M&As where the subscription should be under MSDN or Enterprise. I want to have a script which can pull the offer out of existing subscriptions so I know if I have to move them to the proper subscription.
– Gene Laisne
Oct 1 '18 at 19:57
So, I have 60+ subscriptions, and we, from time to time, do M&As where the subscription should be under MSDN or Enterprise. I want to have a script which can pull the offer out of existing subscriptions so I know if I have to move them to the proper subscription.
– Gene Laisne
Oct 1 '18 at 19:57
add a comment |
Unfortunally, I don't think it is possible. I think it would be wise to find a work around solution for your problem.
And maybe you could add a request to add this functionality in the future:
https://github.com/Azure/azure-docs-powershell/blob/master/azuresmps-4.0.0/AzureRM.Profile/Get-AzureRmSubscription.md
add a comment |
Unfortunally, I don't think it is possible. I think it would be wise to find a work around solution for your problem.
And maybe you could add a request to add this functionality in the future:
https://github.com/Azure/azure-docs-powershell/blob/master/azuresmps-4.0.0/AzureRM.Profile/Get-AzureRmSubscription.md
add a comment |
Unfortunally, I don't think it is possible. I think it would be wise to find a work around solution for your problem.
And maybe you could add a request to add this functionality in the future:
https://github.com/Azure/azure-docs-powershell/blob/master/azuresmps-4.0.0/AzureRM.Profile/Get-AzureRmSubscription.md
Unfortunally, I don't think it is possible. I think it would be wise to find a work around solution for your problem.
And maybe you could add a request to add this functionality in the future:
https://github.com/Azure/azure-docs-powershell/blob/master/azuresmps-4.0.0/AzureRM.Profile/Get-AzureRmSubscription.md
answered Oct 3 '18 at 15:30
MsalvatoriMsalvatori
1717
1717
add a comment |
add a comment |
There is an unofficial possibility to get the offer id which is used by the Azure Portal itself. I tested it with my subscription and it worked. It may lead to issues for specific offer ids. Please provide feedback on that.
These are the required steps:
Acquire an Bearer authentication token
- https://docs.microsoft.com/en-us/rest/api/azure/#acquire-an-access-token
Assemble a POST REST call
- URL: https://s2.billing.ext.azure.com/api/Billing/Subscription/Subscription
- Headers: Add the authorization header with your Bearer token (Authorization: Bearer ej...)
- Request Body Type: application/json
- Request Body Content:
"subscriptionId": "########-####-####-####-############"
- URL: https://s2.billing.ext.azure.com/api/Billing/Subscription/Subscription
The result looks like this:
"accountInfo":
"userRole": 6,
"billingSystemType": 2,
"isAccountAdmin": true,
"isTokenMatch": false,
"locale": "en-US",
"currency": "EUR",
"countryCode": "DE",
"accountAdminEmail": "****@****.com",
"commerceAccountId": "########-####-####-####-############",
"currencyMigrationInfo": null,
"displaySpecifiedRole": false
,
"essentials":
"offerId": "MS-AZR-0063P",
"roles":
"2": null,
"4":
"isDirectCancel": true
,
"5": null
,
"freeMetersEndDate": null,
"provisioningStatus": 1,
"hasPendingTransfer": false
I've managed to come back around to this. Unfortunately, I wasn't able to get this to work. thanks for you time anyways.
– Gene Laisne
Mar 8 at 19:50
add a comment |
There is an unofficial possibility to get the offer id which is used by the Azure Portal itself. I tested it with my subscription and it worked. It may lead to issues for specific offer ids. Please provide feedback on that.
These are the required steps:
Acquire an Bearer authentication token
- https://docs.microsoft.com/en-us/rest/api/azure/#acquire-an-access-token
Assemble a POST REST call
- URL: https://s2.billing.ext.azure.com/api/Billing/Subscription/Subscription
- Headers: Add the authorization header with your Bearer token (Authorization: Bearer ej...)
- Request Body Type: application/json
- Request Body Content:
"subscriptionId": "########-####-####-####-############"
- URL: https://s2.billing.ext.azure.com/api/Billing/Subscription/Subscription
The result looks like this:
"accountInfo":
"userRole": 6,
"billingSystemType": 2,
"isAccountAdmin": true,
"isTokenMatch": false,
"locale": "en-US",
"currency": "EUR",
"countryCode": "DE",
"accountAdminEmail": "****@****.com",
"commerceAccountId": "########-####-####-####-############",
"currencyMigrationInfo": null,
"displaySpecifiedRole": false
,
"essentials":
"offerId": "MS-AZR-0063P",
"roles":
"2": null,
"4":
"isDirectCancel": true
,
"5": null
,
"freeMetersEndDate": null,
"provisioningStatus": 1,
"hasPendingTransfer": false
I've managed to come back around to this. Unfortunately, I wasn't able to get this to work. thanks for you time anyways.
– Gene Laisne
Mar 8 at 19:50
add a comment |
There is an unofficial possibility to get the offer id which is used by the Azure Portal itself. I tested it with my subscription and it worked. It may lead to issues for specific offer ids. Please provide feedback on that.
These are the required steps:
Acquire an Bearer authentication token
- https://docs.microsoft.com/en-us/rest/api/azure/#acquire-an-access-token
Assemble a POST REST call
- URL: https://s2.billing.ext.azure.com/api/Billing/Subscription/Subscription
- Headers: Add the authorization header with your Bearer token (Authorization: Bearer ej...)
- Request Body Type: application/json
- Request Body Content:
"subscriptionId": "########-####-####-####-############"
- URL: https://s2.billing.ext.azure.com/api/Billing/Subscription/Subscription
The result looks like this:
"accountInfo":
"userRole": 6,
"billingSystemType": 2,
"isAccountAdmin": true,
"isTokenMatch": false,
"locale": "en-US",
"currency": "EUR",
"countryCode": "DE",
"accountAdminEmail": "****@****.com",
"commerceAccountId": "########-####-####-####-############",
"currencyMigrationInfo": null,
"displaySpecifiedRole": false
,
"essentials":
"offerId": "MS-AZR-0063P",
"roles":
"2": null,
"4":
"isDirectCancel": true
,
"5": null
,
"freeMetersEndDate": null,
"provisioningStatus": 1,
"hasPendingTransfer": false
There is an unofficial possibility to get the offer id which is used by the Azure Portal itself. I tested it with my subscription and it worked. It may lead to issues for specific offer ids. Please provide feedback on that.
These are the required steps:
Acquire an Bearer authentication token
- https://docs.microsoft.com/en-us/rest/api/azure/#acquire-an-access-token
Assemble a POST REST call
- URL: https://s2.billing.ext.azure.com/api/Billing/Subscription/Subscription
- Headers: Add the authorization header with your Bearer token (Authorization: Bearer ej...)
- Request Body Type: application/json
- Request Body Content:
"subscriptionId": "########-####-####-####-############"
- URL: https://s2.billing.ext.azure.com/api/Billing/Subscription/Subscription
The result looks like this:
"accountInfo":
"userRole": 6,
"billingSystemType": 2,
"isAccountAdmin": true,
"isTokenMatch": false,
"locale": "en-US",
"currency": "EUR",
"countryCode": "DE",
"accountAdminEmail": "****@****.com",
"commerceAccountId": "########-####-####-####-############",
"currencyMigrationInfo": null,
"displaySpecifiedRole": false
,
"essentials":
"offerId": "MS-AZR-0063P",
"roles":
"2": null,
"4":
"isDirectCancel": true
,
"5": null
,
"freeMetersEndDate": null,
"provisioningStatus": 1,
"hasPendingTransfer": false
answered Jan 23 at 9:33
p.teilmeierp.teilmeier
1
1
I've managed to come back around to this. Unfortunately, I wasn't able to get this to work. thanks for you time anyways.
– Gene Laisne
Mar 8 at 19:50
add a comment |
I've managed to come back around to this. Unfortunately, I wasn't able to get this to work. thanks for you time anyways.
– Gene Laisne
Mar 8 at 19:50
I've managed to come back around to this. Unfortunately, I wasn't able to get this to work. thanks for you time anyways.
– Gene Laisne
Mar 8 at 19:50
I've managed to come back around to this. Unfortunately, I wasn't able to get this to work. thanks for you time anyways.
– Gene Laisne
Mar 8 at 19:50
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52593867%2fit-is-possible-to-get-the-azure-subscription-offer-or-offerid-with-powershell%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Could you include details such as, "I searched X Y and Z modules" or "I could not identify the web request at X/Y"?
– Jacob Colvin
Oct 1 '18 at 15:08
I did web searches with no luck. I attempted to look into subscriptions, subscription context the AzureRM.Billing module had some promis, but didn't work out. I looked into the equivalent rest API (billing) and the offerID is there but is more tied to the resource, than the subscription. Does that help?
– Gene Laisne
Oct 1 '18 at 15:47