Skip to content

Commit 0c9a3d2

Browse files
authored
Merge branch 'main' into copilot/fix-1
2 parents 914047a + 5dad7e3 commit 0c9a3d2

File tree

343 files changed

+14034
-9943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

343 files changed

+14034
-9943
lines changed

.github/policies/resourceManagement.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -614,13 +614,11 @@ configuration:
614614
then:
615615
- mentionUsers:
616616
mentionees:
617-
- mksuni
618-
- bgklein
619-
- mscurrell
620617
- dpwatrous
621-
- gingi
622-
- paterasMSFT
618+
- wiboris
623619
- cRui861
620+
- skapur12
621+
- wanghoppe
624622
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
625623
assignMentionees: False
626624
- if:

linter_exclusions.yml

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,20 +1415,44 @@ iot edge deployment update:
14151415
- no_parameter_defaults_for_update_commands
14161416
iot ops asset create:
14171417
parameters:
1418-
cluster_resource_group:
1418+
instance_resource_group:
14191419
rule_exclusions:
14201420
- parameter_should_not_end_in_resource_group
1421-
custom_location_resource_group:
1421+
iot ops asset query:
1422+
parameters:
1423+
instance_resource_group:
1424+
rule_exclusions:
1425+
- parameter_should_not_end_in_resource_group
1426+
iot ops asset endpoint create custom:
1427+
parameters:
1428+
instance_resource_group:
1429+
rule_exclusions:
1430+
- parameter_should_not_end_in_resource_group
1431+
iot ops asset endpoint create onvif:
1432+
parameters:
1433+
instance_resource_group:
14221434
rule_exclusions:
14231435
- parameter_should_not_end_in_resource_group
1424-
iot ops asset endpoint create:
1436+
iot ops asset endpoint create opcua:
14251437
parameters:
1426-
cluster_resource_group:
1438+
instance_resource_group:
14271439
rule_exclusions:
14281440
- parameter_should_not_end_in_resource_group
1429-
custom_location_resource_group:
1441+
iot ops asset endpoint query:
1442+
parameters:
1443+
instance_resource_group:
1444+
rule_exclusions:
1445+
- parameter_should_not_end_in_resource_group
1446+
iot ops ns device create:
1447+
parameters:
1448+
instance_resource_group:
14301449
rule_exclusions:
14311450
- parameter_should_not_end_in_resource_group
1451+
iot ops broker persist update:
1452+
parameters:
1453+
broker_name:
1454+
rule_exclusions:
1455+
- no_parameter_defaults_for_update_commands
14321456
k8sconfiguration create:
14331457
parameters:
14341458
helm_operator_version:

