Functions/Get-SecretScopes.ps1
Function Get-SecretScopes { [cmdletbinding()] param ( [parameter(Mandatory = $false)][string]$ScopeName ) $workspaceScopes = Get-DatabricksSecretScopes if ($ScopeName) { Return ($workspaceScopes | where-object { $_.scopes.name -eq "$ScopeName" }) } else { return $workspaceScopes } } |