Checks/Azure/Test-CosmosdbAccountFirewallUseSelectedNetworks.ps1
|
function Test-CosmosdbAccountFirewallUseSelectedNetworks { <# .SYNOPSIS Cosmos DB account firewall allows access only from selected networks .DESCRIPTION **Azure Cosmos DB accounts** limit connectivity to **selected networks** using virtual network rules and/or IP allowlists rather than permitting access from all networks. The evaluation determines whether the account's network firewall enforces this restriction. .PARAMETER Check CIEMCheck object containing check metadata. #> [CmdletBinding()] [OutputType([PSCustomObject[]])] param( [Parameter(Mandatory)] [CIEMCheck]$Check ) $ErrorActionPreference = 'Stop' # TODO: Implement check logic based on Prowler check: cosmosdb_account_firewall_use_selected_networks [CIEMScanResult]::Create($Check, 'MANUAL', 'This check requires manual implementation. See Prowler check cosmosdb_account_firewall_use_selected_networks for reference.', 'N/A', 'cosmosdb Resources') } |