The testBaseAccounts/packages resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.TestBase/testBaseAccounts/packages resource, add the following JSON to your template.
{
"type": "Microsoft.TestBase/testBaseAccounts/packages",
"apiVersion": "2022-04-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"properties": {
"applicationName": "string",
"blobPath": "string",
"flightingRing": "string",
"targetOSList": [
{
"baselineOSs": [ "string" ],
"osUpdateType": "string",
"targetOSs": [ "string" ]
}
],
"tests": [
{
"commands": [
{
"action": "string",
"alwaysRun": "bool",
"applyUpdateBefore": "bool",
"content": "string",
"contentType": "string",
"maxRunTime": "int",
"name": "string",
"restartAfter": "bool",
"runAsInteractive": "bool",
"runElevated": "bool"
}
],
"isActive": "bool",
"testType": "string"
}
],
"version": "string"
}
}
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.TestBase/testBaseAccounts/packages' |
apiVersion | The resource api version | '2022-04-01-preview' |
name | The resource name See how to set names and types for child resources in JSON ARM templates. |
string (required) |
location | The geo-location where the resource lives | string (required) |
tags | The tags of the resource. | Dictionary of tag names and values. See Tags in templates |
properties | Test Base Package properties. | PackageProperties |
Name | Description | Value |
---|---|---|
applicationName | Application name | string (required) |
blobPath | The file path of the package. | string (required) |
flightingRing | The flighting ring for feature update. | string (required) |
targetOSList | Specifies the target OSs of specific OS Update types. | TargetOSInfo[] (required) |
tests | The detailed test information. | Test[] (required) |
version | Application version | string (required) |
Name | Description | Value |
---|---|---|
baselineOSs | Specifies the baseline OSs to be tested. | string[] |
osUpdateType | Specifies the OS update type to test against, e.g., 'Security updates' or 'Feature updates'. | string (required) |
targetOSs | Specifies the target OSs to be tested. | string[] (required) |
Name | Description | Value |
---|---|---|
commands | The commands used in the test. | Command[] (required) |
isActive | Indicates if this test is active.It doesn't schedule test for not active Test. | bool |
testType | The type of the test. | 'FunctionalTest' 'OutOfBoxTest' (required) |
Name | Description | Value |
---|---|---|
action | The action of the command. | 'Close' 'Custom' 'Install' 'Launch' 'Uninstall' (required) |
alwaysRun | Specifies whether to run the command even if a previous command is failed. | bool |
applyUpdateBefore | Specifies whether to apply update before the command. | bool |
content | The content of the command. The content depends on source type. | string (required) |
contentType | The type of command content. | 'File' 'Inline' 'Path' (required) |
maxRunTime | Specifies the max run time of the command. | int |
name | The name of the command. | string (required) |
restartAfter | Specifies whether to restart the VM after the command executed. | bool |
runAsInteractive | Specifies whether to run the command in interactive mode. | bool |
runElevated | Specifies whether to run the command as administrator. | bool |