Example: "Allow_SSH_22_AzureBastionSubnet_Inbound" $inboundRule2Name = # The name of the SSH inbound rule. Example: "Allow_RDP_3389_AzureBastionSubnet_Inbound" $inboundRule1Name = # The name of the RDP inbound rule. # $rgNameNetworking -> Name of the resource group holding the NSG # $nsgNameTargetVMSubnet -> Name of the NSG associated to the Target VM Subnet \Set-AzureBastion-NSG-Inbound-security-rules-on-Target-VM-Subnet nsg-tst-myh-app-01 rg-tst-myh-networking-01 \Set-AzureBastion-NSG-Inbound-security-rules-on-Target-VM-Subnet Set-AzContext -Subscription "" (if not using the default subscription) When downloaded or copied, run the script with the following parameters: If you have multiple Azure subscriptions, make sure to select the appropriate subscription using the Set-AzContext cmdlet before executing the script. If you are not running the script from Cloud Shell, don’t forget to sign in with the Connect-AzAccount cmdlet to connect your Azure account.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |