Complete the code to declare a string parameter named 'location'.
param location [1]The param keyword declares a parameter. To specify its type as text, use string.
Complete the code to create a resource of type 'Microsoft.Storage/storageAccounts' with the name 'storageAccount1'.
resource storageAccount1 '[1]' = { name: 'storageaccount1' location: 'eastus' kind: 'StorageV2' sku: { name: 'Standard_LRS' } }
The resource type for Azure Storage accounts is Microsoft.Storage/storageAccounts. The version specifies the API version.
Fix the error in the module declaration by completing the missing keyword.
module myModule '[1]' = { name: 'exampleModule' params: { location: 'westus' } }
The module keyword is followed by the path to the Bicep file to deploy. Here, main.bicep is the correct file name.
Fill both blanks to define an output named 'storageAccountId' that returns the resource ID of 'storageAccount1'.
output storageAccountId [1] = storageAccount1[2]
Outputs need a type, here string. The resource ID is accessed with .id.
Fill both blanks to declare a parameter 'tags' as an object with a default empty value.
param tags [1] = [2]
[] instead of object braces {}.The parameter type is object and the default empty object is {}.