Skip to content

Latest commit

 

History

History
50 lines (35 loc) · 1.39 KB

add-parameters-and-variables.md

File metadata and controls

50 lines (35 loc) · 1.39 KB

< Add parameters and variables

Use the scripts and Bicep files that are in the simple-storage-account demo as a starting point for this lab.


Challenge

For a full list of what properties are available for the Microsoft.Storage/storageAccounts resource see the Azure Resource Manager template reference.

  • Try adding the supportsHttpsTrafficOnly property and default it to true using a parameter.
  • Try adding the minimumTlsVersion property and default it to TLS1_2 using a parameter.

If you get on well with the above, try adding some tags to the resource and declare them in the simple-storage-account.parameters.json file. Hint: You will need to use the object type for the parameter.


Hints

Parameters Hint

@description('Supports https traffic only')
param supportsHttpsTrafficOnly bool = true

@description('Minumum TLS version')
@allowed([
'TLS1_0'
'TLS1_1'
'TLS1_2'
])
param minimumTlsVersion string = 'TLS1_2'

Properties Hint

  properties: {
    supportsHttpsTrafficOnly: supportsHttpsTrafficOnly
    minimumTlsVersion: minimumTlsVersion
  }