diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml new file mode 100644 index 00000000000..6e99a78dbb1 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/recordings/test_vm_trusted_launch_os_disk_secure_upload.yaml @@ -0,0 +1,462 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001","name":"cli_test_vm_trusted_launch_os_disk_secure_upload000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","date":"2022-06-29T02:37:29Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '394' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:33 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus", "tags": {}, "sku": {"name": "Standard_LRS"}, + "properties": {"osType": "Windows", "hyperVGeneration": "V2", "creationData": + {"createOption": "UploadPreparedSecure", "uploadSizeBytes": 34359738880}, "securityProfile": + {"securityType": "TrustedLaunch"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + Content-Length: + - '282' + Content-Type: + - application/json + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n + \ \"location\": \"southcentralus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n + \ \"name\": \"Standard_LRS\"\r\n },\r\n \"properties\": {\r\n \"osType\": + \"Windows\",\r\n \"hyperVGeneration\": \"V2\",\r\n \"creationData\": + {\r\n \"createOption\": \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": + 34359738880\r\n },\r\n \"securityProfile\": {\r\n \"securityType\": + \"TrustedLaunch\"\r\n },\r\n \"provisioningState\": \"Updating\",\r\n + \ \"isArmResource\": true\r\n },\r\n \"associatedXStoreEntities\": [\r\n + \ {\r\n \"id\": \"ea051658-f076-4c82-a137-9389c540df1c\",\r\n \"type\": + \"VmgsBlob\",\r\n \"name\": \"ea051658-f076-4c82-a137-9389c540df1c_vmgs\",\r\n + \ \"accessibleExternally\": false,\r\n \"alignWithDisk\": true,\r\n + \ \"deleteOnDetach\": false,\r\n \"pseudoSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n + \ \"sourceSubscriptionId\": \"00000000-0000-0000-0000-000000000000\",\r\n + \ \"sizeInBytes\": 4194816\r\n }\r\n ]\r\n}" + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/eaf8e869-7a5c-4551-b4fa-3321180055ad?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '1102' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:38 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/eaf8e869-7a5c-4551-b4fa-3321180055ad?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/CreateUpdateDisks3Min;999,Microsoft.Compute/CreateUpdateDisks30Min;7992 + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/eaf8e869-7a5c-4551-b4fa-3321180055ad?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"endTime\": + \"2022-06-29T02:37:38.5908179+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"name\": \"disk000002\",\r\n + \ \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n + \ \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": + {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"7c186ddb-c28f-4e00-9827-edbd6a084397\"\r\n + \ }\r\n}\r\n },\r\n \"name\": \"eaf8e869-7a5c-4551-b4fa-3321180055ad\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1265' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49999,Microsoft.Compute/GetOperation30Min;399989 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk create + Connection: + - keep-alive + ParameterSetName: + - -n -g --os-type --hyper-v-generation --security-type --upload-type --upload-size-bytes + --sku + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n + \ \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": + {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"7c186ddb-c28f-4e00-9827-edbd6a084397\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1040' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14992,Microsoft.Compute/LowCostGet30Min;119920 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002?api-version=2022-03-02 + response: + body: + string: "{\r\n \"name\": \"disk000002\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002\",\r\n + \ \"type\": \"Microsoft.Compute/disks\",\r\n \"location\": \"southcentralus\",\r\n + \ \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Standard_LRS\",\r\n \"tier\": + \"Standard\"\r\n },\r\n \"properties\": {\r\n \"osType\": \"Windows\",\r\n + \ \"hyperVGeneration\": \"V2\",\r\n \"creationData\": {\r\n \"createOption\": + \"UploadPreparedSecure\",\r\n \"uploadSizeBytes\": 34359738880\r\n },\r\n + \ \"diskIOPSReadWrite\": 500,\r\n \"diskMBpsReadWrite\": 60,\r\n \"encryption\": + {\r\n \"type\": \"EncryptionAtRestWithPlatformKey\"\r\n },\r\n \"networkAccessPolicy\": + \"AllowAll\",\r\n \"securityProfile\": {\r\n \"securityType\": \"TrustedLaunch\"\r\n + \ },\r\n \"publicNetworkAccess\": \"Enabled\",\r\n \"timeCreated\": + \"2022-06-29T02:37:38.4814055+00:00\",\r\n \"provisioningState\": \"Succeeded\",\r\n + \ \"diskState\": \"ReadyToUpload\",\r\n \"uniqueId\": \"7c186ddb-c28f-4e00-9827-edbd6a084397\"\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '1040' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:37:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/LowCostGet3Min;14991,Microsoft.Compute/LowCostGet30Min;119919 + status: + code: 200 + message: OK +- request: + body: '{"access": "Write", "durationInSeconds": 86400, "getSecureVMGuestStateSAS": + true}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + Content-Length: + - '81' + Content-Type: + - application/json + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_vm_trusted_launch_os_disk_secure_upload000001/providers/Microsoft.Compute/disks/disk000002/beginGetAccess?api-version=2022-03-02 + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + cache-control: + - no-cache + content-length: + - '0' + date: + - Wed, 29 Jun 2022 02:37:43 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/HighCostDiskHydrate3Min;999,Microsoft.Compute/HighCostDiskHydrate30Min;7999 + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&api-version=2022-03-02 + response: + body: + string: "{\r\n \"startTime\": \"2022-06-29T02:37:43.6065077+00:00\",\r\n \"endTime\": + \"2022-06-29T02:37:43.9971199+00:00\",\r\n \"status\": \"Succeeded\",\r\n + \ \"properties\": {\r\n \"output\": {\r\n \"accessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/qx2ptkcnrxpk/abcd?sv=2018-03-28&sr=b&si=c1529458-da0b-4379-adac-e780af3e8a3a&sig=YZi0QiLvHJqdWM%2BQArqycHnz0SSMr83ODUrkjeD%2FLVs%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/f5hcqb3r4k1s/ea051658-f076-4c82-a137-9389c540df1c_vmgs?sv=2018-03-28&sr=b&si=090e4218-9ebb-4fcd-91f5-3a3b72c2b906&sig=udjzrM7UuauYkj%2FBYLU25AiynGn9zvjq4mWXGRFY3tQ%3D\"\r\n}\r\n + \ },\r\n \"name\": \"9d7da018-0a3a-4758-a7da-0d86578c5cd1\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '693' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:38:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49996,Microsoft.Compute/GetOperation30Min;399986 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - disk grant-access + Connection: + - keep-alive + ParameterSetName: + - -n -g --access-level --duration-in-seconds + User-Agent: + - AZURECLI/2.37.0 azsdk-python-azure-mgmt-compute/27.1.0 Python/3.8.9 (Windows-10-10.0.22000-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Compute/locations/southcentralus/DiskOperations/9d7da018-0a3a-4758-a7da-0d86578c5cd1?p=cc2a4867-fc8c-49a3-83e3-4fae1746e33f&monitor=true&api-version=2022-03-02 + response: + body: + string: "{\r\n \"accessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/qx2ptkcnrxpk/abcd?sv=2018-03-28&sr=b&si=c1529458-da0b-4379-adac-e780af3e8a3a&sig=YZi0QiLvHJqdWM%2BQArqycHnz0SSMr83ODUrkjeD%2FLVs%3D\",\r\n + \ \"securityDataAccessSAS\": \"https://md-impexp-bh15phx4js42.z34.blob.storage.azure.net/f5hcqb3r4k1s/ea051658-f076-4c82-a137-9389c540df1c_vmgs?sv=2018-03-28&sr=b&si=090e4218-9ebb-4fcd-91f5-3a3b72c2b906&sig=udjzrM7UuauYkj%2FBYLU25AiynGn9zvjq4mWXGRFY3tQ%3D\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '468' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 29 Jun 2022 02:38:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Microsoft-HTTPAPI/2.0 + - Microsoft-HTTPAPI/2.0 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-resource: + - Microsoft.Compute/GetOperation3Min;49995,Microsoft.Compute/GetOperation30Min;399985 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py index 9406a0fe240..567940d7bb1 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py +++ b/src/azure-cli/azure/cli/command_modules/vm/tests/latest/test_vm_commands.py @@ -7735,6 +7735,21 @@ def test_disk_trusted_launch(self): self.check('securityProfile.securityType', 'TrustedLaunch') ]) + @ResourceGroupPreparer(name_prefix='cli_test_vm_trusted_launch_os_disk_secure_upload', location='southcentralus') + def test_vm_trusted_launch_os_disk_secure_upload(self): + self.kwargs.update({ + 'disk': self.create_random_name('disk', 10), + 'snapshot': self.create_random_name('snap', 10) + }) + self.cmd('disk create -n {disk} -g {rg} --os-type Windows --hyper-v-generation v2 --security-type TrustedLaunch --upload-type UploadWithSecurityData --upload-size-bytes 34359738880 --sku standard_lrs', checks=[ + self.check('securityProfile.securityType', 'TrustedLaunch'), + self.check('creationData.createOption', 'UploadPreparedSecure'), + ]) + self.cmd('disk grant-access -n {disk} -g {rg} --access-level Write --duration-in-seconds 86400', checks=[ + self.exists('accessSas'), + self.exists('securityDataAccessSas') + ]) + @ResourceGroupPreparer(name_prefix='cli_test_vmss_trusted_launch_', location='southcentralus') def test_vmss_trusted(self, resource_group): self.cmd('vmss create -g {rg} -n vm --image canonical:0001-com-ubuntu-server-focal:20_04-lts-gen2:latest --security-type TrustedLaunch --admin-username azureuser --admin-password testPassword0 --disable-integrity-monitoring')