output "workloads_subnet_id" { description = "Put virtual machines here, with no public IP, in resource group rg-bastion-workloads." value = azurerm_subnet.workloads.id } output "verify" { description = "Checks." value = <<-EOT As an operator: az network bastion ssh --name bastion --resource-group rg-bastion --target-resource-id --auth-type AAD In the workspace: MicrosoftAzureBastionAuditLogs | project TimeGenerated, UserName, TargetVMIPAddress, Protocol From the internet, ssh to the VM's private address fails: it has no public address, and 22 and 3389 accept the Bastion subnet only. With session_recording on, set the recording container's SAS URL on Bastion in the portal, then play a session back under Session recordings. EOT }