how to disable copy/paste in azure

Patrice Jean-Baptiste 5 Reputation points
2023-04-01T23:20:50.9766667+00:00

disabling copy/paste feaTURES IN AZURE BASTION.

Azure Bastion
Azure Bastion
An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.
241 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GitaraniSharma-MSFT 47,086 Reputation points Microsoft Employee
    2023-04-02T07:16:31.42+00:00

    Hello @Patrice Jean-Baptiste ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand that you would like to know how to disable copy/paste in Azure Bastion.

    By default, Azure Bastion is automatically enabled to allow copy and paste for all sessions connected through the bastion resource. You don't need to configure anything additional. This applies to both the Basic and the Standard SKU tier. If you want to disable this feature, you can disable it for web-based clients on the configuration page of your Bastion resource.

    • In the Azure portal, go to your Bastion resource.
    • Go to the Configuration page.
    • To disable, clear/unselect the "Copy and paste" checkbox. NOTE: Disable is only available with the Standard SKU. You can upgrade the SKU if necessary. To upgrade from the Basic Tier (SKU) to Standard, you can refer the following doc: https://learn.microsoft.com/en-us/azure/bastion/upgrade-sku. Once you upgrade, you can't revert back to the Basic SKU without deleting and reconfiguring Bastion. Currently, this setting can be configured in the Azure portal only.
    • Apply changes. The bastion host will update.

    User's image

    Refer: https://learn.microsoft.com/en-us/azure/bastion/bastion-vm-copy-paste#configure

    You can also run Azure CLI command az network bastion update with parameter --disable-copy-paste to disable it.

    Refer: https://learn.microsoft.com/en-us/cli/azure/network/bastion?view=azure-cli-latest#az-network-bastion-update

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments