ImageReference.VirtualMachineImageId Property


Gets the ARM resource identifier of the Virtual Machine Image or Shared Image Gallery Image. Computes Compute Nodes of the Pool will be created using this Image Id. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}.

public string VirtualMachineImageId { get; }
member this.VirtualMachineImageId : string
Public ReadOnly Property VirtualMachineImageId As String

Property Value



This property is mutually exclusive with other ImageReference properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch Compute Node agent to communicate with the Batch service see

Applies to