By default, Azure virtual machines need to be hosted in an IaaS cloud service. A cloud service can place up to 50 virtual machines.
Azure cloud Service is a container for Internet access and provides a public IP address and FQDN. IaaS cloud services can contain more than one virtual machine.
Features of cloud services
§ Can isolate internal and external resources
§ can be viewed as a border
§ can be used as a separate unit for management, monitoring, and scaling
650) this.width=650; "title=" clip_image002 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image002 "src=" http://s3.51cto.com/wyfs02/M02/80/34/wKiom1c64GnzBz7wAAB1k_ksEYM619.jpg "height=" 291 "/>
Azure virtual machines can be created in the following ways:
Quick Create/Custom Create
Quickly create network, storage, and cloud services that are not available for virtual machines, and are generally not recommended.
Below we use custom create
Prepare the resources your virtual machine needs to use: cloud services, virtual networks, storage spaces
NEW-compute-cloud services-Custom creation
650) this.width=650; "title=" clip_image004 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image004 "src=" http://s3.51cto.com/wyfs02/M02/80/31/wKioL1c64VLwUefKAAA5lgGVu2U569.jpg "height=" 216 "/>
Enter a name for the cloud service, select a region
650) this.width=650; "title=" clip_image006 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image006 "src=" http://s3.51cto.com/wyfs02/M02/80/31/wKioL1c64VKS4zOvAABaoxfrULs283.jpg "height=" 505 "/>
IaaS Cloud service creation is complete.
Note that the cloud service has not placed any resources at this point, so Azure does not allocate any public network resources (such as FQDN, public IP)
650) this.width=650; "title=" clip_image008 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image008 "src=" http://s3.51cto.com/wyfs02/M00/80/34/wKiom1c64GrxrRpZAAA4Vuu6aYU626.jpg "height=" 177 "/>
Create a new virtual network below
New-Network SERVICE-Virtual network-custom creation
650) this.width=650; "title=" clip_image010 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image010 "src=" http://s3.51cto.com/wyfs02/M01/80/31/wKioL1c64VOjE3k8AABEoxIKdMM810.jpg "height=" 248 "/>
Enter the virtual network name, select location information (21V optional east China or northern China)
650) this.width=650; "title=" clip_image012 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image012 "src=" http://s3.51cto.com/wyfs02/M02/80/34/wKiom1c64Gvj6f4_AABJP-_WWzA362.jpg "height=" 419 "/>
Next
650) this.width=650; "title=" clip_image014 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image014 "src=" http://s3.51cto.com/wyfs02/M01/80/31/wKioL1c64VTTllqZAABaELhRr_A797.jpg "height=" 418 "/>
You can customize the DNS server for this virtual network without filling out the use of Azure internal DNS, which is skipped
650) this.width=650; "title=" clip_image016 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image016 "src=" http://s3.51cto.com/wyfs02/M02/80/34/wKiom1c64GySmQSFAABeqhwjPhM684.jpg "height=" 419 "/>
Set the address space and subnet of the virtual network, here is the IPV4 private address, considering the latter may be connected to the local network, it is recommended to do the next address planning, avoid and local network overlap.
Here I change the default address space, as follows
650) this.width=650; "title=" clip_image018 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image018 "src=" http://s3.51cto.com/wyfs02/M00/80/31/wKioL1c64VXBK5ppAABqAMCnXuQ081.jpg "height=" 419 "/>
Virtual network creation is complete.
Create storage space below
One azure subscription creates up to 5 storage accounts;
The maximum amount of data storage for a storage account is 100TB.
New-Data Services-storage space-Quick Create
Enter storage account name: SHSP01, Location: East China, replication method: geo-redundancy
650) this.width=650; "title=" clip_image020 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image020 "src=" http://s3.51cto.com/wyfs02/M00/80/34/wKiom1c64G2TFxg2AABSysu7Yjs192.jpg "height=" 287 "/>
Storage space creation is complete.
The following can create a virtual machine
NEW-compute-virtual machines-from library
650) this.width=650; "title=" clip_image022 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image022 "src=" http://s3.51cto.com/wyfs02/M01/80/31/wKioL1c64VahHVCAAABAEfDKtgc479.jpg "height=" 249 "/>
Select Image Template
650) this.width=650; "title=" clip_image024 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image024 "src=" http://s3.51cto.com/wyfs02/M01/80/34/wKiom1c64G-A6I49AAC0R7Opwp4744.jpg "height=" "/>"
Next
650) this.width=650; "title=" clip_image026 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image026 "src=" http://s3.51cto.com/wyfs02/M01/80/31/wKioL1c64VjCdFt3AACN5Bnq2oo543.jpg "height=" "/>"
Enter the virtual machine name, virtual machine level (basic/Standard), size, virtual machine management username and password (remember, connect to the virtual secret).
Next
650) this.width=650; "title=" clip_image028 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image028 "src=" http://s3.51cto.com/wyfs02/M02/80/31/wKioL1c64VjBlzTWAACycvXULQ8553.jpg "height=" 399 "/>
Select the virtual machine Placement Cloud service CNSHCS01, virtual network, subnet, storage account, next
650) this.width=650; "title=" clip_image030 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image030 "src=" http://s3.51cto.com/wyfs02/M00/80/31/wKioL1c64VmxmADvAACP5zL-soY194.jpg "height=" 401 "/>
Install the VM agent and the virtual machine creation is complete. Approximately 5 minutes to start the completion.
The cloud service is assigned a public IP address and FQDN because the cloud service has deployed resources
650) this.width=650; "title=" clip_image032 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image032 "src=" http://s3.51cto.com/wyfs02/M01/80/34/wKiom1c64HHBUZaUAADLqXKD878913.jpg "height=" 660 "/>
View virtual machine status and common action buttons
650) this.width=650; "title=" clip_image034 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image034 "src=" http://s3.51cto.com/wyfs02/M01/80/31/wKioL1c64VrAkAQ6AABfILDeuK4686.jpg "height=" 337 "/>
Click Dashboard to view virtual machine basic information
650) this.width=650; "title=" clip_image036 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image036 "src=" http://s3.51cto.com/wyfs02/M02/80/31/wKioL1c64Vuw03exAADCvAn5tFM029.jpg "height=" 572 "/>
Endpoint, which defaults to creating 2 endpoints per virtual machine, RDP and PowerShell, where users can define their own endpoints, up to 150 endpoints per cloud service
650) this.width=650; "title=" clip_image038 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image038 "src=" http://s3.51cto.com/wyfs02/M00/80/31/wKioL1c64VzgbdWlAAA7VLNw9zU889.jpg "height=" 176 "/>
Configure the page to see the current virtual machine size "standard, D1", where you can set up vertical scaling and scale-out (described later)
650) this.width=650; "title=" clip_image040 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image040 "src=" http://s3.51cto.com/wyfs02/M01/80/34/wKiom1c64HTS7D9nAABmBD58fZw270.jpg "height=" 361 "/>
Connecting a virtual machine via RDP
650) this.width=650; "title=" clip_image042 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image042 "src=" http://s3.51cto.com/wyfs02/M01/80/34/wKiom1c64HTwThJ1AAB5yS13CIE748.jpg "height=" 355 "/>
BGInfo Effect of VM Agent implementation
650) this.width=650; "title=" clip_image044 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image044 "src=" http://s3.51cto.com/wyfs02/M01/80/31/wKioL1c64V3TrS2_AACpHHHyCvw200.jpg "height=" 355 "/>650" this.width=650, "title=" clip_image046 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;margin:0px;padding-right:0px; "border=" 0 "alt = "clip_image046" src= "http://s3.51cto.com/wyfs02/M02/80/34/wKiom1c64HWBT8WTAAAMhvIRUDY024.jpg" height= "/>"
2 disks per virtual machine, system disk and D drive (d disk is temporary, data is not retained during virtual machine migration)
How to add a continuous storage disk for a virtual machine, click on the virtual machine, with the additional data disk option below
650) this.width=650; "title=" clip_image047 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image047 "src=" http://s3.51cto.com/wyfs02/M00/80/34/wKiom1c64HaxJjYrAACA2Ym5AFY711.jpg "height=" 503 "/>
Attach a 200G data disk here
650) this.width=650; "title=" clip_image049 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image049 "src=" http://s3.51cto.com/wyfs02/M00/80/34/wKiom1c64HfAOISZAAC00pTC2T8771.jpg "height=" 341 "/>
Initialize the disk to Disk Manager and format the partition.
Here's a look at the endpoint.
By default, Internet users do not have direct access to virtual machines, only to cloud services, so to implement on-premises virtual machine access on cloud services, port mapping is done, and Azure manages this layer of mapping through endpoints.
650) this.width=650; "title=" clip_image051 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image051 "src=" http://s3.51cto.com/wyfs02/M01/80/31/wKioL1c64V-DQLO_AABNxcoJQT4307.jpg "height=" 315 "/>
Let's add an endpoint.
650) this.width=650; "title=" clip_image053 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image053 "src=" http://s3.51cto.com/wyfs02/M02/80/31/wKioL1c64WDx6rMHAABc1R4Gpfg101.jpg "height=" 302 "/>
Add stand-alone endpoints
650) this.width=650; "title=" clip_image055 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image055 "src=" http://s3.51cto.com/wyfs02/M00/80/31/wKioL1c64WCQyZMTAABUnkWM2zY948.jpg "height=" 518 "/>
Next
650) this.width=650; "title=" clip_image056 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image056 "src=" http://s3.51cto.com/wyfs02/M00/80/31/wKioL1c64WHRzY6iAAB_0tWD94A082.jpg "height=" 560 "/>
If we test the TCP 445 port of the virtual machine, set up the cloud service public network Port 4545 (the base port seems to be blocked)
650) this.width=650; "title=" clip_image058 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image058 "src=" http://s3.51cto.com/wyfs02/M01/80/34/wKiom1c64Hmz2_JKAAEcRiU6pS0194.jpg "height=" 462 "/>
On the local network test, the psping results show that the mapping was successful.
Microsoft Azure series five using an IaaS virtual machine