> + " \"template\" : " + template + ", " + > + " \"mode\" : \"" + mode + "\", " + > + " \"parameters\" : " + parameters + " " + > + " } " + > + "}"; > + return body; > + } > + > + @Test(groups = "live") > + public void testCreate() { > + Long now = System.currentTimeMillis(); > + resourceName = "jcres" + now; > + deploymentName = "jcdep" + now; > + String template = > "{\"$schema\":\"https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#\",\"contentVersion\":\"1.0.0.0\",\"parameters\":{\"newStorageAccountName\":{\"type\":\"string\",\"metadata\":{\"description\":\"Name > of the Storage > Account\"}},\"storageAccountType\":{\"type\":\"string\",\"defaultValue\":\"Standard_LRS\",\"allowedValues\":[\"Standard_LRS\",\"Standard_GRS\",\"Standard_ZRS\"],\"metadata\":{\"description\":\"Storage > Account type\"}},\"location\":{\"type\":\"string\",\"allowedValues\":[\"East > US\",\"West US\",\"West Europe\",\"East Asia\",\"Southeast > Asia\"],\"metadata\":{\"description\":\"Location of storage > account\"}}},\"resources\":[{\"type\":\"Microsoft.Storage/storageAccounts\",\"name\":\"[parameters('newStorageAccountName')]\",\"apiVersion\":\"2015-05-01-preview\",\"location\":\"[parameters('location')]\",\"properties\":{\"accountType\":\"[parameters('storageAccountType')]\"}}]}"; > + String parameters = "{\"newStorageAccountName\":{\"value\":\"" + > resourceName + > "\"},\"storageAccountType\":{\"value\":\"Standard_LRS\"},\"location\":{\"value\":\"West > US\"}}"; > + String properties = getPutBody(template, "Incremental", parameters);
@nacx - The plan was to basically reflect the raw API itself, thus the three JSON inputs. For generating VMs, users should use the higher level functions, but the process within the actual code will essentially be declare as a JClouds template, translate from that representation to an ARM template (JSON) then use the DeploymentAPI to deploy said template. --- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/jclouds/jclouds-labs/pull/273/files/74f8e9bf66e7427298c5c3c9567aa7d8284e0987#r64677565