diff --git a/src/ssh/HISTORY.md b/src/ssh/HISTORY.md index 4cb70d39d5c..af36273784c 100644 --- a/src/ssh/HISTORY.md +++ b/src/ssh/HISTORY.md @@ -1,5 +1,9 @@ Release History =============== +1.1.5 +----- +* Fix issue of getting vm network interface `publicIPAddress` ref + 1.1.4 ----- * Remove dependency to NETWORK SDK diff --git a/src/ssh/azext_ssh/ip_utils.py b/src/ssh/azext_ssh/ip_utils.py index eb08bf5cf19..320224eb5f3 100644 --- a/src/ssh/azext_ssh/ip_utils.py +++ b/src/ssh/azext_ssh/ip_utils.py @@ -32,7 +32,7 @@ def get_ssh_ip(cmd, resource_group, vm_name, use_private_ip): for ip_config in nic["ipConfigurations"]: if use_private_ip and ip_config.get("privateIPAddress", None): return ip_config["privateIPAddress"] - public_ip_ref = ip_config["privateIPAddress"] + public_ip_ref = ip_config["publicIPAddress"] if public_ip_ref and public_ip_ref.get("id", None): parsed_ip_id = tools.parse_resource_id(public_ip_ref["id"]) api_args = { diff --git a/src/ssh/setup.py b/src/ssh/setup.py index d986ab7456e..bcad3733fe5 100644 --- a/src/ssh/setup.py +++ b/src/ssh/setup.py @@ -7,7 +7,7 @@ from setuptools import setup, find_packages -VERSION = "1.1.4" +VERSION = "1.1.5" CLASSIFIERS = [ 'Development Status :: 4 - Beta',