Skip to content

Commit 521a842

Browse files
committed
rerun test
1 parent e465e46 commit 521a842

File tree

4 files changed

+6
-25
lines changed

4 files changed

+6
-25
lines changed

src/azure-cli/azure/cli/command_modules/vm/custom.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1388,11 +1388,6 @@ def get_vm_to_update_by_aaz(cmd, resource_group_name, vm_name):
13881388
'resource_group': resource_group_name,
13891389
"vm_name": vm_name
13901390
})
1391-
# converted_vm = convert_show_result_to_sneak_case(vm)
1392-
#
1393-
# # To avoid unnecessary permission check of image
1394-
# storage_profile = converted_vm.get('storage_profile', {})
1395-
# storage_profile['image_reference'] = None
13961391

13971392
# To avoid unnecessary permission check of image
13981393
storage_profile = vm.get('storageProfile', {})
@@ -4097,12 +4092,6 @@ def get_vmss_modified_by_aaz(cmd, resource_group_name, name, instance_id=None, s
40974092
"vm_scale_set_name": name,
40984093
"instance_id": instance_id
40994094
})
4100-
# converted_vms = vmss_vms_convert_show_result_to_sneak_case(vms)
4101-
#
4102-
# # To avoid unnecessary permission check of image
4103-
# if converted_vms.get("storage_profile", None) is not None:
4104-
# converted_vms["storage_profile"]["image_reference"] = None
4105-
# return converted_vms
41064095

41074096
# To avoid unnecessary permission check of image
41084097
if vms.get("storageProfile", None) is not None:
@@ -4114,14 +4103,6 @@ def get_vmss_modified_by_aaz(cmd, resource_group_name, name, instance_id=None, s
41144103
'resource_group': resource_group_name,
41154104
"vm_scale_set_name": name,
41164105
})
4117-
# converted_vmss = vmss_convert_show_result_to_sneak_case(vmss)
4118-
#
4119-
# if security_type == 'TrustedLaunch':
4120-
# _check_vmss_hyper_v_generation_by_aaz(cmd.cli_ctx, converted_vmss)
4121-
# # To avoid unnecessary permission check of image
4122-
# if converted_vmss.get("virtual_machine_profile", {}).get("storage_profile", None) is not None:
4123-
# converted_vmss["virtual_machine_profile"]["storage_profile"]["image_reference"] = None
4124-
# return converted_vmss
41254106

41264107
if security_type == 'TrustedLaunch':
41274108
_check_vmss_hyper_v_generation_by_aaz(cmd.cli_ctx, vmss)

src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_encryption_identity_e2e.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4686,7 +4686,7 @@ interactions:
46864686
User-Agent:
46874687
- AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0)
46884688
method: GET
4689-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2024-11-01
4689+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-04-01
46904690
response:
46914691
body:
46924692
string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n
@@ -4873,7 +4873,7 @@ interactions:
48734873
User-Agent:
48744874
- AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0)
48754875
method: GET
4876-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2024-11-01
4876+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-04-01
48774877
response:
48784878
body:
48794879
string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n
@@ -5404,7 +5404,7 @@ interactions:
54045404
User-Agent:
54055405
- AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0)
54065406
method: GET
5407-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2024-11-01
5407+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-04-01
54085408
response:
54095409
body:
54105410
string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n

src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_disk_encryption_with_encryption_identity_not_acled_in_keyvaulte2e.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4571,7 +4571,7 @@ interactions:
45714571
User-Agent:
45724572
- AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0)
45734573
method: GET
4574-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2024-11-01
4574+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-04-01
45754575
response:
45764576
body:
45774577
string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n
@@ -4758,7 +4758,7 @@ interactions:
47584758
User-Agent:
47594759
- AZURECLI/2.66.0 azsdk-python-core/1.31.0 Python/3.12.8 (Windows-11-10.0.26100-SP0)
47604760
method: GET
4761-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2024-11-01
4761+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1?api-version=2025-04-01
47624762
response:
47634763
body:
47644764
string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_encryption_with_encryption_identity000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n

src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_open_port.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ interactions:
601601
- AZURECLI/2.47.0 azsdk-python-azure-mgmt-compute/29.1.0 Python/3.10.11 (Linux-5.15.0-1036-azure-x86_64-with-glibc2.31)
602602
VSTS_7b238909-6802-4b65-b90d-184bca47f458_build_220_0
603603
method: GET
604-
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_open_port000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2024-11-01
604+
uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_open_port000001/providers/Microsoft.Compute/virtualMachines/vm1?$expand=instanceView&api-version=2025-04-01
605605
response:
606606
body:
607607
string: "{\r\n \"name\": \"vm1\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_open_port000001/providers/Microsoft.Compute/virtualMachines/vm1\",\r\n

0 commit comments

Comments
 (0)