Hello Amir Zareie,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are having environment "Setup Error" in Azure AI Foundry Code Section with managed network Isolation.
Firstly, double-check the Azure AI Foundry documentation for any additional steps or updates related to managed network isolation and compute instance setup.
Regarding your response and highlighted issues, you should be able to resolve the environment setup error and ensure that your compute instance is in a healthy state with the followings:
- Check your private endpoints and ensure that all required FQDNs are correctly configured as per the documentation.
- Since FQDN rules do not support specifying ports, you need to use Network Security Groups (NSGs) or Azure Firewall to allow traffic on ports 8704 to 8710.
- If you are using Network Security Groups (NSGs):
- Create an NSG and associate it with the subnet where your compute instance is deployed.
- Add inbound and outbound security rules to allow traffic on ports 8704 to 8710.
- If you would like to use Azure Firewall:
- If you are using Azure Firewall, create rules to allow traffic on ports 8704 to 8710.
- For your compute instance health, ensure that the compute instance is in a running state and not in a failed or stopped state. You can use the
az ml compute show
command to check the status of your compute instance. - Also, you can use the
az ml compute connect-ssh
command to connect to the compute instance and verify its connectivity and configuration.
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.