Complete the code to declare a resource group using ARM template syntax.
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"resources": [
{
"type": "Microsoft.Resources/resourceGroups",
"apiVersion": "2021-04-01",
"name": "[1]",
"location": "eastus"
}
]
}In ARM templates, the name property specifies the resource group name. It should be a string like myResourceGroup.
Complete the Bicep code to create a storage account with the correct resource type.
resource storageAccount '[1]@2021-04-01' = { name: 'mystorageacct' location: 'eastus' kind: 'StorageV2' sku: { name: 'Standard_LRS' } }
The resource type for a storage account in Bicep is Microsoft.Storage/storageAccounts.
Fix the error in this Terraform resource block by completing the provider declaration.
provider "[1]" { features {} }
Terraform uses azurerm as the provider name for Azure Resource Manager.
Fill both blanks to define a Bicep parameter with a default value and a type.
param [1] [2] = 'eastus'
In Bicep, parameters are declared with a name and a type. Here, location is the name and string is the type.
Fill all three blanks to create a Terraform resource with a name, type, and location attribute.
resource [1] "[2]" { name = "myResource" location = "[3]" }
In Terraform, azurerm_resource_group is the resource type, resource_group is the resource name, and eastus is a valid location.