Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -225,8 +225,15 @@ public void ProvisionLinuxVM()

try
{
vmPowershellCmdlets.NewAzureQuickVM(OS.Linux, newAzureLinuxVMName, serviceName, linuxImageName, "user",
password, locationName);
Utilities.RetryActionUntilSuccess(() =>
{
if (vmPowershellCmdlets.TestAzureServiceName(serviceName))
{
var op = vmPowershellCmdlets.RemoveAzureService(serviceName);
}

vmPowershellCmdlets.NewAzureQuickVM(OS.Linux, newAzureLinuxVMName, serviceName, linuxImageName, "user", password, locationName);
}, "Windows Azure is currently performing an operation on this hosted service that requires exclusive access.", 10, 30);

// Verify
PersistentVMRoleContext vmRoleCtxt = vmPowershellCmdlets.GetAzureVM(newAzureLinuxVMName, serviceName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public DeploymentInfoContext(DeploymentGetResponse deployment)

this.RolesConfiguration = new Dictionary<string, RoleConfiguration>();

var roles = doc.Root.Descendants(this.ns + "Role");
var roles = doc.Root.Descendants(this.ns + "Role").Where(t => t.Parent == doc.Root);

foreach (var role in roles)
{
Expand Down