我正在尝试使用Azure Java SDK部署虚拟机。我可以通过Java从我的Azure门户检索清单。
在尝试部署虚拟机时,它会要求在函数中提供部署名称:
computeManagementClient.getVirtualMachinesOperations().create(String, String, VirtualMachineCreateParameters);
第二个字符串应该是“部署名称”,我在Azure门户中找不到应该是什么,或者如何创建部署名称容器?
我已经尝试了几个我认为可能正确的名称,但是收到了异常。
在尝试部署虚拟机时,它会要求在函数中提供部署名称:
computeManagementClient.getVirtualMachinesOperations().create(String, String, VirtualMachineCreateParameters);
第二个字符串应该是“部署名称”,我在Azure门户中找不到应该是什么,或者如何创建部署名称容器?
我已经尝试了几个我认为可能正确的名称,但是收到了异常。
Exception in thread "main" java.util.concurrent.ExecutionException: com.microsoft.windowsazure.exception.ServiceException: ResourceNotFound: The deployment name 'thundertest' does not exist.
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at com.microsoft.windowsazure.management.compute.VirtualMachineOperationsImpl.create(VirtualMachineOperationsImpl.java:5359)
at com.thunderhead.cloudlib.azure.RequestBuilder.createVirtualMachines(RequestBuilder.java:344)
at com.thunderhead.cloudlib.azure.RequestBuilder.main(RequestBuilder.java:365)
Caused by: com.microsoft.windowsazure.exception.ServiceException: ResourceNotFound: The deployment name '<deploymentName?>' does not exist.
at com.microsoft.windowsazure.exception.ServiceException.createFromXml(ServiceException.java:216)
at com.microsoft.windowsazure.management.compute.VirtualMachineOperationsImpl.beginCreating(VirtualMachineOperationsImpl.java:1884)
at com.microsoft.windowsazure.management.compute.VirtualMachineOperationsImpl$3.call(VirtualMachineOperationsImpl.java:1038)
at com.microsoft.windowsazure.management.compute.VirtualMachineOperationsImpl$3.call(VirtualMachineOperationsImpl.java:1035)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
computeManagementClient.getVirtualMachinesOperations().createDeployment()
吗? - BenV