name:Azure OpenAI Public Network Access Not Disabled
author:princechaddha
severity:high
description:|
Ensure that public network access (i.e. all network access) to Microsoft Azure OpenAI service instances is disabled in order to enhance security by preventing unauthorized access.
impact:|
Enabling public network access to Azure OpenAI service instances can lead to unauthorized access, compromising the security and integrity of the instances.
remediation:|
Configure the Azure OpenAI service instances to disable public network access to secure them against unauthorized external access.
az cognitiveservices account show --name "$name" --resource-group "$resourceGroup" --query '{networkAcls:properties.networkAcls.defaultAction,publicNetworkAccess:properties.publicNetworkAccess}'