New-CmAzIaasBastionHost

Creates Bastion host

Completes following:

  • This script creates Bastion hosts in resource group.
  • Creates ‘AzureBastionSubnet’ if not already exists.
  • Azure Bastion provisions directly in your Azure Virtual Network, providing Bastion host or jump server as-a-service and integrated connectivity to all virtual machines in your virtual networking using RDP/SSH directly from and through your browser and the Azure portal experience.

This command forms part of the IaaS Building Block.

Parameters

-SettingsFile

Required. (String) File path for the settings file to be converted into a settings object.

-SettingsObject

Required. (Object) Object containing the configuration values required to run this cmdlet.

-TagSettingsFile

Required. (String)

-WhatIf

(Switch) Run the command without executing any actions, so that no changes are made. The command will output a description of actions to be performed against the affected resources in the console window. Use this option if you are unsure of the overall impact of your command and wish to review it before committing to making changes.

-Confirm

(Switch) Run the command without executing any actions, so that no changes are made. The command will output a description of actions to be performed against the affected resources in the console window. Use this option if you are unsure of the overall impact of your command and wish to review it before committing to making changes.

Examples

Example 1

1
2
3
    New-CmAzIaasBastionHost -settingsFile "BastionHostyml"
    
  

Example 2

1
2
3
    New-CmAzIaasBastionHost -settingsObject $BastionHostSettings