This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.3 published on Thursday, Mar 20, 2025 by Pulumi
azure-native.testbase.getPackage
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.3 published on Thursday, Mar 20, 2025 by Pulumi
Gets a Test Base Package. Azure REST API version: 2022-04-01-preview.
Other available API versions: 2023-11-01-preview.
Using getPackage
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPackage(args: GetPackageArgs, opts?: InvokeOptions): Promise<GetPackageResult>
function getPackageOutput(args: GetPackageOutputArgs, opts?: InvokeOptions): Output<GetPackageResult>def get_package(package_name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                test_base_account_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetPackageResult
def get_package_output(package_name: Optional[pulumi.Input[str]] = None,
                resource_group_name: Optional[pulumi.Input[str]] = None,
                test_base_account_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetPackageResult]func LookupPackage(ctx *Context, args *LookupPackageArgs, opts ...InvokeOption) (*LookupPackageResult, error)
func LookupPackageOutput(ctx *Context, args *LookupPackageOutputArgs, opts ...InvokeOption) LookupPackageResultOutput> Note: This function is named LookupPackage in the Go SDK.
public static class GetPackage 
{
    public static Task<GetPackageResult> InvokeAsync(GetPackageArgs args, InvokeOptions? opts = null)
    public static Output<GetPackageResult> Invoke(GetPackageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPackageResult> getPackage(GetPackageArgs args, InvokeOptions options)
public static Output<GetPackageResult> getPackage(GetPackageArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:testbase:getPackage
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PackageName string
- The resource name of the Test Base Package.
- ResourceGroup stringName 
- The name of the resource group that contains the resource.
- TestBase stringAccount Name 
- The resource name of the Test Base Account.
- PackageName string
- The resource name of the Test Base Package.
- ResourceGroup stringName 
- The name of the resource group that contains the resource.
- TestBase stringAccount Name 
- The resource name of the Test Base Account.
- packageName String
- The resource name of the Test Base Package.
- resourceGroup StringName 
- The name of the resource group that contains the resource.
- testBase StringAccount Name 
- The resource name of the Test Base Account.
- packageName string
- The resource name of the Test Base Package.
- resourceGroup stringName 
- The name of the resource group that contains the resource.
- testBase stringAccount Name 
- The resource name of the Test Base Account.
- package_name str
- The resource name of the Test Base Package.
- resource_group_ strname 
- The name of the resource group that contains the resource.
- test_base_ straccount_ name 
- The resource name of the Test Base Account.
- packageName String
- The resource name of the Test Base Package.
- resourceGroup StringName 
- The name of the resource group that contains the resource.
- testBase StringAccount Name 
- The resource name of the Test Base Account.
getPackage Result
The following output properties are available:
- ApplicationName string
- Application name
- BlobPath string
- The file path of the package.
- Etag string
- Resource Etag.
- FlightingRing string
- The flighting ring for feature update.
- Id string
- Resource ID.
- IsEnabled bool
- Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
- LastModified stringTime 
- The UTC timestamp when the package was last modified.
- Location string
- The geo-location where the resource lives
- Name string
- Resource name.
- PackageStatus string
- The status of the package.
- ProvisioningState string
- The provisioning state of the resource.
- SystemData Pulumi.Azure Native. Test Base. Outputs. System Data Response 
- The system metadata relating to this resource
- TargetOSList List<Pulumi.Azure Native. Test Base. Outputs. Target OSInfo Response> 
- Specifies the target OSs of specific OS Update types.
- TestTypes List<string>
- OOB, functional or both. Mapped to the data in 'tests' property.
- Tests
List<Pulumi.Azure Native. Test Base. Outputs. Test Response> 
- The detailed test information.
- Type string
- Resource type.
- ValidationResults List<Pulumi.Azure Native. Test Base. Outputs. Package Validation Result Response> 
- The validation results. There's validation on package when it's created or updated.
- Version string
- Application version
- Dictionary<string, string>
- The tags of the resource.
- ApplicationName string
- Application name
- BlobPath string
- The file path of the package.
- Etag string
- Resource Etag.
- FlightingRing string
- The flighting ring for feature update.
- Id string
- Resource ID.
- IsEnabled bool
- Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
- LastModified stringTime 
- The UTC timestamp when the package was last modified.
- Location string
- The geo-location where the resource lives
- Name string
- Resource name.
- PackageStatus string
- The status of the package.
- ProvisioningState string
- The provisioning state of the resource.
- SystemData SystemData Response 
- The system metadata relating to this resource
- TargetOSList []TargetOSInfo Response 
- Specifies the target OSs of specific OS Update types.
- TestTypes []string
- OOB, functional or both. Mapped to the data in 'tests' property.
- Tests
[]TestResponse 
- The detailed test information.
- Type string
- Resource type.
- ValidationResults []PackageValidation Result Response 
- The validation results. There's validation on package when it's created or updated.
- Version string
- Application version
- map[string]string
- The tags of the resource.
- applicationName String
- Application name
- blobPath String
- The file path of the package.
- etag String
- Resource Etag.
- flightingRing String
- The flighting ring for feature update.
- id String
- Resource ID.
- isEnabled Boolean
- Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
- lastModified StringTime 
- The UTC timestamp when the package was last modified.
- location String
- The geo-location where the resource lives
- name String
- Resource name.
- packageStatus String
- The status of the package.
- provisioningState String
- The provisioning state of the resource.
- systemData SystemData Response 
- The system metadata relating to this resource
- targetOSList List<TargetOSInfo Response> 
- Specifies the target OSs of specific OS Update types.
- testTypes List<String>
- OOB, functional or both. Mapped to the data in 'tests' property.
- tests
List<TestResponse> 
- The detailed test information.
- type String
- Resource type.
- validationResults List<PackageValidation Result Response> 
- The validation results. There's validation on package when it's created or updated.
- version String
- Application version
- Map<String,String>
- The tags of the resource.
- applicationName string
- Application name
- blobPath string
- The file path of the package.
- etag string
- Resource Etag.
- flightingRing string
- The flighting ring for feature update.
- id string
- Resource ID.
- isEnabled boolean
- Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
- lastModified stringTime 
- The UTC timestamp when the package was last modified.
- location string
- The geo-location where the resource lives
- name string
- Resource name.
- packageStatus string
- The status of the package.
- provisioningState string
- The provisioning state of the resource.
- systemData SystemData Response 
- The system metadata relating to this resource
- targetOSList TargetOSInfo Response[] 
- Specifies the target OSs of specific OS Update types.
- testTypes string[]
- OOB, functional or both. Mapped to the data in 'tests' property.
- tests
TestResponse[] 
- The detailed test information.
- type string
- Resource type.
- validationResults PackageValidation Result Response[] 
- The validation results. There's validation on package when it's created or updated.
- version string
- Application version
- {[key: string]: string}
- The tags of the resource.
- application_name str
- Application name
- blob_path str
- The file path of the package.
- etag str
- Resource Etag.
- flighting_ring str
- The flighting ring for feature update.
- id str
- Resource ID.
- is_enabled bool
- Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
- last_modified_ strtime 
- The UTC timestamp when the package was last modified.
- location str
- The geo-location where the resource lives
- name str
- Resource name.
- package_status str
- The status of the package.
- provisioning_state str
- The provisioning state of the resource.
- system_data SystemData Response 
- The system metadata relating to this resource
- target_os_ Sequence[Targetlist OSInfo Response] 
- Specifies the target OSs of specific OS Update types.
- test_types Sequence[str]
- OOB, functional or both. Mapped to the data in 'tests' property.
- tests
Sequence[TestResponse] 
- The detailed test information.
- type str
- Resource type.
- validation_results Sequence[PackageValidation Result Response] 
- The validation results. There's validation on package when it's created or updated.
- version str
- Application version
- Mapping[str, str]
- The tags of the resource.
- applicationName String
- Application name
- blobPath String
- The file path of the package.
- etag String
- Resource Etag.
- flightingRing String
- The flighting ring for feature update.
- id String
- Resource ID.
- isEnabled Boolean
- Flag showing that whether the package is enabled. It doesn't schedule test for package which is not enabled.
- lastModified StringTime 
- The UTC timestamp when the package was last modified.
- location String
- The geo-location where the resource lives
- name String
- Resource name.
- packageStatus String
- The status of the package.
- provisioningState String
- The provisioning state of the resource.
- systemData Property Map
- The system metadata relating to this resource
- targetOSList List<Property Map>
- Specifies the target OSs of specific OS Update types.
- testTypes List<String>
- OOB, functional or both. Mapped to the data in 'tests' property.
- tests List<Property Map>
- The detailed test information.
- type String
- Resource type.
- validationResults List<Property Map>
- The validation results. There's validation on package when it's created or updated.
- version String
- Application version
- Map<String>
- The tags of the resource.
Supporting Types
CommandResponse 
- Action string
- The action of the command.
- Content string
- The content of the command. The content depends on source type.
- ContentType string
- The type of command content.
- Name string
- The name of the command.
- AlwaysRun bool
- Specifies whether to run the command even if a previous command is failed.
- ApplyUpdate boolBefore 
- Specifies whether to apply update before the command.
- EnrollIntune boolBefore 
- Specifies whether to enroll Intune before the command.
- Install1PAppBefore bool
- Specifies whether to install first party applications before running the command.
- MaxRun intTime 
- Specifies the max run time of the command.
- PostUpgrade bool
- Specifies whether the command is assigned to be executed after in-place upgrade.
- PreUpgrade bool
- Specifies whether the command is assigned to be executed before in-place upgrade.
- RestartAfter bool
- Specifies whether to restart the VM after the command executed.
- RunAs boolInteractive 
- Specifies whether to run the command in interactive mode.
- RunElevated bool
- Specifies whether to run the command as administrator.
- Action string
- The action of the command.
- Content string
- The content of the command. The content depends on source type.
- ContentType string
- The type of command content.
- Name string
- The name of the command.
- AlwaysRun bool
- Specifies whether to run the command even if a previous command is failed.
- ApplyUpdate boolBefore 
- Specifies whether to apply update before the command.
- EnrollIntune boolBefore 
- Specifies whether to enroll Intune before the command.
- Install1PAppBefore bool
- Specifies whether to install first party applications before running the command.
- MaxRun intTime 
- Specifies the max run time of the command.
- PostUpgrade bool
- Specifies whether the command is assigned to be executed after in-place upgrade.
- PreUpgrade bool
- Specifies whether the command is assigned to be executed before in-place upgrade.
- RestartAfter bool
- Specifies whether to restart the VM after the command executed.
- RunAs boolInteractive 
- Specifies whether to run the command in interactive mode.
- RunElevated bool
- Specifies whether to run the command as administrator.
- action String
- The action of the command.
- content String
- The content of the command. The content depends on source type.
- contentType String
- The type of command content.
- name String
- The name of the command.
- alwaysRun Boolean
- Specifies whether to run the command even if a previous command is failed.
- applyUpdate BooleanBefore 
- Specifies whether to apply update before the command.
- enrollIntune BooleanBefore 
- Specifies whether to enroll Intune before the command.
- install1PAppBefore Boolean
- Specifies whether to install first party applications before running the command.
- maxRun IntegerTime 
- Specifies the max run time of the command.
- postUpgrade Boolean
- Specifies whether the command is assigned to be executed after in-place upgrade.
- preUpgrade Boolean
- Specifies whether the command is assigned to be executed before in-place upgrade.
- restartAfter Boolean
- Specifies whether to restart the VM after the command executed.
- runAs BooleanInteractive 
- Specifies whether to run the command in interactive mode.
- runElevated Boolean
- Specifies whether to run the command as administrator.
- action string
- The action of the command.
- content string
- The content of the command. The content depends on source type.
- contentType string
- The type of command content.
- name string
- The name of the command.
- alwaysRun boolean
- Specifies whether to run the command even if a previous command is failed.
- applyUpdate booleanBefore 
- Specifies whether to apply update before the command.
- enrollIntune booleanBefore 
- Specifies whether to enroll Intune before the command.
- install1PAppBefore boolean
- Specifies whether to install first party applications before running the command.
- maxRun numberTime 
- Specifies the max run time of the command.
- postUpgrade boolean
- Specifies whether the command is assigned to be executed after in-place upgrade.
- preUpgrade boolean
- Specifies whether the command is assigned to be executed before in-place upgrade.
- restartAfter boolean
- Specifies whether to restart the VM after the command executed.
- runAs booleanInteractive 
- Specifies whether to run the command in interactive mode.
- runElevated boolean
- Specifies whether to run the command as administrator.
- action str
- The action of the command.
- content str
- The content of the command. The content depends on source type.
- content_type str
- The type of command content.
- name str
- The name of the command.
- always_run bool
- Specifies whether to run the command even if a previous command is failed.
- apply_update_ boolbefore 
- Specifies whether to apply update before the command.
- enroll_intune_ boolbefore 
- Specifies whether to enroll Intune before the command.
- install1_p_ boolapp_ before 
- Specifies whether to install first party applications before running the command.
- max_run_ inttime 
- Specifies the max run time of the command.
- post_upgrade bool
- Specifies whether the command is assigned to be executed after in-place upgrade.
- pre_upgrade bool
- Specifies whether the command is assigned to be executed before in-place upgrade.
- restart_after bool
- Specifies whether to restart the VM after the command executed.
- run_as_ boolinteractive 
- Specifies whether to run the command in interactive mode.
- run_elevated bool
- Specifies whether to run the command as administrator.
- action String
- The action of the command.
- content String
- The content of the command. The content depends on source type.
- contentType String
- The type of command content.
- name String
- The name of the command.
- alwaysRun Boolean
- Specifies whether to run the command even if a previous command is failed.
- applyUpdate BooleanBefore 
- Specifies whether to apply update before the command.
- enrollIntune BooleanBefore 
- Specifies whether to enroll Intune before the command.
- install1PAppBefore Boolean
- Specifies whether to install first party applications before running the command.
- maxRun NumberTime 
- Specifies the max run time of the command.
- postUpgrade Boolean
- Specifies whether the command is assigned to be executed after in-place upgrade.
- preUpgrade Boolean
- Specifies whether the command is assigned to be executed before in-place upgrade.
- restartAfter Boolean
- Specifies whether to restart the VM after the command executed.
- runAs BooleanInteractive 
- Specifies whether to run the command in interactive mode.
- runElevated Boolean
- Specifies whether to run the command as administrator.
PackageValidationResultResponse   
- Errors List<string>
- Error information.
- IsValid bool
- Indicates whether the package passed the validation.
- ValidationName string
- Validation name.
- Errors []string
- Error information.
- IsValid bool
- Indicates whether the package passed the validation.
- ValidationName string
- Validation name.
- errors List<String>
- Error information.
- isValid Boolean
- Indicates whether the package passed the validation.
- validationName String
- Validation name.
- errors string[]
- Error information.
- isValid boolean
- Indicates whether the package passed the validation.
- validationName string
- Validation name.
- errors Sequence[str]
- Error information.
- is_valid bool
- Indicates whether the package passed the validation.
- validation_name str
- Validation name.
- errors List<String>
- Error information.
- isValid Boolean
- Indicates whether the package passed the validation.
- validationName String
- Validation name.
SystemDataResponse  
- 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.
TargetOSInfoResponse  
- OsUpdate stringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- TargetOSs List<string>
- Specifies the target OSs to be tested.
- BaselineOSs List<string>
- Specifies the baseline OSs to be tested.
- InsiderChannel List<string>Ids 
- Insider Channel Ids. Only used for feature update.
- TargetOSImage List<string>Ids 
- Specifies the ids of the target OSs from Custom Images to be tested.
- OsUpdate stringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- TargetOSs []string
- Specifies the target OSs to be tested.
- BaselineOSs []string
- Specifies the baseline OSs to be tested.
- InsiderChannel []stringIds 
- Insider Channel Ids. Only used for feature update.
- TargetOSImage []stringIds 
- Specifies the ids of the target OSs from Custom Images to be tested.
- osUpdate StringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- targetOSs List<String>
- Specifies the target OSs to be tested.
- baselineOSs List<String>
- Specifies the baseline OSs to be tested.
- insiderChannel List<String>Ids 
- Insider Channel Ids. Only used for feature update.
- targetOSImage List<String>Ids 
- Specifies the ids of the target OSs from Custom Images to be tested.
- osUpdate stringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- targetOSs string[]
- Specifies the target OSs to be tested.
- baselineOSs string[]
- Specifies the baseline OSs to be tested.
- insiderChannel string[]Ids 
- Insider Channel Ids. Only used for feature update.
- targetOSImage string[]Ids 
- Specifies the ids of the target OSs from Custom Images to be tested.
- os_update_ strtype 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- target_oss Sequence[str]
- Specifies the target OSs to be tested.
- baseline_oss Sequence[str]
- Specifies the baseline OSs to be tested.
- insider_channel_ Sequence[str]ids 
- Insider Channel Ids. Only used for feature update.
- target_os_ Sequence[str]image_ ids 
- Specifies the ids of the target OSs from Custom Images to be tested.
- osUpdate StringType 
- Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'.
- targetOSs List<String>
- Specifies the target OSs to be tested.
- baselineOSs List<String>
- Specifies the baseline OSs to be tested.
- insiderChannel List<String>Ids 
- Insider Channel Ids. Only used for feature update.
- targetOSImage List<String>Ids 
- Specifies the ids of the target OSs from Custom Images to be tested.
TestResponse 
- Commands
List<Pulumi.Azure Native. Test Base. Inputs. Command Response> 
- The commands used in the test.
- TestType string
- The type of the test.
- ValidationResult stringId 
- Resource identifier of the validation test result.
- ValidationRun stringStatus 
- The status of the validation run of the package.
- IsActive bool
- Indicates if this test is active.It doesn't schedule test for not active Test.
- Commands
[]CommandResponse 
- The commands used in the test.
- TestType string
- The type of the test.
- ValidationResult stringId 
- Resource identifier of the validation test result.
- ValidationRun stringStatus 
- The status of the validation run of the package.
- IsActive bool
- Indicates if this test is active.It doesn't schedule test for not active Test.
- commands
List<CommandResponse> 
- The commands used in the test.
- testType String
- The type of the test.
- validationResult StringId 
- Resource identifier of the validation test result.
- validationRun StringStatus 
- The status of the validation run of the package.
- isActive Boolean
- Indicates if this test is active.It doesn't schedule test for not active Test.
- commands
CommandResponse[] 
- The commands used in the test.
- testType string
- The type of the test.
- validationResult stringId 
- Resource identifier of the validation test result.
- validationRun stringStatus 
- The status of the validation run of the package.
- isActive boolean
- Indicates if this test is active.It doesn't schedule test for not active Test.
- commands
Sequence[CommandResponse] 
- The commands used in the test.
- test_type str
- The type of the test.
- validation_result_ strid 
- Resource identifier of the validation test result.
- validation_run_ strstatus 
- The status of the validation run of the package.
- is_active bool
- Indicates if this test is active.It doesn't schedule test for not active Test.
- commands List<Property Map>
- The commands used in the test.
- testType String
- The type of the test.
- validationResult StringId 
- Resource identifier of the validation test result.
- validationRun StringStatus 
- The status of the validation run of the package.
- isActive Boolean
- Indicates if this test is active.It doesn't schedule test for not active Test.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.3 published on Thursday, Mar 20, 2025 by Pulumi