From 113870c17493669466b2f9f60259ff3516595b02 Mon Sep 17 00:00:00 2001 From: Priya Shet Date: Mon, 30 Dec 2024 19:28:17 -0600 Subject: [PATCH] NetworkCloud : 2024001 AI : Redact userdata and networkdata in aaz recordings (#8361) Co-authored-by: priya shet --- .../test_virtualmachine_scenario1.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/networkcloud/azext_networkcloud/tests/latest/recordings/test_virtualmachine_scenario1.yaml b/src/networkcloud/azext_networkcloud/tests/latest/recordings/test_virtualmachine_scenario1.yaml index 10032ed2c75..24858988a9c 100644 --- a/src/networkcloud/azext_networkcloud/tests/latest/recordings/test_virtualmachine_scenario1.yaml +++ b/src/networkcloud/azext_networkcloud/tests/latest/recordings/test_virtualmachine_scenario1.yaml @@ -6,10 +6,9 @@ interactions: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo", "ipAllocationMethod": "Dynamic"}, "cpuCores": 2, "memorySizeGB": 4, "networkAttachments": [{"attachedNetworkId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050", - "defaultGateway": "True", "ipAllocationMethod": "Dynamic"}], "networkData": - "bmV0d29ya0RhdGVTYW1wbGU=", "placementHints": [], "sshPublicKeys": [], "storageProfile": + "defaultGateway": "True", "ipAllocationMethod": "Dynamic"}], "networkData": "REDACTED", "placementHints": [], "sshPublicKeys": [], "storageProfile": {"osDisk": {"createOption": "Ephemeral", "deleteOption": "Delete", "diskSizeGB": - 4}}, "userData": "dXNlckRhdGVTYW1wbGU=", "vmDeviceModel": "T2", "vmImage": "nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127", + 4}}, "userData": "REDACTED", "vmDeviceModel": "T2", "vmImage": "nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127", "vmImageRepositoryCredentials": {"password": "password", "registryUrl": "nccachepublicacr.azurecr.io", "username": "user"}}, "tags": {"tag1": "tag1"}}' headers: @@ -36,7 +35,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001?api-version=2024-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001","name":"cliTestVM000001","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.ExtendedLocation/customLocations/simdev-2428050-cluster-cstm-loc","type":"CustomLocation"},"tags":{"tag1":"tag1"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T21:14:35.1972677Z","lastModifiedBy":"REDACTED","lastModifiedByType":"User","lastModifiedAt":"2024-08-09T21:14:35.1972677Z"},"properties":{"provisioningState":"Accepted","adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo","ipAllocationMethod":"Dynamic"},"cpuCores":2,"memorySizeGB":4,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050","defaultGateway":"True","ipAllocationMethod":"Dynamic"}],"networkData":"bmV0d29ya0RhdGVTYW1wbGU=","placementHints":[],"sshPublicKeys":[],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":4}},"userData":"dXNlckRhdGVTYW1wbGU=","vmDeviceModel":"T2","vmImage":"nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127","vmImageRepositoryCredentials":{"registryUrl":"nccachepublicacr.azurecr.io","username":"user"}}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001","name":"cliTestVM000001","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.ExtendedLocation/customLocations/simdev-2428050-cluster-cstm-loc","type":"CustomLocation"},"tags":{"tag1":"tag1"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T21:14:35.1972677Z","lastModifiedBy":"REDACTED","lastModifiedByType":"User","lastModifiedAt":"2024-08-09T21:14:35.1972677Z"},"properties":{"provisioningState":"Accepted","adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo","ipAllocationMethod":"Dynamic"},"cpuCores":2,"memorySizeGB":4,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050","defaultGateway":"True","ipAllocationMethod":"Dynamic"}],"networkData":"REDACTED","placementHints":[],"sshPublicKeys":[],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":4}},"userData":"REDACTED","vmDeviceModel":"T2","vmImage":"nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127","vmImageRepositoryCredentials":{"registryUrl":"nccachepublicacr.azurecr.io","username":"user"}}}' headers: accept-ranges: - bytes @@ -391,7 +390,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001?api-version=2024-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001","name":"cliTestVM000001","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.ExtendedLocation/customLocations/simdev-2428050-cluster-cstm-loc","type":"CustomLocation"},"tags":{"tag1":"tag1"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T21:14:35.1972677Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-08-09T21:17:01.8919839Z"},"properties":{"provisioningState":"Succeeded","adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo","ipAllocationMethod":"Dynamic","defaultGateway":"False","macAddress":"02:00:00:8d:26:a8","networkAttachmentName":"cloudservices","ipv4Address":"169.254.8.1"},"cpuCores":2,"memorySizeGB":4,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050","defaultGateway":"True","ipAllocationMethod":"Dynamic","ipv4Address":"10.0.154.8","ipv6Address":"fda0:d59c:da0a:9a::8","macAddress":"02:00:00:d1:c1:94","networkAttachmentName":"eth0"}],"networkData":"bmV0d29ya0RhdGVTYW1wbGU=","placementHints":[],"sshPublicKeys":[],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":4}},"userData":"dXNlckRhdGVTYW1wbGU=","vmDeviceModel":"T2","vmImage":"nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127","vmImageRepositoryCredentials":{"registryUrl":"nccachepublicacr.azurecr.io","username":"user"},"virtioInterface":"Modern","isolateEmulatorThread":"True","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/clusters/simdev-2428050-cluster","powerState":"On","detailedStatus":"Running","detailedStatusMessage":"Running + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001","name":"cliTestVM000001","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.ExtendedLocation/customLocations/simdev-2428050-cluster-cstm-loc","type":"CustomLocation"},"tags":{"tag1":"tag1"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T21:14:35.1972677Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-08-09T21:17:01.8919839Z"},"properties":{"provisioningState":"Succeeded","adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo","ipAllocationMethod":"Dynamic","defaultGateway":"False","macAddress":"02:00:00:8d:26:a8","networkAttachmentName":"cloudservices","ipv4Address":"169.254.8.1"},"cpuCores":2,"memorySizeGB":4,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050","defaultGateway":"True","ipAllocationMethod":"Dynamic","ipv4Address":"10.0.154.8","ipv6Address":"fda0:d59c:da0a:9a::8","macAddress":"02:00:00:d1:c1:94","networkAttachmentName":"eth0"}],"networkData":"REDACTED","placementHints":[],"sshPublicKeys":[],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":4}},"userData":"REDACTED","vmDeviceModel":"T2","vmImage":"nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127","vmImageRepositoryCredentials":{"registryUrl":"nccachepublicacr.azurecr.io","username":"user"},"virtioInterface":"Modern","isolateEmulatorThread":"True","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/clusters/simdev-2428050-cluster","powerState":"On","detailedStatus":"Running","detailedStatusMessage":"Running - virtual machine is running.","bareMetalMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.NetworkCloud/bareMetalMachines/rack1compute02"}}' headers: cache-control: @@ -596,7 +595,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001?api-version=2024-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001","name":"cliTestVM000001","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.ExtendedLocation/customLocations/simdev-2428050-cluster-cstm-loc","type":"CustomLocation"},"tags":{"tag1":"tag1","tag2":"tag2update"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T21:14:35.1972677Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-08-09T21:17:32.3841095Z"},"properties":{"adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo","ipAllocationMethod":"Dynamic","defaultGateway":"False","macAddress":"02:00:00:8d:26:a8","networkAttachmentName":"cloudservices","ipv4Address":"169.254.8.1"},"cpuCores":2,"memorySizeGB":4,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050","defaultGateway":"True","ipAllocationMethod":"Dynamic","ipv4Address":"10.0.154.8","ipv6Address":"fda0:d59c:da0a:9a::8","macAddress":"02:00:00:d1:c1:94","networkAttachmentName":"eth0"}],"networkData":"bmV0d29ya0RhdGVTYW1wbGU=","placementHints":[],"sshPublicKeys":[],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":4}},"userData":"dXNlckRhdGVTYW1wbGU=","vmDeviceModel":"T2","vmImage":"nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127","vmImageRepositoryCredentials":{"registryUrl":"nccachepublicacr.azurecr.io","username":"user"},"virtioInterface":"Modern","isolateEmulatorThread":"True","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/clusters/simdev-2428050-cluster","powerState":"On","detailedStatus":"Running","bareMetalMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.NetworkCloud/bareMetalMachines/rack1compute02","provisioningState":"Succeeded","detailedStatusMessage":"Running + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001","name":"cliTestVM000001","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.ExtendedLocation/customLocations/simdev-2428050-cluster-cstm-loc","type":"CustomLocation"},"tags":{"tag1":"tag1","tag2":"tag2update"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T21:14:35.1972677Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-08-09T21:17:32.3841095Z"},"properties":{"adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo","ipAllocationMethod":"Dynamic","defaultGateway":"False","macAddress":"02:00:00:8d:26:a8","networkAttachmentName":"cloudservices","ipv4Address":"169.254.8.1"},"cpuCores":2,"memorySizeGB":4,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050","defaultGateway":"True","ipAllocationMethod":"Dynamic","ipv4Address":"10.0.154.8","ipv6Address":"fda0:d59c:da0a:9a::8","macAddress":"02:00:00:d1:c1:94","networkAttachmentName":"eth0"}],"networkData":"REDACTED","placementHints":[],"sshPublicKeys":[],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":4}},"userData":"REDACTED","vmDeviceModel":"T2","vmImage":"nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127","vmImageRepositoryCredentials":{"registryUrl":"nccachepublicacr.azurecr.io","username":"user"},"virtioInterface":"Modern","isolateEmulatorThread":"True","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/clusters/simdev-2428050-cluster","powerState":"On","detailedStatus":"Running","bareMetalMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.NetworkCloud/bareMetalMachines/rack1compute02","provisioningState":"Succeeded","detailedStatusMessage":"Running - virtual machine is running."}}' headers: cache-control: @@ -645,7 +644,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001?api-version=2024-07-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001","name":"cliTestVM000001","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.ExtendedLocation/customLocations/simdev-2428050-cluster-cstm-loc","type":"CustomLocation"},"tags":{"tag1":"tag1","tag2":"tag2update"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T21:14:35.1972677Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-08-09T21:17:32.3841095Z"},"properties":{"adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo","ipAllocationMethod":"Dynamic","defaultGateway":"False","macAddress":"02:00:00:8d:26:a8","networkAttachmentName":"cloudservices","ipv4Address":"169.254.8.1"},"cpuCores":2,"memorySizeGB":4,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050","defaultGateway":"True","ipAllocationMethod":"Dynamic","ipv4Address":"10.0.154.8","ipv6Address":"fda0:d59c:da0a:9a::8","macAddress":"02:00:00:d1:c1:94","networkAttachmentName":"eth0"}],"networkData":"bmV0d29ya0RhdGVTYW1wbGU=","placementHints":[],"sshPublicKeys":[],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":4}},"userData":"dXNlckRhdGVTYW1wbGU=","vmDeviceModel":"T2","vmImage":"nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127","vmImageRepositoryCredentials":{"registryUrl":"nccachepublicacr.azurecr.io","username":"user"},"virtioInterface":"Modern","isolateEmulatorThread":"True","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/clusters/simdev-2428050-cluster","powerState":"On","detailedStatus":"Running","bareMetalMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.NetworkCloud/bareMetalMachines/rack1compute02","provisioningState":"Succeeded","detailedStatusMessage":"Running + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001","name":"cliTestVM000001","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.ExtendedLocation/customLocations/simdev-2428050-cluster-cstm-loc","type":"CustomLocation"},"tags":{"tag1":"tag1","tag2":"tag2update"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T21:14:35.1972677Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-08-09T21:17:32.3841095Z"},"properties":{"adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo","ipAllocationMethod":"Dynamic","defaultGateway":"False","macAddress":"02:00:00:8d:26:a8","networkAttachmentName":"cloudservices","ipv4Address":"169.254.8.1"},"cpuCores":2,"memorySizeGB":4,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050","defaultGateway":"True","ipAllocationMethod":"Dynamic","ipv4Address":"10.0.154.8","ipv6Address":"fda0:d59c:da0a:9a::8","macAddress":"02:00:00:d1:c1:94","networkAttachmentName":"eth0"}],"networkData":"REDACTED","placementHints":[],"sshPublicKeys":[],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":4}},"userData":"REDACTED","vmDeviceModel":"T2","vmImage":"nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127","vmImageRepositoryCredentials":{"registryUrl":"nccachepublicacr.azurecr.io","username":"user"},"virtioInterface":"Modern","isolateEmulatorThread":"True","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/clusters/simdev-2428050-cluster","powerState":"On","detailedStatus":"Running","bareMetalMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.NetworkCloud/bareMetalMachines/rack1compute02","provisioningState":"Succeeded","detailedStatusMessage":"Running - virtual machine is running."}}' headers: cache-control: @@ -705,7 +704,7 @@ interactions: AAAAB3NzaC1yc2EAAAADAQABAAABgQCjxBjt9iSrZqTJOp+LqGLJN/6x5BhbkReh1F9WtKY5I30NMm8NyJpoTef5tRKWJOFenyhHv92Q1CVbjIOfToM1o+0omzruJnWvzNOIqRfktBgpaAvI3NBW8jyP88dU370R79pCcHS258sEsYZu7Pt3bPHWnJynqqpi3e/icJ902gwR0ZCHWkLS+Kojn6+60TdxnPBlACi/QDQcXE9BtuEO6O9Owtzd9j9q2WdaQTElZHyrjBudDcv8DGVErOl2yPRD9a2kGF3zE9OFemq75UH4YeXDb0FgUdgxq9vvXWlWSm7banZ681MgdMYksYUDuSfvtrnwQl9LBcxvk+Z3eHCaAcHHQ/S5h/lAG5xbGaeE6A9woTMKrnqzXvL/XCg02gM01smgUxO7aIIcMquPaTJBc8rSd4wSihg1iRY93OAMVvj4U8ZqLwIt03Z8aIhrVvAmzkmlZ9YwvSXYBDg0KdMNKG4zrnRqWP7ge7ayb+hPxN6UZ0E7Z3VoVw+2R2NxjHE= azureuser@B37-VNET-DEP1"}],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":10}},"vmImage":"nccacheacr.azurecr.io/nc-resource-custom:0.1.7-217","vmImageRepositoryCredentials":{"username":"00000000-0000-0000-0000-000000000000","registryUrl":"nc-resource-custom"},"virtioInterface":"Modern","isolateEmulatorThread":"False","vmDeviceModel":"T2","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aep01-cluster/providers/Microsoft.NetworkCloud/clusters/aep01-e25039e41f6e","detailedStatus":"Running","powerState":"On","detailedStatusMessage":"Running - virtual machine is running.","bareMetalMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aep01-e25039e41f6e-HostedResources-58660E8F/providers/Microsoft.NetworkCloud/bareMetalMachines/b37aep01a1co07"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-api-testing-147bc3a8-45cb-491b-aa75-eefc692d5ddc-test/providers/Microsoft.NetworkCloud/virtualMachines/virtualmachines6f9fc8","name":"virtualmachines6f9fc8","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2424789-cluster-HostedResources-75212EC5/providers/Microsoft.ExtendedLocation/customLocations/simdev-2424789-cluster-cstm-loc","type":"CustomLocation"},"tags":{"Created":"2024-08-09T13:44:55-04:00","from":"local-rishab"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T17:44:58.1649817Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-08-09T19:20:43.7727351Z"},"properties":{"provisioningState":"Deleting","adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-api-testing-147bc3a8-45cb-491b-aa75-eefc692d5ddc-test/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudservicesnetwork-f5ae94","defaultGateway":"False","ipAllocationMethod":"Dynamic","networkAttachmentName":"cloudservices","macAddress":"02:00:00:ff:e8:19","ipv4Address":"169.254.8.1"},"cpuCores":2,"isolateEmulatorThread":"False","memorySizeGB":1,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-api-testing-147bc3a8-45cb-491b-aa75-eefc692d5ddc-test/providers/Microsoft.NetworkCloud/l3Networks/l3network-549","defaultGateway":"False","ipAllocationMethod":"Dynamic","ipv4Address":"10.0.128.8","ipv6Address":"fda0:d59c:da0a:80::8","macAddress":"02:00:00:db:f4:44","networkAttachmentName":"vlan-549"}],"placementHints":[],"sshPublicKeys":[{"keyData":"ssh-rsa - AAAAB3NzaC1yc2EAAAADAQABAAABAQDWVUChyh9qNb45Fczhy6E26sOUUlJHf8QcWxSZZVzYXq7AZgA5Yg0LsK3FU4hlLxavSqyJQZxnwLhYRbYQQSTAMFDV3zBg+IkgeKWxTape2pgh4gFpM59f6TIWiX223uyuSf64I6zy/Sf4ZfZe7gkj/shMviBQxUM+had6vbsqemg2Q/eA6eQP9iGaFduNiQ0m0Npl/IcuS4KsFLZGkcgF/ewB1xYFJurzDBcwxzO5lzpV2ybgsiNq9uGjeoI0XsAIkVn59PSzDf59cckYR4zQ42NlIXBhsWyMkcsaJ4qSfzbW8xLKESQ66ELWrpv5o55ZJRkZ4sIBClFl+VYcG0nj\n"}],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":5}},"virtioInterface":"Modern","vmImage":"mcr.microsoft.com/networkcloud/samples/nrt-test-vm:1.6.2237434","vmImageRepositoryCredentials":{"registryUrl":"registry-url-not-used-but-api-requires","username":"username-not-used-but-api-requires"},"vmDeviceModel":"T2","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rishab_id-simdev-2424789/providers/Microsoft.NetworkCloud/clusters/simdev-2424789-cluster","detailedStatus":"Terminating","powerState":"Unknown","bareMetalMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2424789-cluster-HostedResources-75212EC5/providers/Microsoft.NetworkCloud/bareMetalMachines/rack1compute02"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001","name":"cliTestVM000001","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.ExtendedLocation/customLocations/simdev-2428050-cluster-cstm-loc","type":"CustomLocation"},"tags":{"tag1":"tag1","tag2":"tag2update"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T21:14:35.1972677Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-08-09T21:17:32.3841095Z"},"properties":{"adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo","ipAllocationMethod":"Dynamic","defaultGateway":"False","macAddress":"02:00:00:8d:26:a8","networkAttachmentName":"cloudservices","ipv4Address":"169.254.8.1"},"cpuCores":2,"memorySizeGB":4,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050","defaultGateway":"True","ipAllocationMethod":"Dynamic","ipv4Address":"10.0.154.8","ipv6Address":"fda0:d59c:da0a:9a::8","macAddress":"02:00:00:d1:c1:94","networkAttachmentName":"eth0"}],"networkData":"bmV0d29ya0RhdGVTYW1wbGU=","placementHints":[],"sshPublicKeys":[],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":4}},"userData":"dXNlckRhdGVTYW1wbGU=","vmDeviceModel":"T2","vmImage":"nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127","vmImageRepositoryCredentials":{"registryUrl":"nccachepublicacr.azurecr.io","username":"user"},"virtioInterface":"Modern","isolateEmulatorThread":"True","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/clusters/simdev-2428050-cluster","powerState":"On","detailedStatus":"Running","bareMetalMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.NetworkCloud/bareMetalMachines/rack1compute02","provisioningState":"Succeeded","detailedStatusMessage":"Running + AAAAB3NzaC1yc2EAAAADAQABAAABAQDWVUChyh9qNb45Fczhy6E26sOUUlJHf8QcWxSZZVzYXq7AZgA5Yg0LsK3FU4hlLxavSqyJQZxnwLhYRbYQQSTAMFDV3zBg+IkgeKWxTape2pgh4gFpM59f6TIWiX223uyuSf64I6zy/Sf4ZfZe7gkj/shMviBQxUM+had6vbsqemg2Q/eA6eQP9iGaFduNiQ0m0Npl/IcuS4KsFLZGkcgF/ewB1xYFJurzDBcwxzO5lzpV2ybgsiNq9uGjeoI0XsAIkVn59PSzDf59cckYR4zQ42NlIXBhsWyMkcsaJ4qSfzbW8xLKESQ66ELWrpv5o55ZJRkZ4sIBClFl+VYcG0nj\n"}],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":5}},"virtioInterface":"Modern","vmImage":"mcr.microsoft.com/networkcloud/samples/nrt-test-vm:1.6.2237434","vmImageRepositoryCredentials":{"registryUrl":"registry-url-not-used-but-api-requires","username":"username-not-used-but-api-requires"},"vmDeviceModel":"T2","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rishab_id-simdev-2424789/providers/Microsoft.NetworkCloud/clusters/simdev-2424789-cluster","detailedStatus":"Terminating","powerState":"Unknown","bareMetalMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2424789-cluster-HostedResources-75212EC5/providers/Microsoft.NetworkCloud/bareMetalMachines/rack1compute02"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001","name":"cliTestVM000001","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.ExtendedLocation/customLocations/simdev-2428050-cluster-cstm-loc","type":"CustomLocation"},"tags":{"tag1":"tag1","tag2":"tag2update"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T21:14:35.1972677Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-08-09T21:17:32.3841095Z"},"properties":{"adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo","ipAllocationMethod":"Dynamic","defaultGateway":"False","macAddress":"02:00:00:8d:26:a8","networkAttachmentName":"cloudservices","ipv4Address":"169.254.8.1"},"cpuCores":2,"memorySizeGB":4,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050","defaultGateway":"True","ipAllocationMethod":"Dynamic","ipv4Address":"10.0.154.8","ipv6Address":"fda0:d59c:da0a:9a::8","macAddress":"02:00:00:d1:c1:94","networkAttachmentName":"eth0"}],"networkData":"REDACTED","placementHints":[],"sshPublicKeys":[],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":4}},"userData":"REDACTED","vmDeviceModel":"T2","vmImage":"nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127","vmImageRepositoryCredentials":{"registryUrl":"nccachepublicacr.azurecr.io","username":"user"},"virtioInterface":"Modern","isolateEmulatorThread":"True","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/clusters/simdev-2428050-cluster","powerState":"On","detailedStatus":"Running","bareMetalMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.NetworkCloud/bareMetalMachines/rack1compute02","provisioningState":"Succeeded","detailedStatusMessage":"Running - virtual machine is running."}}]}' headers: cache-control: @@ -753,7 +752,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines?api-version=2024-07-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001","name":"cliTestVM000001","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.ExtendedLocation/customLocations/simdev-2428050-cluster-cstm-loc","type":"CustomLocation"},"tags":{"tag1":"tag1","tag2":"tag2update"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T21:14:35.1972677Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-08-09T21:17:32.3841095Z"},"properties":{"adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo","ipAllocationMethod":"Dynamic","defaultGateway":"False","macAddress":"02:00:00:8d:26:a8","networkAttachmentName":"cloudservices","ipv4Address":"169.254.8.1"},"cpuCores":2,"memorySizeGB":4,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050","defaultGateway":"True","ipAllocationMethod":"Dynamic","ipv4Address":"10.0.154.8","ipv6Address":"fda0:d59c:da0a:9a::8","macAddress":"02:00:00:d1:c1:94","networkAttachmentName":"eth0"}],"networkData":"bmV0d29ya0RhdGVTYW1wbGU=","placementHints":[],"sshPublicKeys":[],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":4}},"userData":"dXNlckRhdGVTYW1wbGU=","vmDeviceModel":"T2","vmImage":"nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127","vmImageRepositoryCredentials":{"registryUrl":"nccachepublicacr.azurecr.io","username":"user"},"virtioInterface":"Modern","isolateEmulatorThread":"True","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/clusters/simdev-2428050-cluster","powerState":"On","detailedStatus":"Running","bareMetalMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.NetworkCloud/bareMetalMachines/rack1compute02","provisioningState":"Succeeded","detailedStatusMessage":"Running + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000002/providers/Microsoft.NetworkCloud/virtualMachines/cliTestVM000001","name":"cliTestVM000001","type":"microsoft.networkcloud/virtualmachines","location":"uksouth","extendedLocation":{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.ExtendedLocation/customLocations/simdev-2428050-cluster-cstm-loc","type":"CustomLocation"},"tags":{"tag1":"tag1","tag2":"tag2update"},"systemData":{"createdBy":"REDACTED","createdByType":"User","createdAt":"2024-08-09T21:14:35.1972677Z","lastModifiedBy":"319f651f-7ddb-4fc6-9857-7aef9250bd05","lastModifiedByType":"Application","lastModifiedAt":"2024-08-09T21:17:32.3841095Z"},"properties":{"adminUsername":"admin","bootMethod":"UEFI","cloudServicesNetworkAttachment":{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cli-test-csn-jxisvbifkqo","ipAllocationMethod":"Dynamic","defaultGateway":"False","macAddress":"02:00:00:8d:26:a8","networkAttachmentName":"cloudservices","ipv4Address":"169.254.8.1"},"cpuCores":2,"memorySizeGB":4,"networkAttachments":[{"attachedNetworkId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/l3Networks/cli-test-2428050","defaultGateway":"True","ipAllocationMethod":"Dynamic","ipv4Address":"10.0.154.8","ipv6Address":"fda0:d59c:da0a:9a::8","macAddress":"02:00:00:d1:c1:94","networkAttachmentName":"eth0"}],"networkData":"REDACTED","placementHints":[],"sshPublicKeys":[],"storageProfile":{"osDisk":{"createOption":"Ephemeral","deleteOption":"Delete","diskSizeGB":4}},"userData":"REDACTED","vmDeviceModel":"T2","vmImage":"nccachepublicacr.azurecr.io/kubevirt-ubuntu-image:3.7.0-127","vmImageRepositoryCredentials":{"registryUrl":"nccachepublicacr.azurecr.io","username":"user"},"virtioInterface":"Modern","isolateEmulatorThread":"True","clusterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/nc-cli-testing_id-simdev-2428050/providers/Microsoft.NetworkCloud/clusters/simdev-2428050-cluster","powerState":"On","detailedStatus":"Running","bareMetalMachineId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/simdev-2428050-cluster-HostedResources-1A43E602/providers/Microsoft.NetworkCloud/bareMetalMachines/rack1compute02","provisioningState":"Succeeded","detailedStatusMessage":"Running - virtual machine is running."}}]}' headers: cache-control: