Skip to content

Commit 612c7de

Browse files
author
Hovsep
committed
Merge pull request Azure#1638 from takekazuomi/osversion
Fix to missing OS Version in Get-AzureRole
2 parents 01c9abd + dca94b6 commit 612c7de

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement/HostedServices/GetAzureRole.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ public void GetRoleProcess()
141141
{
142142
InstanceCount = currentDeployment.RoleInstances.Count(ri => ri.RoleName.Equals(role.RoleName, StringComparison.OrdinalIgnoreCase)),
143143
RoleName = role.RoleName,
144+
OSVersion = role.OSVersion,
144145
OperationDescription = this.CommandRuntime.ToString(),
145146
OperationStatus = getDeploymentOperation.Status.ToString(),
146147
OperationId = getDeploymentOperation.Id,

src/ServiceManagement/Compute/Commands.ServiceManagement/Model/RoleContext.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ public class RoleContext : ServiceOperationContext
2222
public int InstanceCount { get; set; }
2323

2424
public string DeploymentID { get; set; }
25+
public string OSVersion { get; set; }
26+
2527
}
2628
}

0 commit comments

Comments
 (0)