Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions cmd/list-azure-rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ func listAllRM(ctx context.Context, client client.AzureClient) <-chan interface{
logicApps = make(chan interface{})
logicApps2 = make(chan interface{})

storageAccounts = make(chan interface{})
storageAccounts2 = make(chan interface{})
storageAccounts3 = make(chan interface{})

managedClusters = make(chan interface{})
managedClusters2 = make(chan interface{})

Expand Down Expand Up @@ -115,6 +119,7 @@ func listAllRM(ctx context.Context, client client.AzureClient) <-chan interface{
subscriptions10 = make(chan interface{})
subscriptions11 = make(chan interface{})
subscriptions12 = make(chan interface{})
subscriptions13 = make(chan interface{})
subscriptionRoleAssignments1 = make(chan interface{})
subscriptionRoleAssignments2 = make(chan interface{})

Expand Down Expand Up @@ -142,6 +147,7 @@ func listAllRM(ctx context.Context, client client.AzureClient) <-chan interface{
subscriptions10,
subscriptions11,
subscriptions12,
subscriptions13,
)
pipeline.Tee(ctx.Done(), listResourceGroups(ctx, client, subscriptions2), resourceGroups, resourceGroups2)
pipeline.Tee(ctx.Done(), listKeyVaults(ctx, client, subscriptions3), keyVaults, keyVaults2, keyVaults3)
Expand All @@ -153,6 +159,7 @@ func listAllRM(ctx context.Context, client client.AzureClient) <-chan interface{
pipeline.Tee(ctx.Done(), listLogicApps(ctx, client, subscriptions10), logicApps, logicApps2)
pipeline.Tee(ctx.Done(), listManagedClusters(ctx, client, subscriptions11), managedClusters, managedClusters2)
pipeline.Tee(ctx.Done(), listVMScaleSets(ctx, client, subscriptions12), vmScaleSets, vmScaleSets2)
pipeline.Tee(ctx.Done(), listStorageAccounts(ctx, client, subscriptions13), storageAccounts, storageAccounts2, storageAccounts3)

// Enumerate Relationships
// ManagementGroups: Descendants, Owners and UserAccessAdmins
Expand Down Expand Up @@ -196,6 +203,10 @@ func listAllRM(ctx context.Context, client client.AzureClient) <-chan interface{
// Enumerate Automation Account Role Assignments
automationAccountRoleAssignments := listAutomationAccountRoleAssignments(ctx, client, automationAccounts2)

//Enumerate storage accounts
storageContainers := listStorageContainers(ctx, client, storageAccounts2)
storageAccountRoleAssignments := listStorageAccountRoleAssignments(ctx, client, storageAccounts3)

// Enumerate Container Registry Role Assignments
containerRegistryRoleAssignments := listContainerRegistryRoleAssignments(ctx, client, containerRegistries2)

Expand Down Expand Up @@ -232,6 +243,9 @@ func listAllRM(ctx context.Context, client client.AzureClient) <-chan interface{
resourceGroupOwners,
resourceGroupUserAccessAdmins,
resourceGroups,
storageAccounts,
storageContainers,
storageAccountRoleAssignments,
subscriptionOwners,
subscriptionUserAccessAdmins,
subscriptions,
Expand Down
Loading