Skip to content

Commit baf215b

Browse files
Merge pull request #25 from khushishah513/function-cli
merging with main and version update
2 parents 8f386d0 + 008a358 commit baf215b

File tree

303 files changed

+852389
-586522
lines changed

Some content is hidden

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

303 files changed

+852389
-586522
lines changed

.github/policies/resourceManagement.yml

Lines changed: 68 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -657,6 +657,17 @@ configuration:
657657
- us6193
658658
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
659659
assignMentionees: False
660+
- if:
661+
- hasLabel:
662+
label: Service Attention
663+
- hasLabel:
664+
label: Blob Storage SFTP
665+
then:
666+
- mentionUsers:
667+
mentionees:
668+
- greeshma-microsoft
669+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
670+
assignMentionees: False
660671
- if:
661672
- hasLabel:
662673
label: Service Attention
@@ -1454,7 +1465,7 @@ configuration:
14541465
then:
14551466
- mentionUsers:
14561467
mentionees:
1457-
- rgreenMSFT
1468+
- amarjeetkr
14581469
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
14591470
assignMentionees: False
14601471
- if:
@@ -1567,6 +1578,21 @@ configuration:
15671578
- nberdy
15681579
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
15691580
assignMentionees: False
1581+
- if:
1582+
- hasLabel:
1583+
label: Service Attention
1584+
- hasLabel:
1585+
label: Device Registry
1586+
then:
1587+
- mentionUsers:
1588+
mentionees:
1589+
- c-ryan-k
1590+
- digimaun
1591+
- rohankhandelwal
1592+
- mryanlo
1593+
- atastrophic
1594+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
1595+
assignMentionees: False
15701596
- if:
15711597
- hasLabel:
15721598
label: Service Attention
@@ -1588,7 +1614,6 @@ configuration:
15881614
- mentionUsers:
15891615
mentionees:
15901616
- anishtrakru
1591-
- derekbekoe
15921617
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
15931618
assignMentionees: False
15941619
- if:
@@ -1599,7 +1624,7 @@ configuration:
15991624
then:
16001625
- mentionUsers:
16011626
mentionees:
1602-
- sourabhguha
1627+
- YingXue
16031628
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
16041629
assignMentionees: False
16051630
- if:
@@ -1649,6 +1674,17 @@ configuration:
16491674
- Saglodha
16501675
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
16511676
assignMentionees: False
1677+
- if:
1678+
- hasLabel:
1679+
label: Service Attention
1680+
- hasLabel:
1681+
label: Fabric
1682+
then:
1683+
- mentionUsers:
1684+
mentionees:
1685+
- xinzhizou
1686+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
1687+
assignMentionees: False
16521688
- if:
16531689
- hasLabel:
16541690
label: Service Attention
@@ -1668,9 +1704,9 @@ configuration:
16681704
then:
16691705
- mentionUsers:
16701706
mentionees:
1671-
- AnatoliB
1672-
- Francisco-Gamino
1673-
- shreyabatra4
1707+
- kamperiadis
1708+
- amamounelsayed
1709+
- khkh-ms
16741710
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
16751711
assignMentionees: False
16761712
- if:
@@ -1765,20 +1801,8 @@ configuration:
17651801
then:
17661802
- mentionUsers:
17671803
mentionees:
1768-
- iluican
1769-
- jlian
1770-
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
1771-
assignMentionees: False
1772-
- if:
1773-
- hasLabel:
1774-
label: Service Attention
1775-
- hasLabel:
1776-
label: IotDPS
1777-
then:
1778-
- mentionUsers:
1779-
mentionees:
1780-
- iluican
1781-
- jlian
1804+
- digimaun
1805+
- Azure/azure-iot-cli-triage
17821806
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
17831807
assignMentionees: False
17841808
- if:
@@ -2734,8 +2758,11 @@ configuration:
27342758
then:
27352759
- mentionUsers:
27362760
mentionees:
2737-
- shariq-mcs
2738-
- MSFTeegarden
2761+
- abhijitch_microsoft
2762+
- yuvalm_microsoft
2763+
- nikitagarg_microsoft
2764+
- sanar_microsoft
2765+
- cawa_microsoft
27392766
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
27402767
assignMentionees: False
27412768
- if:
@@ -2848,10 +2875,10 @@ configuration:
28482875
then:
28492876
- mentionUsers:
28502877
mentionees:
2851-
- bleroy
2852-
- tjacobhi
2853-
- markheff
2854-
- miwelsh
2878+
- kuanlu95
2879+
- efrainretana
2880+
- mattgotteiner
2881+
- Draconicida
28552882
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
28562883
assignMentionees: False
28572884
- if:
@@ -2874,6 +2901,7 @@ configuration:
28742901
- mentionUsers:
28752902
mentionees:
28762903
- nazang
2904+
- mooshc
28772905
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
28782906
assignMentionees: False
28792907
- if:
@@ -3084,6 +3112,20 @@ configuration:
30843112
- S-J-M
30853113
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
30863114
assignMentionees: False
3115+
- if:
3116+
- hasLabel:
3117+
label: Service Attention
3118+
- hasLabel:
3119+
label: StorageDiscovery
3120+
then:
3121+
- mentionUsers:
3122+
mentionees:
3123+
- shanefujs
3124+
- apurv2304
3125+
- skallurk
3126+
- vdziunms
3127+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
3128+
assignMentionees: False
30873129
- if:
30883130
- hasLabel:
30893131
label: Service Attention

