We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ebf14c commit 9256238Copy full SHA for 9256238
src/ResourceManager/Reservations/Commands.Reservations/Cmdlets/PatchReservation.cs
@@ -121,7 +121,8 @@ private string ValidateAndGetAppliedSubscription()
121
{
122
string subscriptionId = AppliedScope;
123
string prefix = "/subscriptions/";
124
- if (subscriptionId.Contains(prefix) && subscriptionId.Length > prefix.Length)
+ if (subscriptionId.IndexOf(prefix, StringComparison.InvariantCultureIgnoreCase) >= 0
125
+ && subscriptionId.Length > prefix.Length)
126
127
subscriptionId = subscriptionId.Substring(prefix.Length);
128
}
0 commit comments