Complete the code to define an Azure resource group using Infrastructure as Code (IaC).
resource_group = azurerm_resource_group(name=[1], location="eastus")
The resource group name must be a string, so it needs quotes around it.
Complete the code to specify the location for the Azure resource group.
resource_group = azurerm_resource_group(name="myResourceGroup", location=[1])
The location must be a string value, so it needs quotes.
Fix the error in the code to create a storage account with IaC on Azure.
storage_account = azurerm_storage_account(name=[1], resource_group_name="myResourceGroup", location="eastus")
The storage account name must be lowercase and a string, so it needs quotes and lowercase letters.
Fill both blanks to define a virtual network and subnet in Azure IaC.
virtual_network = azurerm_virtual_network(name=[1], resource_group_name="myResourceGroup") subnet = azurerm_subnet(name=[2], virtual_network_name=virtual_network.name, resource_group_name="myResourceGroup")
Virtual network and subnet names must be strings. Here, 'myVnet' and 'mySubnet' are clear and valid names.
Fill all three blanks to create an Azure App Service with correct parameters.
app_service = azurerm_app_service(name=[1], resource_group_name=[2], location=[3])
All parameters require string values. Use descriptive names with quotes for app service, resource group, and location.