0
バージョン:1.1.0Azure Java:VMの作成中にプラン情報を追加できません。
私はマーケットプレイスイメージを使用してVMを作成しています。私のコードは次のようになります
VirtualMachine linuxVM = azure.virtualMachines().define(name)
.withRegion(Region.US_WEST)
.withExistingResourceGroup(myRg)
.withExistingPrimaryNetwork(network)
.withSubnet("subnet1")
.withPrimaryPrivateIPAddressDynamic()
.withNewPrimaryPublicIPAddress("ip-" + name)
.withLatestLinuxImage("publisher", "offer", "sku")
.withRootUsername("root")
.withRootPassword("some password")
.withSize(VirtualMachineSizeTypes.BASIC_A0)
.create();
私は以下のようにエラーが発生します。
Async operation failed with provisioning state: Failed: Creating a virtual machine from Marketplace image requires Plan information in the request. OS disk name is '<name>'
プラン情報を追加するにはどうすればよいですか?
「公開者」、「提供」、「sku」を「OpenLogic」、「CentOS」、「7.3」に置き換えて、計画を例外なく通常提供するコードを実行しようとしました。 「発行者」、「提供」、「sku」の特定のパラメータおよびその他の重要なパラメータを提供してください。そうすれば、問題の解決策を見つける手助けをすることができます。 –