# Azure SSH security rule

This exercise creates a real Azure network security group containing a
deliberately permissive inbound SSH rule. It is **unattached**: there is no VM,
interface, subnet or public IP. Never attach it to any resource. Restrict its
source to the designated example private network `10.77.0.0/16`; this example
is not a prescription for a production network.

An empty resource group and an unattached network security group normally have
no direct usage charge, but Azure pricing and policies vary. Use an isolated
subscription with known safe guardrails and remove lab resources promptly.
No real network traffic or SSH exposure is exercised.

Install Azure CLI, Terraform 1.5+, Python 3 and Bash on Linux. Log in and select
the intended subscription. `Microsoft.Resources` and `Microsoft.Network` must
already be registered. Use a private local Linux filesystem for Terraform
state.

```sh
export AZURE_SUBSCRIPTION_ID="your-subscription-id"
./setup.sh "$AZURE_SUBSCRIPTION_ID" northeurope --accept-costs
```

Inspect the lab NSG and `.lab-state`, review Terraform plans before applying,
then run `./verify.sh` and `./teardown.sh`. Teardown refuses unexpected group
contents or attached network resources and retains private state on failure.
Confirm the lab group is gone before removing `.lab-state`.
