diff --git a/src/k8s-extension/HISTORY.rst b/src/k8s-extension/HISTORY.rst index 9e06fd0b8c7..a2d13222aa2 100644 --- a/src/k8s-extension/HISTORY.rst +++ b/src/k8s-extension/HISTORY.rst @@ -5,7 +5,7 @@ Release History 1.4.4 ++++++++++++++++++ -* drop `azure-mgmt-relay` sdk dependency for Azure Monitor K8s extensions +* drop 'azure-mgmt-relay' sdk dependency 1.4.3 ++++++++++++++++++ diff --git a/src/k8s-extension/azext_k8s_extension/azext_metadata.json b/src/k8s-extension/azext_k8s_extension/azext_metadata.json index c91b1a720cc..a4a3d96c484 100644 --- a/src/k8s-extension/azext_k8s_extension/azext_metadata.json +++ b/src/k8s-extension/azext_k8s_extension/azext_metadata.json @@ -1,3 +1,3 @@ { - "azext.minCliCoreVersion": "2.50.0" + "azext.minCliCoreVersion": "2.51.0" } \ No newline at end of file diff --git a/src/k8s-extension/azext_k8s_extension/partner_extensions/AzureMLKubernetes.py b/src/k8s-extension/azext_k8s_extension/partner_extensions/AzureMLKubernetes.py index 2386bdffe3a..e45dd2f9268 100644 --- a/src/k8s-extension/azext_k8s_extension/partner_extensions/AzureMLKubernetes.py +++ b/src/k8s-extension/azext_k8s_extension/partner_extensions/AzureMLKubernetes.py @@ -346,7 +346,7 @@ def Update(self, cmd, resource_group_name, cluster_name, auto_upgrade_minor_vers cmd, subscription_id, resource_group_name, cluster_name, '', self.RELAY_HC_AUTH_NAME, True) configuration_protected_settings[self.RELAY_SERVER_CONNECTION_STRING] = relay_connection_string logger.info("Get relay connection string succeeded.") - except HttpOperationError as ex: + except azure.core.exceptions.HttpResponseError as ex: if ex.response.status_code == 404: raise ResourceNotFoundError("Relay server not found. " "Check {} for more information.".format(self.TSG_LINK)) from ex @@ -632,8 +632,7 @@ def _get_relay_connection_str( "namespace_name": relay_namespace_name, "hybrid_connection_name": hybrid_connection_name, "name": auth_rule_name}) - - except HttpOperationError as e: + except azure.core.exceptions.HttpResponseError as e: if e.response.status_code != 404 or get_key_only: raise e # create namespace