Question 412:
A company has deployed a virtual machine in Azure and to filter the network traffic, an Application Security Group is created through CLI using a template. Which of the following is a valid Application Security Group template?
Answer options:
A.{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
@parameters@: {
"applicationSecurityGroupName": {
"type": "string",
"metadata": {
"description": "This is the name of the application security group"
}
},
@location@: {
"type": "string",
"metadata": {
"description": "Location where the application security group resource will be created."
}
}
},
@resources@: [
{
"apiVersion": "2019-02-01",
"type": "Microsoft.Network/applicationSecurityGroups",
"name": "[parameters(`applicationSecurityGroupName`)]",
"location": "[parameters(`location`)]",
"tags": {}
}
]
}
B.{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"applicationSecurityGroupName": {
"type": "string",
"metadata": {
"description": "This is the name of the application security group"
}
},
"location": {
"type": "string",
"metadata": {
"description": "Location where the application security group resource will be created."
}
}
},
"resources": [
{
"apiVersion": "2019-02-01",
"type": "Microsoft.Network/applicationSecurityGroups",
"name": "[parameters(`applicationSecurityGroupName`)]",
"location": "[parameters(`location`)]",
"tags": {}
}
]
}
C.{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
#parameters#: {
"applicationSecurityGroupName": {
"type": "string",
"metadata": {
"description": "This is the name of the application security group"
}
},
#location#: {
"type": "string",
"metadata": {
"description": "Location where the application security group resource will be created."
}
}
},
#resources#: [
{
"apiVersion": "2019-02-01",
"type": "Microsoft.Network/applicationSecurityGroups",
"name": "[parameters(`applicationSecurityGroupName`)]",
"location": "[parameters(`location`)]",
"tags": {}
}
]
}
D.{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
$parameters$: {
"applicationSecurityGroupName": {
"type": "string",
"metadata": {
"description": "This is the name of the application security group"
}
},
$location$: {
"type": "string",
"metadata": {
"description": "Location where the application security group resource will be created."
}
}
},
$resources$: [
{
"apiVersion": "2019-02-01",
"type": "Microsoft.Network/applicationSecurityGroups",
"name": "[parameters(`applicationSecurityGroupName`)]",
"location": "[parameters(`location`)]",
"tags": {}
}
]
}