azure-pipelines.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ jobs:
9090
name: ${{ variables.ubuntu_pool }}
9191
strategy:
9292
matrix:
93-
Python39:
94-
python.version: '3.9'
9593
Python310:
9694
python.version: '3.10'
9795
Python311:

linter_exclusions.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,6 +1207,14 @@ import-export update:
12071207
backup_drive_manifest:
12081208
rule_exclusions:
12091209
- option_length_too_long
1210+
iot adr ns policy update:
1211+
parameters:
1212+
certificate_key_type:
1213+
rule_exclusions:
1214+
- no_parameter_defaults_for_update_commands
1215+
certificate_validity_days:
1216+
rule_exclusions:
1217+
- no_parameter_defaults_for_update_commands
12101218
iot central enrollment-group update:
12111219
parameters:
12121220
api_version:
@@ -1315,21 +1323,52 @@ iot central user update:
13151323
iot du update:
13161324
rule_exclusions:
13171325
- require_wait_command_if_no_wait
1326+
iot dps enrollment list:
1327+
rule_exclusions:
1328+
- no_ids_for_list_commands
13181329
iot dps enrollment update:
13191330
parameters:
13201331
auth_type_dataplane:
13211332
rule_exclusions:
13221333
- no_parameter_defaults_for_update_commands
1334+
iot dps enrollment-group list:
1335+
rule_exclusions:
1336+
- no_ids_for_list_commands
1337+
iot dps enrollment-group registration list:
1338+
rule_exclusions:
1339+
- no_ids_for_list_commands
13231340
iot dps enrollment-group update:
13241341
parameters:
13251342
auth_type_dataplane:
13261343
rule_exclusions:
13271344
- no_parameter_defaults_for_update_commands
1345+
iot dps linked-hub create:
1346+
parameters:
1347+
apply_allocation_policy:
1348+
rule_exclusions:
1349+
- option_length_too_long
1350+
hub_resource_group:
1351+
rule_exclusions:
1352+
- parameter_should_not_end_in_resource_group
1353+
iot dps linked-hub update:
1354+
parameters:
1355+
apply_allocation_policy:
1356+
rule_exclusions:
1357+
- option_length_too_long
1358+
iot dps registration list:
1359+
rule_exclusions:
1360+
- no_ids_for_list_commands
1361+
iot hub certificate list:
1362+
rule_exclusions:
1363+
- no_ids_for_list_commands
13281364
iot hub configuration update:
13291365
parameters:
13301366
auth_type_dataplane:
13311367
rule_exclusions:
13321368
- no_parameter_defaults_for_update_commands
1369+
iot hub consumer-group list:
1370+
rule_exclusions:
1371+
- no_ids_for_list_commands
13331372
iot hub device-identity update:
13341373
parameters:
13351374
auth_type_dataplane:
@@ -1370,6 +1409,9 @@ iot hub message-endpoint create storage-container:
13701409
endpoint_resource_group:
13711410
rule_exclusions:
13721411
- parameter_should_not_end_in_resource_group
1412+
iot hub message-endpoint list:
1413+
rule_exclusions:
1414+
- no_ids_for_list_commands
13731415
iot hub message-endpoint update cosmosdb-container:
13741416
parameters:
13751417
endpoint_resource_group:
@@ -1395,6 +1437,12 @@ iot hub message-endpoint update storage-container:
13951437
endpoint_resource_group:
13961438
rule_exclusions:
13971439
- parameter_should_not_end_in_resource_group
1440+
iot hub message-enrichment list:
1441+
rule_exclusions:
1442+
- no_ids_for_list_commands
1443+
iot hub message-route list:
1444+
rule_exclusions:
1445+
- no_ids_for_list_commands
13981446
iot hub module-identity update:
13991447
parameters:
14001448
auth_type_dataplane:
@@ -1405,6 +1453,20 @@ iot hub module-twin update:
14051453
auth_type_dataplane:
14061454
rule_exclusions:
14071455
- no_parameter_defaults_for_update_commands
1456+
iot hub policy list:
1457+
rule_exclusions:
1458+
- no_ids_for_list_commands
1459+
iot hub route list:
1460+
rule_exclusions:
1461+
- no_ids_for_list_commands
1462+
iot hub routing-endpoint create:
1463+
parameters:
1464+
endpoint_resource_group:
1465+
rule_exclusions:
1466+
- parameter_should_not_end_in_resource_group
1467+
iot hub routing-endpoint list:
1468+
rule_exclusions:
1469+
- no_ids_for_list_commands
14081470
iot hub state migrate:
14091471
parameters:
14101472
orig_resource_group_name:

