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 aeb21ab commit 8c2c317Copy full SHA for 8c2c317
src/ResourceGraph/ResourceGraph/Cmdlets/SearchAzureRmGraph.cs
@@ -224,16 +224,6 @@ private IEnumerable<string> GetSubscriptions()
224
return this.Subscription;
225
}
226
227
- // Use selected subscription (for example, by command "Select-AzSubscription {subscriptionId}")
228
- if (this.TryGetDefaultContext(out var context))
229
- {
230
- var subscriptionId = context.Subscription?.Id;
231
- if (subscriptionId != null)
232
233
- return new List<string> { subscriptionId };
234
- }
235
236
-
237
var accountSubscriptions = this.DefaultContext.Account.GetSubscriptions();
238
if (accountSubscriptions.Length > 0)
239
{
0 commit comments