In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/03 Report--
Customer scenario description:
Recently, customers have signed up for an Azure test account (one month's use time), tested and built WEB website services. Customers are very satisfied with the Azure cloud platform, web development and application services, and are ready to put the web website into production. As the Azure test account can only be tested for one month, the test account does not support changing to the official Azure account.
The customer needs the following:
The virtual machines and databases in the Azure test account are migrated to the official Azure.
Method of migrating virtual machines:
Method 1:
Virtual machine VHD and data VHD files are created on disk and downloaded locally. When uploading to the official account platform, the file data is too large and the speed of downloading and uploading is too slow to accept.
Method 2:
The method of replicating VHD disks across Storage accounts on Azure platform
Use method 2 to migrate the virtual machine:
1. Copied from storage account A to storage account B
two。 First you need to install Windows Azure Powershell
The download link is: http://azure.microsoft.com/en-us/documentation/articles/install-configure-powershell/?fb=zh-cn
3. Execute Get-AzureEnvironment in Azure Powershell
4.AzurePowershell executes Get-AzurePublishSettingsFile-Environment AzureChinaCloud, the purpose of which is to download the file (PublishsettingsFile)
5. When downloading the file, you need to enter the B account name and the corresponding password on the Azure platform. And save the file location
6.Azure Powershell executes the path of Import-AzurePublishSettingsFile + downloaded file (for example: d:\) to import the downloaded file (PublishsettingsFile), thus successfully entering the subscription account
7. You can see the screenshot below, the unary test account, which has been set to the new default subscription name.
8. Check the default storage account of account B
9. Execute Set-AzureSubscription-CurrentStorageAccountName storage account "portalvhdsqr56z0jf96rg8" in Azure Powershell the purpose of executing this command is to set the B account to the default storage account under the current subscription
10. You can see the screenshot below, the unary test account, which has been set to the new default subscription name.
11. Enter the subscription name again: one-yuan test account, as shown in the following figure
twelve。 Execute $context = New-AzureStorageContext-StorageAccountName on AzurePowershell, and portalvhdss3nlhwwr7q21m,-storageaccountkey tsD32gD0cV7bHS0Rg6MtJwh0TuZN5dL92309Cyo9vPxdYPicbpIR1azuxjw/k+7ZiY1T+/c2ghx/S0eyPVogZw== "- endpoint" core.chinacloudapi.cn "to execute this command: enter B to store the account name and key.
13.StorageAccountName (Storage account name): portalvhds432bs5fb837mm. You can find the name of the storage account in the screenshot below:
14.Storageaccountkey (Storage account key): tsD32gD0cV7bHS0Rg6MtJwh0TuZN5dL92309Cyo9vPxdYPicbpIR1azuxjw/k+7ZiY1T+/c2ghx/S0eyPVogZw==. The key for storing the account can be found in the screenshot below:
15. Before copying vhd files across storage accounts, the container type of your subscription account should be set to public (if set to private, the copy cannot be completed). Please refer to the following screenshot:
16. Execute Start-AzureStorageBlobCopy-SrcUri on Azure Powershell
-DestContainervhds-DestBlob web.vhd-DestContext $context
The purpose of this command is to copy A's vhd file to another storage account, where web.vhd is the name of the vhd file copied to your other storage account (this file can be written as vhd as you like).
17. Log in to the B account and view the copied VH file. The file has been copied.
18. Create a disk in account B
19. Name the disk and check to include operating system and type
20. Select the VHD file you just copied
21. Disk created successfully
twenty-two。 Create a virtual machine
23. Select my disk, the disk image you just created
24. Virtual machine naming
25 Virtual Machine configuration
twenty-six。 Virtual machine created successfully
27 the virtual machine has been successfully connected and the desktop file still exists
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.