Using Python SDK to deploy Azure Bastion - 'NetworkManagementClient' object has no attribute 'bastion_hosts' RRS feed

  • Question

  • For some reason the Python SDK doesn't recognize the bastion_hosts attribute. Documentation shows that it is there but I am not able to call it under the networkmanagement class. Anyone attempt to deploy a bastion host via API or SDK?

    Here is a snippet of code that is failing:

    network_client = NetworkManagementClient(sp_credentials, subscription_id)

    bastion = network_client.bastion_hosts.create_or_update(resource_group, host_name, params)

    Wednesday, October 16, 2019 1:27 PM

All replies

  • Thanks for reaching out! we recommend engaging our technical support team to investigate further.    Please file a support case using these steps. If you do not have a support plan, send mail to, include your subscription ID and a link to this MSDN thread (for context).

    Wednesday, October 23, 2019 4:39 AM