azure-cli-core 2.86.0__tar.gz → 2.87.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/HISTORY.rst +7 -0
  2. {azure_cli_core-2.86.0/azure_cli_core.egg-info → azure_cli_core-2.87.0}/PKG-INFO +4 -4
  3. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/__init__.py +1 -1
  4. azure_cli_core-2.87.0/azure/cli/core/auth/agentic_session.py +67 -0
  5. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/auth/msal_credentials.py +21 -0
  6. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/azlogging.py +30 -1
  7. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/breaking_change.py +2 -2
  8. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/cloud.py +1 -1
  9. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commandIndex.latest.json +1 -4
  10. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/helpIndex.latest.json +2 -2
  11. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/profiles/_shared.py +1 -1
  12. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/style.py +0 -2
  13. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/telemetry.py +7 -0
  14. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/util.py +1 -2
  15. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0/azure_cli_core.egg-info}/PKG-INFO +4 -4
  16. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure_cli_core.egg-info/SOURCES.txt +1 -0
  17. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure_cli_core.egg-info/requires.txt +3 -3
  18. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/setup.py +4 -4
  19. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/LICENSE.txt +0 -0
  20. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/MANIFEST.in +0 -0
  21. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/README.rst +0 -0
  22. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/__init__.py +0 -0
  23. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/__init__.py +0 -0
  24. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/_breaking_change.py +0 -0
  25. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/_completers.py +0 -0
  26. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/_config.py +0 -0
  27. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/_debug.py +0 -0
  28. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/_environment.py +0 -0
  29. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/_help.py +0 -0
  30. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/_help_loaders.py +0 -0
  31. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/_output.py +0 -0
  32. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/_profile.py +0 -0
  33. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/_session.py +0 -0
  34. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/__init__.py +0 -0
  35. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_arg.py +0 -0
  36. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_arg_action.py +0 -0
  37. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_arg_browser.py +0 -0
  38. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_arg_fmt.py +0 -0
  39. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_base.py +0 -0
  40. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_client.py +0 -0
  41. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_command.py +0 -0
  42. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_command_ctx.py +0 -0
  43. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_content_builder.py +0 -0
  44. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_error_format.py +0 -0
  45. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_field_type.py +0 -0
  46. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_field_value.py +0 -0
  47. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_help.py +0 -0
  48. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_http_policy.py +0 -0
  49. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_operation.py +0 -0
  50. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_paging.py +0 -0
  51. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_poller.py +0 -0
  52. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_prompt.py +0 -0
  53. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_selector.py +0 -0
  54. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/_utils.py +0 -0
  55. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/exceptions.py +0 -0
  56. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/aaz/utils.py +0 -0
  57. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/api.py +0 -0
  58. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/auth/__init__.py +0 -0
  59. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/auth/binary_cache.py +0 -0
  60. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/auth/constants.py +0 -0
  61. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/auth/credential_adaptor.py +0 -0
  62. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/auth/identity.py +0 -0
  63. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/auth/landing_pages/error.html +0 -0
  64. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/auth/landing_pages/success.html +0 -0
  65. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/auth/persistence.py +0 -0
  66. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/auth/util.py +0 -0
  67. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/azclierror.py +0 -0
  68. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/command_recommender.py +0 -0
  69. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commands/__init__.py +0 -0
  70. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commands/arm.py +0 -0
  71. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commands/client_factory.py +0 -0
  72. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commands/command_operation.py +0 -0
  73. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commands/constants.py +0 -0
  74. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commands/events.py +0 -0
  75. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commands/parameters.py +0 -0
  76. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commands/progress.py +0 -0
  77. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commands/sensitive.py +0 -0
  78. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commands/template_create.py +0 -0
  79. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commands/transform.py +0 -0
  80. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/commands/validators.py +0 -0
  81. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/credential_helper.py +0 -0
  82. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/decorators.py +0 -0
  83. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/extension/__init__.py +0 -0
  84. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/extension/_homebrew_patch.py +0 -0
  85. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/extension/_index.py +0 -0
  86. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/extension/_resolve.py +0 -0
  87. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/extension/dynamic_install.py +0 -0
  88. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/extension/operations.py +0 -0
  89. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/file_util.py +0 -0
  90. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/intercept_survey.py +0 -0
  91. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/keys.py +0 -0
  92. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/local_context.py +0 -0
  93. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/mock.py +0 -0
  94. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/parser.py +0 -0
  95. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/profiles/__init__.py +0 -0
  96. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/sdk/__init__.py +0 -0
  97. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure/cli/core/sdk/policies.py +0 -0
  98. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure_cli_core.egg-info/dependency_links.txt +0 -0
  99. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure_cli_core.egg-info/not-zip-safe +0 -0
  100. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/azure_cli_core.egg-info/top_level.txt +0 -0
  101. {azure_cli_core-2.86.0 → azure_cli_core-2.87.0}/setup.cfg +0 -0
