Skip to content

Commit 8c2c317

Browse files
author
Olha Tkachenko
committed
[Azure resource graph] ignore subscription from context
1 parent aeb21ab commit 8c2c317

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/ResourceGraph/ResourceGraph/Cmdlets/SearchAzureRmGraph.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,6 @@ private IEnumerable<string> GetSubscriptions()
224224
return this.Subscription;
225225
}
226226

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-
237227
var accountSubscriptions = this.DefaultContext.Account.GetSubscriptions();
238228
if (accountSubscriptions.Length > 0)
239229
{

0 commit comments

Comments
 (0)