An administrator needs to deploy Azure Bastion (Standard SKU) to secure access to virtual machines in an existing virtual network named VNet1. The organization's security policy requires that a Network Security Group (NSG) be associated with the Bastion subnet, and that the subnet is secured from the very beginning of the Bastion host deployment.
Which sequence of steps must you perform to successfully configure and deploy Azure Bastion while adhering to the security policy and avoiding validation errors?
- 1Create a subnet named AzureBastionSubnet in VNet1 with an address space prefix of /26.
- 2Create a Network Security Group (NSG) and configure the mandatory inbound (HTTPS/443 from Internet, GatewayManager/443, AzureLoadBalancer/443) and outbound (VirtualNetwork/22/3389, AzureCloud/443, Internet/80/443) security rules.
- 3Associate the configured Network Security Group (NSG) with the AzureBastionSubnet.
- 4Create a Public IP address using the Standard SKU and Static allocation.
- 5Provision the Azure Bastion host resource, referencing the AzureBastionSubnet and the Standard Public IP address.
Cevap
Create the AzureBastionSubnet subnet first, then create and configure the Network Security Group with mandatory rules, associate the NSG with the AzureBastionSubnet, create a Standard SKU Public IP address, and finally provision the Azure Bastion host resource referencing the subnet and Public IP.
The correct sequence ensures that all prerequisites are created and configured in an order that satisfies Azure's validation checks. The subnet AzureBastionSubnet must be created with a prefix of /26 or larger. Next, the NSG must be created and populated with all required inbound (Internet, GatewayManager, AzureLoadBalancer) and outbound (VirtualNetwork, AzureCloud, Internet) rules. Once the NSG is fully configured, it is associated with the AzureBastionSubnet. If the NSG is associated before rules are configured, Azure resource validation will block the association. Next, a Standard SKU Public IP must be created because Azure Bastion does not support Basic SKU Public IPs. Finally, the Azure Bastion host resource is provisioned, referencing the configured subnet and Public IP.
Adım Adım Çözüm
Anahtar Kavram
Azure Bastion deployment requires strict prerequisite configuration including a dedicated subnet named AzureBastionSubnet of at least /26 size, a Standard SKU Public IP, and a fully configured NSG with specific inbound and outbound rules that must be defined before subnet association.