src/aks-preview/HISTORY.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,14 @@ To release a new version, please select a new version number (usually plus 1 to
1212
Pending
1313
+++++++
1414

15+
19.0.0b16
16+
+++++++
17+
* Update --enable-container-network-logs DCR to ContainerNetworkLogs instead of RetinaNetworkFlowLogs
18+
1519
19.0.0b15
1620
+++++++
1721
* Fix `NoneType` error when performing operations on automatic clusters that have hosted system components enabled.
1822

19-
2023
19.0.0b14
2124
+++++++
2225
* `az aks safeguards`: Add support for Deployment Safeguards with Pod Security Standards (PSS). New `--pss-level` parameter allows setting PSS enforcement level to Privileged, Baseline, or Restricted. Commands now support both `-g/-n` and `--cluster` argument patterns.

src/aks-preview/azext_aks_preview/addonconfiguration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"Microsoft-ContainerInventory",
5959
"Microsoft-ContainerNodeInventory",
6060
"Microsoft-Perf",
61-
"Microsoft-RetinaNetworkFlowLogs",
61+
"Microsoft-ContainerNetworkLogs",
6262
]
6363

6464

src/aks-preview/azext_aks_preview/tests/latest/test_aks_commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18252,7 +18252,7 @@ def test_aks_create_acns_with_flow_logs(
1825218252
get_cmd = f'rest --method get --url https://management.azure.com{dcr_resource_id}?api-version=2022-06-01'
1825318253
self.cmd(get_cmd, checks=[
1825418254
self.check('properties.destinations.logAnalytics[0].workspaceResourceId', f'{workspace_resource_id}'),
18255-
self.check('properties.dataFlows[0].streams[-1]', 'Microsoft-RetinaNetworkFlowLogs'),
18255+
self.check('properties.dataFlows[0].streams[-1]', 'Microsoft-ContainerNetworkLogs'),
1825618256
])
1825718257

1825818258
disable_cmd = "aks update --resource-group={resource_group} --name={name} --disable-container-network-logs -o json"

src/aks-preview/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from setuptools import find_packages, setup
1111

12-
VERSION = "19.0.0b15"
12+
VERSION = "19.0.0b16"
1313

1414
CLASSIFIERS = [
1515
"Development Status :: 4 - Beta",

src/confcom/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,5 @@ azext_confcom/bin/*
3636
**/.coverage
3737

3838
**/htmlcov
39+
40+
!lib/

src/confcom/HISTORY.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
Release History
44
===============
55

6+
1.4.0
7+
++++++
8+
* Add --with-containers flag to acipolicygen and acifragmentgen to allow passing container policy definitions directly
9+
610
1.3.1
711
++++++
812
* bugfix for --exclude-default-fragments flag not working as intended

src/confcom/azext_confcom/_params.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# --------------------------------------------------------------------------------------------
55
# pylint: disable=line-too-long
66

7+
import json
78
from knack.arguments import CLIArgumentType
89
from azext_confcom._validators import (
910
validate_params_file,
@@ -198,6 +199,14 @@ def load_arguments(self, _):
198199
required=False,
199200
help="Exclude default fragments in the generated policy",
200201
)
202+
c.argument(
203+
"container_definitions",
204+
options_list=['--with-containers'],
205+
action='append',
206+
type=json.loads,
207+
required=False,
208+
help='Container definitions to include in the policy'
209+
)
201210

202211
with self.argument_context("confcom acifragmentgen") as c:
203212
c.argument(
@@ -345,6 +354,14 @@ def load_arguments(self, _):
345354
help="Path to JSON file to write fragment import information. This is used with --generate-import. If not specified, the import statement will print to the console",
346355
validator=validate_fragment_json,
347356
)
357+
c.argument(
358+
"container_definitions",
359+
options_list=['--with-containers'],
360+
action='append',
361+
required=False,
362+
type=json.loads,
363+
help='Container definitions to include in the policy'
364+
)
348365

349366
with self.argument_context("confcom katapolicygen") as c:
350367
c.argument(

0 commit comments

Comments
 (0)