Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error on deployment of market place image #1840

Closed
salmanbukhari opened this issue May 16, 2018 · 13 comments
Closed

Getting error on deployment of market place image #1840

salmanbukhari opened this issue May 16, 2018 · 13 comments
Assignees
Labels
Compute customer-reported Issues that are reported by GitHub users external to the Azure organization.

Comments

@salmanbukhari
Copy link

salmanbukhari commented May 16, 2018

I am trying to deploy "SQL Server 2014 SP2 Enterprise on Windows Server 2012 R2" by Microsoft. There is no option to Enable Programmatically Deployment below the Create button so I assume that it will be enabled by default for this image. I got the SKU, OFFER, PUBLISHER, and VERSION from the automation script.

file

But when I try to deploy a VM using this image I get error .

compute.VirtualMachinesClient#CreateOrUpdate: Failure sending request: StatusCode=400 -- Original Error: Code="ResourcePurchaseValidationFailed" Message="User failed validation to purchase resources. Error message: 'Offer with PublisherId: MicrosoftSQLServer and OfferId: SQL2014SP2-WS2012R2 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.'"

I added OFFER and PLAN structs in the VM. I was able to run it using portal. Can someone help me?

@jhendrixMSFT
Copy link
Member

@jaredmoo is this something you can help with?

@anilkyelam
Copy link

anilkyelam commented May 30, 2018

Hi @salmanbukhari , could you tell us which region you are using to create the VM? It would also help if you can provide the exact template you are using. Also, can you confirm whether you are able to create a VM with the same image (SQL Server 2014 SP2 Enterprise on Windows Server 2012 R2) from Azure Portal and it's just failing through APIs?

@salmanbukhari
Copy link
Author

salmanbukhari commented May 30, 2018

I was creating the VM in us east and yes I was able to create the VM using the portal.

@anilkyelam
Copy link

This doesn't seem like a valid location in public azure. Can you double-check if this is the exact name of the region you were using in Portal. We have a region 'USGov Virginia' but that is only availalbe on Azure US gov cloud.

@salmanbukhari
Copy link
Author

I am sorry I meant eastus.

@jhendrixMSFT
Copy link
Member

@salmanbukhari do you have a small repro that I can take a look at?

@tombuildsstuff
Copy link
Contributor

after looking into this briefly today / to provide some additional context here: it appears this particular kind of VM requires a VM Extension to be installed for the SQL Server aspects to be fully configured)

@salmanbukhari
Copy link
Author

@tombuildsstuff I know that but I was just thinking that if that is the case then the error should be different. I will try using these parameters as well. Thanks

@siddthota
Copy link

Are you using Disk size as 127GB minimum? and also Managed disk expects it to be 1023GB.

In your case based on your error, I see your terraform is not able to recognize the image. I remember getting the same error earlier, but l again entered my subscription, service principal details and logged back onto Azure and it worked fine. I feel at times the caching can be an issue. Can you check how your plan looks like?

@siddthota
Copy link

@salmanbukhari Did it work for you?

@jhendrixMSFT
Copy link
Member

Hello @salmanbukhari any update?

@siddthota
Copy link

@jhendrixMSFT Hi, I'm working on similar item, My Terraform script is spinning up the vm, but not the SQL Config options.

Please do let me know if I need to add anything to make it work - hashicorp/terraform-provider-azurerm#1325

Thanks!

@jhendrixMSFT
Copy link
Member

Please reopen if this has not been resolved.

@ghost ghost removed the in progress label Jun 21, 2018
@RickWinter RickWinter added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Jul 12, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Apr 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Compute customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

No branches or pull requests

7 participants