Skip to content

Sync main with upstream Azure/azure-cli-extensions (post-1.9.0, step 10) - #25

Merged
prasannajsns merged 39 commits into
AzureArcForKubernetes:mainfrom
brrusino:sync/upstream-post-1.9.0
Sep 24, 2026
Merged

prasannajsns merged 39 commits into
AzureArcForKubernetes:mainfrom
brrusino:sync/upstream-post-1.9.0

Conversation

@brrusino

Copy link
Copy Markdown

Step 10 from Javadi's publishing process: syncs our main with upstream Azure/azure-cli-extensions main now that 1.9.0 shipped (Azure#10359).

Plain merge of upstream/main into origin/main (no rebase), so the fork's history stays intact. It merged clean, no conflicts.

What still differs from upstream/main after the merge: just testing/, and it's byte-identical to what's on origin/main today. git diff --name-only upstream/main HEAD returns only testing/* paths, and git diff origin/main HEAD -- testing is empty.

src/k8s-extension matches upstream exactly (1.9.0, no diff).

Javadi, happy to fix anything if you want it done differently.

mamortat and others added 30 commits September 17, 2026 10:22
…#10329)

* Don't use endpoint cache when workspace doesn't match

* Simplify endpoint cache structure

* Prevent unintended writes to saved workspace data

* Add missing file header

* Better HISTORY entry

* Don't mention endpoint cache in help

* Address review comments

* Address review comments

* Address review comments
* add Package Registry preview extension

* tighten data-plane URL validation

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 08bed320-d21b-400f-a944-11d6d6129c22

* close data-plane transport gaps

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 08bed320-d21b-400f-a944-11d6d6129c22

* rename package registry extension to apr

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 99135581-9cf9-4a99-a7b3-63692da88967

* sync apr source with service main

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 99135581-9cf9-4a99-a7b3-63692da88967

* configure apr linter exceptions

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 99135581-9cf9-4a99-a7b3-63692da88967

* expand APR offline scenario coverage

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 99135581-9cf9-4a99-a7b3-63692da88967

* align APR preview metadata

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 99135581-9cf9-4a99-a7b3-63692da88967

* add required APR license headers

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 99135581-9cf9-4a99-a7b3-63692da88967

* register APR service metadata

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 99135581-9cf9-4a99-a7b3-63692da88967

* align APR client factory formatting

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 99135581-9cf9-4a99-a7b3-63692da88967

* address APR review feedback

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 99135581-9cf9-4a99-a7b3-63692da88967

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 08bed320-d21b-400f-a944-11d6d6129c22
Copilot-Session: 99135581-9cf9-4a99-a7b3-63692da88967
* Add agentmesh CLI extension

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Refresh agentmesh examples and metadata

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Address Agent Mesh review feedback

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…implementation and removed `--marker` and `--show-next-marker` from `sig image-definition list-community` and `sig image-version list-community` (Azure#10068)
* [HorizonDB] Add restore command

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* [HorizonDB] Fix restore command to send required PointInTimeUTC

The `az horizondb restore` command sent createMode=PointInTimeRestore and
sourceClusterResourceId but omitted pointInTimeUTC, which the service requires
(MissingRequiredParameter). Add a `--restore-time` argument (optional, defaults
to current UTC time, parse-validated) mirroring `az postgres flexible-server
restore`, and pass it as point_in_time_utc.

- _params.py: add --restore-time arg with current-time default.
- custom_commands.py: parse --restore-time and set point_in_time_utc.
- _help.py: add point-in-time restore example.
- test: supply a valid restore time (utcnow - 6 min, clearing the 300s preview
  buffer) and assert createMode; re-record live cassette and commit test log.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* horizondb: remove committed test results log

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* horizondb: address restore PR review feedback from nachoalonsoportillo

- Clarify restore help/summary wording and examples
- Reword source-cluster arg and error message (resource identifier)
- Default restore-time to 6 minutes before now during preview when omitted
- Update example timestamps

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* horizondb: address restore PR review feedback

- Normalize --restore-time to a UTC-aware datetime in _parse_restore_time:
  a value without an explicit offset is interpreted as UTC and an
  offset-aware value is converted to UTC, so the service never receives a
  naive/ambiguous datetime.
- Run the restore scenario in playback (not just live) so `az horizondb
  restore` is actually exercised by the recorded cassette. Playback matches
  on method + URI only, so the computed restore-time is not replay-sensitive.
- Add unit tests for _parse_restore_time (default, naive, offset-aware, Z
  suffix, invalid).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 9af6f71f-2404-4076-ba3f-b6730e166e91

---------

Co-authored-by: Alex Fenwood Hughes <alexfen@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot-Session: 9af6f71f-2404-4076-ba3f-b6730e166e91
* {AKS} Fix omitted FlexNodes node taints

* {AKS} Release aks-preview 22.0.0b8

* {AKS} Keep FlexNodes taint cleanup together
* [confcom] De-dup exec_processes in the generated policies

Work-around for microsoft/hcsshim#2935

Assisted-by: GitHub-Copilot
Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>

* {confcom} Add policy sample for probes using the same command

After de-dup, policy exec_processes should only have one entry.

Assisted-by: GitHub-Copilot
Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>

* {confcom} 2.1.1

Assisted-by: GitHub-Copilot
Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>

---------

Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>
Azure#10357)

* {aimanager} Always show Feasible column in calculate-cost table output

The 'az aimanager model calculate-cost -o table' output dropped the
'Feasible' column whenever every SKU was infeasible, because the service
omits 'feasible' on infeasible plans and azure-cli drops all-blank
columns — hiding the single most useful column exactly when it matters.

Replace the JMESPath table transformer with a callable formatter that
coerces 'feasible' to an explicit True/False for every plan, so the
column is always populated and never dropped. Also add an
'InfeasibilityReason' column surfacing the per-plan reason code.

Fixes AB#39624918

* {aimanager} Strip InfeasibleCode_ prefix from InfeasibilityReason column

The service returns reason codes prefixed with "InfeasibleCode_" (e.g.
"InfeasibleCode_InefficientDeployment"), which is redundant and makes the
column unnecessarily wide in -o table output. Strip the prefix so the
column shows just "InefficientDeployment" / "InsufficientQuota".

* {aimanager} Harden feasible bool coercion and document new table columns

Address PR review feedback:
- Coerce 'feasible' via a strict helper so a JSON-string "false" becomes
  False (bool("false") is truthy in Python). The vendored SDK already
  deserializes it as a real bool, but this guards any raw-dict path.
- Mention the Feasible / InfeasibilityReason table columns in the
  calculate-cost command help long-summary.
* Restore testing folder from fork

* Adding WI validation and new allowed config settings keys

* Updating allowed config settings and network policy validation

* Add Microsoft.ChaosStudio partner customization

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Bump k8s-extension to 1.9.0 for Chaos Studio support

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Document tested Chaos Studio preview installation

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Removing parameters that are not needed

* Use platform identity for staged Chaos bootstrap

Wait for subscriber-disabled installation, reconcile the workspace connection with the completed platform identity, then activate with its returned endpoint. Preserve workspace RBAC and resume without pending mutations or subscriber identity ownership. Document the pending chart dependency and fix README reStructuredText rendering.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Solving PR comment

* Fix azdev checkout path for k8s-extension CI

Apply the same two-line setup correction proposed in upstream PR AzureArcForKubernetes#19. The shared env-setup action and VersionCalPRComment workflow are outside the original partner diff but are required to run its CI. Preserve the existing azdev pin.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Revert azdev checkout path change

Reverts ba30322 at user request.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

* Prepare k8s-extension 1.9.0 upstream release

Remove the fork-only root testing directory from the release branch. Keep the merged partner implementation unchanged.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: REDMOND\japras <japras@microsoft.com>
Co-authored-by: Toma-Andrei Sacuiu <tscuiu@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: prasannajsns <33145176+prasannajsns@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…zure#10362)

* add `--use-patch-api` to `az aks nodepool scale` for vmss pool

* Fix condition for using PATCH API in VMSS scaling

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* fix

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
* Rename aks-custom-headers to custom-headers for aimanager

* update to major version update due to breaking change

* req headers to custom headers naming

---------

Co-authored-by: Jessie Wang <wangjessi@micrsoft.com>
Co-authored-by: Jessie Wang <wangjessi@micrsoft.com>
* NetworkCloud CLI v6.0.0b1 for 2026-08-01-preview API

* NetworkCloud CLI v6.0.0b1 for 2026-08-01-preview API

* updates
FumingZhang and others added 9 commits September 22, 2026 15:05
Update recorded public IP request URIs to the 2025-09-01 Network API used by the current Azure CLI, restoring replay for the bastion and outbound IP scenarios.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ility (Azure#10344)

* fix: support split ACR tasks SDK (Azure#72)

fix: support split ACR tasks SDK

Copilot-Session: a4f5e94e-df29-4504-b784-0477f1067512

* fix: support current ACR task operations

Use synchronous operation names from the split ACR tasks SDK while retaining legacy begin_* compatibility and waiting for legacy pollers.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: f0ccdfbb-37f1-4ea4-96ae-5de9168b489e

* fix: support current task run request values

Select values_property for the split ACR tasks SDK and retain values for the legacy model. Keep the combined compatibility release at 1.0.0b8.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: f0ccdfbb-37f1-4ea4-96ae-5de9168b489e

* legacy fallback now resolves models with pinned version while split-SDK path still uses get_sdk()

---------

Co-authored-by: cegraybl_microsoft <cegrayb@microsoft.com>
Copilot-Session: a4f5e94e-df29-4504-b784-0477f1067512
Copilot-Session: f0ccdfbb-37f1-4ea4-96ae-5de9168b489e
…ckage/versioning updates (Azure#10273)

* {confcom}: Fetch cimwriter.dll along with its license

Assisted-by: GitHub-Copilot copilot-review
Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>
(cherry picked from commit 72c0de5)

* {confcom}: Add environment variables and fix mounts for C-WCOW on VN2

Windows VN2 pods need CCE policies that match what actually lands in the
container at runtime. The mount *sources* are still emitted by the (Linux)
mounthost as sandbox:///tmp/atlas/emptydir/.+, but the *destination* paths are
translated to Windows form by k8s/containerd/hcsshim (e.g.
/var/run/secrets/... -> C:\var\run\secrets\..., /etc/hosts ->
C:\Windows\System32\drivers\etc\hosts). Windows managed identity also exposes
IDENTITY_ENDPOINT, which Linux does not.

Branch VN2 mounts and injected env and mount rules based on platform
(linux/amd64 vs windows/amd64):
- Add Windows mount sets (C:\ destinations; empty user/privileged sets) and
  managedIdentityWindows env rules (adds IDENTITY_ENDPOINT).
- IDENTITY_ENDPOINT is WCOW-only for now to avoid changing a bunch of LCOW
  tests.
- config.py: platform-aware get_default_mounts_*_virtual_node() helpers.
- container.py: pick Windows env rules (managed identity + restart only;
  OPENGCS/FABRIC stay Linux-specific) and Windows VN2 mounts by platform.
- security_policy.py: route the VN2 privileged / workload-identity mount call
  sites through the platform-aware helpers.

Assisted-by: GitHub Copilot:claude-opus-4.8
Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>
(cherry picked from commit 42cecaf)

* Bump version to 2.2.0

Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>
(cherry picked from commit 32a06b7)

* [confcom] Make this 2.2.0a1 preview

Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>
(cherry picked from commit 773679c)

* {confcom}: Add log provider support for C-WCOW policies

Support the log_provider enforcement point from hcsshim PR Azure#2763 (CWCOW: Logging enforcement) in the Windows policy producer. The Windows rego policy template now wires log_provider and emits allow_log_provider_dropping plus an allowed_log_providers list.

There is no ARM property for log providers, so the allow-list is settable only through the --input JSON via the new allowedLogProviders and allowLogProviderDropping fields. allow_log_provider_dropping defaults to true, mirroring allow_environment_variable_dropping, so providers outside the allow-list are dropped rather than denied.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Takuro Sato <takurosato@microsoft.com>

* {confcom}: Update C-WCOW policy support for hcsshim PR Azure#2842

Bump api_version to 0.12.0 and framework_version to 0.5.0 to match the hcsshim CWCOW policy framework, and add the enforcement points introduced by PR Azure#2842.

The Windows policy template now wires registry_changes, unmount_cims, host_network and load_transparency_trust_list, and emits the allow_host_network, allow_unencrypted_scratch, allow_capability_dropping and allow_registry_changes_dropping switches. The Linux policy template wires host_network and load_transparency_trust_list (newly active at api_version 0.12.0) and emits allow_host_network, which has no framework default. The fragment and sidecar templates are bumped to framework_version 0.5.0.

These enforcement points have no ARM property, so they are exposed only through confcom-owned --input (-i) JSON fields, mirroring the log-provider fields: the top-level allowHostNetwork and allowRegistryChangesDropping bools, the per-container registryChanges object (passed through in the hcsshim add_values/delete_keys shape), and the top-level mappedDirectories list. mapped_directory_mount/unmount are wired only when mappedDirectories is supplied, since wiring them without backing data can only deny; an undeclared hot-add is denied by the framework either way.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Takuro Sato <takurosato@microsoft.com>

* {confcom}: Add elasticSan volume mount type for Confidential ACI

Elastic SAN volumes on Confidential ACI are bind-mounted into the workload
container by the atlas mounthost from /tmp/atlas/esanVolume/<deployment>/<volume>,
analogous to Azure File's /tmp/atlas/azureFileVolume/... . Register a matching
"elasticSan" mount type so CCE policies accept the Elastic SAN volume mount.

The type name matches the ARM/CCE volume property (Volume.ElasticSan ->
"elasticSan") and the source mirrors the azureFile entry, both per Compute-ACI
release/rel-20260429.

Compute-ACI also places a Linux pod that mounts an Elastic SAN volume on the
host network (iscsid needs the UVM init netns), so the generated policy for such
a pod must allow the host_network enforcement point (added in Azure#2842). Detect the
elasticSan mount type and force allow_host_network on for Linux policies, leaving
the flag at its default False otherwise.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Takuro Sato <takurosato@microsoft.com>

* {confcom}: Allow SIGKILL and SIGTERM by default

Allow signals 9 and 15 for every generated workload container and the default pause container. Preserve additional image stop signals while ensuring the shutdown defaults are always present.

Regenerate the ACI, VN2, Radius, and image policy fixtures to reflect the new defaults.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Takuro Sato <takurosato@microsoft.com>

* {confcom}: Wire Windows scratch unmount policy

Export scratch_unmount from generated Windows policies so container teardown clears framework scratch metadata and container recreation can remount the same path.

Add a regression assertion covering both scratch mount and unmount wiring.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Takuro Sato <takurosato@microsoft.com>

* {confcom}: Fix input field test isolation

Signed-off-by: Takuro Sato <takurosato@microsoft.com>

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* {confcom}: Mock validation after wheel reload

Signed-off-by: Takuro Sato <takurosato@microsoft.com>

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* {confcom}: Bump confcom version to 2.2.0

Signed-off-by: Takuro Sato <takurosato@microsoft.com>

* Update lib/serialization.py to support new fields

Add "vtable" entry for host_network and load_transparency_trust_list, and
transparently pass through allowed_log_providers which contains a list
rather than a boolean. Then for the C-WCOW ones conditionally add them.

Assisted-by: GitHub-Copilot
Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* {confcom}: Add explicit prerelease policy API selection

Keep existing Linux policy and fragment output on the deployed policy contract while allowing callers to explicitly select the latest bundled Linux API and framework. Windows continues to use the latest bundled contract, and Radius serialization preserves enforcement-point version boundaries.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* {confcom}: Validate mapped directory policy input

Always emit the mapped-directory enforcement bindings, including an empty rule set, and reject malformed mappedDirectories input instead of coercing values.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* {confcom}: Verify infrastructure fragment SVN override

Update the infrastructure_svn scenario test to assert the generated fragment minimum_svn instead of an unrelated framework version.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* {confcom}: Preserve new fields in Radius policies

Add mapped_directories and registry_changes to the Radius policy models and preserve them across policy deserialization and serialization.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* {confcom}: Align policy documentation framework version

Update the Rego examples using policy API 0.12.0 to declare the corresponding framework version 0.5.0.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* {confcom}: Omit absent registry changes

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* {confcom}: Refresh default policy samples

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Update src/confcom/azext_confcom/README.md

Co-authored-by: Tingmao Wang <m@maowtm.org>

* {confcom}: Suppress policy parser branch warning

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* {confcom}: Clarify mapped directory policy defaults

Document that Windows policies always wire mapped-directory enforcement and use an empty list to deny undeclared hot-adds.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* {confcom}: Refresh duplicated probe policy samples

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Takuro Sato <takurosato@microsoft.com>

---------

Signed-off-by: Tingmao Wang <tingmaowang@microsoft.com>
Signed-off-by: Takuro Sato <takurosato@microsoft.com>
Co-authored-by: Tingmao Wang <tingmaowang@microsoft.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Tingmao Wang <m@maowtm.org>
…e#10372)

* {Application-insights} Pre-announce query offset change

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: eb41df1a-e62f-43af-938a-67db646f2353

* {Application-insights} Rely on breaking change discovery

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: eb41df1a-e62f-43af-938a-67db646f2353

* {Application-insights} Refresh management test recordings

Update stale management scenarios for current Azure resource requirements and re-record their HTTP interactions.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: eb41df1a-e62f-43af-938a-67db646f2353

---------

Copilot-Session: eb41df1a-e62f-43af-938a-67db646f2353
* migrate runbook: enhancements (WIP)

* migrate runbook: configure HTML editor UX, exec status tool-status + service counts, api-version 2026-08-01-preview, archive diagnostics, coverage tooling

* Runbook: enhancements, feedback, integration fix

* migrate runbook: fix definition download parameters label; align spec/inputs docstrings

* migrate/runbook: workstream to step-group migration

* migrate/runbook - fixing linter errors

* migrate/runbook - fixing linter errors, adding test coverage

* migrate/runbook: config-status step-level inheritance, additional fixes

* migrate/runbook: fixing review comment

* migrate/runbook: show entity display name on visualizer
@prasannajsns
prasannajsns merged commit dd3863c into AzureArcForKubernetes:main Sep 24, 2026
5 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.