Skip to content

Commit c61eac2

Browse files
authored
Merge branch 'dev' into types
2 parents 619dc26 + 6981d49 commit c61eac2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Strategies/ResourceId.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ public static IResourceId TryParse(string id)
3838
const int NameI = 8;
3939

4040
var parts = id.Split('/');
41-
return parts.Length == 9
41+
// The number of parts in a shared image gallery image resource id can be 11 or 13
42+
return (parts.Length == 9 || parts.Length == 11 || parts.Length == 13)
4243
&& parts[EmptyI] == string.Empty
4344
&& parts[SubscriptionsI] == Subscriptions
4445
&& parts[ResourceGroupsI] == ResourceGroups

0 commit comments

Comments
 (0)