Skip to content

Commit 6dc00dc

Browse files
Merge branch 'Azure:dev' into ibrahimmo/addAssignmentRestrictions
2 parents d8ed0aa + 71df7d7 commit 6dc00dc

File tree

600 files changed

+424646
-267957
lines changed

Some content is hidden

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

600 files changed

+424646
-267957
lines changed

.github/ISSUE_TEMPLATE/what_if.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: "What-If Feature Issue"
2+
description: Report issues or request enhancements for Azure CLI What-If feature
3+
labels: ["what-if"]
4+
body:
5+
- type: markdown
6+
id: intro
7+
attributes:
8+
value: |
9+
Thank you for reporting an issue related to preview of changes (--what-if) or export to Bicep (--export-bicep) with az cli! Please provide as much detail as possible.
10+
11+
- type: dropdown
12+
id: issue-type
13+
attributes:
14+
label: Issue Type
15+
description: What type of issue are you reporting?
16+
options:
17+
- Bug Report
18+
- Feature Request
19+
- Documentation Issue
20+
validations:
21+
required: true
22+
23+
- type: textarea
24+
id: description
25+
attributes:
26+
label: Description
27+
description: Provide a clear description of the issue or feature request
28+
placeholder: Describe what happened or what you'd like to see
29+
validations:
30+
required: true
31+
32+
- type: textarea
33+
id: command
34+
attributes:
35+
label: Command or Script
36+
description: Provide the command or script that helps reproducing or demonstrate the issue
37+
placeholder: |
38+
- az vm create --what-if --export-bicep
39+
- N/A if not applicable
40+
render: shell
41+
validations:
42+
required: true
43+
44+
- type: textarea
45+
id: expected
46+
attributes:
47+
label: Expected Behavior
48+
description: What did you expect to happen?
49+
placeholder: |
50+
- Describe the expected outcome
51+
- N/A if not applicable
52+
validations:
53+
required: true
54+
55+
- type: textarea
56+
id: actual
57+
attributes:
58+
label: Actual Behavior
59+
description: What actually happened?
60+
placeholder: |
61+
- Describe what actually occurred
62+
- N/A if not applicable
63+
validations:
64+
required: true
65+
66+
- type: textarea
67+
id: environment
68+
attributes:
69+
label: Environment
70+
description: Provide environment details
71+
placeholder: |
72+
- OS: Windows 11 / Ubuntu 22.04 / macOS 14
73+
- Tool Version: Azure CLI 2.80.0
74+
- Python Version: 3.12.10
75+
- N/A if not applicable
76+
validations:
77+
required: true
78+
79+
- type: textarea
80+
id: additional
81+
attributes:
82+
label: Additional Context
83+
description: Add any other context, screenshots, or logs
84+
placeholder: Any additional information that might be helpful
85+
validations:
86+
required: false

.github/policies/resourceManagement.yml

