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 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")
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",
});
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
The CustomImage resource accepts the following input properties:
- Definition
Name string - Image definition name.
- Resource
Group 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.
- Test
Base stringAccount Name - The resource name of the Test Base Account.
- Version
Name string - Image version name.
- Custom
Image stringName - The resource name of the test base custom image.
- Vhd
Id string - The Id of the associated VHD resource.
- Definition
Name string - Image definition name.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Source
string | Image
Source - Custom image source type.
- Test
Base stringAccount Name - The resource name of the Test Base Account.
- Version
Name string - Image version name.
- Custom
Image stringName - The resource name of the test base custom image.
- Vhd
Id string - The Id of the associated VHD resource.
- definition
Name String - Image definition name.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- source
String | Image
Source - Custom image source type.
- test
Base StringAccount Name - The resource name of the Test Base Account.
- version
Name String - Image version name.
- custom
Image StringName - The resource name of the test base custom image.
- vhd
Id String - The Id of the associated VHD resource.
- definition
Name string - Image definition name.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- source
string | Image
Source - Custom image source type.
- test
Base stringAccount Name - The resource name of the Test Base Account.
- version
Name string - Image version name.
- custom
Image stringName - The resource name of the test base custom image.
- vhd
Id 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 | Image
Source - 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.
- definition
Name String - Image definition name.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- source String | "Unknown" | "VHD"
- Custom image source type.
- test
Base StringAccount Name - The resource name of the Test Base Account.
- version
Name String - Image version name.
- custom
Image StringName - The resource name of the test base custom image.
- vhd
Id 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:
- Creation
Time 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
- Os
Disk doubleImage Size In GB - This property indicates the size of the VHD to be created.
- Product string
- Product of the custom image.
- Provisioning
State string - The provisioning state of the resource.
- Release string
- Release of the custom image OS.
- Release
Version stringDate - The release version date of the release of the custom image OS.
- Status string
- Status of the custom image.
- System
Data 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"
- Validation
Results Pulumi.Azure Native. Test Base. Outputs. Image Validation Results Response - The validation result of the custom image.
- Vhd
File stringName - The file name of the associated VHD resource.
- Creation
Time 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
- Os
Disk float64Image Size In GB - This property indicates the size of the VHD to be created.
- Product string
- Product of the custom image.
- Provisioning
State string - The provisioning state of the resource.
- Release string
- Release of the custom image OS.
- Release
Version stringDate - The release version date of the release of the custom image OS.
- Status string
- Status of the custom image.
- System
Data 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"
- Validation
Results ImageValidation Results Response - The validation result of the custom image.
- Vhd
File stringName - The file name of the associated VHD resource.
- creation
Time 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
- os
Disk DoubleImage Size In GB - This property indicates the size of the VHD to be created.
- product String
- Product of the custom image.
- provisioning
State String - The provisioning state of the resource.
- release String
- Release of the custom image OS.
- release
Version StringDate - The release version date of the release of the custom image OS.
- status String
- Status of the custom image.
- system
Data 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"
- validation
Results ImageValidation Results Response - The validation result of the custom image.
- vhd
File StringName - The file name of the associated VHD resource.
- creation
Time 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
- os
Disk numberImage Size In GB - This property indicates the size of the VHD to be created.
- product string
- Product of the custom image.
- provisioning
State string - The provisioning state of the resource.
- release string
- Release of the custom image OS.
- release
Version stringDate - The release version date of the release of the custom image OS.
- status string
- Status of the custom image.
- system
Data 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"
- validation
Results ImageValidation Results Response - The validation result of the custom image.
- vhd
File 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.
- creation
Time 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
- os
Disk NumberImage Size In GB - This property indicates the size of the VHD to be created.
- product String
- Product of the custom image.
- provisioning
State String - The provisioning state of the resource.
- release String
- Release of the custom image OS.
- release
Version StringDate - The release version date of the release of the custom image OS.
- status String
- Status of the custom image.
- system
Data 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"
- validation
Results Property Map - The validation result of the custom image.
- vhd
File StringName - The file name of the associated VHD resource.
Supporting Types
ImageSource, ImageSourceArgs
- Unknown
- UnknownUnknown image source type.
- VHD
- VHDSpecify image onboarding through VHD.
- Image
Source Unknown - UnknownUnknown image source type.
- Image
Source 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
[]Verification
Result Response - The validation results of the image.
- results
List<Verification
Result Response> - The validation results of the image.
- results
Verification
Result Response[] - The validation results of the image.
- results
Sequence[Verification
Result Response] - The validation results of the image.
- results List<Property Map>
- The validation results of the image.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The type of identity that last modified the resource.
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The type of identity that last modified the resource.
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The type of identity that last modified the resource.
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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.
- Verification
Name string - The name of the verification rule.
- Result string
- Indicates if the validation or rule checking is passed.
- Message string
- Message for clarification.
- Verification
Name string - The name of the verification rule.
- result String
- Indicates if the validation or rule checking is passed.
- message String
- Message for clarification.
- verification
Name String - The name of the verification rule.
- result string
- Indicates if the validation or rule checking is passed.
- message string
- Message for clarification.
- verification
Name 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.
- verification
Name 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