unable to Accept AzureRmMarketplaceTerms powershell
I've got a strange one here, well I think it's strange. I've been trying to do a deployment using powershell calling some json files, however i get the following error:
Get-AzureRmMarketplaceTerms : Offer with PublisherId: {0} and OfferId:
{1} not found. If this offer has been created recently, please allow
upto 30 minutes for this offer to be available for Purchase. If error
persists, contact support.
The command i run to accept the terms is the same as the one I use on the different images, which works perfectly:
Get-AzureRmMarketplaceTerms -Publisher "MicrosoftWindowsServer" -Product "WindowsServer" -Name "2012-R2-Datacenter"
| Set-AzureRmMarketplaceTerms -Accept
If I try ot run the install without accepting the terms i get the below message:
Error: Code=BadRequest; Message=Offer with PublisherId:
MicrosoftWindowsServer, OfferId: WindowsServer cannot be purchased due
to validation errors. See details for more information.[{"Legal terms
have not been accepted for this item on this subscription. To accept
legal terms using PowerShell, please use Get-AzureRmMarketplaceTerms
and Set-AzureRmMarketplaceTerms
API(https://go.microsoft.com/fwlink/?linkid=862451)
Any idea how I can get past this?
json azure powershell
add a comment |
I've got a strange one here, well I think it's strange. I've been trying to do a deployment using powershell calling some json files, however i get the following error:
Get-AzureRmMarketplaceTerms : Offer with PublisherId: {0} and OfferId:
{1} not found. If this offer has been created recently, please allow
upto 30 minutes for this offer to be available for Purchase. If error
persists, contact support.
The command i run to accept the terms is the same as the one I use on the different images, which works perfectly:
Get-AzureRmMarketplaceTerms -Publisher "MicrosoftWindowsServer" -Product "WindowsServer" -Name "2012-R2-Datacenter"
| Set-AzureRmMarketplaceTerms -Accept
If I try ot run the install without accepting the terms i get the below message:
Error: Code=BadRequest; Message=Offer with PublisherId:
MicrosoftWindowsServer, OfferId: WindowsServer cannot be purchased due
to validation errors. See details for more information.[{"Legal terms
have not been accepted for this item on this subscription. To accept
legal terms using PowerShell, please use Get-AzureRmMarketplaceTerms
and Set-AzureRmMarketplaceTerms
API(https://go.microsoft.com/fwlink/?linkid=862451)
Any idea how I can get past this?
json azure powershell
Any more question?
– Charles Xu
Jan 22 at 10:33
add a comment |
I've got a strange one here, well I think it's strange. I've been trying to do a deployment using powershell calling some json files, however i get the following error:
Get-AzureRmMarketplaceTerms : Offer with PublisherId: {0} and OfferId:
{1} not found. If this offer has been created recently, please allow
upto 30 minutes for this offer to be available for Purchase. If error
persists, contact support.
The command i run to accept the terms is the same as the one I use on the different images, which works perfectly:
Get-AzureRmMarketplaceTerms -Publisher "MicrosoftWindowsServer" -Product "WindowsServer" -Name "2012-R2-Datacenter"
| Set-AzureRmMarketplaceTerms -Accept
If I try ot run the install without accepting the terms i get the below message:
Error: Code=BadRequest; Message=Offer with PublisherId:
MicrosoftWindowsServer, OfferId: WindowsServer cannot be purchased due
to validation errors. See details for more information.[{"Legal terms
have not been accepted for this item on this subscription. To accept
legal terms using PowerShell, please use Get-AzureRmMarketplaceTerms
and Set-AzureRmMarketplaceTerms
API(https://go.microsoft.com/fwlink/?linkid=862451)
Any idea how I can get past this?
json azure powershell
I've got a strange one here, well I think it's strange. I've been trying to do a deployment using powershell calling some json files, however i get the following error:
Get-AzureRmMarketplaceTerms : Offer with PublisherId: {0} and OfferId:
{1} not found. If this offer has been created recently, please allow
upto 30 minutes for this offer to be available for Purchase. If error
persists, contact support.
The command i run to accept the terms is the same as the one I use on the different images, which works perfectly:
Get-AzureRmMarketplaceTerms -Publisher "MicrosoftWindowsServer" -Product "WindowsServer" -Name "2012-R2-Datacenter"
| Set-AzureRmMarketplaceTerms -Accept
If I try ot run the install without accepting the terms i get the below message:
Error: Code=BadRequest; Message=Offer with PublisherId:
MicrosoftWindowsServer, OfferId: WindowsServer cannot be purchased due
to validation errors. See details for more information.[{"Legal terms
have not been accepted for this item on this subscription. To accept
legal terms using PowerShell, please use Get-AzureRmMarketplaceTerms
and Set-AzureRmMarketplaceTerms
API(https://go.microsoft.com/fwlink/?linkid=862451)
Any idea how I can get past this?
json azure powershell
json azure powershell
edited Jan 20 at 6:55
4c74356b41
27.7k42053
27.7k42053
asked Jan 20 at 0:20
Norrin RadNorrin Rad
305214
305214
Any more question?
– Charles Xu
Jan 22 at 10:33
add a comment |
Any more question?
– Charles Xu
Jan 22 at 10:33
Any more question?
– Charles Xu
Jan 22 at 10:33
Any more question?
– Charles Xu
Jan 22 at 10:33
add a comment |
1 Answer
1
active
oldest
votes
When you create Azure resource through deployment using PowerShell you do not accept the terms that while accepting them in the Azure Portal. Then you will get the error you showed.
The PowerShell command that you showed:
Get-AzureRmMarketplaceTerms -Publisher "MicrosoftWindowsServer" -Product "WindowsServer" -Name "2012-R2-Datacenter" | Set-AzureRmMarketplaceTerms -Accept
It's a way to accept the terms when you execute the Azure deployment. For more details, see Accepting Azure Marketplace terms in PowerShell. Good luck!
what kind of BS is that? you need to accept marketplace term before deploying either way. why do you copy paste his cmd?
– 4c74356b41
Jan 20 at 6:54
I said his command worked is a way to accept the terms to execute the deployment.
– Charles Xu
Jan 20 at 6:57
no, you need to execute this (once) before you deploy either way. it doesnt have to be a deployment.
– 4c74356b41
Jan 20 at 7:04
Hi I had to change the api to a neeer one, from 2017-03-30 to 2018-01-07
– Norrin Rad
Jan 23 at 18:25
Do you still use PowerShell?
– Charles Xu
Jan 24 at 0:48
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%2f54272529%2funable-to-accept-azurermmarketplaceterms-powershell%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
When you create Azure resource through deployment using PowerShell you do not accept the terms that while accepting them in the Azure Portal. Then you will get the error you showed.
The PowerShell command that you showed:
Get-AzureRmMarketplaceTerms -Publisher "MicrosoftWindowsServer" -Product "WindowsServer" -Name "2012-R2-Datacenter" | Set-AzureRmMarketplaceTerms -Accept
It's a way to accept the terms when you execute the Azure deployment. For more details, see Accepting Azure Marketplace terms in PowerShell. Good luck!
what kind of BS is that? you need to accept marketplace term before deploying either way. why do you copy paste his cmd?
– 4c74356b41
Jan 20 at 6:54
I said his command worked is a way to accept the terms to execute the deployment.
– Charles Xu
Jan 20 at 6:57
no, you need to execute this (once) before you deploy either way. it doesnt have to be a deployment.
– 4c74356b41
Jan 20 at 7:04
Hi I had to change the api to a neeer one, from 2017-03-30 to 2018-01-07
– Norrin Rad
Jan 23 at 18:25
Do you still use PowerShell?
– Charles Xu
Jan 24 at 0:48
add a comment |
When you create Azure resource through deployment using PowerShell you do not accept the terms that while accepting them in the Azure Portal. Then you will get the error you showed.
The PowerShell command that you showed:
Get-AzureRmMarketplaceTerms -Publisher "MicrosoftWindowsServer" -Product "WindowsServer" -Name "2012-R2-Datacenter" | Set-AzureRmMarketplaceTerms -Accept
It's a way to accept the terms when you execute the Azure deployment. For more details, see Accepting Azure Marketplace terms in PowerShell. Good luck!
what kind of BS is that? you need to accept marketplace term before deploying either way. why do you copy paste his cmd?
– 4c74356b41
Jan 20 at 6:54
I said his command worked is a way to accept the terms to execute the deployment.
– Charles Xu
Jan 20 at 6:57
no, you need to execute this (once) before you deploy either way. it doesnt have to be a deployment.
– 4c74356b41
Jan 20 at 7:04
Hi I had to change the api to a neeer one, from 2017-03-30 to 2018-01-07
– Norrin Rad
Jan 23 at 18:25
Do you still use PowerShell?
– Charles Xu
Jan 24 at 0:48
add a comment |
When you create Azure resource through deployment using PowerShell you do not accept the terms that while accepting them in the Azure Portal. Then you will get the error you showed.
The PowerShell command that you showed:
Get-AzureRmMarketplaceTerms -Publisher "MicrosoftWindowsServer" -Product "WindowsServer" -Name "2012-R2-Datacenter" | Set-AzureRmMarketplaceTerms -Accept
It's a way to accept the terms when you execute the Azure deployment. For more details, see Accepting Azure Marketplace terms in PowerShell. Good luck!
When you create Azure resource through deployment using PowerShell you do not accept the terms that while accepting them in the Azure Portal. Then you will get the error you showed.
The PowerShell command that you showed:
Get-AzureRmMarketplaceTerms -Publisher "MicrosoftWindowsServer" -Product "WindowsServer" -Name "2012-R2-Datacenter" | Set-AzureRmMarketplaceTerms -Accept
It's a way to accept the terms when you execute the Azure deployment. For more details, see Accepting Azure Marketplace terms in PowerShell. Good luck!
answered Jan 20 at 4:34
Charles XuCharles Xu
4,0581210
4,0581210
what kind of BS is that? you need to accept marketplace term before deploying either way. why do you copy paste his cmd?
– 4c74356b41
Jan 20 at 6:54
I said his command worked is a way to accept the terms to execute the deployment.
– Charles Xu
Jan 20 at 6:57
no, you need to execute this (once) before you deploy either way. it doesnt have to be a deployment.
– 4c74356b41
Jan 20 at 7:04
Hi I had to change the api to a neeer one, from 2017-03-30 to 2018-01-07
– Norrin Rad
Jan 23 at 18:25
Do you still use PowerShell?
– Charles Xu
Jan 24 at 0:48
add a comment |
what kind of BS is that? you need to accept marketplace term before deploying either way. why do you copy paste his cmd?
– 4c74356b41
Jan 20 at 6:54
I said his command worked is a way to accept the terms to execute the deployment.
– Charles Xu
Jan 20 at 6:57
no, you need to execute this (once) before you deploy either way. it doesnt have to be a deployment.
– 4c74356b41
Jan 20 at 7:04
Hi I had to change the api to a neeer one, from 2017-03-30 to 2018-01-07
– Norrin Rad
Jan 23 at 18:25
Do you still use PowerShell?
– Charles Xu
Jan 24 at 0:48
what kind of BS is that? you need to accept marketplace term before deploying either way. why do you copy paste his cmd?
– 4c74356b41
Jan 20 at 6:54
what kind of BS is that? you need to accept marketplace term before deploying either way. why do you copy paste his cmd?
– 4c74356b41
Jan 20 at 6:54
I said his command worked is a way to accept the terms to execute the deployment.
– Charles Xu
Jan 20 at 6:57
I said his command worked is a way to accept the terms to execute the deployment.
– Charles Xu
Jan 20 at 6:57
no, you need to execute this (once) before you deploy either way. it doesnt have to be a deployment.
– 4c74356b41
Jan 20 at 7:04
no, you need to execute this (once) before you deploy either way. it doesnt have to be a deployment.
– 4c74356b41
Jan 20 at 7:04
Hi I had to change the api to a neeer one, from 2017-03-30 to 2018-01-07
– Norrin Rad
Jan 23 at 18:25
Hi I had to change the api to a neeer one, from 2017-03-30 to 2018-01-07
– Norrin Rad
Jan 23 at 18:25
Do you still use PowerShell?
– Charles Xu
Jan 24 at 0:48
Do you still use PowerShell?
– Charles Xu
Jan 24 at 0:48
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%2f54272529%2funable-to-accept-azurermmarketplaceterms-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
Any more question?
– Charles Xu
Jan 22 at 10:33