-
Notifications
You must be signed in to change notification settings - Fork 327
Expand file tree
/
Copy pathaddHtParameters.ps1
More file actions
50 lines (47 loc) · 2.87 KB
/
addHtParameters.ps1
File metadata and controls
50 lines (47 loc) · 2.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
function addHtParameters {
Write-Host 'Add Azure Governance Visualizer htParameters'
if ($LargeTenant -eq $true) {
$script:NoScopeInsights = $true
$NoResourceProvidersAtAll = $true
$PolicyAtScopeOnly = $true
$RBACAtScopeOnly = $true
}
if ($ManagementGroupsOnly) {
$script:NoSingleSubscriptionOutput = $true
}
if ($HierarchyMapOnly) {
$NoJsonExport = $true
}
$script:azAPICallConf['htParameters'] += [ordered]@{
DoAzureConsumption = [bool]$DoAzureConsumption
DoAzureConsumptionPreviousMonth = [bool]$DoAzureConsumptionPreviousMonth
DoNotIncludeResourceGroupsOnPolicy = [bool]$DoNotIncludeResourceGroupsOnPolicy
DoNotIncludeResourceGroupsAndResourcesOnRBAC = [bool]$DoNotIncludeResourceGroupsAndResourcesOnRBAC
DoNotShowRoleAssignmentsUserData = [bool]$DoNotShowRoleAssignmentsUserData
HierarchyMapOnly = [bool]$HierarchyMapOnly
LargeTenant = [bool]$LargeTenant
ManagementGroupsOnly = [bool]$ManagementGroupsOnly
NoJsonExport = [bool]$NoJsonExport
NoMDfCSecureScore = [bool]$NoMDfCSecureScore
NoResourceProvidersDetailed = [bool]$NoResourceProvidersDetailed
NoResourceProvidersAtAll = [bool]$NoResourceProvidersAtAll
NoPolicyComplianceStates = [bool]$NoPolicyComplianceStates
NoResources = [bool]$NoResources
ProductVersion = $ProductVersion
PolicyAtScopeOnly = [bool]$PolicyAtScopeOnly
RBACAtScopeOnly = [bool]$RBACAtScopeOnly
DoPSRule = [bool]$DoPSRule
PSRuleFailedOnly = [bool]$PSRuleFailedOnly
NoALZPolicyVersionChecker = [bool]$NoALZPolicyVersionChecker
ALZPolicyAssignmentsChecker = [bool]$ALZPolicyAssignmentsChecker
ALZManagementGroupsIds = $ALZManagementGroupsIds
NoStorageAccountAccessAnalysis = [bool]$NoStorageAccountAccessAnalysis
GitHubActionsOIDC = [bool]$GitHubActionsOIDC
NoNetwork = [bool]$NoNetwork
ThrottleLimit = $ThrottleLimit
APIMappingCloudEnvironment = $APIMappingCloudEnvironment
}
Write-Host 'htParameters:'
$azAPICallConf['htParameters'] | ConvertTo-Json -Depth 99 | Out-String
Write-Host 'Add Azure Governance Visualizer htParameters succeeded' -ForegroundColor Green
}