Skip to content

Commit 21b3e48

Browse files
author
Filiz Topatan
committed
change the date we order blueprint versions
1 parent d2f46c6 commit 21b3e48

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/Blueprint/Blueprint/Blueprint.format.ps1xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
</ItemSelectionCondition>
4444
</ListItem>
4545
<ListItem>
46-
<Label>LastModified</Label>
47-
<ScriptBlock>$_.Status.LastModified.ToString("yyyy-MM-dd")</ScriptBlock>
46+
<Label>TimeCreated</Label>
47+
<ScriptBlock>$_.Status.TimeCreated.ToString("yyyy-MM-dd")</ScriptBlock>
4848
</ListItem>
4949
<ListItem>
5050
<Label>TargetScope</Label>
@@ -97,8 +97,8 @@
9797
</ItemSelectionCondition>
9898
</ListItem>
9999
<ListItem>
100-
<Label>LastModified</Label>
101-
<ScriptBlock>$_.Status.LastModified.ToString("yyyy-MM-dd")</ScriptBlock>
100+
<Label>TimeCreated</Label>
101+
<ScriptBlock>$_.Status.TimeCreated.ToString("yyyy-MM-dd")</ScriptBlock>
102102
</ListItem>
103103
<ListItem>
104104
<Label>TargetScope</Label>

src/Blueprint/Blueprint/Common/BlueprintClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public PSPublishedBlueprint GetLatestPublishedBlueprint(string scope, string blu
9191
{
9292
if (latest == null)
9393
latest = blueprint;
94-
else if (CompareDates(blueprint.Status.LastModified, latest.Status.LastModified) > 0)
94+
else if (CompareDates(blueprint.Status.TimeCreated, latest.Status.TimeCreated) > 0)
9595
latest = blueprint;
9696
}
9797

src/Blueprint/Blueprint/help/Get-AzBlueprint.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Id : /subscriptions/00000000-1111-0000-1111-000000000000/provi
7272
DefinitionLocationId : 00000000-1111-0000-1111-000000000000
7373
Versions : {1.0}
7474
Description : Powershell test blueprint
75-
LastModified : 2019-02-01
75+
TimeCreated : 2019-02-01
7676
TargetScope : Subscription
7777
Parameters : {storageData_storageAccountType, storageData_location, allowedlocations_listOfAllowedLocations}
7878
ResourceGroups : ResourceGroup
@@ -89,7 +89,7 @@ Name : PS-MG-BlueprintDefinition
8989
Id : /providers/Microsoft.Management/managementGroups/myManagementGroupId/providers/Microsoft.Blueprint/blueprints/PS-MG-BlueprintDefinition
9090
DefinitionLocationId : myManagementGroupId
9191
Versions : {1.0, 2.0, 3.0, 4.0}
92-
LastModified : 2019-03-04
92+
TimeCreated : 2019-03-04
9393
TargetScope : Subscription
9494
Parameters : {enforcetaganditsvalue_tagName, enforcetaganditsvalue_tagValue, [Usergrouporapplicationname]:Contributor_RoleAssignmentName,
9595
[Usergrouporapplicationname]:Owner_RoleAssignmentName}
@@ -107,7 +107,7 @@ Id : /subscriptions/00000000-1111-0000-1111-000000000000/provi
107107
DefinitionLocationId : 00000000-1111-0000-1111-000000000000
108108
Versions : {1.0}
109109
Description : Powershell test blueprint
110-
LastModified : 2019-02-01
110+
TimeCreated : 2019-02-01
111111
TargetScope : Subscription
112112
Parameters : {storageData_storageAccountType, storageData_location, allowedlocations_listOfAllowedLocations}
113113
ResourceGroups : ResourceGroup

0 commit comments

Comments
 (0)