Unable to create Linux datascience vm using azure cli
I am trying to create a Linux data science vm using azure cli . using the below commands I was able to get the urn for the image.
azure vm image list-publishers [options]
the command to create the vm:
azure vm create -g johan -n datascience1 -Q microsoft-ads:linux-data-science-vm:linuxdsvm:1.0.2 -o johandisks187 -l westeurope -f newnic -y Linux --plan-name microsoft-ads --plan-publisher linux-data-science-vm --plan-product microsoft-ads:linux-data-science-vm:linuxdsvm:
where we have given in the plan and publisher name and the product name.
But we are failing with the below details:
error for command1.txt
we have also tried using the below command:
azure vm create -g johan -n datascience -Q microsoft-ads:linux-data-science-vm:linuxdsvm:1.0.2 -o johandisks187 -l westeurope -f newnic -y Linux info: Executing command vm create •Looking up the VM "datascience" Enter username: azure Enter password for azure: ************ Confirm password: ************ info: Using the VM Size "Standard_DS1" info: The [OS, Data] Disk or image configuration requires storage account •Looking up the storage account johandisks187 •Looking up the NIC "newnic" info: Found an existing NIC "newnic" info: Found an IP configuration with virtual network subnet id "/subscriptions/5eefe034-2471-4f40-96ea-e5e8a7dac305/resourceGroups/johan/providers/Microsoft.Network/virtualNetworks/johan-vnet/subnets/default" in the NIC "newnic" info: This is an NIC without publicIP configured info: The storage URI 'https://johandisks187.blob.core.windows.net/' will be used for boot diagnostics settings, and it can be overwritten by the parameter input of '--boot-diagnostics-storage-uri'. •Creating VM "datascience" error: Long running operation failed with error: 'Creating a virtual machine from Marketplace image requires Plan information in the request. OS disk name is cli5448053ac97934f2-os-1486473668342.'. error: Error information has been recorded to /root/.azure/azure.err error: vm create command failed
Here it shows the plan and publisher information.
error2command.txt
Could you please assist me in creatin the Linux data science vm, CLI Version: 0.9.X OS Type: Mac / Win / Linux (Ubuntu, RedHat, etc.): Linux Installation via: npm / brew / win-or-mac installer / docker / github repo
Mode: ARM / ASM ARM
Environment: AzureCloud/Azure China Cloud/US Government/Blackforest/Azure Stack
Azure cloud
Description:
azure vm show command doesn't output VM name.
Steps to reproduce:
- Run
azure vm create ... - Then run
azure vm show ...
error2command.txt error for command1.txt
Error stack trace:
Please paste the content of ~/.azure/azure.err or C:\Users\username\.azure\azure.err over here
If the issue is w.r.t authentication then please set AZURE_ADAL_LOGGING_ENABLED=1 and then run the azure login command again.
Please paste the verbose logs over here. (Make sure to delete the password before pasting the contents).
Hi Team,
any update
@huangpf @hyonholee - Can you please take a look at this issue?
@kailashms - Did you take a look at the error in errorforcommand1.txt? It says,
Error: User failed validation to purchase resources. Error message: 'Offer with PublisherId: linux-data-science-vm and OfferId: microsoft-ads:linux-data-science-vm:linuxdsvm: not found in Azure Data Market. If this offer has been created recently, please allow upto 5 minutes for this offer to be available for Purchase.'
Looks like the purchase of the offer did not go through.
Hi Amar Zavery,
Thanks for picking up this.
I did have a look at it. But i have tried after 10-60 minutes , still it was showing the same error.
Also we have tried different commands:
#azure vm create -g johan -n datascience -Q microsoft-ads:linux-data-science-vm:linuxdsvm:1.0.2 -o johandisks187 -l westeurope -f newnic -y Linux info: Executing command vm create •Looking up the VM "datascience" Enter username: azure Enter password for azure: ************ Confirm password: ************ info: Using the VM Size "Standard_DS1" info: The [OS, Data] Disk or image configuration requires storage account •Looking up the storage account johandisks187 •Looking up the NIC "newnic" info: Found an existing NIC "newnic" info: Found an IP configuration with virtual network subnet id "/subscriptions/5eefe034-2471-4f40-96ea-e5e8a7dac305/resourceGroups/johan/providers/Microsoft.Network/virtualNetworks/johan-vnet/subnets/default" in the NIC "newnic" info: This is an NIC without publicIP configured info: The storage URI 'https://johandisks187.blob.core.windows.net/' will be used for boot diagnostics settings, and it can be overwritten by the parameter input of '--boot-diagnostics-storage-uri'. •Creating VM "datascience" error: Long running operation failed with error: 'Creating a virtual machine from Marketplace image requires Plan information in the request. OS disk name is cli5448053ac97934f2-os-1486473668342.'. error: Error information has been recorded to /root/.azure/azure.err error: vm create command failed
So we are not sure whether the plan and publisher information is correct format or not.
Also when we have tried using another command and we are getting the below error:
"StorageProfile.dataDisks.lun does not have required value(s) for image specified in storage profile."
What we came to know is, when data science vm created using the portal, it attaches a data disk to it.
Let me know if you need any other information.
Regards,
Kailash B Microsoft Azure Linux Support Support Engineer
Working Hours: Working Days: Email: Office Phone:
14:00 – 23:30 IST Tuesady-Saturday [email protected]mailto:[email protected] +91 40 67230229 Ext: 84598
If you have any questions about a case, please contact [email protected]mailto:[email protected] Service Dashboardhttp://www.microsoft.com/windowsazure/support/status/servicedashboard.aspx | Create a Casehttp://www.microsoft.com/windowsazure/support/
From: Amar Zavery [mailto:[email protected]] Sent: Thursday, February 9, 2017 9:08 PM To: Azure/azure-xplat-cli [email protected] Cc: Kailash B (MINDTREE LIMITED) [email protected]; Mention [email protected] Subject: Re: [Azure/azure-xplat-cli] Unable to create Linux datascience vm using azure cli (#3484)
@kailashmshttps://github.com/kailashms - Did you take a look at the error in errorforcommand1.txt? It says,
Error: User failed validation to purchase resources. Error message: 'Offer with PublisherId: linux-data-science-vm and OfferId: microsoft-ads:linux-data-science-vm:linuxdsvm: not found in Azure Data Market. If this offer has been created recently, please allow upto 5 minutes for this offer to be available for Purchase.'
Looks like the purchase of the offer did not go through.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-xplat-cli/issues/3484#issuecomment-278678175, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AYbOOzXvMlIguiEPS54YuNMukfXGs0DBks5razLagaJpZM4L6j36.
@kailashms The logs you provided look fine to me, and this is likely a service side issue, and it's not blocked by CLI.
I think you shall raise a CRI at Azure portal about this.