我需要备份 Web 角色包并将其存储在 azure 存储中 在旧版本中我使用过 Azure 管理库 https://www.nuget.org/packages/Microsoft.WindowsAzure.Management.Libraries/
string deploymentName = computeClient.Deployments.GetBySlot(serviceName, DeploymentSlot.Production).Name;
string label = computeClient.Deployments.GetBySlot(serviceName, DeploymentSlot.Production).Label;
DeploymentGetPackageParameters packageParam = new DeploymentGetPackageParameters();
Uri containerUri = new Uri(storageBackupURI);
string containerName = containerUri.AbsolutePath.Remove(0, 1);
packageParam.ContainerUri = containerUri;
packageParam.OverwriteExisting = true;
Console.WriteLine("Copying Package");
OperationStatusResponse osr = computeClient.Deployments.GetPackageByName(serviceName, deploymentName, packageParam);
我将如何使用流利的 api 来完成。 https://www.nuget.org/packages/Microsoft.Azure.Management.Fluent