Lines changed: 68 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,17 @@ configuration:
636636
- us6193
637637
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
638638
assignMentionees: False
639+
- if:
640+
- hasLabel:
641+
label: Service Attention
642+
- hasLabel:
643+
label: Blob Storage SFTP
644+
then:
645+
- mentionUsers:
646+
mentionees:
647+
- greeshma-microsoft
648+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
649+
assignMentionees: False
639650
- if:
640651
- hasLabel:
641652
label: Service Attention
@@ -1433,7 +1444,7 @@ configuration:
14331444
then:
14341445
- mentionUsers:
14351446
mentionees:
1436-
- rgreenMSFT
1447+
- amarjeetkr
14371448
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
14381449
assignMentionees: False
14391450
- if:
@@ -1546,6 +1557,21 @@ configuration:
15461557
- nberdy
15471558
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
15481559
assignMentionees: False
1560+
- if:
1561+
- hasLabel:
1562+
label: Service Attention
1563+
- hasLabel:
1564+
label: Device Registry
1565+
then:
1566+
- mentionUsers:
1567+
mentionees:
1568+
- c-ryan-k
1569+
- digimaun
1570+
- rohankhandelwal
1571+
- mryanlo
1572+
- atastrophic
1573+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
1574+
assignMentionees: False
15491575
- if:
15501576
- hasLabel:
15511577
label: Service Attention
@@ -1567,7 +1593,6 @@ configuration:
15671593
- mentionUsers:
15681594
mentionees:
15691595
- anishtrakru
1570-
- derekbekoe
15711596
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
15721597
assignMentionees: False
15731598
- if:
@@ -1578,7 +1603,7 @@ configuration:
15781603
then:
15791604
- mentionUsers:
15801605
mentionees:
1581-
- sourabhguha
1606+
- YingXue
15821607
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
15831608
assignMentionees: False
15841609
- if:
@@ -1628,6 +1653,17 @@ configuration:
16281653
- Saglodha
16291654
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
16301655
assignMentionees: False
1656+
- if:
1657+
- hasLabel:
1658+
label: Service Attention
1659+
- hasLabel:
1660+
label: Fabric
1661+
then:
1662+
- mentionUsers:
1663+
mentionees:
1664+
- xinzhizou
1665+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
1666+
assignMentionees: False
16311667
- if:
16321668
- hasLabel:
16331669
label: Service Attention
@@ -1647,9 +1683,9 @@ configuration:
16471683
then:
16481684
- mentionUsers:
16491685
mentionees:
1650-
- AnatoliB
1651-
- Francisco-Gamino
1652-
- shreyabatra4
1686+
- kamperiadis
1687+
- amamounelsayed
1688+
- khkh-ms
16531689
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
16541690
assignMentionees: False
16551691
- if:
@@ -1744,20 +1780,8 @@ configuration:
17441780
then:
17451781
- mentionUsers:
17461782
mentionees:
1747-
- iluican
1748-
- jlian
1749-
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
1750-
assignMentionees: False
1751-
- if:
1752-
- hasLabel:
1753-
label: Service Attention
1754-
- hasLabel:
1755-
label: IotDPS
1756-
then:
1757-
- mentionUsers:
1758-
mentionees:
1759-
- iluican
1760-
- jlian
1783+
- digimaun
1784+
- Azure/azure-iot-cli-triage
17611785
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
17621786
assignMentionees: False
17631787
- if:
@@ -2713,8 +2737,11 @@ configuration:
27132737
then:
27142738
- mentionUsers:
27152739
mentionees:
2716-
- shariq-mcs
2717-
- MSFTeegarden
2740+
- abhijitch_microsoft
2741+
- yuvalm_microsoft
2742+
- nikitagarg_microsoft
2743+
- sanar_microsoft
2744+
- cawa_microsoft
27182745
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
27192746
assignMentionees: False
27202747
- if:
@@ -2827,10 +2854,10 @@ configuration:
28272854
then:
28282855
- mentionUsers:
28292856
mentionees:
2830-
- bleroy
2831-
- tjacobhi
2832-
- markheff
2833-
- miwelsh
2857+
- kuanlu95
2858+
- efrainretana
2859+
- mattgotteiner
2860+
- Draconicida
28342861
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
28352862
assignMentionees: False
28362863
- if:
@@ -2853,6 +2880,7 @@ configuration:
28532880
- mentionUsers:
28542881
mentionees:
28552882
- nazang
2883+
- mooshc
28562884
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
28572885
assignMentionees: False
28582886
- if:
@@ -3063,6 +3091,20 @@ configuration:
30633091
- S-J-M
30643092
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
30653093
assignMentionees: False
3094+
- if:
3095+
- hasLabel:
3096+
label: Service Attention
3097+
- hasLabel:
3098+
label: StorageDiscovery
3099+
then:
3100+
- mentionUsers:
3101+
mentionees:
3102+
- shanefujs
3103+
- apurv2304
3104+
- skallurk
3105+
- vdziunms
3106+
replyTemplate: Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc ${mentionees}.
3107+
assignMentionees: False
30663108
- if:
30673109
- hasLabel:
30683110
label: Service Attention

.github/workflows/RunIssueSentinel.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ jobs:
1212
- name: Run Issue Sentinel
1313
uses: Azure/issue-sentinel@v1
1414
with:
15-
password: ${{secrets.ISSUE_SENTINEL_PASSWORD}}
1615
enable-similar-issues-scanning: true
1716
enable-security-issues-scanning: true

