Make sure go is installed
Add gopath if not present
export GOPATH=$(go env GOPATH)
Build
$ make tools
...
$ make build
...
$ $GOPATH/bin/terraform-provider-azurerm
...
Note: If you have issues running make build, change the line ending of the files in /scripts to be unix (LF).
Copy file to the expected local library, adjust for the version:
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/hashicorp/azurerm/<version number>/linux_amd64/
cp /root/go/bin/terraform-provider-azurerm ~/.terraform.d/plugins/registry.terraform.io/hashicorp/azurerm/<version number>/linux_amd64/
Or
mkdir -p ~/.terraform.d/plugins/registry.terraform.io/hashicorp/azurerm/2.75.0-nd3/linux_amd64/
cp /root/go/bin/terraform-provider-azurerm ~/.terraform.d/plugins/registry.terraform.io/hashicorp/azurerm/2.75.0-nd3/linux_amd64/