SHELL/9.1.5.ps1
|
$CheckId = "9.1.5" $Title = "Ensure 'Interact with and share R and Python' visuals is 'Disabled'" $Level = "L2" $BenchmarkType = "Automated" $SettingName = "RScriptVisual" $SettingTitle = "Interact with and share R and Python visuals" $HelperPath = Join-Path $PSScriptRoot "helpers\fabric_settings_helpers.ps1" $AuditCommands = @( "Invoke-RestMethod -Uri 'https://api.fabric.microsoft.com/v1/admin/tenantsettings' -Method Get", "Find setting by settingName 'RScriptVisual' or title 'Interact with and share R and Python visuals'" ) if (-not (Test-Path $HelperPath)) { [pscustomobject]@{ CheckId = $CheckId Title = $Title Level = $Level BenchmarkType = $BenchmarkType Status = "ERROR" Pass = $null Evidence = [pscustomobject]@{ AuditCommands = $AuditCommands HelperPath = $HelperPath SourceDocument = "CIS_Microsoft_365_Foundations_Benchmark_v6.0.1" } Error = "Required helper file not found: $HelperPath" Timestamp = Get-Date } return } . $HelperPath Invoke-Root365FabricControl ` -CheckId $CheckId ` -Title $Title ` -Level $Level ` -BenchmarkType $BenchmarkType ` -SettingName $SettingName ` -SettingTitle $SettingTitle ` -Mode "Disable" ` -MissingSettingBehavior "Pass" ` -AuditCommands $AuditCommands ` -ExpectedStateDescription "Disabled or not configured (default disabled)." |