### YamlMime:JavaType uid: "com.azure.resourcemanager.imagebuilder.models.ImageTemplate.DefinitionStages.WithResourceGroup" fullName: "com.azure.resourcemanager.imagebuilder.models.ImageTemplate.DefinitionStages.WithResourceGroup" name: "ImageTemplate.DefinitionStages.WithResourceGroup" nameWithType: "ImageTemplate.DefinitionStages.WithResourceGroup" summary: "The stage of the ImageTemplate definition allowing to specify parent resource." syntax: "public static interface **ImageTemplate.DefinitionStages.WithResourceGroup**" methods: - uid: "com.azure.resourcemanager.imagebuilder.models.ImageTemplate.DefinitionStages.WithResourceGroup.withExistingResourceGroup(java.lang.String)" fullName: "com.azure.resourcemanager.imagebuilder.models.ImageTemplate.DefinitionStages.WithResourceGroup.withExistingResourceGroup(String resourceGroupName)" name: "withExistingResourceGroup(String resourceGroupName)" nameWithType: "ImageTemplate.DefinitionStages.WithResourceGroup.withExistingResourceGroup(String resourceGroupName)" summary: "Specifies resourceGroupName." modifiers: - "abstract" parameters: - description: "The name of the resource group." name: "resourceGroupName" type: "String" syntax: "public abstract ImageTemplate.DefinitionStages.WithIdentity withExistingResourceGroup(String resourceGroupName)" desc: "Specifies resourceGroupName." returns: description: "the next definition stage." type: "" type: "interface" desc: "The stage of the ImageTemplate definition allowing to specify parent resource." metadata: {} package: "com.azure.resourcemanager.imagebuilder.models" artifact: com.azure.resourcemanager:azure-resourcemanager-imagebuilder:1.1.0