-1

Does anyone know how to configure the selected public network for a Batch Account?

I only found this article that explains how to do it from the Azure Portal: https://learn.microsoft.com/en-us/azure/batch/public-network-access?WT.mc_id=Portal-Microsoft_Azure_Batch

The Azure CLI documentation has a --public-network-access {Disabled, Enabled}, but how can one set an IP range as described in the link above through the command line?

Danni
  • 1
  • 2
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Jul 12 '22 at 13:44

1 Answers1

0

Likewise we do have Az CLI command for IP Network rule configuration in Azure Storage Account and Key Vault Unfortunately we don't have az cli command to configure IP network rules for Azure Batch acount. I have checked in the Azure Batch CLI commands doc. The only thing I found was batch account creation with public network access disabled/enabled command:

az batch account create --location westus2 --name testaccount --resource-group v-rXXXXXXdtree --public-network-access Enabled

enter image description here

RahulKumarShaw
  • 4,192
  • 2
  • 5
  • 11