The error SharedGalleryImageNotInRegion indicates that, from the perspective of the Azure Compute Gallery, the image version being referenced by the 1ES agent pool deployment does not have a replica in the target region, even if the image resource itself is located there.
For Azure Compute Gallery images, the region where the gallery/image definition/image version resources are created and the list of publishing regions (replicas) must explicitly include the target region:
- If the image version’s publishing profile does not contain the target region, deployments in that region fail with an error that the image is not available in the region.
- The publishing regions list must also contain the source region of the image version.
To unblock the deployment:
- Open the Azure Compute Gallery image version that backs
Backup-1ES-AgentImage-Windows. - In the image version’s publishing profile, verify that:
-
South Indiais present in the list of target/publishing regions. - The source region of the image version is also included in the publishing regions list.
-
- If
South Indiais missing, update the image version to addSouth Indiaas a publishing region (or create a new image version withSouth Indiain the publishing regions). - Wait for replication to complete in
South India, then retry creating the 1ES agent pool.
If the image version already lists South India but deployment still fails, validate that there is at least one image version in South India that is not excluded from latest, and that the region name is not duplicated or misconfigured in the publishing profile.
References: