internal/scripts/variables.ps1
# All required runtime variables. $graphVersionRequired = "beta" $script:graphBaseUrl = "https://graph.microsoft.com/{0}" -f $graphVersionRequired [regex] $script:guidRegex = '(?im)^[{(]?[0-9A-F]{8}[-]?(?:[0-9A-F]{4}[-]?){3}[0-9A-F]{12}[)}]?$' [regex] $script:upnRegex = '^([A-Za-z\d\.\-]*)@([A-Za-z\d\.-]*)$' [regex] $script:mailNicknameRegex = '^([A-Za-z\d\.]*)@([A-Za-z\d\.-]*)$' $script:supportedResources = @{ "stringMappings" = @{ "registerFunction" = (Get-Command Register-TmfStringMapping) "weight" = 0 } "groups" = @{ "registerFunction" = (Get-Command Register-TmfGroup) "testFunction" = (Get-Command Test-TmfGroup) "invokeFunction" = (Get-Command Invoke-TmfGroup) "weight" = 10 } "namedLocations" = @{ "registerFunction" = (Get-Command Register-TmfNamedLocation) "testFunction" = (Get-Command Test-TmfNamedLocation) "invokeFunction" = (Get-Command Invoke-TmfNamedLocation) "weight" = 10 } "agreements" = @{ "registerFunction" = (Get-Command Register-TmfAgreement) "testFunction" = (Get-Command Test-TmfAgreement) "invokeFunction" = (Get-Command Invoke-TmfAgreement) "weight" = 10 } "administrativeUnits" = @{ "registerFunction" = (Get-Command Register-TmfAdministrativeUnits) "testFunction" = (Get-Command Test-TmfAdministrativeUnits) "invokeFunction" = (Get-Command Invoke-TmfAdministrativeUnits) "weight" = 20 } "conditionalAccessPolicies" = @{ "registerFunction" = (Get-Command Register-TmfConditionalAccessPolicy) "testFunction" = (Get-Command Test-TmfConditionalAccessPolicy) "invokeFunction" = (Get-Command Invoke-TmfConditionalAccessPolicy) "weight" = 50 } "accessPackageCatalogs" = @{ "registerFunction" = (Get-Command Register-TmfAccessPackageCatalog) "testFunction" = (Get-Command Test-TmfAccessPackageCatalog) "invokeFunction" = (Get-Command Invoke-TmfAccessPackageCatalog) "weight" = 54 } "accessPackageResources" = @{ "testFunction" = (Get-Command Test-TmfAccessPackageResource) "invokeFunction" = (Get-Command Invoke-TmfAccessPackageResource) "weight" = 55 } "accessPackages" = @{ "registerFunction" = (Get-Command Register-TmfAccessPackage) "testFunction" = (Get-Command Test-TmfAccessPackage) "invokeFunction" = (Get-Command Invoke-TmfAccessPackage) "weight" = 56 } "accessPackageAssignementPolicies" = @{ "testFunction" = (Get-Command Test-TmfAccessPackageAssignementPolicy) "invokeFunction" = (Get-Command Invoke-TmfAccessPackageAssignementPolicy) "weight" = 57 } } # All currently supported components. Set-Variable -Name supportedResources -Option ReadOnly $script:validateFunctionMapping = @{ "accessReviewSettings" = (Get-Command Validate-AssignmentReviewSettings) "requestApprovalSettings" = (Get-Command Validate-RequestApprovalSettings) "approvalStages" = (Get-Command Validate-ApprovalStage) "requestorSettings" = (Get-Command Validate-RequestorSettings) "allowedRequestors" = (Get-Command Validate-UserSet) "reviewers" = (Get-Command Validate-UserSet) "primaryApprovers" = (Get-Command Validate-UserSet) "escalationApprovers" = (Get-Command Validate-UserSet) } $script:activatedConfigurations = @() # Overview of all activated configurations. $script:desiredConfiguration = @{} # The desired configuration. $script:cache = @{} # Multi purpose cache variable |