I'm trying to create/delete VMs in Azure cloud using azure-sdk-for-ruby. I'm following the example in the compute API.
There is one part that I can't understand:
# create_storage_profile is hypothetical helper method which creates storage
# profile by means of ARM Storage SDK.
params.storage_profile = create_storage_profile
How would I go about creating a profile for the new VM?
I've looked through the storage API, but I didn't find anything.
There is an offical sample code for create a Azure VM using Azure SDK for Ruby, which you can find the code you want about
create_storage_profileandcreate_network_profilevia the keywordsstorage_profile,storage_account,network_profileandcreate_vm.Hope it helps.