### YamlMime:JavaType uid: "com.microsoft.azure.management.batch.ImageReference" fullName: "com.microsoft.azure.management.batch.ImageReference" name: "ImageReference" nameWithType: "ImageReference" summary: "A reference to an Azure Virtual Machines Marketplace image or the Azure Image resource of a custom Virtual Machine." inheritances: - "" inheritedClassMethods: - classRef: "" methodsRef: - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" syntax: "public class **ImageReference**" constructors: - uid: "com.microsoft.azure.management.batch.ImageReference.ImageReference()" fullName: "com.microsoft.azure.management.batch.ImageReference.ImageReference()" name: "ImageReference()" nameWithType: "ImageReference.ImageReference()" syntax: "public ImageReference()" methods: - uid: "com.microsoft.azure.management.batch.ImageReference.id()" fullName: "com.microsoft.azure.management.batch.ImageReference.id()" name: "id()" nameWithType: "ImageReference.id()" summary: "Get this property is mutually exclusive with other properties." syntax: "public String id()" desc: "Get this property is mutually exclusive with other 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 node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics\\#virtual-network-vnet-and-firewall-configuration." returns: description: "the id value" type: "" - uid: "com.microsoft.azure.management.batch.ImageReference.offer()" fullName: "com.microsoft.azure.management.batch.ImageReference.offer()" name: "offer()" nameWithType: "ImageReference.offer()" summary: "Get for example, UbuntuServer or WindowsServer." syntax: "public String offer()" desc: "Get for example, UbuntuServer or WindowsServer." returns: description: "the offer value" type: "" - uid: "com.microsoft.azure.management.batch.ImageReference.publisher()" fullName: "com.microsoft.azure.management.batch.ImageReference.publisher()" name: "publisher()" nameWithType: "ImageReference.publisher()" summary: "Get for example, Canonical or MicrosoftWindowsServer." syntax: "public String publisher()" desc: "Get for example, Canonical or MicrosoftWindowsServer." returns: description: "the publisher value" type: "" - uid: "com.microsoft.azure.management.batch.ImageReference.sku()" fullName: "com.microsoft.azure.management.batch.ImageReference.sku()" name: "sku()" nameWithType: "ImageReference.sku()" summary: "Get for example, 18.04-LTS or 2019-Datacenter." syntax: "public String sku()" desc: "Get for example, 18.04-LTS or 2019-Datacenter." returns: description: "the sku value" type: "" - uid: "com.microsoft.azure.management.batch.ImageReference.version()" fullName: "com.microsoft.azure.management.batch.ImageReference.version()" name: "version()" nameWithType: "ImageReference.version()" summary: "Get a value of 'latest' can be specified to select the latest version of an image." syntax: "public String version()" desc: "Get a value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'." returns: description: "the version value" type: "" - uid: "com.microsoft.azure.management.batch.ImageReference.withId(java.lang.String)" fullName: "com.microsoft.azure.management.batch.ImageReference.withId(String id)" name: "withId(String id)" nameWithType: "ImageReference.withId(String id)" summary: "Set this property is mutually exclusive with other properties." parameters: - description: "the id value to set" name: "id" type: "" syntax: "public ImageReference withId(String id)" desc: "Set this property is mutually exclusive with other 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 node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics\\#virtual-network-vnet-and-firewall-configuration." returns: description: "the ImageReference object itself." type: "" - uid: "com.microsoft.azure.management.batch.ImageReference.withOffer(java.lang.String)" fullName: "com.microsoft.azure.management.batch.ImageReference.withOffer(String offer)" name: "withOffer(String offer)" nameWithType: "ImageReference.withOffer(String offer)" summary: "Set for example, UbuntuServer or WindowsServer." parameters: - description: "the offer value to set" name: "offer" type: "" syntax: "public ImageReference withOffer(String offer)" desc: "Set for example, UbuntuServer or WindowsServer." returns: description: "the ImageReference object itself." type: "" - uid: "com.microsoft.azure.management.batch.ImageReference.withPublisher(java.lang.String)" fullName: "com.microsoft.azure.management.batch.ImageReference.withPublisher(String publisher)" name: "withPublisher(String publisher)" nameWithType: "ImageReference.withPublisher(String publisher)" summary: "Set for example, Canonical or MicrosoftWindowsServer." parameters: - description: "the publisher value to set" name: "publisher" type: "" syntax: "public ImageReference withPublisher(String publisher)" desc: "Set for example, Canonical or MicrosoftWindowsServer." returns: description: "the ImageReference object itself." type: "" - uid: "com.microsoft.azure.management.batch.ImageReference.withSku(java.lang.String)" fullName: "com.microsoft.azure.management.batch.ImageReference.withSku(String sku)" name: "withSku(String sku)" nameWithType: "ImageReference.withSku(String sku)" summary: "Set for example, 18.04-LTS or 2019-Datacenter." parameters: - description: "the sku value to set" name: "sku" type: "" syntax: "public ImageReference withSku(String sku)" desc: "Set for example, 18.04-LTS or 2019-Datacenter." returns: description: "the ImageReference object itself." type: "" - uid: "com.microsoft.azure.management.batch.ImageReference.withVersion(java.lang.String)" fullName: "com.microsoft.azure.management.batch.ImageReference.withVersion(String version)" name: "withVersion(String version)" nameWithType: "ImageReference.withVersion(String version)" summary: "Set a value of 'latest' can be specified to select the latest version of an image." parameters: - description: "the version value to set" name: "version" type: "" syntax: "public ImageReference withVersion(String version)" desc: "Set a value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'." returns: description: "the ImageReference object itself." type: "" type: "class" desc: "A reference to an Azure Virtual Machines Marketplace image or the Azure Image resource of a custom Virtual Machine. To get the list of all imageReferences verified by Azure Batch, see the 'List supported node agent SKUs' operation." metadata: {} package: "com.microsoft.azure.management.batch" artifact: com.microsoft.azure:azure-mgmt-batch:1.41.4