Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The labs/artifactsources resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.DevTestLab/labs/artifactsources resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.DevTestLab/labs/artifactsources@2015-05-21-preview' = {
parent: resourceSymbolicName
location: 'string'
name: 'string'
properties: {
branchRef: 'string'
displayName: 'string'
folderPath: 'string'
provisioningState: 'string'
securityToken: 'string'
sourceType: 'string'
status: 'string'
uri: 'string'
}
tags: {
{customized property}: 'string'
}
}
Property Values
Microsoft.DevTestLab/labs/artifactsources
| Name | Description | Value |
|---|---|---|
| location | The location of the resource. | string |
| name | The resource name | string (required) |
| parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: labs |
| properties | The properties of the resource. | ArtifactSourceProperties |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
ArtifactSourceProperties
| Name | Description | Value |
|---|---|---|
| branchRef | The branch reference of the artifact source. | string |
| displayName | The display name of the artifact source. | string |
| folderPath | The folder path of the artifact source. | string |
| provisioningState | The provisioning status of the resource. | string |
| securityToken | The security token of the artifact source. | string |
| sourceType | The type of the artifact source. | 'GitHub' 'VsoGit' |
| status | The status of the artifact source. | 'Disabled' 'Enabled' |
| uri | The URI of the artifact source. | string |
ArtifactSourceTags
| Name | Description | Value |
|---|
ARM template resource definition
The labs/artifactsources resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.DevTestLab/labs/artifactsources resource, add the following JSON to your template.
{
"type": "Microsoft.DevTestLab/labs/artifactsources",
"apiVersion": "2015-05-21-preview",
"name": "string",
"location": "string",
"properties": {
"branchRef": "string",
"displayName": "string",
"folderPath": "string",
"provisioningState": "string",
"securityToken": "string",
"sourceType": "string",
"status": "string",
"uri": "string"
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.DevTestLab/labs/artifactsources
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2015-05-21-preview' |
| location | The location of the resource. | string |
| name | The resource name | string (required) |
| properties | The properties of the resource. | ArtifactSourceProperties |
| tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
| type | The resource type | 'Microsoft.DevTestLab/labs/artifactsources' |
ArtifactSourceProperties
| Name | Description | Value |
|---|---|---|
| branchRef | The branch reference of the artifact source. | string |
| displayName | The display name of the artifact source. | string |
| folderPath | The folder path of the artifact source. | string |
| provisioningState | The provisioning status of the resource. | string |
| securityToken | The security token of the artifact source. | string |
| sourceType | The type of the artifact source. | 'GitHub' 'VsoGit' |
| status | The status of the artifact source. | 'Disabled' 'Enabled' |
| uri | The URI of the artifact source. | string |
ArtifactSourceTags
| Name | Description | Value |
|---|
Usage Examples
Terraform (AzAPI provider) resource definition
The labs/artifactsources resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.DevTestLab/labs/artifactsources resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.DevTestLab/labs/artifactsources@2015-05-21-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
branchRef = "string"
displayName = "string"
folderPath = "string"
provisioningState = "string"
securityToken = "string"
sourceType = "string"
status = "string"
uri = "string"
}
}
}
Property Values
Microsoft.DevTestLab/labs/artifactsources
| Name | Description | Value |
|---|---|---|
| location | The location of the resource. | string |
| name | The resource name | string (required) |
| parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: labs |
| properties | The properties of the resource. | ArtifactSourceProperties |
| tags | Resource tags | Dictionary of tag names and values. |
| type | The resource type | "Microsoft.DevTestLab/labs/artifactsources@2015-05-21-preview" |
ArtifactSourceProperties
| Name | Description | Value |
|---|---|---|
| branchRef | The branch reference of the artifact source. | string |
| displayName | The display name of the artifact source. | string |
| folderPath | The folder path of the artifact source. | string |
| provisioningState | The provisioning status of the resource. | string |
| securityToken | The security token of the artifact source. | string |
| sourceType | The type of the artifact source. | 'GitHub' 'VsoGit' |
| status | The status of the artifact source. | 'Disabled' 'Enabled' |
| uri | The URI of the artifact source. | string |
ArtifactSourceTags
| Name | Description | Value |
|---|