azure-sdk-for-go: VMMarketplaceInvalidInput using a marketplace image
👋 Hi there! Im running into an issue, I have googled, looked all the examples, etc… but I might have overlooked how to setup this. Any help will be truly appreciated
Bug Report
Error: cannot create vm: Code="VMMarketplaceInvalidInput" Message="Creating a virtual machine from Marketplace image or a custom image sourced from a Marketplace image requires Plan information in the request. VM: '/subscriptions/cee76754-ef49-49f7-b371-f6841fa82182/resourceGroups/iterative-haNQPkbDM/providers/Microsoft.Compute/virtualMachines/iterative-haNQPkbDM'."
"github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2019-07-01/compute"
"github.com/Azure/azure-sdk-for-go/services/network/mgmt/2019-11-01/network"
"github.com/Azure/azure-sdk-for-go/services/resources/mgmt/2020-06-01/resources"
When trying to setup a marketplace image
compute.VirtualMachine{
Location: to.StringPtr(region),
VirtualMachineProperties: &compute.VirtualMachineProperties{
HardwareProfile: &compute.HardwareProfile{
VMSize: compute.VirtualMachineSizeTypes(instanceType),
},
StorageProfile: &compute.StorageProfile{
ImageReference: &compute.ImageReference{
Publisher: to.StringPtr(publisher),
Offer: to.StringPtr(offer),
Sku: to.StringPtr(sku),
Version: to.StringPtr(version),
seems that Im missing something regarding to a plan.
The image that I want to setup is nvidia:tensorflow_from_nvidia:tensorflow_nvidia_20_03_1:20.03.1
I am able to create my vm with current code with the image Canonical:UbuntuServer:18.04-LTS:latest without any issues.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 16 (3 by maintainers)
Hey @DavidGOrtega sorry things do not work, but this is not something wrong with the SDK itself. As far as I know, they did not provide a function or something in the SDK to let you could accept the agreement - you will have to do it on the portal and then go back to your code. But I do not know much about the detail of this. Therefore I have tagged this issue so that someone from the service team will take a look at this issue and then give you some official answer/solution on this issue.