src/aks-preview/HISTORY.rst

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,31 @@ To release a new version, please select a new version number (usually plus 1 to
1111

1212
Pending
1313
+++++++
14-
* Add support for `ManagedSystem` Agent Pool Mode.
1514

16-
18.0.0b19
15+
18.0.0b22
1716
+++++++
18-
- Add `--localdns-config` to `az aks nodepool add` and to `az aks nodepool update` to support configuring a local DNS profile for agent pools.
17+
* Vendor new SDK and bump API version to 2025-06-02-preview.
1918

19+
18.0.0b21
20+
+++++++
21+
* Add command `az aks bastion` to enable connections to managed Kubernetes clusters via Azure Bastion.
2022

21-
18.0.0b18
23+
18.0.0b20
2224
+++++++
23-
* Add validation error when neither --location or --cluster and --resource-group-name are specified for az extension type list or az extension type version list
25+
* Fix the bug affecting VMAS to VMS migration in the `az aks update` command using the `--migrate-vmas-to-vms` option.
2426

27+
18.0.0b19
28+
+++++++
29+
* Add support for `ManagedSystem` Agent Pool Mode.
30+
* Add `--localdns-config` to `az aks nodepool add` and to `az aks nodepool update` to support configuring a local DNS profile for agent pools.
2531

32+
18.0.0b18
33+
+++++++
34+
* Add validation error when neither --location or --cluster and --resource-group-name are specified for az extension type list or az extension type version list
2635

2736
18.0.0b17
2837
+++++++
29-
* Remove `__import__('pkg_resources').declare_namespace(__name__)` from `vendored_sdks/__init__.py`` to fix the namespace package issue.
38+
* Remove `__import__('pkg_resources').declare_namespace(__name__)` from `vendored_sdks/__init__.py` to fix the namespace package issue.
3039

3140
18.0.0b16
3241
+++++++

src/aks-preview/README.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ Released version and adopted API version
203203
* - 18.0.0b11 ~ 18.0.0b15
204204
- 2025-04-02-preview
205205
-
206-
* - 18.0.0b16 ~ latest
206+
* - 18.0.0b16 ~ 18.0.0b21
207207
- 2025-05-02-preview
208+
-
209+
* - 18.0.0b22 ~ latest
210+
- 2025-06-02-preview
208211
-

src/aks-preview/azext_aks_preview/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
from azure.cli.core import AzCommandsLoader
8-
from azure.cli.core.profiles import register_resource_type, SDKProfile
8+
from azure.cli.core.profiles import register_resource_type
99

1010
# pylint: disable=unused-import
1111
import azext_aks_preview._help
@@ -16,7 +16,7 @@ def register_aks_preview_resource_type():
1616
register_resource_type(
1717
"latest",
1818
CUSTOM_MGMT_AKS_PREVIEW,
19-
SDKProfile("2025-05-02-preview", {"container_services": "2017-07-01"}),
19+
None,
2020
)
2121

2222

src/aks-preview/azext_aks_preview/_help.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3864,3 +3864,24 @@
38643864
- name: Show details of a load balancer configuration in table format
38653865
text: az aks loadbalancer show -g MyResourceGroup -n kubernetes --cluster-name MyManagedCluster -o table
38663866
"""
3867+
3868+
helps['aks bastion'] = """
3869+
type: command
3870+
short-summary: Connect to a managed Kubernetes cluster using Azure Bastion.
3871+
long-summary: The command will launch a subshell with the kubeconfig set to connect to the cluster via Bastion. Use exit or Ctrl-D (i.e. EOF) to exit the subshell.
3872+
parameters:
3873+
- name: --bastion
3874+
type: string
3875+
short-summary: The name or resource ID of a pre-deployed Bastion resource configured to connect to the current AKS cluster.
3876+
long-summary: If not specified, the command will try to identify an existing Bastion resource within the cluster's node resource group.
3877+
- name: --port
3878+
type: int
3879+
short-summary: The local port number used for the bastion connection.
3880+
long-summary: If not provided, a random port will be used.
3881+
- name: --admin
3882+
type: bool
3883+
short-summary: Use the cluster admin credentials to connect to the bastion.
3884+
examples:
3885+
- name: Connect to a managed Kubernetes cluster using Azure Bastion with custom port and admin credentials.
3886+
text: az aks bastion -g MyResourceGroup --name MyManagedCluster --bastion MyBastionResource --port 50001 --admin
3887+
"""

src/aks-preview/azext_aks_preview/_params.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2761,6 +2761,17 @@ def load_arguments(self, _):
27612761
help="Name of the load balancer configuration. Required.",
27622762
)
27632763

2764+
with self.argument_context("aks bastion") as c:
2765+
c.argument("bastion")
2766+
c.argument("port", type=int)
2767+
c.argument("admin", action="store_true")
2768+
c.argument(
2769+
"yes",
2770+
options_list=["--yes", "-y"],
2771+
help="Do not prompt for confirmation.",
2772+
action="store_true",
2773+
)
2774+
27642775

27652776
def _get_default_install_location(exe_name):
27662777
system = platform.system()

src/aks-preview/azext_aks_preview/bastion/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)