Microsoft.SecurityInsights sourcecontrols 2021-03-01-preview
Bicep resource definition
The sourcecontrols resource type is an extension resource, which means you can apply it to another resource.
Use the scope
property on this resource to set the scope for this resource. See Set scope on extension resources in Bicep.
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.SecurityInsights/sourcecontrols resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.SecurityInsights/sourcecontrols@2021-03-01-preview' = {
name: 'string'
scope: resourceSymbolicName
etag: 'string'
properties: {
contentTypes: [
'string'
]
description: 'string'
displayName: 'string'
id: 'string'
repository: {
branch: 'string'
deploymentLogsUrl: 'string'
displayUrl: 'string'
pathMapping: [
{
contentType: 'string'
path: 'string'
}
]
url: 'string'
}
repoType: 'string'
}
}
Property values
sourcecontrols
Name | Description | Value |
---|---|---|
name | The resource name | string (required) |
scope | Use when creating an extension resource at a scope that is different than the deployment scope. | Target resource For Bicep, set this property to the symbolic name of the resource to apply the extension resource. |
etag | Etag of the azure resource | string |
properties | source control properties | SourceControlProperties |
SourceControlProperties
Name | Description | Value |
---|---|---|
contentTypes | Array of source control content types. | String array containing any of: 'AnalyticRule' 'Workbook' (required) |
description | A description of the source control | string |
displayName | The display name of the source control | string (required) |
id | The id (a Guid) of the source control | string |
repository | Repository metadata. | Repository (required) |
repoType | The repository type of the source control | 'DevOps' 'Github' (required) |
Repository
Name | Description | Value |
---|---|---|
branch | Branch name of repository. | string |
deploymentLogsUrl | Url to access repository action logs. | string |
displayUrl | Display url of repository. | string |
pathMapping | Dictionary of source control content type and path mapping. | ContentPathMap[] |
url | Url of repository. | string |
ContentPathMap
Name | Description | Value |
---|---|---|
contentType | Content type. | 'AnalyticRule' 'Workbook' |
path | The path to the content. | string |
ARM template resource definition
The sourcecontrols resource type is an extension resource, which means you can apply it to another resource.
Use the scope
property on this resource to set the scope for this resource. See Set scope on extension resources in ARM templates.
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.SecurityInsights/sourcecontrols resource, add the following JSON to your template.
{
"type": "Microsoft.SecurityInsights/sourcecontrols",
"apiVersion": "2021-03-01-preview",
"name": "string",
"scope": "string",
"etag": "string",
"properties": {
"contentTypes": [ "string" ],
"description": "string",
"displayName": "string",
"id": "string",
"repository": {
"branch": "string",
"deploymentLogsUrl": "string",
"displayUrl": "string",
"pathMapping": [
{
"contentType": "string",
"path": "string"
}
],
"url": "string"
},
"repoType": "string"
}
}
Property values
sourcecontrols
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.SecurityInsights/sourcecontrols' |
apiVersion | The resource api version | '2021-03-01-preview' |
name | The resource name | string (required) |
scope | Use when creating an extension resource at a scope that is different than the deployment scope. | Target resource For JSON, set the value to the full name of the resource to apply the extension resource to. |
etag | Etag of the azure resource | string |
properties | source control properties | SourceControlProperties |
SourceControlProperties
Name | Description | Value |
---|---|---|
contentTypes | Array of source control content types. | String array containing any of: 'AnalyticRule' 'Workbook' (required) |
description | A description of the source control | string |
displayName | The display name of the source control | string (required) |
id | The id (a Guid) of the source control | string |
repository | Repository metadata. | Repository (required) |
repoType | The repository type of the source control | 'DevOps' 'Github' (required) |
Repository
Name | Description | Value |
---|---|---|
branch | Branch name of repository. | string |
deploymentLogsUrl | Url to access repository action logs. | string |
displayUrl | Display url of repository. | string |
pathMapping | Dictionary of source control content type and path mapping. | ContentPathMap[] |
url | Url of repository. | string |
ContentPathMap
Name | Description | Value |
---|---|---|
contentType | Content type. | 'AnalyticRule' 'Workbook' |
path | The path to the content. | string |
Terraform (AzAPI provider) resource definition
The sourcecontrols resource type is an extension resource, which means you can apply it to another resource.
Use the parent_id
property on this resource to set the scope for this resource.
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.SecurityInsights/sourcecontrols resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.SecurityInsights/sourcecontrols@2021-03-01-preview"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
contentTypes = [
"string"
]
description = "string"
displayName = "string"
id = "string"
repository = {
branch = "string"
deploymentLogsUrl = "string"
displayUrl = "string"
pathMapping = [
{
contentType = "string"
path = "string"
}
]
url = "string"
}
repoType = "string"
}
etag = "string"
})
}
Property values
sourcecontrols
Name | Description | Value |
---|---|---|
type | The resource type | "Microsoft.SecurityInsights/sourcecontrols@2021-03-01-preview" |
name | The resource name | string (required) |
parent_id | The ID of the resource to apply this extension resource to. | string (required) |
etag | Etag of the azure resource | string |
properties | source control properties | SourceControlProperties |
SourceControlProperties
Name | Description | Value |
---|---|---|
contentTypes | Array of source control content types. | String array containing any of: "AnalyticRule" "Workbook" (required) |
description | A description of the source control | string |
displayName | The display name of the source control | string (required) |
id | The id (a Guid) of the source control | string |
repository | Repository metadata. | Repository (required) |
repoType | The repository type of the source control | "DevOps" "Github" (required) |
Repository
Name | Description | Value |
---|---|---|
branch | Branch name of repository. | string |
deploymentLogsUrl | Url to access repository action logs. | string |
displayUrl | Display url of repository. | string |
pathMapping | Dictionary of source control content type and path mapping. | ContentPathMap[] |
url | Url of repository. | string |
ContentPathMap
Name | Description | Value |
---|---|---|
contentType | Content type. | "AnalyticRule" "Workbook" |
path | The path to the content. | string |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for