### YamlMime:JavaType uid: "com.azure.resourcemanager.compute.models.VirtualMachineScaleSetExtension.DefinitionStages.WithImageOrPublisher" fullName: "com.azure.resourcemanager.compute.models.VirtualMachineScaleSetExtension.DefinitionStages.WithImageOrPublisher" name: "VirtualMachineScaleSetExtension.DefinitionStages.WithImageOrPublisher" nameWithType: "VirtualMachineScaleSetExtension.DefinitionStages.WithImageOrPublisher" summary: "The stage of a virtual machines scale set extension definition allowing to specify an extension image or specify name of the virtual machine scale set extension publisher." syntax: "public static interface **VirtualMachineScaleSetExtension.DefinitionStages.WithImageOrPublisher**
extends <>" methods: - uid: "com.azure.resourcemanager.compute.models.VirtualMachineScaleSetExtension.DefinitionStages.WithImageOrPublisher.withImage(com.azure.resourcemanager.compute.models.VirtualMachineExtensionImage)" fullName: "com.azure.resourcemanager.compute.models.VirtualMachineScaleSetExtension.DefinitionStages.WithImageOrPublisher.withImage(VirtualMachineExtensionImage image)" name: "withImage(VirtualMachineExtensionImage image)" nameWithType: "VirtualMachineScaleSetExtension.DefinitionStages.WithImageOrPublisher.withImage(VirtualMachineExtensionImage image)" summary: "Specifies the virtual machine scale set extension image to use." modifiers: - "abstract" parameters: - description: "an extension image" name: "image" type: "" syntax: "public abstract VirtualMachineScaleSetExtension.DefinitionStages.WithAttach withImage(VirtualMachineExtensionImage image)" desc: "Specifies the virtual machine scale set extension image to use." returns: description: "the next stage of the definition" type: "<>" type: "interface" typeParameters: - description: "the stage of the parent definition to return to after attaching this definition" name: "ParentT" desc: "The stage of a virtual machines scale set extension definition allowing to specify an extension image or specify name of the virtual machine scale set extension publisher." implements: - "<>" metadata: {} package: "com.azure.resourcemanager.compute.models" artifact: com.azure.resourcemanager:azure-resourcemanager-compute:2.44.0