Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
ec91241
Initial commit
anthony-c-martin Jul 1, 2025
addb563
Recordings
anthony-c-martin Jul 2, 2025
0a39977
fix style
Jing-song Jul 4, 2025
b72907e
test
Jing-song Jul 7, 2025
ed37521
test
Jing-song Jul 7, 2025
9e1ddca
test
Jing-song Jul 7, 2025
5b28cd7
test
Jing-song Jul 7, 2025
dea2b52
test
Jing-song Jul 7, 2025
ffe3615
test
Jing-song Jul 7, 2025
2956266
test
Jing-song Jul 7, 2025
8f52b1f
test
Jing-song Jul 7, 2025
c385262
test
Jing-song Jul 7, 2025
4d18e82
test
Jing-song Jul 7, 2025
49e9719
test
Jing-song Jul 8, 2025
e3e0f8a
test
Jing-song Jul 8, 2025
c12e90e
test
Jing-song Jul 8, 2025
b1c41e2
test
Jing-song Jul 8, 2025
9e8164e
test
Jing-song Jul 8, 2025
a07c969
test
Jing-song Jul 8, 2025
54991c1
test
Jing-song Jul 8, 2025
04b50fd
test
Jing-song Jul 14, 2025
9da6e77
Merge branch 'dev' into split
Jing-song Jul 17, 2025
34c4ca8
update
Jing-song Jul 17, 2025
1eba76d
test
Jing-song Jul 21, 2025
8e6fc95
Merge branch 'dev' into split
Jing-song Jul 22, 2025
f7f4dac
test
Jing-song Jul 23, 2025
5c88c91
test
Jing-song Jul 24, 2025
7c57893
test
Jing-song Jul 25, 2025
56e67aa
test
Jing-song Jul 26, 2025
3b4698b
Merge branch 'dev' into split
Jing-song Jul 26, 2025
d2ef8c0
Fix some incorrect references to .deployments
anthony-c-martin Jul 28, 2025
02e40ae
test
Jing-song Jul 29, 2025
2c22e36
test
Jing-song Jul 29, 2025
db511ba
test
Jing-song Jul 30, 2025
2d4a6cd
Merge branch 'dev' into split
Jing-song Jul 30, 2025
6517788
test
Jing-song Jul 30, 2025
dc4262c
test
Jing-song Jul 31, 2025
6066430
Merge branch 'dev' into split
Jing-song Jul 31, 2025
0bfd2f9
test
Jing-song Aug 1, 2025
92eb09d
test
Jing-song Aug 1, 2025
5e6385e
test
Jing-song Aug 4, 2025
e41cad1
Fix tag test
anthony-c-martin Aug 4, 2025
7594db6
Merge branch 'dev' into split
Jing-song Aug 7, 2025
2955099
test
Jing-song Aug 8, 2025
8a2a25a
Merge branch 'dev' into splitresource
Jing-song Aug 28, 2025
08afd1a
fix conflict
Jing-song Aug 28, 2025
14b0e99
update
Jing-song Aug 28, 2025
a867f22
Update custom.py
Jing-song Aug 28, 2025
46d3ba4
test
Jing-song Aug 29, 2025
cc7da58
test
Jing-song Sep 1, 2025
d32c482
fix conflict
Jing-song Sep 1, 2025
50bfccb
test
Jing-song Sep 1, 2025
01081b3
test
Jing-song Sep 1, 2025
a4201a4
update
Jing-song Sep 2, 2025
126305f
Merge branch 'Azure:dev' into splitresource
Jing-song Sep 11, 2025
8334bfb
Merge branch 'dev' into splitresource
Jing-song Oct 10, 2025
9aefdc4
test
Jing-song Oct 20, 2025
bcc2d21
Merge branch 'Azure:dev' into splitresource
Jing-song Oct 21, 2025
cc025d4
Merge branch 'splitresource' of https://github.com/Jing-song/azure-cl…
Jing-song Oct 30, 2025
f62a6ca
Merge branch 'dev' into splitresource
Jing-song Oct 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 2 additions & 3 deletions src/azure-cli-core/azure/cli/core/_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ def find_using_specific_tenant(self, tenant, credential, tenant_id_description=N
return all_subscriptions

def _create_subscription_client(self, credential):
from azure.cli.core.profiles import ResourceType, get_api_version
from azure.cli.core.profiles import ResourceType
from azure.cli.core.profiles._shared import get_client_class
from azure.cli.core.commands.client_factory import _prepare_mgmt_client_kwargs_track2

Expand All @@ -866,11 +866,10 @@ def _create_subscription_client(self, credential):
from azure.cli.core.azclierror import CLIInternalError
raise CLIInternalError("Unable to get '{}' in profile '{}'"
.format(ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS, self.cli_ctx.cloud.profile))
api_version = get_api_version(self.cli_ctx, ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS)

sdk_cred = CredentialAdaptor(credential)
client_kwargs = _prepare_mgmt_client_kwargs_track2(self.cli_ctx, sdk_cred)
client = client_type(sdk_cred, api_version=api_version,
client = client_type(sdk_cred,
base_url=self.cli_ctx.cloud.endpoints.resource_manager,
**client_kwargs)
return client
Expand Down
18 changes: 8 additions & 10 deletions src/azure-cli-core/azure/cli/core/profiles/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,20 +169,18 @@ def default_api_version(self):
'shared_galleries': '2022-01-03',
'virtual_machine_scale_sets': '2024-11-01',
}),
ResourceType.MGMT_RESOURCE_FEATURES: '2021-07-01',
ResourceType.MGMT_RESOURCE_LINKS: '2016-09-01',
ResourceType.MGMT_RESOURCE_LOCKS: '2016-09-01',
ResourceType.MGMT_RESOURCE_POLICY: SDKProfile('2021-06-01', {
'policy_exemptions': '2020-07-01-preview'
}),
ResourceType.MGMT_RESOURCE_RESOURCES: '2024-11-01',
ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS: '2022-12-01',
ResourceType.MGMT_RESOURCE_FEATURES: None,
ResourceType.MGMT_RESOURCE_LINKS: None,
ResourceType.MGMT_RESOURCE_LOCKS: None,
ResourceType.MGMT_RESOURCE_POLICY: None,
ResourceType.MGMT_RESOURCE_RESOURCES: None,
ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS: None,
ResourceType.MGMT_RESOURCE_DEPLOYMENTS: None,
ResourceType.MGMT_RESOURCE_DEPLOYMENTSCRIPTS: None,
ResourceType.MGMT_RESOURCE_TEMPLATESPECS: None,
ResourceType.MGMT_RESOURCE_DEPLOYMENTSTACKS: None,
ResourceType.MGMT_RESOURCE_PRIVATELINKS: '2020-05-01',
ResourceType.MGMT_RESOURCE_MANAGEDAPPLICATIONS: '2019-07-01',
ResourceType.MGMT_RESOURCE_PRIVATELINKS: None,
ResourceType.MGMT_RESOURCE_MANAGEDAPPLICATIONS: None,
ResourceType.MGMT_NETWORK_PRIVATEDNS: None,
ResourceType.MGMT_KEYVAULT: None,
ResourceType.MGMT_AUTHORIZATION: None,
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli-core/azure/cli/core/tests/test_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1584,7 +1584,7 @@ def __init__(self, tenant_id, display_name=MOCK_TENANT_DISPLAY_NAME, default_dom
class TestUtils(unittest.TestCase):

def test_attach_token_tenant_v2022_12_01(self):
from azure.mgmt.resource.subscriptions.v2022_12_01.models import Subscription
from azure.mgmt.resource.subscriptions.models import Subscription
subscription = Subscription()
subscription.tenant_id = "home_tenant_1"
_attach_token_tenant(subscription, "token_tenant_1")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ interactions:
User-Agent:
- AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2024-11-01
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2025-04-01
response:
body:
string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071Z","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:42.0422071Z"}}]}'
Expand Down Expand Up @@ -587,7 +587,7 @@ interactions:
User-Agent:
- AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2024-11-01
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2025-04-01
response:
body:
string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071Z","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:42.0422071Z"}}]}'
Expand Down Expand Up @@ -917,7 +917,7 @@ interactions:
User-Agent:
- AZURECLI/2.74.0 azsdk-python-core/1.31.0 Python/3.12.10 (Windows-10-10.0.19045-SP0)
method: GET
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2024-11-01
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resources?$filter=resourceType%20eq%20%27Microsoft.ContainerRegistry%2Fregistries%27&api-version=2025-04-01
response:
body:
string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_acrabac_000001/providers/Microsoft.ContainerRegistry/registries/clireg000002","name":"clireg000002","type":"Microsoft.ContainerRegistry/registries","sku":{"name":"Standard","tier":"Standard"},"location":"westus","tags":{},"systemData":{"createdBy":"test@example.com","createdByType":"User","createdAt":"2025-06-15T15:13:42.0422071Z","lastModifiedBy":"test@example.com","lastModifiedByType":"User","lastModifiedAt":"2025-06-15T15:13:42.0422071Z"}}]}'
Expand Down

Large diffs are not rendered by default.

Loading
Loading