Skip to content

Commit

Permalink
change param to resourcehostname
Browse files Browse the repository at this point in the history
  • Loading branch information
Tejaswikandula committed Aug 7, 2024
1 parent 5b13a1d commit 2b2a4c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bastion/azext_bastion/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ def rdp_bastion_host(cmd, target_resource_id, target_ip_address, resource_group_
hostname = get_host_name(cmd, target_resource_id, resource_group_name)
access_token = Profile(cli_ctx=cmd.cli_ctx).get_raw_token()[0][2].get("accessToken")
logger.debug("Response %s", access_token)
web_address = f"https://{bastion_endpoint}/api/rdpfile?resourceId={target_resource_id}&format=rdp" \
f"&rdpport={resource_port}&enablerdsaad={enable_mfa}&hostname={hostname}"
web_address = f"https://{bastion_endpoint}/api/rdpfile?resourceId={target_resource_id}&resourceHostName={hostname}" \
f"&format=rdp&rdpport={resource_port}&enablerdsaad={enable_mfa}&resourceName={hostname}"

headers = {
"Authorization": f"Bearer {access_token}",
Expand Down

0 comments on commit 2b2a4c9

Please sign in to comment.