Hi Vishal Shinde,
Error typically indicates a failure during the environment setup phase for a Prompt Flow session in Azure Machine Learning. Based on the diagnostic logs, the session configuration appears to be missing key parameters like ComputeName, VmSize, and BaseImage, which may lead to deployment failures.To help resolve the issue, please consider the following steps:
- Compute Instance Setup: Ensure that a healthy and running compute instance is explicitly selected when starting the Prompt Flow session. Restarting the compute instance and creating a new session can also help resolve transient issues. Troublshooting,, Create/Manage a compute session
- Environment and Dependencies: Use a simplified requirements.txt file with only the necessary packages: promptflow==1.18.0 azure-ai-ml==1.27.1 Alternatively, create a custom environment in Azure ML Studio using a Conda YAML or Docker configuration. If you're using a custom image, ensure you're building on a supported base image and all required dependencies are included. You may refer to How to customize base image
- Base Image Configuration: Specify a compatible base image such as: mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04
- Docker Image Accessibility: If you're in a private link-enabled workspace or behind restricted networks, ensure access to external image sources like pkg-containers.githubusercontent.com and ghcr.io is allowed. Lack of access can cause environment build failures.
- Session Configuration Parameters: The diagnostic output shows several fields like VmSize, Identity, and MaxIdleTimeSeconds are set to null. Setting these explicitly when creating the session can help avoid default misconfigurations.
- Permissions and Role Assignments: Ensure your user account and the workspace-managed identity have appropriate roles, such as Reader and Storage Blob Data Reader, especially for accessing backing storage. If role assignments were recently added, please allow 5–10 minutes for propagation.
- Region Considerations: In rare cases, changing to a different region may help if certain resources are experiencing regional constraints.
For your reference: Azure ML Workspace cannot create prompt flow compute session.
I hope this information helps. Thank you!