@@ -3,6 +3,13 @@
3
3
  Release History
4
4
  ===============
5
5
 
6
+ 2.87.0
7
+ ++++++
8
+ * Resolve CVE-2026-44431 (#33351)
9
+ * Resolve CVE-2026-44432 (#33351)
10
+ * `az login`: Support Entra agentic session differentiation for Copilot agent requests (#33309)
11
+ * Resolve CVE-2026-45409 (#33401)
12
+
6
13
  2.86.0
7
14
  ++++++
8
15
  * Resolve CVE-2025-15467 (#33201)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: azure-cli-core
3
- Version: 2.86.0
3
+ Version: 2.87.0
4
4
  Summary: Microsoft Azure Command-Line Tools Core Module
5
5
  Home-page: https://github.com/Azure/azure-cli
6
6
  Author: Microsoft Corporation
@@ -26,11 +26,11 @@ Requires-Dist: cryptography
26
26
  Requires-Dist: distro; sys_platform == "linux"
27
27
  Requires-Dist: humanfriendly~=10.0
28
28
  Requires-Dist: jmespath
29
- Requires-Dist: knack~=0.11.0
29
+ Requires-Dist: knack~=0.14.0
30
30
  Requires-Dist: microsoft-security-utilities-secret-masker~=1.0.0b4
31
31
  Requires-Dist: msal-extensions==1.3.1
32
- Requires-Dist: msal[broker]==1.35.1; sys_platform == "win32"
33
- Requires-Dist: msal==1.35.1; sys_platform != "win32"
32
+ Requires-Dist: msal[broker]==1.36.0; sys_platform == "win32"
33
+ Requires-Dist: msal==1.36.0; sys_platform != "win32"
34
34
  Requires-Dist: packaging>=20.9
35
35
  Requires-Dist: pkginfo>=1.5.0.1
36
36
  Requires-Dist: psutil>=5.9; sys_platform != "cygwin"
@@ -4,7 +4,7 @@
4
4
  # --------------------------------------------------------------------------------------------
5
5
  # pylint: disable=line-too-long
6
6
 
7
- __version__ = "2.86.0"
7
+ __version__ = "2.87.0"
8
8
 
9
9
  import os
10
10
  import sys
@@ -0,0 +1,67 @@
1
+ # --------------------------------------------------------------------------------------------
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+ # --------------------------------------------------------------------------------------------
5
+
6
+ """
7
+ Support for Entra Agentic Sessions.
8
+
9
+ When CLI runs inside an agent context (e.g., Copilot, Azure MCP), the orchestrator sets the
10
+ COPILOT_AGENT_SESSION_ID environment variable. CLI reads it and passes it to MSAL as both:
11
+ - A query parameter (`client_session`) so ESTS can identify the agentic session
12
+ - A claims challenge so ESTS embeds an agentic marker claim in the token (and MSAL bypasses
13
+ the access token cache to ensure a fresh, agent-tagged token is always fetched)
14
+
15
+ This enables downstream systems (RBAC, Defender, Purview) to enforce differentiated policies
16
+ for agent-driven vs. human-driven operations.
17
+ """
18
+
19
+ import json
20
+ import os
21
+
22
+ from knack.log import get_logger
23
+
24
+ logger = get_logger(__name__)
25
+
26
+ COPILOT_AGENT_SESSION_ID = "COPILOT_AGENT_SESSION_ID"
27
+
28
+
29
+ def build_agentic_session_params():
30
+ """Read COPILOT_AGENT_SESSION_ID and build the agentic claims challenge.
31
+
32
+ :returns: (session_id, claims_challenge) — both None when env var is not set.
33
+ """
34
+ session_id = os.environ.get(COPILOT_AGENT_SESSION_ID) or None
35
+ if not session_id:
36
+ return None, None
37
+
38
+ logger.debug("Agentic session detected (COPILOT_AGENT_SESSION_ID is set)")
39
+
40
+ claims_challenge = json.dumps({
41
+ "access_token": {
42
+ "xms_cli_sid": {"values": [session_id]}
43
+ }
44
+ })
45
+ return session_id, claims_challenge
46
+
47
+
48
+ def merge_access_token_claims(existing_claims, new_claims):
49
+ """Merge new claims into an existing claims_challenge JSON string.
50
+
51
+ :param existing_claims: Existing claims_challenge JSON string (or None).
52
+ :param new_claims: New claims_challenge JSON string to merge in. Must not be None or empty,
53
+ and must contain a non-empty ``access_token`` object.
54
+ :returns: Merged claims_challenge JSON string.
55
+ :raises ValueError: If ``new_claims`` is None, empty, or does not contain a non-empty
56
+ ``access_token`` object.
57
+ """
58
+ if not new_claims:
59
+ raise ValueError("new_claims must not be None or empty")
60
+ new_access_token = json.loads(new_claims).get("access_token")
61
+ if not new_access_token:
62
+ raise ValueError("new_claims must contain a non-empty access_token")
63
+
64
+ claims_dict = json.loads(existing_claims) if existing_claims else {}
65
+ claims_dict["access_token"] = claims_dict.get("access_token") or {}
66
+ claims_dict["access_token"].update(new_access_token)
67
+ return json.dumps(claims_dict)
@@ -50,6 +50,27 @@ class UserCredential: # pylint: disable=too-few-public-methods
50
50
  logger.debug("UserCredential.acquire_token: scopes=%r, claims_challenge=%r, kwargs=%r",
51
51
  scopes, claims_challenge, kwargs)
52
52
 
53
+ # Apply agentic session parameters for user identity flows
54
+ from .agentic_session import build_agentic_session_params, merge_access_token_claims
55
+ agentic_session_id, agentic_claims = build_agentic_session_params()
56
+ if agentic_session_id:
57
+ # Both paths: client_session in data and params so eSTS can identify the agentic session
58
+ kwargs["data"] = kwargs.get("data") or {}
59
+ kwargs["data"]["client_session"] = agentic_session_id
60
+ kwargs["params"] = kwargs.get("params") or {}
61
+ kwargs["params"]["client_session"] = agentic_session_id
62
+
63
+ if getattr(self._msal_app, '_enable_broker', False):
64
+ # Broker path: claims_challenge flows to MSALRuntime cache key via set_decoded_claims.
65
+ # This causes MSAL to skip its local AT cache and forward claims to the broker,
66
+ # where requestedClaims becomes part of the C++ cache key.
67
+ claims_challenge = merge_access_token_claims(claims_challenge, agentic_claims)
68
+ # Non-broker path: client_session in data flows into ext_cache_key (SHA256 hash),
69
+ # which partitions the MSAL Python token cache. No claims_challenge needed.
70
+
71
+ from azure.cli.core.telemetry import set_agentic_session
72
+ set_agentic_session(True)
73
+
53
74
  if claims_challenge:
54
75
  logger.info('Acquiring new access token silently with claims challenge: %s', claims_challenge)
55
76
  result = self._msal_app.acquire_token_silent_with_error(
@@ -26,6 +26,7 @@ omitted Warning Debug Critical Debug
26
26
  import os
27
27
  import logging
28
28
  import datetime
29
+ from logging.handlers import RotatingFileHandler
29
30
 
30
31
  from azure.cli.core.commands.events import EVENT_INVOKER_PRE_CMD_TBL_TRUNCATE
31
32
 
@@ -38,6 +39,20 @@ _UNKNOWN_COMMAND = "unknown_command"
38
39
  _CMD_LOG_LINE_PREFIX = "CMD-LOG-LINE-BEGIN"
39
40
 
40
41
 
42
+ class SecureFileHandler(logging.FileHandler):
43
+ """A FileHandler that creates the log file with 600 permissions (owner read/write only)."""
44
+ def _open(self):
45
+ fd = os.open(self.baseFilename, os.O_WRONLY | os.O_CREAT | os.O_APPEND, 0o600)
46
+ return os.fdopen(fd, self.mode, encoding=self.encoding)
47
+
48
+
49
+ class SecureRotatingFileHandler(RotatingFileHandler):
50
+ """A RotatingFileHandler that creates log files with 600 permissions (owner read/write only)."""
51
+ def _open(self):
52
+ fd = os.open(self.baseFilename, os.O_WRONLY | os.O_CREAT | os.O_APPEND, 0o600)
53
+ return os.fdopen(fd, self.mode, encoding=self.encoding)
54
+
55
+
41
56
  class AzCliLogging(CLILogging):
42
57
  COMMAND_METADATA_LOGGER = 'az_command_data_logger'
43
58
 
@@ -58,6 +73,20 @@ class AzCliLogging(CLILogging):
58
73
  # when debug log is shown.
59
74
  logging.getLogger("azure.core.pipeline.policies.http_logging_policy").setLevel(logging.CRITICAL)
60
75
 
76
+ def _init_logfile_handlers(self, root_logger, cli_loggers):
77
+ # Override knack's CLILogging._init_logfile_handlers() (called by CLILogging.configure())
78
+ # to use SecureRotatingFileHandler, ensuring log files are created with 0o600 permissions.
79
+ ensure_dir(self.log_dir)
80
+ log_file_path = os.path.join(self.log_dir, self.logfile_name)
81
+ logfile_handler = SecureRotatingFileHandler(log_file_path, maxBytes=10 * 1024 * 1024, backupCount=5,
82
+ encoding=LOG_FILE_ENCODING)
83
+ lfmt = logging.Formatter('%(process)d : %(asctime)s : %(levelname)s : %(name)s : %(message)s')
84
+ logfile_handler.setFormatter(lfmt)
85
+ logfile_handler.setLevel(logging.DEBUG)
86
+ root_logger.addHandler(logfile_handler)
87
+ for cli_logger in cli_loggers:
88
+ cli_logger.addHandler(logfile_handler)
89
+
61
90
  def get_command_log_dir(self):
62
91
  return self.command_log_dir
63
92
 
@@ -112,7 +141,7 @@ class AzCliLogging(CLILogging):
112
141
  log_file_path = os.path.join(self.command_log_dir, log_name)
113
142
  get_logger(__name__).debug("metadata file logging enabled - writing logs to '%s'.", log_file_path)
114
143
 
115
- logfile_handler = logging.FileHandler(log_file_path, encoding=LOG_FILE_ENCODING)
144
+ logfile_handler = SecureFileHandler(log_file_path, encoding=LOG_FILE_ENCODING)
116
145
 
117
146
  lfmt = logging.Formatter(_CMD_LOG_LINE_PREFIX + ' %(process)d | %(asctime)s | %(levelname)s | %(name)s | %(message)s') # pylint: disable=line-too-long
118
147
  logfile_handler.setFormatter(lfmt)
@@ -15,8 +15,8 @@ from knack.util import StatusTag, color_map
15
15
 
16
16
  logger = get_logger()
17
17
 
18
- NEXT_BREAKING_CHANGE_RELEASE = '2.87.0'
19
- NEXT_BREAKING_CHANGE_DATE = 'June 2026'
18
+ NEXT_BREAKING_CHANGE_RELEASE = '2.92.0'
19
+ NEXT_BREAKING_CHANGE_DATE = 'Nov 2026'
20
20
  DEFAULT_BREAKING_CHANGE_TAG = '[Breaking Change]'
21
21
 
22
22
 
@@ -502,7 +502,7 @@ AZURE_BLEU_CLOUD = Cloud(
502
502
  active_directory_resource_id='https://management.sovcloud-api.fr/',
503
503
  active_directory_graph_resource_id='https://graph.svc.sovcloud.fr/',
504
504
  microsoft_graph_resource_id='https://graph.svc.sovcloud.fr',
505
- vm_image_alias_doc='https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/arm-compute/quickstart-templates/aliases.json',
505
+ vm_image_alias_doc='https://azcliprod.blob.core.windows.net/cli/vm/aliases_master.json',
506
506
  media_resource_id='https://rest.media.sovcloud-api.fr',
507
507
  ossrdbms_resource_id='https://ossrdbms-aad.database.sovcloud-api.fr',
508
508
  portal='https://portal.sovcloud-azure.fr'),
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.86.0",
2
+ "version": "2.87.0",
3
3
  "cloudProfile": "latest",
4
4
  "commandIndex": {
5
5
  "account": [
@@ -104,9 +104,6 @@
104
104
  "databoxedge": [
105
105
  "azure.cli.command_modules.databoxedge"
106
106
  ],
107
- "demo": [
108
- "azure.cli.command_modules.util"
109
- ],
110
107
  "deployment": [
111
108
  "azure.cli.command_modules.resource"
112
109
  ],
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.86.0",
2
+ "version": "2.87.0",
3
3
  "cloudProfile": "latest",
4
4
  "helpIndex": {
5
5
  "groups": {
@@ -292,7 +292,7 @@
292
292
  "tags": ""
293
293
  },
294
294
  "search": {
295
- "summary": "Manage Search.",
295
+ "summary": "Manage Azure AI Search.",
296
296
  "tags": ""
297
297
  },
298
298
  "security": {
@@ -208,7 +208,7 @@ AZURE_API_PROFILES = {
208
208
  ResourceType.MGMT_EVENTHUB: None,
209
209
  ResourceType.MGMT_MONITOR: None,
210
210
  ResourceType.MGMT_MSI: '2024-11-30',
211
- ResourceType.MGMT_APPSERVICE: '2024-11-01',
211
+ ResourceType.MGMT_APPSERVICE: None,
212
212
  ResourceType.MGMT_IOTHUB: None,
213
213
  ResourceType.MGMT_IOTDPS: None,
214
214
  ResourceType.MGMT_IOTCENTRAL: None,
@@ -13,8 +13,6 @@ https://devdivdesignguide.azurewebsites.net/command-line-interface/color-guideli
13
13
 
14
14
  Console Virtual Terminal Sequences:
15
15
  https://learn.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences#text-formatting
16
-
17
- For a complete demo, see `src/azure-cli/azure/cli/command_modules/util/custom.py` and run `az demo style`.
18
16
  """
19
17
 
20
18
  import sys
@@ -79,6 +79,7 @@ class TelemetrySession: # pylint: disable=too-many-instance-attributes
79
79
  self.enable_broker_on_windows = None
80
80
  self.msal_telemetry = None
81
81
  self.login_experience_v2 = None
82
+ self.agentic_session = False
82
83
 
83
84
  def add_event(self, name, properties):
84
85
  for key in self.instrumentation_key:
@@ -239,6 +240,7 @@ class TelemetrySession: # pylint: disable=too-many-instance-attributes
239
240
  set_custom_properties(result, 'EnableBrokerOnWindows', str(self.enable_broker_on_windows))
240
241
  set_custom_properties(result, 'MsalTelemetry', self.msal_telemetry)
241
242
  set_custom_properties(result, 'LoginExperienceV2', str(self.login_experience_v2))
243
+ set_custom_properties(result, 'AgenticSession', str(self.agentic_session))
242
244
 
243
245
  return result
244
246
 
@@ -497,6 +499,11 @@ def set_msal_telemetry(msal_telemetry):
497
499
  @decorators.suppress_all_exceptions()
498
500
  def set_login_experience_v2(login_experience_v2):
499
501
  _session.login_experience_v2 = login_experience_v2
502
+
503
+
504
+ @decorators.suppress_all_exceptions()
505
+ def set_agentic_session(agentic_session):
506
+ _session.agentic_session = agentic_session
500
507
  # endregion
501
508
 
502
509
 
@@ -576,11 +576,10 @@ def get_file_yaml(file_path, throw_on_empty=True):
576
576
 
577
577
 
578
578
  def read_file_content(file_path, allow_binary=False):
579
- from codecs import open as codecs_open
580
579
  # Note, always put 'utf-8-sig' first, so that BOM in WinOS won't cause trouble.
581
580
  for encoding in ['utf-8-sig', 'utf-8', 'utf-16', 'utf-16le', 'utf-16be']:
582
581
  try:
583
- with codecs_open(file_path, encoding=encoding) as f:
582
+ with open(file_path, mode='r', encoding=encoding) as f:
584
583
  logger.debug("attempting to read file %s as %s", file_path, encoding)
585
584
  return f.read()
586
585
  except (UnicodeError, UnicodeDecodeError):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: azure-cli-core
3
- Version: 2.86.0
3
+ Version: 2.87.0
4
4
  Summary: Microsoft Azure Command-Line Tools Core Module
5
5
  Home-page: https://github.com/Azure/azure-cli
6
6
  Author: Microsoft Corporation
@@ -26,11 +26,11 @@ Requires-Dist: cryptography
26
26
  Requires-Dist: distro; sys_platform == "linux"
27
27
  Requires-Dist: humanfriendly~=10.0
28
28
  Requires-Dist: jmespath
29
- Requires-Dist: knack~=0.11.0
29
+ Requires-Dist: knack~=0.14.0
30
30
  Requires-Dist: microsoft-security-utilities-secret-masker~=1.0.0b4
31
31
  Requires-Dist: msal-extensions==1.3.1
32
- Requires-Dist: msal[broker]==1.35.1; sys_platform == "win32"
33
- Requires-Dist: msal==1.35.1; sys_platform != "win32"
32
+ Requires-Dist: msal[broker]==1.36.0; sys_platform == "win32"
33
+ Requires-Dist: msal==1.36.0; sys_platform != "win32"
34
34
  Requires-Dist: packaging>=20.9
35
35
  Requires-Dist: pkginfo>=1.5.0.1
36
36
  Requires-Dist: psutil>=5.9; sys_platform != "cygwin"
@@ -60,6 +60,7 @@ azure/cli/core/aaz/_utils.py
60
60
  azure/cli/core/aaz/exceptions.py
61
61
  azure/cli/core/aaz/utils.py
62
62
  azure/cli/core/auth/__init__.py
63
+ azure/cli/core/auth/agentic_session.py
63
64
  azure/cli/core/auth/binary_cache.py
64
65
  azure/cli/core/auth/constants.py
65
66
  azure/cli/core/auth/credential_adaptor.py
@@ -5,7 +5,7 @@ azure-mgmt-core<2,>=1.2.0
5
5
  cryptography
6
6
  humanfriendly~=10.0
7
7
  jmespath
8
- knack~=0.11.0
8
+ knack~=0.14.0
9
9
  microsoft-security-utilities-secret-masker~=1.0.0b4
10
10
  msal-extensions==1.3.1
11
11
  packaging>=20.9
@@ -19,10 +19,10 @@ requests[socks]
19
19
  psutil>=5.9
20
20
 
21
21
  [:sys_platform != "win32"]
22
- msal==1.35.1
22
+ msal==1.36.0
23
23
 
24
24
  [:sys_platform == "linux"]
25
25
  distro
26
26
 
27
27
  [:sys_platform == "win32"]
28
- msal[broker]==1.35.1
28
+ msal[broker]==1.36.0
@@ -8,7 +8,7 @@
8
8
  from codecs import open
9
9
  from setuptools import setup, find_packages
10
10
 
11
- VERSION = "2.86.0"
11
+ VERSION = "2.87.0"
12
12
 
13
13
  # If we have source, validate that our version numbers match
14
14
  # This should prevent uploading releases with mismatched versions.
@@ -52,11 +52,11 @@ DEPENDENCIES = [
52
52
  'distro; sys_platform == "linux"',
53
53
  'humanfriendly~=10.0',
54
54
  'jmespath',
55
- 'knack~=0.11.0',
55
+ 'knack~=0.14.0',
56
56
  'microsoft-security-utilities-secret-masker~=1.0.0b4',
57
57
  'msal-extensions==1.3.1',
58
- 'msal[broker]==1.35.1; sys_platform == "win32"',
59
- 'msal==1.35.1; sys_platform != "win32"',
58
+ 'msal[broker]==1.36.0; sys_platform == "win32"',
59
+ 'msal==1.36.0; sys_platform != "win32"',
60
60
  'packaging>=20.9',
61
61
  'pkginfo>=1.5.0.1',
62
62
  # psutil can't install on cygwin: https://github.com/Azure/azure-cli/issues/9399