Skip to content

Release parallel processing and New-AzStateDiscovery

Pre-release
Pre-release
Compare
Choose a tag to compare
@krowlandson krowlandson released this 03 Sep 07:48
· 15 commits to main since this release

This release includes a release-ready version of the parallel processing methods within [AzState] and introduces the first release of New-AzStateDiscovery function to perform iterative discovery of child resources form the specified Root ID(s).

New-AzStateDiscovery supports the following input parameters:

  • [String[]]$RootId specifies the ID to use for the start of discovery, supports multiple inputs including from pipeline
  • [String[]]$ExcludePathIds is used to specify onw or more resource IDs to exclude from discovery, allowing partial discovery
  • [Switch]$IncludeManagementGroups if specified will discover child resources of type Microsoft.Management/managementGroups
  • [Switch]$IncludeSubscriptions if specified will discover child resources of type Microsoft.Management/managementGroups/subscriptions and Microsoft.Resources/subscriptions
  • [Switch]$IncludeResourceGroups if specified will discover child resources of type Microsoft.Resources/resourceGroups
  • [Switch]$IncludeResources if specified will discover child resources of Resource Groups
  • [Switch]$IncludeIAM if specified will discover all Access control (IAM) settings for supported resources
  • [Switch]$IncludePolicy if specified will discover all Policy settings for supported resources
  • [Switch]$Recurse if specified will perform a recursive discovery on all discovered resources
  • [Int]$ThrottleLimit is specified will change the number of threads to use for parallel processing (default = 4)
  • [CacheMode]$CacheMode is specified will control whether the command uses cache, or not (supported values = UseCache and SkipCache

To support the processing of New-AzStateDiscovery, a private function Get-AzStateChildrenByType is included but not exported as this isn't expected to be used directly.

This release also includes the follow minor bug fixes:

  • Update AzProviderCache to case insensitive (to support resources returned from API with incorrect case in ID)
  • Bugfix set Raw value using DirectFromScope (to ensure AzState is populated with Raw value using this method)

This release skips 0.0.6 and 0.0.7 which were used for internal testing only.