By cloudmonix|2017-09-20T10:23:35-05:00September 20th, 2017|Azure How To, Azure News, Microsoft Azure, New Features|
1.2 Azure management libraries for .NET offers additional security and storage service encryption. The other benefits include network watcher service, search service, the creation of users in Azure Active Directory, and management service identity. After the downloading the 1.2 library, you need to create a virtual machine using define() … create() method chain.
IVirtualMachine virtualMachine = azure.VirtualMachines.Define(“myLinuxVM”)
.WithRegion(Region.USEast)
.WithNewResourceGroup(rgName)
.WithNewPrimaryNetwork(“10.0.0.0/28”)
.WithPrimaryPrivateIPAddressDynamic()
.WithNewPrimaryPublicIPAddress(pipName)
.WithPopularLinuxImage(KnownLinuxVirtualMachineImage.UbuntuServer16_04_Lts)
.WithRootUsername(“tirekicker”)
.WithRootPassword(password)
.WithSize(VirtualMachineSizeTypes.StandardDS2V2)
.WithOSDiskCaching(CachingTypes.ReadWrite)
.WithManagedServiceIdentity()
.WithRoleBasedAccessToCurrentResourceGroup(BuiltInRole.Contributor)
.Create();
Follow […]
Recent Comments