In specified Azure region, create an Ubuntu web server in public subnet. Allow incoming HTTP from any where. Allow ping from RFC1918. Allow SSH from your egress public IP.
In 2.0 release, the module have a local Provider configuration, it doesn't support use of count, for_each, or depends_on arguments when calling 2.0 release module.
I have removed provider configuration from the module, you will have to declare following providers in your code:
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
}
http = {
source = "hashicorp/http"
}
}
}
# Configure the Microsoft Azure Provider
provider "azurerm" {
features {}
}