未加星标

Simpler Azure Management Libraries for Java - Beta 3

字体大小 | |
[系统(windows) 所属分类 系统(windows) | 发布者 店小二04 | 时间 2016 | 作者 红领巾 ] 0人收藏点击收藏

Beta 3 adds support for the following Azure services and features

Virtual machine scale sets Load balancers Parallel creation of virtual machines and other resources Virtual machine extensions Key vault and Batch

https://github.com/azure/azure-sdk-for-java

In July, we announceda developer preview of the new, simplified Azure management libraries for Java. Our goal is to improve the developer experience by providing a higher-level, object-oriented API, optimized for readability and writability. Thank you for trying the libraries and providing us with plenty of useful feedback.

Create a Virtual Machine Scale Set

You can create a virtual machine scale set instance by using another define() … create() method chain.

VirtualMachineScaleSet virtualMachineScaleSet = azure.virtualMachineScaleSets()
.define(vmssName)
.withRegion(Region.US_EAST)
.withExistingResourceGroup(rgName)
.withSku(VirtualMachineScaleSetSkuTypes.STANDARD_D3_V2)
.withExistingPrimaryNetworkSubnet(network, "Front-end")
.withPrimaryInternetFacingLoadBalancer(loadBalancer)
.withPrimaryInternetFacingLoadBalancerBackends(backendPoolName)
.withPrimaryInternetFacingLoadBalancerInboundNatPools(natPool50XXto22)
.withoutPrimaryInternalLoadBalancer()
.withPopularlinuxImage(KnownLinuxVirtualMachineImage.UBUNTU_SERVER_16_04_LTS)
.withRootUserName(userName)
.withSsh(sshKey)
.withNewStorageAccount(storageAccountName1)
.withNewStorageAccount(storageAccountName2)
.withCapacity(2)
.create(); Create a Network Load Balancer

You can create a network load balancer instance by using another define() … create() method chain.

LoadBalancerloadBalancer=azure.loadBalancers().define(loadBalancerName)
.withRegion(Region.US_EAST)
.withExistingResourceGroup(rgName)
.definePublicFrontend(frontendName)
.withExistingPublicIpAddress(publicIpAddress)
.attach()
// Add a backend pool for HTTP
.defineBackend(backendPoolName)
.attach()
// Add a probe for HTTP
.defineHttpProbe(httpProbe)
.withRequestPath("/")
.withPort(80)
.attach()
// Add a load balancing rule that uses the above backend and probe
.defineLoadBalancingRule(httpLoadBalancingRule)
.withProtocol(TransportProtocol.TCP)
.withFrontend(frontendName)
.withFrontendPort(80)
.withProbe(httpProbe)
.withBackend(backendPoolName)
.attach()
// Add a NAT pool to enable direct VM connectivity for
// SSH to port 22
.defineInboundNatPool(natPool50XXto22)
.withProtocol(TransportProtocol.TCP)
.withFrontend(frontendName)
.withFrontendPortRange(5000,5099)
.withBackendPort(22)
.attach()
.create(); Sample Code

You can find plenty of sample code that illustrates management scenarios in Azure Virtual Machines, Virtual Machine Scale Sets, Storage, Networking, Resource Manager, Key Vault and Batch …

Service Management

Virtual Machines

Manage virtual machine Manage availability set List virtual machine images Manage virtual machines using VM extensions List virtual machine extension images

Virtual Machines - parallel execution

Create multiple virtual machines in parallel Create multiple virtual machines with network in parallel

Virtual Machine Scale Sets

Manage virtual machine scale sets (behind an Internet facing load balancer)

Storage

Manage storage accounts

Network

Manage virtual network Manage network interface Manage network security group Manage IP address Manage Internet facing load balancers Manage internal load balancers

Resource Groups

Manage resource groups Manage resources Deploy resources with ARM templates Deploy resources with ARM templates (with progress)

Key Vault

Manage key vaults

Batch

Manage batch accounts Give it a try

You can run the samples above or go straight to our GitHub repo . Give it a try and let us know what do you think (viae-mail or comments below), particularly -

Usability and effectiveness of the new management libraries for Java? What Azure services you would like to see supported soon? What additional scenarios should be illustrated as sample code?

The next preview version of the Azure Management Libraries for Java is a work in-progress. We will be adding support for more Azure services and tweaking the API over the next few months.

You can find plenty of additional info about Java on Azure at http://azure.com/java .

本文系统(windows)相关术语:三级网络技术 计算机三级网络技术 网络技术基础 计算机网络技术

主题: JavaLinuxGitGitHubUBVaultNTU
分页:12
转载请注明
本文标题:Simpler Azure Management Libraries for Java - Beta 3
本站链接:http://www.codesec.net/view/483913.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 系统(windows) | 评论(0) | 阅读(37)