.vscode/launch.json

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"configurations": [
44
{
55
"name": "Azure CLI Debug (Integrated Console)",
6-
"type": "python",
6+
"type": "debugpy",
77
"request": "launch",
88
"python": "${command:python.interpreterPath}",
99
"program": "${workspaceRoot}/src/azure-cli/azure/cli/__main__.py",
@@ -12,33 +12,24 @@
1212
"--help"
1313
],
1414
"console": "integratedTerminal",
15-
"debugOptions": [
16-
"WaitOnAbnormalExit",
17-
"WaitOnNormalExit",
18-
"RedirectOutput"
19-
],
2015
"justMyCode": false
2116
},
2217
{
2318
"name": "Azure CLI Debug (External Console)",
24-
"type": "python",
19+
"type": "debugpy",
2520
"request": "launch",
2621
"stopOnEntry": true,
2722
"python": "${command:python.interpreterPath}",
2823
"program": "${workspaceRoot}/src/azure-cli/azure/cli/__main__.py",
2924
"cwd": "${workspaceRoot}",
3025
"args": [
31-
"--help"
26+
"--version"
3227
],
3328
"console": "externalTerminal",
34-
"debugOptions": [
35-
"WaitOnAbnormalExit",
36-
"WaitOnNormalExit"
37-
]
3829
},
3930
{
4031
"name": "Azdev Scripts",
41-
"type": "python",
32+
"type": "debugpy",
4233
"request": "launch",
4334
"python": "${command:python.interpreterPath}",
4435
"program": "${workspaceRoot}/tools/automation/__main__.py",
@@ -47,11 +38,6 @@
4738
"--help"
4839
],
4940
"console": "integratedTerminal",
50-
"debugOptions": [
51-
"WaitOnAbnormalExit",
52-
"WaitOnNormalExit",
53-
"RedirectOutput"
54-
]
5541
}
5642
]
57-
}
43+
}

src/azure-cli-core/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+
2.81.0
7+
++++++
8+
* Minor fixes
9+
610
2.80.0
711
++++++
812
* Minor fixes

src/azure-cli-core/azure/cli/core/__init__.py

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

7-
__version__ = "2.80.0"
7+
__version__ = "2.81.0"
88

99
import os
1010
import sys
@@ -120,6 +120,9 @@ def get_cli_version(self):
120120

121121
def show_version(self):
122122
from azure.cli.core.util import get_az_version_string, show_updates
123+
from azure.cli.core import telemetry
124+
125+
telemetry.set_command_details(command="", parameters=["--version"])
123126

124127
ver_string, updates_available_components = get_az_version_string()
125128
print(ver_string)

src/azure-cli-core/azure/cli/core/tests/test_telemetry.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# --------------------------------------------------------------------------------------------
55

66
import unittest
7+
from unittest import mock
78

89

910
class TestCoreTelemetry(unittest.TestCase):
@@ -57,3 +58,24 @@ def test_cloud_forbid_telemetry(self):
5758
# mock to add current cloud name in CLOUDS_FORBIDDING_TELEMETRY
5859
with mock.patch('azure.cli.core.cloud.CLOUDS_FORBIDDING_TELEMETRY', [az_cli.cloud.name]):
5960
self.assertFalse(telemetry.is_telemetry_enabled())
61+
62+
@mock.patch('azure.cli.core.util.get_az_version_string')
63+
def test_show_version_sets_telemetry_params(self, mock_get_version):
64+
"""Test show_version telemetry state is same regardless of available updates."""
65+
from azure.cli.core.mock import DummyCli
66+
from azure.cli.core import telemetry
67+
from knack.completion import ARGCOMPLETE_ENV_NAME
68+
69+
mock_get_version.return_value = ("azure-cli 2.80.0", ["core", "extension1"])
70+
71+
telemetry.start()
72+
73+
cli = DummyCli()
74+
telemetry.set_application(cli, ARGCOMPLETE_ENV_NAME)
75+
76+
cli.show_version()
77+
78+
session = telemetry._session
79+
self.assertEqual(session.command, "")
80+
self.assertEqual(session.parameters, ["--version"])
81+
self.assertIsNone(session.raw_command)

0 commit comments

Comments
 (0)