azure-native.testbase.CustomImage
Explore with Pulumi AI
The test base custom image resource. Azure REST API version: 2023-11-01-preview.
Example Usage
CustomImageCreate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() => 
{
    var customImage = new AzureNative.TestBase.CustomImage("customImage", new()
    {
        CustomImageName = "image-2cfb2edc-13bc-4d54-8d6e-38b2a233b003",
        DefinitionName = "contoso-image-def",
        ResourceGroupName = "contoso-rg1",
        Source = AzureNative.TestBase.ImageSource.VHD,
        TestBaseAccountName = "contoso-testBaseAccount1",
        VersionName = "1.0.0",
        VhdId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/VHDs/vhd-00ac3ccd-1503-4ee5-aa26-26569cfafe88",
    });
});
package main
import (
	testbase "github.com/pulumi/pulumi-azure-native-sdk/testbase/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := testbase.NewCustomImage(ctx, "customImage", &testbase.CustomImageArgs{
			CustomImageName:     pulumi.String("image-2cfb2edc-13bc-4d54-8d6e-38b2a233b003"),
			DefinitionName:      pulumi.String("contoso-image-def"),
			ResourceGroupName:   pulumi.String("contoso-rg1"),
			Source:              pulumi.String(testbase.ImageSourceVHD),
			TestBaseAccountName: pulumi.String("contoso-testBaseAccount1"),
			VersionName:         pulumi.String("1.0.0"),
			VhdId:               pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/VHDs/vhd-00ac3ccd-1503-4ee5-aa26-26569cfafe88"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.testbase.CustomImage;
import com.pulumi.azurenative.testbase.CustomImageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var customImage = new CustomImage("customImage", CustomImageArgs.builder()
            .customImageName("image-2cfb2edc-13bc-4d54-8d6e-38b2a233b003")
            .definitionName("contoso-image-def")
            .resourceGroupName("contoso-rg1")
            .source("VHD")
            .testBaseAccountName("contoso-testBaseAccount1")
            .versionName("1.0.0")
            .vhdId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/VHDs/vhd-00ac3ccd-1503-4ee5-aa26-26569cfafe88")
            .build());
    }
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const customImage = new azure_native.testbase.CustomImage("customImage", {
    customImageName: "image-2cfb2edc-13bc-4d54-8d6e-38b2a233b003",
    definitionName: "contoso-image-def",
    resourceGroupName: "contoso-rg1",
    source: azure_native.testbase.ImageSource.VHD,
    testBaseAccountName: "contoso-testBaseAccount1",
    versionName: "1.0.0",
    vhdId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/VHDs/vhd-00ac3ccd-1503-4ee5-aa26-26569cfafe88",
});
import pulumi
import pulumi_azure_native as azure_native
custom_image = azure_native.testbase.CustomImage("customImage",
    custom_image_name="image-2cfb2edc-13bc-4d54-8d6e-38b2a233b003",
    definition_name="contoso-image-def",
    resource_group_name="contoso-rg1",
    source=azure_native.testbase.ImageSource.VHD,
    test_base_account_name="contoso-testBaseAccount1",
    version_name="1.0.0",
    vhd_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/VHDs/vhd-00ac3ccd-1503-4ee5-aa26-26569cfafe88")
resources:
  customImage:
    type: azure-native:testbase:CustomImage
    properties:
      customImageName: image-2cfb2edc-13bc-4d54-8d6e-38b2a233b003
      definitionName: contoso-image-def
      resourceGroupName: contoso-rg1
      source: VHD
      testBaseAccountName: contoso-testBaseAccount1
      versionName: 1.0.0
      vhdId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso-rg1/providers/Microsoft.TestBase/testBaseAccounts/contoso-testBaseAccount1/VHDs/vhd-00ac3ccd-1503-4ee5-aa26-26569cfafe88
Create CustomImage Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CustomImage(name: string, args: CustomImageArgs, opts?: CustomResourceOptions);@overload
def CustomImage(resource_name: str,
                args: CustomImageArgs,
                opts: Optional[ResourceOptions] = None)
@overload
def CustomImage(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                definition_name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                source: Optional[Union[str, ImageSource]] = None,
                test_base_account_name: Optional[str] = None,
                version_name: Optional[str] = None,
                custom_image_name: Optional[str] = None,
                vhd_id: Optional[str] = None)func NewCustomImage(ctx *Context, name string, args CustomImageArgs, opts ...ResourceOption) (*CustomImage, error)public CustomImage(string name, CustomImageArgs args, CustomResourceOptions? opts = null)
public CustomImage(String name, CustomImageArgs args)
public CustomImage(String name, CustomImageArgs args, CustomResourceOptions options)
type: azure-native:testbase:CustomImage
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CustomImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CustomImageArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CustomImageArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CustomImageArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CustomImageArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeCustomImageResource = new AzureNative.TestBase.CustomImage("azure-nativeCustomImageResource", new()
{
    DefinitionName = "string",
    ResourceGroupName = "string",
    Source = "string",
    TestBaseAccountName = "string",
    VersionName = "string",
    CustomImageName = "string",
    VhdId = "string",
});
example, err := testbase.NewCustomImage(ctx, "azure-nativeCustomImageResource", &testbase.CustomImageArgs{
	DefinitionName:      pulumi.String("string"),
	ResourceGroupName:   pulumi.String("string"),
	Source:              pulumi.String("string"),
	TestBaseAccountName: pulumi.String("string"),
	VersionName:         pulumi.String("string"),
	CustomImageName:     pulumi.String("string"),
	VhdId:               pulumi.String("string"),
})
var azure_nativeCustomImageResource = new CustomImage("azure-nativeCustomImageResource", CustomImageArgs.builder()
    .definitionName("string")
    .resourceGroupName("string")
    .source("string")
    .testBaseAccountName("string")
    .versionName("string")
    .customImageName("string")
    .vhdId("string")
    .build());
azure_native_custom_image_resource = azure_native.testbase.CustomImage("azure-nativeCustomImageResource",
    definition_name="string",
    resource_group_name="string",
    source="string",
    test_base_account_name="string",
    version_name="string",
    custom_image_name="string",
    vhd_id="string")
const azure_nativeCustomImageResource = new azure_native.testbase.CustomImage("azure-nativeCustomImageResource", {
    definitionName: "string",
    resourceGroupName: "string",
    source: "string",
    testBaseAccountName: "string",
    versionName: "string",
    customImageName: "string",
    vhdId: "string",
});
type: azure-native:testbase:CustomImage
properties:
    customImageName: string
    definitionName: string
    resourceGroupName: string
    source: string
    testBaseAccountName: string
    versionName: string
    vhdId: string
CustomImage Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CustomImage resource accepts the following input properties:
- DefinitionName string
- Image definition name.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Source
string | Pulumi.Azure Native. Test Base. Image Source 
- Custom image source type.
- TestBase stringAccount Name 
- The resource name of the Test Base Account.
- VersionName string
- Image version name.
- CustomImage stringName 
- The resource name of the test base custom image.
- VhdId string
- The Id of the associated VHD resource.
- DefinitionName string
- Image definition name.
- ResourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- Source
string | ImageSource 
- Custom image source type.
- TestBase stringAccount Name 
- The resource name of the Test Base Account.
- VersionName string
- Image version name.
- CustomImage stringName 
- The resource name of the test base custom image.
- VhdId string
- The Id of the associated VHD resource.
- definitionName String
- Image definition name.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- source
String | ImageSource 
- Custom image source type.
- testBase StringAccount Name 
- The resource name of the Test Base Account.
- versionName String
- Image version name.
- customImage StringName 
- The resource name of the test base custom image.
- vhdId String
- The Id of the associated VHD resource.
- definitionName string
- Image definition name.
- resourceGroup stringName 
- The name of the resource group. The name is case insensitive.
- source
string | ImageSource 
- Custom image source type.
- testBase stringAccount Name 
- The resource name of the Test Base Account.
- versionName string
- Image version name.
- customImage stringName 
- The resource name of the test base custom image.
- vhdId string
- The Id of the associated VHD resource.
- definition_name str
- Image definition name.
- resource_group_ strname 
- The name of the resource group. The name is case insensitive.
- source
str | ImageSource 
- Custom image source type.
- test_base_ straccount_ name 
- The resource name of the Test Base Account.
- version_name str
- Image version name.
- custom_image_ strname 
- The resource name of the test base custom image.
- vhd_id str
- The Id of the associated VHD resource.
- definitionName String
- Image definition name.
- resourceGroup StringName 
- The name of the resource group. The name is case insensitive.
- source String | "Unknown" | "VHD"
- Custom image source type.
- testBase StringAccount Name 
- The resource name of the Test Base Account.
- versionName String
- Image version name.
- customImage StringName 
- The resource name of the test base custom image.
- vhdId String
- The Id of the associated VHD resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the CustomImage resource produces the following output properties:
- CreationTime string
- The UTC timestamp when the custom image was published.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- OsDisk doubleImage Size In GB 
- This property indicates the size of the VHD to be created.
- Product string
- Product of the custom image.
- ProvisioningState string
- The provisioning state of the resource.
- Release string
- Release of the custom image OS.
- ReleaseVersion stringDate 
- The release version date of the release of the custom image OS.
- Status string
- Status of the custom image.
- SystemData Pulumi.Azure Native. Test Base. Outputs. System Data Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- ValidationResults Pulumi.Azure Native. Test Base. Outputs. Image Validation Results Response 
- The validation result of the custom image.
- VhdFile stringName 
- The file name of the associated VHD resource.
- CreationTime string
- The UTC timestamp when the custom image was published.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- OsDisk float64Image Size In GB 
- This property indicates the size of the VHD to be created.
- Product string
- Product of the custom image.
- ProvisioningState string
- The provisioning state of the resource.
- Release string
- Release of the custom image OS.
- ReleaseVersion stringDate 
- The release version date of the release of the custom image OS.
- Status string
- Status of the custom image.
- SystemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- ValidationResults ImageValidation Results Response 
- The validation result of the custom image.
- VhdFile stringName 
- The file name of the associated VHD resource.
- creationTime String
- The UTC timestamp when the custom image was published.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- osDisk DoubleImage Size In GB 
- This property indicates the size of the VHD to be created.
- product String
- Product of the custom image.
- provisioningState String
- The provisioning state of the resource.
- release String
- Release of the custom image OS.
- releaseVersion StringDate 
- The release version date of the release of the custom image OS.
- status String
- Status of the custom image.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- validationResults ImageValidation Results Response 
- The validation result of the custom image.
- vhdFile StringName 
- The file name of the associated VHD resource.
- creationTime string
- The UTC timestamp when the custom image was published.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- osDisk numberImage Size In GB 
- This property indicates the size of the VHD to be created.
- product string
- Product of the custom image.
- provisioningState string
- The provisioning state of the resource.
- release string
- Release of the custom image OS.
- releaseVersion stringDate 
- The release version date of the release of the custom image OS.
- status string
- Status of the custom image.
- systemData SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- validationResults ImageValidation Results Response 
- The validation result of the custom image.
- vhdFile stringName 
- The file name of the associated VHD resource.
- creation_time str
- The UTC timestamp when the custom image was published.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- os_disk_ floatimage_ size_ in_ gb 
- This property indicates the size of the VHD to be created.
- product str
- Product of the custom image.
- provisioning_state str
- The provisioning state of the resource.
- release str
- Release of the custom image OS.
- release_version_ strdate 
- The release version date of the release of the custom image OS.
- status str
- Status of the custom image.
- system_data SystemData Response 
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- validation_results ImageValidation Results Response 
- The validation result of the custom image.
- vhd_file_ strname 
- The file name of the associated VHD resource.
- creationTime String
- The UTC timestamp when the custom image was published.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- osDisk NumberImage Size In GB 
- This property indicates the size of the VHD to be created.
- product String
- Product of the custom image.
- provisioningState String
- The provisioning state of the resource.
- release String
- Release of the custom image OS.
- releaseVersion StringDate 
- The release version date of the release of the custom image OS.
- status String
- Status of the custom image.
- systemData Property Map
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- validationResults Property Map
- The validation result of the custom image.
- vhdFile StringName 
- The file name of the associated VHD resource.
Supporting Types
ImageSource, ImageSourceArgs    
- Unknown
- UnknownUnknown image source type.
- VHD
- VHDSpecify image onboarding through VHD.
- ImageSource Unknown 
- UnknownUnknown image source type.
- ImageSource VHD 
- VHDSpecify image onboarding through VHD.
- Unknown
- UnknownUnknown image source type.
- VHD
- VHDSpecify image onboarding through VHD.
- Unknown
- UnknownUnknown image source type.
- VHD
- VHDSpecify image onboarding through VHD.
- UNKNOWN
- UnknownUnknown image source type.
- VHD
- VHDSpecify image onboarding through VHD.
- "Unknown"
- UnknownUnknown image source type.
- "VHD"
- VHDSpecify image onboarding through VHD.
ImageValidationResultsResponse, ImageValidationResultsResponseArgs        
- Results
List<Pulumi.Azure Native. Test Base. Inputs. Verification Result Response> 
- The validation results of the image.
- Results
[]VerificationResult Response 
- The validation results of the image.
- results
List<VerificationResult Response> 
- The validation results of the image.
- results
VerificationResult Response[] 
- The validation results of the image.
- results
Sequence[VerificationResult Response] 
- The validation results of the image.
- results List<Property Map>
- The validation results of the image.
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- CreatedAt string
- The timestamp of resource creation (UTC).
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The type of identity that last modified the resource.
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
- createdAt string
- The timestamp of resource creation (UTC).
- createdBy string
- The identity that created the resource.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The type of identity that last modified the resource.
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- The type of identity that last modified the resource.
- created_at str
- The timestamp of resource creation (UTC).
- created_by str
- The identity that created the resource.
- created_by_ strtype 
- The type of identity that created the resource.
- last_modified_ strat 
- The type of identity that last modified the resource.
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- The type of identity that last modified the resource.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The type of identity that last modified the resource.
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- The type of identity that last modified the resource.
VerificationResultResponse, VerificationResultResponseArgs      
- Result string
- Indicates if the validation or rule checking is passed.
- Message string
- Message for clarification.
- VerificationName string
- The name of the verification rule.
- Result string
- Indicates if the validation or rule checking is passed.
- Message string
- Message for clarification.
- VerificationName string
- The name of the verification rule.
- result String
- Indicates if the validation or rule checking is passed.
- message String
- Message for clarification.
- verificationName String
- The name of the verification rule.
- result string
- Indicates if the validation or rule checking is passed.
- message string
- Message for clarification.
- verificationName string
- The name of the verification rule.
- result str
- Indicates if the validation or rule checking is passed.
- message str
- Message for clarification.
- verification_name str
- The name of the verification rule.
- result String
- Indicates if the validation or rule checking is passed.
- message String
- Message for clarification.
- verificationName String
- The name of the verification rule.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:testbase:CustomImage image-2cfb2edc-13bc-4d54-8d6e-38b2a233b003 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.TestBase/testBaseAccounts/{testBaseAccountName}/customImages/{customImageName} 
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0