Microsoft security
Secure administration and secrets
Use Bastion for VM connections and Key Vault for keys, secrets, and certificates.
Two ways to reduce exposure
Administrative connections and application secrets are different problems. Azure provides specialized services for each.
Azure Bastion: reach a VM without exposing its login port
Administrators often use SSH to manage Linux systems and RDP to reach a Windows desktop. Giving every VM an internet-facing administrative endpoint increases exposure.
Azure Bastion provides managed access to VMs over their private IP addresses. In the familiar browser-based flow, an administrator connects through the Azure portal over TLS; Bastion provides the connection to the VM. The target VM does not need a public IP for that connection. Native-client and other options depend on the selected tier.
Bastion does not patch the VM, decide all of its permissions, or protect the application from every threat. Authentication, authorization, and operating-system security still matter.
Azure Key Vault: keep secrets out of application code
Key Vault centrally manages:
- Secrets, such as an API credential or database password.
- Cryptographic keys, used in supported cryptographic operations.
- Certificates, including their management lifecycle.
A caller must authenticate and be authorized for the requested operation. Central storage helps control distribution and avoid embedding credentials in source code. It does not make every application automatically entitled to retrieve every secret.
A study-platform example
A maintainer uses Bastion to administer the lesson server. The publishing service retrieves an authorized secret from Key Vault rather than reading a password committed to Git. Its managed identity can provide authentication without a separately managed application credential.
Ask two questions: “How does the administrator connect?” and “Where does the application get its secret?” They point to different services.
Check your understanding
1. Which service fits “connect to a VM over SSH without giving that VM a public IP”?
Show explanation
Azure Bastion. Key Vault stores and manages sensitive material; it is not a remote desktop or SSH connection service.
2. Can a secret safely stay in the Git history because the current code now uses Key Vault?
Show explanation
No. Moving future access to Key Vault does not erase previous exposure. This is an example of why secret management should be designed before credentials are committed.
Sources
Sources consulted November 28, 2026. Examples and questions are original study exercises.