所以我想下载一个包含SQL Server的Azure VM。
2个问题:
Save-AzureVhd -Source https://dbrecourcesdisks111.blob.core.windows.net/vhds/Calsss20170313170630.vhd -LocalFilePath C:\downloads\VHDDownloadscalDBSazureImage.vhd
Save-AzureVhd:ResourceNotFound:找不到存储帐户“dbrecourcesdisks180”。 在行:2 char:1 + Save-AzureVhd -Source https://dbrecourcesdisks330.blob.core.windows.n ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~ + CategoryInfo:NotSpecified :( :) [Save-AzureVhd],CloudException + FullyQualifiedErrorId:Hyak.Common.CloudException,Microsoft.WindowsAzure.Commands.ServiceManagement.StorageServices.SaveAzureVhdCommand
为什么?
无法更新虚拟机“CalibrusDBs”的磁盘“CalDB”。错误:不支持减小磁盘大小。当前大小为136365212160字节,请求大小为107374182912字节。
我尝试了100 GB,其中我意识到上面的数学不正确(我应该放入更高的GB ...)
答案 0 :(得分:1)
你需要先做#2修复
Save-AzureVhd
适用于旧经典在Powershell中执行此操作
Login-AzureRmAccount
Get-AzureRmSubscription ( this is not needed , but FYI )
Select-AzureRmSubscription –SubscriptionId 814fbea4-bd9a-42ae-bed2-189445bbaf62 (this is your sub. ID you will see from the Login-AzureRmAccount
Stop-AzureRmVM -ResourceGroupName yourresourcename -Name nameofyourvm (FYI you can stop in portal online)
好的,现在您已准备好下载
Save-AzureRmVhd -ResourceGroupName dbRecources -SourceUri "https://dbrecourcesdisks111.blob.core.windows.net/vhds/Calsss20170313170630.vhd" -LocalFilePath "C:\downloads\VHDDownloadscalDBSazureImage.vhd"
再次,#2进入门户网站变为150-200 gb,并在门户网站FIRST中处于良好状态
要下载200 GB ..这可能需要1-5小时,具体取决于您的连接,并且显然也是天蓝色。