diff --git a/src/devcenter/azext_devcenter/manual/custom.py b/src/devcenter/azext_devcenter/manual/custom.py index 9eef68837a0..d656df7e2a2 100644 --- a/src/devcenter/azext_devcenter/manual/custom.py +++ b/src/devcenter/azext_devcenter/manual/custom.py @@ -1016,7 +1016,7 @@ def devcenter_network_connection_show_health_detail(client, def devcenter_project_list_dp(cmd, dev_center): resource_graph_data = get_project_arg(cmd.cli_ctx, dev_center) if len(resource_graph_data) == 0: - return print("[]") + return [] cf_dataplane = cf_devcenter_dataplane(cmd.cli_ctx, dev_center) return cf_dataplane.project.list() diff --git a/src/devcenter/azext_devcenter/tests/latest/helper.py b/src/devcenter/azext_devcenter/tests/latest/helper.py index cfd416a322d..97243e14314 100644 --- a/src/devcenter/azext_devcenter/tests/latest/helper.py +++ b/src/devcenter/azext_devcenter/tests/latest/helper.py @@ -221,3 +221,77 @@ def create_env_type(self): self.check('tags.val1', "{tagKey1}"), ] ) + + +def add_dev_box_user_role_to_project(self): + project = self.cmd('az devcenter admin project show ' + '--name "{projectName}" ' + '--resource-group "{rg}"').get_output_in_json() + + self.kwargs.update({ + 'projectId': project['id'] + }) + + if (self.is_live): + user = self.cmd('az ad signed-in-user show').get_output_in_json() + self.kwargs.update({ + 'userId': user['id'], + }) + + self.cmd('az role assignment create --role "DevCenter Dev Box User" ' + '--assignee "{userId}" ' + '--scope "{projectId}"') + +def create_pool_with_schedule(self): + + create_network_connection(self) + + self.kwargs.update({ + 'imageRefId': "/subscriptions/{subscriptionId}/resourceGroups/{rg}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/galleries/default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-21h2-ent-cpc-m365", + 'devBoxDefinitionName': self.create_random_name(prefix='c1', length=12), + 'osStorageType': "ssd_1024gb", + 'skuName': "general_a_8c32gb_v1", + 'attachedNetworkName': self.create_random_name(prefix='c2', length=12), + 'time': "13:00", + 'timeZone': "America/Los_Angeles" + }) + + self.cmd('az devcenter admin attached-network create ' + '--dev-center "{devcenterName}" ' + '--name "{attachedNetworkName}" ' + '--network-connection-id "{networkConnectionId}" ' + '--resource-group "{rg}" ' + ) + + self.cmd('az devcenter admin devbox-definition create ' + '--dev-center "{devcenterName}" ' + '--name "{devBoxDefinitionName}" ' + '--image-reference id="{imageRefId}" ' + '--hibernate-support "Enabled" ' + '--resource-group "{rg}" ' + '--os-storage-type "{osStorageType}" ' + '--sku name="{skuName}" ' + '--location "{location}" ' + ) + + self.kwargs.update({ + 'poolName': self.create_random_name(prefix='c3', length=12) + }) + + self.cmd('az devcenter admin pool create ' + '-d "{devBoxDefinitionName}" ' + '--location "{location}" ' + '--local-administrator "Enabled" ' + '--name "{poolName}" ' + '-c "{attachedNetworkName}" ' + '--project-name "{projectName}" ' + '--resource-group "{rg}" ' + ) + + self.cmd('az devcenter admin schedule create ' + '--pool-name "{poolName}" ' + '--project-name "{projectName}" ' + '--resource-group "{rg}" ' + '--time "{time}" ' + '--time-zone "{timeZone}" ' + ) diff --git a/src/devcenter/azext_devcenter/tests/latest/recordings/test_pool_dataplane_scenario.yaml b/src/devcenter/azext_devcenter/tests/latest/recordings/test_pool_dataplane_scenario.yaml new file mode 100644 index 00000000000..421970e7053 --- /dev/null +++ b/src/devcenter/azext_devcenter/tests/latest/recordings/test_pool_dataplane_scenario.yaml @@ -0,0 +1,2755 @@ +interactions: +- request: + body: '{"tags": {"CostCode": "12345"}, "location": "westus3", "identity": {"type": + "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin devcenter create + Connection: + - keep-alive + Content-Length: + - '94' + Content-Type: + - application/json + ParameterSetName: + - --location --tags --name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","name":"cli000002","type":"microsoft.devcenter/devcenters","location":"westus3","tags":{"CostCode":"12345"},"systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:28:34.6422235Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:28:34.6422235Z"},"identity":{"principalId":"4e8414a5-e2da-45a9-b4fe-e80d7c844f77","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Accepted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/732b30c4-8959-444e-aea4-fef34e44794b*EAED76E1EF279CBF826C97737B77E5F3CF6411A230A7AFB4B1A74AB3E999A4C8?api-version=2022-11-11-preview + cache-control: + - no-cache + content-length: + - '664' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:28:35 GMT + etag: + - '"1a009a9b-0000-4d00-0000-63daf5a40000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-quota: + - '{"name":{"localizedValue":null,"value":"devCenters"},"limit":100,"currentUsed":22,"category":"Informational","scope":"subscription","target":"/subscriptions/3de261df-f2d8-4c00-a0ee-a0be30f1e48e/","region":"westus3"}' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '299' + x-rate-limit-reset: + - '2023-02-01T23:29:35.6669318Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin devcenter create + Connection: + - keep-alive + ParameterSetName: + - --location --tags --name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/732b30c4-8959-444e-aea4-fef34e44794b*EAED76E1EF279CBF826C97737B77E5F3CF6411A230A7AFB4B1A74AB3E999A4C8?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/732b30c4-8959-444e-aea4-fef34e44794b*EAED76E1EF279CBF826C97737B77E5F3CF6411A230A7AFB4B1A74AB3E999A4C8","name":"732b30c4-8959-444e-aea4-fef34e44794b*EAED76E1EF279CBF826C97737B77E5F3CF6411A230A7AFB4B1A74AB3E999A4C8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","status":"Accepted","startTime":"2023-02-01T23:28:35.6801807Z"}' + headers: + cache-control: + - no-cache + content-length: + - '549' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:29:06 GMT + etag: + - '"00009927-0000-4d00-0000-63daf5a30000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin devcenter create + Connection: + - keep-alive + ParameterSetName: + - --location --tags --name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/732b30c4-8959-444e-aea4-fef34e44794b*EAED76E1EF279CBF826C97737B77E5F3CF6411A230A7AFB4B1A74AB3E999A4C8?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/732b30c4-8959-444e-aea4-fef34e44794b*EAED76E1EF279CBF826C97737B77E5F3CF6411A230A7AFB4B1A74AB3E999A4C8","name":"732b30c4-8959-444e-aea4-fef34e44794b*EAED76E1EF279CBF826C97737B77E5F3CF6411A230A7AFB4B1A74AB3E999A4C8","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","status":"Succeeded","startTime":"2023-02-01T23:28:35.6801807Z","endTime":"2023-02-01T23:29:20.4366463Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '609' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:29:36 GMT + etag: + - '"00009d27-0000-4d00-0000-63daf5d00000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin devcenter create + Connection: + - keep-alive + ParameterSetName: + - --location --tags --name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","name":"cli000002","type":"microsoft.devcenter/devcenters","location":"westus3","tags":{"CostCode":"12345"},"systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:28:34.6422235Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:28:34.6422235Z"},"identity":{"principalId":"4e8414a5-e2da-45a9-b4fe-e80d7c844f77","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}}' + headers: + cache-control: + - no-cache + content-length: + - '766' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:29:36 GMT + etag: + - '"1a009e9b-0000-4d00-0000-63daf5d00000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"location": "westus3", "properties": {"devCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin project create + Connection: + - keep-alive + Content-Length: + - '189' + Content-Type: + - application/json + ParameterSetName: + - --location --name --dev-center-id --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003","name":"cli000003","type":"microsoft.devcenter/projects","location":"westus3","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:29:37.8846685Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:29:37.8846685Z"},"properties":{"provisioningState":"Accepted","devCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/be3db31c-4f77-41e6-b2e8-42c51fa329a5*7664F34BA89D27479A7E70B3651198D67638A1A43A1C28222DA64AB72F8E18E1?api-version=2022-11-11-preview + cache-control: + - no-cache + content-length: + - '640' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:29:38 GMT + etag: + - '"00002106-0000-4d00-0000-63daf5e30000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-quota: + - '{"name":{"localizedValue":null,"value":"projects"},"limit":500,"currentUsed":20,"category":"Informational","scope":"subscription","target":"/subscriptions/3de261df-f2d8-4c00-a0ee-a0be30f1e48e/","region":"westus3"}' + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '299' + x-rate-limit-reset: + - '2023-02-01T23:30:38.1521834Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin project create + Connection: + - keep-alive + ParameterSetName: + - --location --name --dev-center-id --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/be3db31c-4f77-41e6-b2e8-42c51fa329a5*7664F34BA89D27479A7E70B3651198D67638A1A43A1C28222DA64AB72F8E18E1?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/be3db31c-4f77-41e6-b2e8-42c51fa329a5*7664F34BA89D27479A7E70B3651198D67638A1A43A1C28222DA64AB72F8E18E1","name":"be3db31c-4f77-41e6-b2e8-42c51fa329a5*7664F34BA89D27479A7E70B3651198D67638A1A43A1C28222DA64AB72F8E18E1","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003","status":"Succeeded","startTime":"2023-02-01T23:29:38.7139009Z","endTime":"2023-02-01T23:29:50.722622Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '606' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:08 GMT + etag: + - '"0000a027-0000-4d00-0000-63daf5ee0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin project create + Connection: + - keep-alive + ParameterSetName: + - --location --name --dev-center-id --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003","name":"cli000003","type":"microsoft.devcenter/projects","location":"westus3","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:29:37.8846685Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:29:37.8846685Z"},"properties":{"provisioningState":"Succeeded","devCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}}' + headers: + cache-control: + - no-cache + content-length: + - '742' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:08 GMT + etag: + - '"00002306-0000-4d00-0000-63daf5ee0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin project show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003","name":"cli000003","type":"microsoft.devcenter/projects","location":"westus3","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:29:37.8846685Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:29:37.8846685Z"},"properties":{"provisioningState":"Succeeded","devCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}}' + headers: + cache-control: + - no-cache + content-length: + - '742' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:09 GMT + etag: + - '"00002306-0000-4d00-0000-63daf5ee0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad signed-in-user show + Connection: + - keep-alive + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: GET + uri: https://graph.microsoft.com/v1.0/me + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users/$entity","businessPhones":["+1 + (425) 7041454"],"displayName":"Amanda Lim","givenName":"Amanda","jobTitle":"SOFTWARE + ENGINEER II","mail":"Amanda.Lim@microsoft.com","mobilePhone":null,"officeLocation":"18/3100FL","preferredLanguage":null,"surname":"Lim","userPrincipalName":"amlim@microsoft.com","id":"17755109-de29-4032-8853-f390afd630a2"}' + headers: + cache-control: + - no-cache + content-length: + - '406' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:10 GMT + odata-version: + - '4.0' + request-id: + - b93d76e7-ee6c-4a85-83c4-cced3c433bd6 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"West US","Slice":"E","Ring":"4","ScaleUnit":"005","RoleInstance":"SJ1PEPF00000EE9"}}' + x-ms-resource-unit: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --role --assignee --scope + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: GET + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%2717755109-de29-4032-8853-f390afd630a2%27%29 + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '92' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:10 GMT + odata-version: + - '4.0' + request-id: + - 382add29-90a6-4917-a825-4042e6b66370 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"West US","Slice":"E","Ring":"4","ScaleUnit":"005","RoleInstance":"SJ1PEPF00000EEB"}}' + x-ms-resource-unit: + - '1' + status: + code: 200 + message: OK +- request: + body: '{"ids": ["17755109-de29-4032-8853-f390afd630a2"], "types": ["user", "group", + "servicePrincipal", "directoryObjectPartnerReference"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '132' + Content-Type: + - application/json + ParameterSetName: + - --role --assignee --scope + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: POST + uri: https://graph.microsoft.com/v1.0/directoryObjects/getByIds + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#directoryObjects","value":[{"@odata.type":"#microsoft.graph.user","id":"17755109-de29-4032-8853-f390afd630a2","businessPhones":["+1 + (425) 7041454"],"displayName":"Amanda Lim","givenName":"Amanda","jobTitle":"SOFTWARE + ENGINEER II","mail":"Amanda.Lim@microsoft.com","mobilePhone":null,"officeLocation":"18/3100FL","preferredLanguage":null,"surname":"Lim","userPrincipalName":"amlim@microsoft.com"}]}' + headers: + cache-control: + - no-cache + content-length: + - '459' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:11 GMT + location: + - https://graph.microsoft.com + odata-version: + - '4.0' + request-id: + - a37913f2-2c50-4f61-b901-ee98dc6fb17b + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"West US","Slice":"E","Ring":"4","ScaleUnit":"005","RoleInstance":"SJ1PEPF00001128"}}' + x-ms-resource-unit: + - '3' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --role --assignee --scope + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) msrest/0.7.1 msrest_azure/0.6.4 + azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.44.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27DevCenter%20Dev%20Box%20User%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"DevCenter Dev Box User","type":"BuiltInRole","description":"Provides + access to create and manage dev boxes.","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.DevCenter/projects/read","Microsoft.DevCenter/projects/*/read","Microsoft.Fidalgo/projects/read","Microsoft.Fidalgo/projects/*/read","Microsoft.Authorization/*/read","Microsoft.Resources/subscriptions/resourceGroups/read"],"notActions":[],"dataActions":["Microsoft.DevCenter/projects/users/devboxes/userStop/action","Microsoft.DevCenter/projects/users/devboxes/userStart/action","Microsoft.DevCenter/projects/users/devboxes/userGetRemoteConnection/action","Microsoft.DevCenter/projects/users/devboxes/userRead/action","Microsoft.DevCenter/projects/users/devboxes/userWrite/action","Microsoft.DevCenter/projects/users/devboxes/userDelete/action","Microsoft.DevCenter/projects/users/devboxes/userUpcomingActionRead/action","Microsoft.DevCenter/projects/users/devboxes/userUpcomingActionManage/action","Microsoft.Fidalgo/projects/users/virtualMachines/userStop/action","Microsoft.Fidalgo/projects/users/virtualMachines/userStart/action","Microsoft.Fidalgo/projects/users/virtualMachines/userGetRdpFileContent/action","Microsoft.Fidalgo/projects/users/virtualMachines/userRead/action","Microsoft.Fidalgo/projects/users/virtualMachines/userWrite/action","Microsoft.Fidalgo/projects/users/virtualMachines/userDelete/action"],"notDataActions":[]}],"createdOn":"2022-03-30T19:23:03.9063898Z","updatedOn":"2023-01-11T22:01:17.5837776Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/45d50f46-0b78-4001-a660-4198cbe8cd05","type":"Microsoft.Authorization/roleDefinitions","name":"45d50f46-0b78-4001-a660-4198cbe8cd05"}]}' + headers: + cache-control: + - no-cache + content-length: + - '1814' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:11 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/45d50f46-0b78-4001-a660-4198cbe8cd05", + "principalId": "17755109-de29-4032-8853-f390afd630a2", "principalType": "User"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '258' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --role --assignee --scope + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) msrest/0.7.1 msrest_azure/0.6.4 + azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.44.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/providers/Microsoft.Authorization/roleAssignments/b418ad2c-5360-4ca0-bea8-50f431c3cefe?api-version=2020-04-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/45d50f46-0b78-4001-a660-4198cbe8cd05","principalId":"17755109-de29-4032-8853-f390afd630a2","principalType":"User","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003","condition":null,"conditionVersion":null,"createdOn":"2023-02-01T23:30:12.0808067Z","updatedOn":"2023-02-01T23:30:12.9888129Z","createdBy":null,"updatedBy":"17755109-de29-4032-8853-f390afd630a2","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/providers/Microsoft.Authorization/roleAssignments/b418ad2c-5360-4ca0-bea8-50f431c3cefe","type":"Microsoft.Authorization/roleAssignments","name":"b418ad2c-5360-4ca0-bea8-50f431c3cefe"}' + headers: + cache-control: + - no-cache + content-length: + - '967' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: '{"location": "westus3", "properties": {"addressSpace": {"addressPrefixes": + ["10.0.0.0/16"]}, "enableDdosProtection": false, "enableVmProtection": false}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + Content-Length: + - '153' + Content-Type: + - application/json + ParameterSetName: + - -n --location -g + User-Agent: + - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cli000004?api-version=2022-01-01 + response: + body: + string: "{\r\n \"name\": \"cli000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cli000004\",\r\n + \ \"etag\": \"W/\\\"4b3afacf-31b4-4331-aeb9-ded5be7b9b27\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus3\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Updating\",\r\n \"resourceGuid\": + \"dd1ef20f-779d-49b0-8ad0-7f534f6ed51a\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n + \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n + \ }\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus3/operations/b8f80964-aa43-4eb7-999f-1036834a74e6?api-version=2022-01-01 + cache-control: + - no-cache + content-length: + - '610' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:16 GMT + expires: + - '-1' + 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-arm-service-request-id: + - 0fe8501c-92f4-49d5-a16c-a2ed6740e5dd + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n --location -g + User-Agent: + - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus3/operations/b8f80964-aa43-4eb7-999f-1036834a74e6?api-version=2022-01-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:19 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-arm-service-request-id: + - cda94249-354c-400c-954f-b8e01caa74bf + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet create + Connection: + - keep-alive + ParameterSetName: + - -n --location -g + User-Agent: + - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cli000004?api-version=2022-01-01 + response: + body: + string: "{\r\n \"name\": \"cli000004\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cli000004\",\r\n + \ \"etag\": \"W/\\\"099d408e-6b35-4204-9ec3-0ce4e8537e90\\\"\",\r\n \"type\": + \"Microsoft.Network/virtualNetworks\",\r\n \"location\": \"westus3\",\r\n + \ \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceGuid\": + \"dd1ef20f-779d-49b0-8ad0-7f534f6ed51a\",\r\n \"addressSpace\": {\r\n \"addressPrefixes\": + [\r\n \"10.0.0.0/16\"\r\n ]\r\n },\r\n \"subnets\": [],\r\n + \ \"virtualNetworkPeerings\": [],\r\n \"enableDdosProtection\": false\r\n + \ }\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '611' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:19 GMT + etag: + - W/"099d408e-6b35-4204-9ec3-0ce4e8537e90" + 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-arm-service-request-id: + - 35b0bf60-b61f-4d90-b3ce-ee9052e49829 + status: + code: 200 + message: OK +- request: + body: '{"name": "cli000005", "properties": {"addressPrefix": "10.0.0.0/21"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + Content-Length: + - '69' + Content-Type: + - application/json + ParameterSetName: + - -n --vnet-name -g --address-prefixes + User-Agent: + - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cli000004/subnets/cli000005?api-version=2022-01-01 + response: + body: + string: "{\r\n \"name\": \"cli000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cli000004/subnets/cli000005\",\r\n + \ \"etag\": \"W/\\\"d705cdd5-c167-4a68-a7a4-795a6150e21c\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Updating\",\r\n \"addressPrefix\": \"10.0.0.0/21\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + azure-asyncnotification: + - Enabled + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus3/operations/1c459fe1-f023-47fb-a7fc-ecf1c02287ee?api-version=2022-01-01 + cache-control: + - no-cache + content-length: + - '532' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:20 GMT + expires: + - '-1' + 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-arm-service-request-id: + - a405b48e-ddbf-4242-ae07-9923bfc0540a + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --address-prefixes + User-Agent: + - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus3/operations/1c459fe1-f023-47fb-a7fc-ecf1c02287ee?api-version=2022-01-01 + response: + body: + string: "{\r\n \"status\": \"Succeeded\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '29' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:23 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-arm-service-request-id: + - ab383a58-5145-48db-a450-cab9a92dcadc + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - network vnet subnet create + Connection: + - keep-alive + ParameterSetName: + - -n --vnet-name -g --address-prefixes + User-Agent: + - AZURECLI/2.44.1 (AAZ) azsdk-python-core/1.24.0 Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cli000004/subnets/cli000005?api-version=2022-01-01 + response: + body: + string: "{\r\n \"name\": \"cli000005\",\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cli000004/subnets/cli000005\",\r\n + \ \"etag\": \"W/\\\"17a1d001-cc71-45d3-a62e-5c3435dbe4c6\\\"\",\r\n \"properties\": + {\r\n \"provisioningState\": \"Succeeded\",\r\n \"addressPrefix\": \"10.0.0.0/21\",\r\n + \ \"delegations\": [],\r\n \"privateEndpointNetworkPolicies\": \"Disabled\",\r\n + \ \"privateLinkServiceNetworkPolicies\": \"Enabled\"\r\n },\r\n \"type\": + \"Microsoft.Network/virtualNetworks/subnets\"\r\n}" + headers: + cache-control: + - no-cache + content-length: + - '533' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:23 GMT + etag: + - W/"17a1d001-cc71-45d3-a62e-5c3435dbe4c6" + 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-arm-service-request-id: + - eb9b34dc-e9c5-42bc-b38e-7d3819f549b0 + status: + code: 200 + message: OK +- request: + body: '{"tags": {"CostCode": "12345"}, "location": "westus3", "properties": {"subnetId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cli000004/subnets/cli000005", + "networkingResourceGroupName": "cli000007", "domainJoinType": "AzureADJoin"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin network-connection create + Connection: + - keep-alive + Content-Length: + - '315' + Content-Type: + - application/json + ParameterSetName: + - --location --tags --name --domain-join-type --subnet-id --networking-resource-group-name + --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/networkConnections/cli000006?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/networkConnections/cli000006","name":"cli000006","type":"microsoft.devcenter/networkconnections","location":"westus3","tags":{"CostCode":"12345"},"systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:30:25.9056019Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:30:25.9056019Z"},"properties":{"provisioningState":"Accepted","networkingResourceGroupName":"cli000007","domainJoinType":"AzureADJoin","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cli000004/subnets/cli000005"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/3b716a7f-bbfd-4e39-8faf-1ba6acb9a1aa*92221E382D6B3024410B3DD63D7F4E45AAE1E928345987DC06962B0FCED48AD2?api-version=2022-11-11-preview + cache-control: + - no-cache + content-length: + - '779' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:26 GMT + etag: + - '"2c0035da-0000-4d00-0000-63daf6120000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-quota: + - '{"name":{"localizedValue":null,"value":"networkConnections"},"limit":80,"currentUsed":8,"category":"Informational","scope":"subscription","target":"/subscriptions/3de261df-f2d8-4c00-a0ee-a0be30f1e48e/","region":"westus3"}' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '298' + x-rate-limit-reset: + - '2023-02-01T23:30:38.1521834Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin network-connection create + Connection: + - keep-alive + ParameterSetName: + - --location --tags --name --domain-join-type --subnet-id --networking-resource-group-name + --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/3b716a7f-bbfd-4e39-8faf-1ba6acb9a1aa*92221E382D6B3024410B3DD63D7F4E45AAE1E928345987DC06962B0FCED48AD2?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/3b716a7f-bbfd-4e39-8faf-1ba6acb9a1aa*92221E382D6B3024410B3DD63D7F4E45AAE1E928345987DC06962B0FCED48AD2","name":"3b716a7f-bbfd-4e39-8faf-1ba6acb9a1aa*92221E382D6B3024410B3DD63D7F4E45AAE1E928345987DC06962B0FCED48AD2","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/networkConnections/cli000006","status":"Succeeded","startTime":"2023-02-01T23:30:26.3058223Z","endTime":"2023-02-01T23:30:33.9327269Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '617' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:56 GMT + etag: + - '"0000a427-0000-4d00-0000-63daf6190000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin network-connection create + Connection: + - keep-alive + ParameterSetName: + - --location --tags --name --domain-join-type --subnet-id --networking-resource-group-name + --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/networkConnections/cli000006?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/networkConnections/cli000006","name":"cli000006","type":"microsoft.devcenter/networkconnections","location":"westus3","tags":{"CostCode":"12345"},"systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:30:25.9056019Z","lastModifiedBy":"2dc3760b-4713-48b1-a383-1dfe3e449ec2","lastModifiedByType":"Application","lastModifiedAt":"2023-02-01T23:30:37.3960658Z"},"properties":{"provisioningState":"Succeeded","networkingResourceGroupName":"cli000007","domainJoinType":"AzureADJoin","subnetId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.Network/virtualNetworks/cli000004/subnets/cli000005","healthCheckStatus":"Running"}}' + headers: + cache-control: + - no-cache + content-length: + - '834' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:56 GMT + etag: + - '"2c003cda-0000-4d00-0000-63daf61d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"networkConnectionId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/networkConnections/cli000006"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin attached-network create + Connection: + - keep-alive + Content-Length: + - '182' + Content-Type: + - application/json + ParameterSetName: + - --dev-center --name --network-connection-id --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002/attachednetworks/c2000009?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002/attachednetworks/c2000009","name":"c2000009","type":"microsoft.devcenter/devcenters/attachednetworks","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:30:57.8095302Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:30:57.8095302Z"},"properties":{"provisioningState":"Accepted","networkConnectionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/networkConnections/cli000006","networkConnectionLocation":"westus3","healthCheckStatus":"Running","domainJoinType":"AzureADJoin"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/92f4acb1-c9a8-45b5-a1ca-6bc311f31547*317526BA6A16F18ED45BC7D4390F187AB3E64771E94B8AE39CF9BC9E517EE18B?api-version=2022-11-11-preview + cache-control: + - no-cache + content-length: + - '780' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:30:59 GMT + etag: + - '"16000c9c-0000-4d00-0000-63daf6330000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '298' + x-rate-limit-reset: + - '2023-02-01T23:31:41.1979265Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin attached-network create + Connection: + - keep-alive + ParameterSetName: + - --dev-center --name --network-connection-id --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/92f4acb1-c9a8-45b5-a1ca-6bc311f31547*317526BA6A16F18ED45BC7D4390F187AB3E64771E94B8AE39CF9BC9E517EE18B?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/92f4acb1-c9a8-45b5-a1ca-6bc311f31547*317526BA6A16F18ED45BC7D4390F187AB3E64771E94B8AE39CF9BC9E517EE18B","name":"92f4acb1-c9a8-45b5-a1ca-6bc311f31547*317526BA6A16F18ED45BC7D4390F187AB3E64771E94B8AE39CF9BC9E517EE18B","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002/attachednetworks/c2000009","status":"Succeeded","startTime":"2023-02-01T23:30:58.299718Z","endTime":"2023-02-01T23:31:04.1892553Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '634' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:31:29 GMT + etag: + - '"0000a927-0000-4d00-0000-63daf6380000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin attached-network create + Connection: + - keep-alive + ParameterSetName: + - --dev-center --name --network-connection-id --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002/attachednetworks/c2000009?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002/attachednetworks/c2000009","name":"c2000009","type":"microsoft.devcenter/devcenters/attachednetworks","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:30:57.8095302Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:30:57.8095302Z"},"properties":{"provisioningState":"Succeeded","networkConnectionId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/networkConnections/cli000006","networkConnectionLocation":"westus3","healthCheckStatus":"Running","domainJoinType":"AzureADJoin"}}' + headers: + cache-control: + - no-cache + content-length: + - '781' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:31:29 GMT + etag: + - '"16000f9c-0000-4d00-0000-63daf6380000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"location": "westus3", "properties": {"imageReference": {"id": "/subscriptions/{subscriptionId}/resourceGroups/{rg}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/galleries/default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-21h2-ent-cpc-m365"}, + "sku": {"name": "general_a_8c32gb_v1"}, "osStorageType": "ssd_1024gb", "hibernateSupport": + "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin devbox-definition create + Connection: + - keep-alive + Content-Length: + - '368' + Content-Type: + - application/json + ParameterSetName: + - --dev-center --name --image-reference --hibernate-support --resource-group + --os-storage-type --sku --location + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002/devboxdefinitions/c1000008?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002/devboxdefinitions/c1000008","name":"c1000008","type":"microsoft.devcenter/devcenters/devboxdefinitions","location":"westus3","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:31:30.9704701Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:31:30.9704701Z"},"properties":{"provisioningState":"Accepted","imageReference":{"id":"/subscriptions/{subscriptionId}/resourceGroups/{rg}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/galleries/default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-21h2-ent-cpc-m365"},"sku":{"name":"general_a_8c32gb_v1"},"osStorageType":"ssd_1024gb","hibernateSupport":"Enabled"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/5ac79a89-9b80-4702-ae3b-f9c0a8672fe6*CD0CBE4FE01BD9C097B850F0738C2754AABF5D73A8EB6984F0DEFBEF29086667?api-version=2022-11-11-preview + cache-control: + - no-cache + content-length: + - '859' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:31:31 GMT + etag: + - '"01008379-0000-4d00-0000-63daf6530000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-quota: + - '{"name":{"localizedValue":null,"value":"devBoxDefinitions"},"limit":200,"currentUsed":20,"category":"Informational","scope":"subscription","target":"/subscriptions/3de261df-f2d8-4c00-a0ee-a0be30f1e48e/","region":"westus3"}' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '299' + x-rate-limit-reset: + - '2023-02-01T23:32:31.1959906Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin devbox-definition create + Connection: + - keep-alive + ParameterSetName: + - --dev-center --name --image-reference --hibernate-support --resource-group + --os-storage-type --sku --location + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/5ac79a89-9b80-4702-ae3b-f9c0a8672fe6*CD0CBE4FE01BD9C097B850F0738C2754AABF5D73A8EB6984F0DEFBEF29086667?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/5ac79a89-9b80-4702-ae3b-f9c0a8672fe6*CD0CBE4FE01BD9C097B850F0738C2754AABF5D73A8EB6984F0DEFBEF29086667","name":"5ac79a89-9b80-4702-ae3b-f9c0a8672fe6*CD0CBE4FE01BD9C097B850F0738C2754AABF5D73A8EB6984F0DEFBEF29086667","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002/devboxdefinitions/c1000008","status":"Succeeded","startTime":"2023-02-01T23:31:31.5529718Z","endTime":"2023-02-01T23:31:34.7814518Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '636' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:32:02 GMT + etag: + - '"0000ac27-0000-4d00-0000-63daf6560000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin devbox-definition create + Connection: + - keep-alive + ParameterSetName: + - --dev-center --name --image-reference --hibernate-support --resource-group + --os-storage-type --sku --location + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002/devboxdefinitions/c1000008?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002/devboxdefinitions/c1000008","name":"c1000008","type":"microsoft.devcenter/devcenters/devboxdefinitions","location":"westus3","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:31:30.9704701Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:31:30.9704701Z"},"properties":{"provisioningState":"Succeeded","imageReference":{"id":"/subscriptions/{subscriptionId}/resourceGroups/{rg}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/galleries/default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-21h2-ent-cpc-m365","exactVersion":"1.0.0"},"sku":{"name":"general_a_8c32gb_v1"},"osStorageType":"ssd_1024gb","hibernateSupport":"Enabled","imageValidationStatus":"Succeeded","activeImageReference":{"id":"/subscriptions/{subscriptionId}/resourceGroups/{rg}/providers/Microsoft.DevCenter/devcenters/{devcenterName}/galleries/default/images/microsoftwindowsdesktop_windows-ent-cpc_win11-21h2-ent-cpc-m365","exactVersion":"1.0.0"}}}' + headers: + cache-control: + - no-cache + content-length: + - '1172' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:32:02 GMT + etag: + - '"01008579-0000-4d00-0000-63daf6560000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"location": "westus3", "properties": {"devBoxDefinitionName": "c1000008", + "networkConnectionName": "c2000009", "licenseType": "Windows_Client", "localAdministrator": + "Enabled"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + Content-Length: + - '178' + Content-Type: + - application/json + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","name":"c3000010","type":"microsoft.devcenter/projects/pools","location":"westus3","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:32:03.6320146Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:32:03.6320146Z"},"properties":{"provisioningState":"Accepted","devBoxDefinitionName":"c1000008","networkConnectionName":"c2000009","licenseType":"Windows_Client","localAdministrator":"Enabled"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + cache-control: + - no-cache + content-length: + - '643' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:32:04 GMT + etag: + - '"030015a5-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-quota: + - '{"name":{"localizedValue":null,"value":"pools"},"limit":500,"currentUsed":14,"category":"Informational","scope":"subscription","target":"/subscriptions/3de261df-f2d8-4c00-a0ee-a0be30f1e48e/","region":"westus3"}' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '299' + x-rate-limit-reset: + - '2023-02-01T23:33:03.8506480Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Accepted","startTime":"2023-02-01T23:32:04.4774083Z"}' + headers: + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:32:34 GMT + etag: + - '"0000ae27-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Accepted","startTime":"2023-02-01T23:32:04.4774083Z"}' + headers: + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:33:04 GMT + etag: + - '"0000ae27-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Accepted","startTime":"2023-02-01T23:32:04.4774083Z"}' + headers: + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:33:35 GMT + etag: + - '"0000ae27-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Accepted","startTime":"2023-02-01T23:32:04.4774083Z"}' + headers: + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:34:04 GMT + etag: + - '"0000ae27-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Accepted","startTime":"2023-02-01T23:32:04.4774083Z"}' + headers: + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:34:34 GMT + etag: + - '"0000ae27-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Accepted","startTime":"2023-02-01T23:32:04.4774083Z"}' + headers: + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:35:05 GMT + etag: + - '"0000ae27-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Accepted","startTime":"2023-02-01T23:32:04.4774083Z"}' + headers: + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:35:35 GMT + etag: + - '"0000ae27-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Accepted","startTime":"2023-02-01T23:32:04.4774083Z"}' + headers: + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:36:05 GMT + etag: + - '"0000ae27-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Accepted","startTime":"2023-02-01T23:32:04.4774083Z"}' + headers: + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:36:35 GMT + etag: + - '"0000ae27-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Accepted","startTime":"2023-02-01T23:32:04.4774083Z"}' + headers: + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:37:06 GMT + etag: + - '"0000ae27-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Accepted","startTime":"2023-02-01T23:32:04.4774083Z"}' + headers: + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:37:35 GMT + etag: + - '"0000ae27-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Accepted","startTime":"2023-02-01T23:32:04.4774083Z"}' + headers: + cache-control: + - no-cache + content-length: + - '562' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:38:05 GMT + etag: + - '"0000ae27-0000-4d00-0000-63daf6740000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","name":"909aa4b4-9936-45ba-a152-4255f68ce59a*138983F806CD7E3A27D86DA19DE2434F8ED14411D3EA561539A481E6DA176615","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","status":"Succeeded","startTime":"2023-02-01T23:32:04.4774083Z","endTime":"2023-02-01T23:38:17.042014Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '621' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:38:36 GMT + etag: + - '"0000c027-0000-4d00-0000-63daf7e90000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin pool create + Connection: + - keep-alive + ParameterSetName: + - -d --location --local-administrator --name -c --project-name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010","name":"c3000010","type":"microsoft.devcenter/projects/pools","location":"westus3","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:32:03.6320146Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:32:03.6320146Z"},"properties":{"provisioningState":"Succeeded","devBoxDefinitionName":"c1000008","networkConnectionName":"c2000009","licenseType":"Windows_Client","localAdministrator":"Enabled"}}' + headers: + cache-control: + - no-cache + content-length: + - '644' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:38:36 GMT + etag: + - '"030031b2-0000-4d00-0000-63daf7e90000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"properties": {"type": "StopDevBox", "frequency": "Daily", "time": "13:00", + "timeZone": "America/Los_Angeles"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin schedule create + Connection: + - keep-alive + Content-Length: + - '112' + Content-Type: + - application/json + ParameterSetName: + - --pool-name --project-name --resource-group --time --time-zone + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010/schedules/default?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010/schedules/default","name":"default","type":"microsoft.devcenter/projects/pools/schedules","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:38:37.3669071Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:38:37.3669071Z"},"properties":{"provisioningState":"Accepted","type":"StopDevBox","frequency":"Daily","time":"13:00","timeZone":"America/Los_Angeles"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/f079ed36-62f5-4c86-9869-f5a5beffd7e0*88F097554DED99D0A29863746AE96A53372A2685DC6DBA6E914B0130341ED79F?api-version=2022-11-11-preview + cache-control: + - no-cache + content-length: + - '606' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:38:38 GMT + etag: + - '"0000c427-0000-4d00-0000-63daf7fe0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '298' + x-rate-limit-reset: + - '2023-02-01T23:39:33.9133111Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin schedule create + Connection: + - keep-alive + ParameterSetName: + - --pool-name --project-name --resource-group --time --time-zone + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/f079ed36-62f5-4c86-9869-f5a5beffd7e0*88F097554DED99D0A29863746AE96A53372A2685DC6DBA6E914B0130341ED79F?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/f079ed36-62f5-4c86-9869-f5a5beffd7e0*88F097554DED99D0A29863746AE96A53372A2685DC6DBA6E914B0130341ED79F","name":"f079ed36-62f5-4c86-9869-f5a5beffd7e0*88F097554DED99D0A29863746AE96A53372A2685DC6DBA6E914B0130341ED79F","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010/schedules/default","status":"Succeeded","startTime":"2023-02-01T23:38:37.8613886Z","endTime":"2023-02-01T23:38:54.4539977Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '640' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:39:08 GMT + etag: + - '"0000c827-0000-4d00-0000-63daf80e0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin schedule create + Connection: + - keep-alive + ParameterSetName: + - --pool-name --project-name --resource-group --time --time-zone + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010/schedules/default?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/pools/c3000010/schedules/default","name":"default","type":"microsoft.devcenter/projects/pools/schedules","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T23:38:37.3669071Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T23:38:37.3669071Z"},"properties":{"provisioningState":"Succeeded","type":"StopDevBox","frequency":"Daily","time":"13:00","timeZone":"America/Los_Angeles"}}' + headers: + cache-control: + - no-cache + content-length: + - '607' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:39:08 GMT + etag: + - '"0000c927-0000-4d00-0000-63daf80e0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"query": " Resources |where type =~''Microsoft.devcenter/projects''\n | + where name =~ ''cli000003''\n | extend devCenterArr = split(properties.devCenterId, + ''/'')\n | extend devCenterName = devCenterArr[array_length(devCenterArr) + -1]\n | where devCenterName =~ ''cli000002''\n | take 1\n | extend + devCenterUri = properties.devCenterUri\n | project name,devCenterUri "}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev pool list + Connection: + - keep-alive + Content-Length: + - '382' + Content-Type: + - application/json + ParameterSetName: + - --dev-center --project + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: POST + uri: https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01 + response: + body: + string: '{"totalRecords":1,"count":1,"data":[{"name":"cli000003","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}],"facets":[],"resultTruncated":"false"}' + headers: + cache-control: + - no-cache + content-length: + - '197' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:39:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-resource-requests: + - '14' + x-ms-resource-graph-request-duration: + - '0:00:00:00.4476069' + x-ms-user-quota-remaining: + - '14' + x-ms-user-quota-resets-after: + - 00:00:05 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev pool list + Connection: + - keep-alive + ParameterSetName: + - --dev-center --project + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenterdataplaneclient/unknown Python/3.10.7 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/projects/cli000003/pools?api-version=2022-11-11-preview + response: + body: + string: "{\n \"value\": [\n {\n \"name\": \"c3000010\",\n \"location\": + \"westus3\",\n \"osType\": \"Windows\",\n \"hardwareProfile\": {\n + \ \"skuName\": \"general_a_8c32gb_v1\",\n \"memoryGB\": 32,\n + \ \"vCPUs\": 8\n },\n \"hibernateSupport\": \"Enabled\",\n + \ \"storageProfile\": {\n \"osDisk\": {\n \"diskSizeGB\": + 1024\n }\n },\n \"imageReference\": {\n \"name\": + \"microsoftwindowsdesktop_windows-ent-cpc_win11-21h2-ent-cpc-m365\",\n \"version\": + \"1.0.0\",\n \"operatingSystem\": \"Windows11\",\n \"osBuildNumber\": + \"win11-21h2-ent-cpc-m365\",\n \"publishedDate\": \"2021-10-04T00:00:00+00:00\"\n + \ },\n \"localAdministrator\": \"Enabled\"\n }\n ]\n}" + headers: + connection: + - keep-alive + content-length: + - '695' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:39:11 GMT + strict-transport-security: + - max-age=15724800; includeSubDomains + transfer-encoding: + - chunked + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '299' + x-rate-limit-reset: + - '2023-02-01T23:40:11.1830933Z' + status: + code: 200 + message: OK +- request: + body: '{"query": " Resources |where type =~''Microsoft.devcenter/projects''\n | + where name =~ ''cli000003''\n | extend devCenterArr = split(properties.devCenterId, + ''/'')\n | extend devCenterName = devCenterArr[array_length(devCenterArr) + -1]\n | where devCenterName =~ ''cli000002''\n | take 1\n | extend + devCenterUri = properties.devCenterUri\n | project name,devCenterUri "}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev pool show + Connection: + - keep-alive + Content-Length: + - '382' + Content-Type: + - application/json + ParameterSetName: + - --name --dev-center --project + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: POST + uri: https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01 + response: + body: + string: '{"totalRecords":1,"count":1,"data":[{"name":"cli000003","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}],"facets":[],"resultTruncated":"false"}' + headers: + cache-control: + - no-cache + content-length: + - '197' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:39:11 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-resource-requests: + - '13' + x-ms-resource-graph-request-duration: + - '0:00:00:00.3214376' + x-ms-user-quota-remaining: + - '13' + x-ms-user-quota-resets-after: + - 00:00:05 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev pool show + Connection: + - keep-alive + ParameterSetName: + - --name --dev-center --project + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenterdataplaneclient/unknown Python/3.10.7 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/projects/cli000003/pools/c3000010?api-version=2022-11-11-preview + response: + body: + string: "{\n \"name\": \"c3000010\",\n \"location\": \"westus3\",\n \"osType\": + \"Windows\",\n \"hardwareProfile\": {\n \"skuName\": \"general_a_8c32gb_v1\",\n + \ \"memoryGB\": 32,\n \"vCPUs\": 8\n },\n \"hibernateSupport\": \"Enabled\",\n + \ \"storageProfile\": {\n \"osDisk\": {\n \"diskSizeGB\": 1024\n }\n + \ },\n \"imageReference\": {\n \"name\": \"microsoftwindowsdesktop_windows-ent-cpc_win11-21h2-ent-cpc-m365\",\n + \ \"version\": \"1.0.0\",\n \"operatingSystem\": \"Windows11\",\n \"osBuildNumber\": + \"win11-21h2-ent-cpc-m365\",\n \"publishedDate\": \"2021-10-04T00:00:00+00:00\"\n + \ },\n \"localAdministrator\": \"Enabled\"\n}" + headers: + connection: + - keep-alive + content-length: + - '578' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:39:12 GMT + strict-transport-security: + - max-age=15724800; includeSubDomains + transfer-encoding: + - chunked + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '298' + x-rate-limit-reset: + - '2023-02-01T23:40:08.4063272Z' + status: + code: 200 + message: OK +- request: + body: '{"query": " Resources |where type =~''Microsoft.devcenter/projects''\n | + where name =~ ''cli000003''\n | extend devCenterArr = split(properties.devCenterId, + ''/'')\n | extend devCenterName = devCenterArr[array_length(devCenterArr) + -1]\n | where devCenterName =~ ''cli000002''\n | take 1\n | extend + devCenterUri = properties.devCenterUri\n | project name,devCenterUri "}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev schedule list + Connection: + - keep-alive + Content-Length: + - '382' + Content-Type: + - application/json + ParameterSetName: + - --pool --dev-center --project + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: POST + uri: https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01 + response: + body: + string: '{"totalRecords":1,"count":1,"data":[{"name":"cli000003","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}],"facets":[],"resultTruncated":"false"}' + headers: + cache-control: + - no-cache + content-length: + - '197' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:39:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-resource-requests: + - '12' + x-ms-resource-graph-request-duration: + - '0:00:00:00.3105470' + x-ms-user-quota-remaining: + - '12' + x-ms-user-quota-resets-after: + - 00:00:05 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev schedule list + Connection: + - keep-alive + ParameterSetName: + - --pool --dev-center --project + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenterdataplaneclient/unknown Python/3.10.7 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/projects/cli000003/pools/c3000010/schedules?api-version=2022-11-11-preview + response: + body: + string: "{\n \"value\": [\n {\n \"name\": \"default\",\n \"type\": + \"StopDevBox\",\n \"frequency\": \"Daily\",\n \"time\": \"13:00\",\n + \ \"timeZone\": \"America/Los_Angeles\"\n }\n ]\n}" + headers: + connection: + - keep-alive + content-length: + - '176' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:39:14 GMT + strict-transport-security: + - max-age=15724800; includeSubDomains + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '298' + x-rate-limit-reset: + - '2023-02-01T23:39:41.2049226Z' + status: + code: 200 + message: OK +- request: + body: '{"query": " Resources |where type =~''Microsoft.devcenter/projects''\n | + where name =~ ''cli000003''\n | extend devCenterArr = split(properties.devCenterId, + ''/'')\n | extend devCenterName = devCenterArr[array_length(devCenterArr) + -1]\n | where devCenterName =~ ''cli000002''\n | take 1\n | extend + devCenterUri = properties.devCenterUri\n | project name,devCenterUri "}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev schedule show + Connection: + - keep-alive + Content-Length: + - '382' + Content-Type: + - application/json + ParameterSetName: + - -n --pool --dev-center --project + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: POST + uri: https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01 + response: + body: + string: '{"totalRecords":1,"count":1,"data":[{"name":"cli000003","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}],"facets":[],"resultTruncated":"false"}' + headers: + cache-control: + - no-cache + content-length: + - '197' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:39:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-resource-requests: + - '11' + x-ms-resource-graph-request-duration: + - '0:00:00:00.4303686' + x-ms-user-quota-remaining: + - '11' + x-ms-user-quota-resets-after: + - 00:00:05 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev schedule show + Connection: + - keep-alive + ParameterSetName: + - -n --pool --dev-center --project + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenterdataplaneclient/unknown Python/3.10.7 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/projects/cli000003/pools/c3000010/schedules/default?api-version=2022-11-11-preview + response: + body: + string: "{\n \"name\": \"default\",\n \"type\": \"StopDevBox\",\n \"frequency\": + \"Daily\",\n \"time\": \"13:00\",\n \"timeZone\": \"America/Los_Angeles\"\n}" + headers: + connection: + - keep-alive + content-length: + - '127' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 23:39:15 GMT + strict-transport-security: + - max-age=15724800; includeSubDomains + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '298' + x-rate-limit-reset: + - '2023-02-01T23:39:38.5743473Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/devcenter/azext_devcenter/tests/latest/recordings/test_project_dataplane_scenario.yaml b/src/devcenter/azext_devcenter/tests/latest/recordings/test_project_dataplane_scenario.yaml new file mode 100644 index 00000000000..1d5f13a2743 --- /dev/null +++ b/src/devcenter/azext_devcenter/tests/latest/recordings/test_project_dataplane_scenario.yaml @@ -0,0 +1,1030 @@ +interactions: +- request: + body: '{"tags": {"CostCode": "12345"}, "location": "westus3", "identity": {"type": + "SystemAssigned"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin devcenter create + Connection: + - keep-alive + Content-Length: + - '94' + Content-Type: + - application/json + ParameterSetName: + - --location --tags --name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","name":"cli000002","type":"microsoft.devcenter/devcenters","location":"westus3","tags":{"CostCode":"12345"},"systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T21:50:04.4019186Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T21:50:04.4019186Z"},"identity":{"principalId":"b40204b7-524f-403a-8b81-f18ed98c3814","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Accepted"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/681e36d2-39b8-4696-a7c8-e4f46873dcc3*31EFD9FDFD1817CF4D6C5EE423C87C7801A9F179157A057A1B326524E0726E85?api-version=2022-11-11-preview + cache-control: + - no-cache + content-length: + - '664' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:50:05 GMT + etag: + - '"190064be-0000-4d00-0000-63dade8d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-quota: + - '{"name":{"localizedValue":null,"value":"devCenters"},"limit":100,"currentUsed":26,"category":"Informational","scope":"subscription","target":"/subscriptions/3de261df-f2d8-4c00-a0ee-a0be30f1e48e/","region":"westus3"}' + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '298' + x-rate-limit-reset: + - '2023-02-01T21:50:46.0058919Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin devcenter create + Connection: + - keep-alive + ParameterSetName: + - --location --tags --name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/681e36d2-39b8-4696-a7c8-e4f46873dcc3*31EFD9FDFD1817CF4D6C5EE423C87C7801A9F179157A057A1B326524E0726E85?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/681e36d2-39b8-4696-a7c8-e4f46873dcc3*31EFD9FDFD1817CF4D6C5EE423C87C7801A9F179157A057A1B326524E0726E85","name":"681e36d2-39b8-4696-a7c8-e4f46873dcc3*31EFD9FDFD1817CF4D6C5EE423C87C7801A9F179157A057A1B326524E0726E85","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","status":"Accepted","startTime":"2023-02-01T21:50:05.0485645Z"}' + headers: + cache-control: + - no-cache + content-length: + - '549' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:50:36 GMT + etag: + - '"00000026-0000-4d00-0000-63dade8d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin devcenter create + Connection: + - keep-alive + ParameterSetName: + - --location --tags --name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/681e36d2-39b8-4696-a7c8-e4f46873dcc3*31EFD9FDFD1817CF4D6C5EE423C87C7801A9F179157A057A1B326524E0726E85?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/681e36d2-39b8-4696-a7c8-e4f46873dcc3*31EFD9FDFD1817CF4D6C5EE423C87C7801A9F179157A057A1B326524E0726E85","name":"681e36d2-39b8-4696-a7c8-e4f46873dcc3*31EFD9FDFD1817CF4D6C5EE423C87C7801A9F179157A057A1B326524E0726E85","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","status":"Accepted","startTime":"2023-02-01T21:50:05.0485645Z"}' + headers: + cache-control: + - no-cache + content-length: + - '549' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:51:05 GMT + etag: + - '"00000026-0000-4d00-0000-63dade8d0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin devcenter create + Connection: + - keep-alive + ParameterSetName: + - --location --tags --name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/681e36d2-39b8-4696-a7c8-e4f46873dcc3*31EFD9FDFD1817CF4D6C5EE423C87C7801A9F179157A057A1B326524E0726E85?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/681e36d2-39b8-4696-a7c8-e4f46873dcc3*31EFD9FDFD1817CF4D6C5EE423C87C7801A9F179157A057A1B326524E0726E85","name":"681e36d2-39b8-4696-a7c8-e4f46873dcc3*31EFD9FDFD1817CF4D6C5EE423C87C7801A9F179157A057A1B326524E0726E85","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","status":"Succeeded","startTime":"2023-02-01T21:50:05.0485645Z","endTime":"2023-02-01T21:51:13.7915199Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '609' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:51:35 GMT + etag: + - '"00000326-0000-4d00-0000-63daded10000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin devcenter create + Connection: + - keep-alive + ParameterSetName: + - --location --tags --name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","name":"cli000002","type":"microsoft.devcenter/devcenters","location":"westus3","tags":{"CostCode":"12345"},"systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T21:50:04.4019186Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T21:50:04.4019186Z"},"identity":{"principalId":"b40204b7-524f-403a-8b81-f18ed98c3814","tenantId":"72f988bf-86f1-41af-91ab-2d7cd011db47","type":"SystemAssigned"},"properties":{"provisioningState":"Succeeded","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}}' + headers: + cache-control: + - no-cache + content-length: + - '766' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:51:35 GMT + etag: + - '"190019bf-0000-4d00-0000-63daded10000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: '{"query": " Resources |where type =~''Microsoft.devcenter/projects''\n \n | + extend devCenterArr = split(properties.devCenterId, ''/'')\n | extend devCenterName + = devCenterArr[array_length(devCenterArr) -1]\n | where devCenterName =~ + ''cli000002''\n | take 1\n | extend devCenterUri = properties.devCenterUri\n | + project name,devCenterUri "}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev project list + Connection: + - keep-alive + Content-Length: + - '355' + Content-Type: + - application/json + ParameterSetName: + - --dev-center + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: POST + uri: https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01 + response: + body: + string: '{"totalRecords":0,"count":0,"data":[],"facets":[],"resultTruncated":"false"}' + headers: + cache-control: + - no-cache + content-length: + - '76' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:51:38 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-resource-requests: + - '14' + x-ms-resource-graph-request-duration: + - '0:00:00:00.8368870' + x-ms-user-quota-remaining: + - '14' + x-ms-user-quota-resets-after: + - 00:00:05 + status: + code: 200 + message: OK +- request: + body: '{"location": "westus3", "properties": {"devCenterId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin project create + Connection: + - keep-alive + Content-Length: + - '189' + Content-Type: + - application/json + ParameterSetName: + - --location --name --dev-center-id --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003","name":"cli000003","type":"microsoft.devcenter/projects","location":"westus3","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T21:51:40.0341534Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T21:51:40.0341534Z"},"properties":{"provisioningState":"Accepted","devCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002"}}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/cb4955ae-8cac-4e95-a194-551146d82b2d*F6FD32046250941275B4ACEE9D44358153B059DA1F6CC04B72CE06CA05DC4188?api-version=2022-11-11-preview + cache-control: + - no-cache + content-length: + - '640' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:51:41 GMT + etag: + - '"00000106-0000-4d00-0000-63dadeec0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-quota: + - '{"name":{"localizedValue":null,"value":"projects"},"limit":500,"currentUsed":20,"category":"Informational","scope":"subscription","target":"/subscriptions/3de261df-f2d8-4c00-a0ee-a0be30f1e48e/","region":"westus3"}' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '299' + x-rate-limit-reset: + - '2023-02-01T21:52:40.1580034Z' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin project create + Connection: + - keep-alive + ParameterSetName: + - --location --name --dev-center-id --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/cb4955ae-8cac-4e95-a194-551146d82b2d*F6FD32046250941275B4ACEE9D44358153B059DA1F6CC04B72CE06CA05DC4188?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.DevCenter/locations/WESTUS3/operationStatuses/cb4955ae-8cac-4e95-a194-551146d82b2d*F6FD32046250941275B4ACEE9D44358153B059DA1F6CC04B72CE06CA05DC4188","name":"cb4955ae-8cac-4e95-a194-551146d82b2d*F6FD32046250941275B4ACEE9D44358153B059DA1F6CC04B72CE06CA05DC4188","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003","status":"Succeeded","startTime":"2023-02-01T21:51:40.4295694Z","endTime":"2023-02-01T21:51:41.3995889Z","properties":null}' + headers: + cache-control: + - no-cache + content-length: + - '607' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:10 GMT + etag: + - '"00000726-0000-4d00-0000-63dadeed0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin project create + Connection: + - keep-alive + ParameterSetName: + - --location --name --dev-center-id --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003","name":"cli000003","type":"microsoft.devcenter/projects","location":"westus3","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T21:51:40.0341534Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T21:51:40.0341534Z"},"properties":{"provisioningState":"Succeeded","devCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}}' + headers: + cache-control: + - no-cache + content-length: + - '742' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:10 GMT + etag: + - '"00000306-0000-4d00-0000-63dadeed0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter admin project show + Connection: + - keep-alive + ParameterSetName: + - --name --resource-group + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenter/unknown Python/3.10.7 (Windows-10-10.0.22621-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003?api-version=2022-11-11-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003","name":"cli000003","type":"microsoft.devcenter/projects","location":"westus3","systemData":{"createdBy":"amlim@microsoft.com","createdByType":"User","createdAt":"2023-02-01T21:51:40.0341534Z","lastModifiedBy":"amlim@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2023-02-01T21:51:40.0341534Z"},"properties":{"provisioningState":"Succeeded","devCenterId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/devcenters/cli000002","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}}' + headers: + cache-control: + - no-cache + content-length: + - '742' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:11 GMT + etag: + - '"00000306-0000-4d00-0000-63dadeed0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - ad signed-in-user show + Connection: + - keep-alive + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: GET + uri: https://graph.microsoft.com/v1.0/me + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#users/$entity","businessPhones":["+1 + (425) 7041454"],"displayName":"Amanda Lim","givenName":"Amanda","jobTitle":"SOFTWARE + ENGINEER II","mail":"Amanda.Lim@microsoft.com","mobilePhone":null,"officeLocation":"18/3100FL","preferredLanguage":null,"surname":"Lim","userPrincipalName":"amlim@microsoft.com","id":"17755109-de29-4032-8853-f390afd630a2"}' + headers: + cache-control: + - no-cache + content-length: + - '406' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:12 GMT + odata-version: + - '4.0' + request-id: + - d2090e23-b8f7-49ed-a365-e54f9d8481ac + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"West US","Slice":"E","Ring":"4","ScaleUnit":"004","RoleInstance":"BY3PEPF00014A56"}}' + x-ms-resource-unit: + - '1' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --role --assignee --scope + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: GET + uri: https://graph.microsoft.com/v1.0/servicePrincipals?$filter=servicePrincipalNames%2Fany%28c%3Ac%20eq%20%2717755109-de29-4032-8853-f390afd630a2%27%29 + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#servicePrincipals","value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '92' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:12 GMT + odata-version: + - '4.0' + request-id: + - ace3f46f-3f9d-4e94-a88e-3c8dfbaf901a + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"West US","Slice":"E","Ring":"4","ScaleUnit":"004","RoleInstance":"BY3PEPF00010592"}}' + x-ms-resource-unit: + - '1' + status: + code: 200 + message: OK +- request: + body: '{"ids": ["17755109-de29-4032-8853-f390afd630a2"], "types": ["user", "group", + "servicePrincipal", "directoryObjectPartnerReference"]}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '132' + Content-Type: + - application/json + ParameterSetName: + - --role --assignee --scope + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: POST + uri: https://graph.microsoft.com/v1.0/directoryObjects/getByIds + response: + body: + string: '{"@odata.context":"https://graph.microsoft.com/v1.0/$metadata#directoryObjects","value":[{"@odata.type":"#microsoft.graph.user","id":"17755109-de29-4032-8853-f390afd630a2","businessPhones":["+1 + (425) 7041454"],"displayName":"Amanda Lim","givenName":"Amanda","jobTitle":"SOFTWARE + ENGINEER II","mail":"Amanda.Lim@microsoft.com","mobilePhone":null,"officeLocation":"18/3100FL","preferredLanguage":null,"surname":"Lim","userPrincipalName":"amlim@microsoft.com"}]}' + headers: + cache-control: + - no-cache + content-length: + - '459' + content-type: + - application/json;odata.metadata=minimal;odata.streaming=true;IEEE754Compatible=false;charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:12 GMT + location: + - https://graph.microsoft.com + odata-version: + - '4.0' + request-id: + - 8f83619c-bd44-4d6d-aaae-7b787e87da43 + strict-transport-security: + - max-age=31536000 + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-ms-ags-diagnostic: + - '{"ServerInfo":{"DataCenter":"West US","Slice":"E","Ring":"4","ScaleUnit":"004","RoleInstance":"BY3PEPF00010586"}}' + x-ms-resource-unit: + - '3' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + ParameterSetName: + - --role --assignee --scope + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) msrest/0.7.1 msrest_azure/0.6.4 + azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.44.1 + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/providers/Microsoft.Authorization/roleDefinitions?$filter=roleName%20eq%20%27DevCenter%20Dev%20Box%20User%27&api-version=2018-01-01-preview + response: + body: + string: '{"value":[{"properties":{"roleName":"DevCenter Dev Box User","type":"BuiltInRole","description":"Provides + access to create and manage dev boxes.","assignableScopes":["/"],"permissions":[{"actions":["Microsoft.DevCenter/projects/read","Microsoft.DevCenter/projects/*/read","Microsoft.Fidalgo/projects/read","Microsoft.Fidalgo/projects/*/read","Microsoft.Authorization/*/read","Microsoft.Resources/subscriptions/resourceGroups/read"],"notActions":[],"dataActions":["Microsoft.DevCenter/projects/users/devboxes/userStop/action","Microsoft.DevCenter/projects/users/devboxes/userStart/action","Microsoft.DevCenter/projects/users/devboxes/userGetRemoteConnection/action","Microsoft.DevCenter/projects/users/devboxes/userRead/action","Microsoft.DevCenter/projects/users/devboxes/userWrite/action","Microsoft.DevCenter/projects/users/devboxes/userDelete/action","Microsoft.DevCenter/projects/users/devboxes/userUpcomingActionRead/action","Microsoft.DevCenter/projects/users/devboxes/userUpcomingActionManage/action","Microsoft.Fidalgo/projects/users/virtualMachines/userStop/action","Microsoft.Fidalgo/projects/users/virtualMachines/userStart/action","Microsoft.Fidalgo/projects/users/virtualMachines/userGetRdpFileContent/action","Microsoft.Fidalgo/projects/users/virtualMachines/userRead/action","Microsoft.Fidalgo/projects/users/virtualMachines/userWrite/action","Microsoft.Fidalgo/projects/users/virtualMachines/userDelete/action"],"notDataActions":[]}],"createdOn":"2022-03-30T19:23:03.9063898Z","updatedOn":"2023-01-11T22:01:17.5837776Z","createdBy":null,"updatedBy":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/45d50f46-0b78-4001-a660-4198cbe8cd05","type":"Microsoft.Authorization/roleDefinitions","name":"45d50f46-0b78-4001-a660-4198cbe8cd05"}]}' + headers: + cache-control: + - no-cache + content-length: + - '1814' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:12 GMT + expires: + - '-1' + pragma: + - no-cache + set-cookie: + - x-ms-gateway-slice=Production; path=/; secure; samesite=none; httponly + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"properties": {"roleDefinitionId": "/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/45d50f46-0b78-4001-a660-4198cbe8cd05", + "principalId": "17755109-de29-4032-8853-f390afd630a2", "principalType": "User"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - role assignment create + Connection: + - keep-alive + Content-Length: + - '258' + Content-Type: + - application/json; charset=utf-8 + Cookie: + - x-ms-gateway-slice=Production + ParameterSetName: + - --role --assignee --scope + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) msrest/0.7.1 msrest_azure/0.6.4 + azure-mgmt-authorization/0.61.0 Azure-SDK-For-Python AZURECLI/2.44.1 + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/providers/Microsoft.Authorization/roleAssignments/095adf6a-be04-4851-b937-b8a5662002ca?api-version=2020-04-01-preview + response: + body: + string: '{"properties":{"roleDefinitionId":"/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Authorization/roleDefinitions/45d50f46-0b78-4001-a660-4198cbe8cd05","principalId":"17755109-de29-4032-8853-f390afd630a2","principalType":"User","scope":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003","condition":null,"conditionVersion":null,"createdOn":"2023-02-01T21:52:13.1973068Z","updatedOn":"2023-02-01T21:52:14.0686710Z","createdBy":null,"updatedBy":"17755109-de29-4032-8853-f390afd630a2","delegatedManagedIdentityResourceId":null,"description":null},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest000001/providers/Microsoft.DevCenter/projects/cli000003/providers/Microsoft.Authorization/roleAssignments/095adf6a-be04-4851-b937-b8a5662002ca","type":"Microsoft.Authorization/roleAssignments","name":"095adf6a-be04-4851-b937-b8a5662002ca"}' + headers: + cache-control: + - no-cache + content-length: + - '967' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:15 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + status: + code: 201 + message: Created +- request: + body: '{"query": " Resources |where type =~''Microsoft.devcenter/projects''\n \n | + extend devCenterArr = split(properties.devCenterId, ''/'')\n | extend devCenterName + = devCenterArr[array_length(devCenterArr) -1]\n | where devCenterName =~ + ''cli000002''\n | take 1\n | extend devCenterUri = properties.devCenterUri\n | + project name,devCenterUri "}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev project list + Connection: + - keep-alive + Content-Length: + - '355' + Content-Type: + - application/json + ParameterSetName: + - --dev-center + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: POST + uri: https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01 + response: + body: + string: '{"totalRecords":1,"count":1,"data":[{"name":"cli000003","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}],"facets":[],"resultTruncated":"false"}' + headers: + cache-control: + - no-cache + content-length: + - '197' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-resource-requests: + - '14' + x-ms-resource-graph-request-duration: + - '0:00:00:00.5052695' + x-ms-user-quota-remaining: + - '14' + x-ms-user-quota-resets-after: + - 00:00:05 + status: + code: 200 + message: OK +- request: + body: '{"query": " Resources |where type =~''Microsoft.devcenter/projects''\n \n | + extend devCenterArr = split(properties.devCenterId, ''/'')\n | extend devCenterName + = devCenterArr[array_length(devCenterArr) -1]\n | where devCenterName =~ + ''cli000002''\n | take 1\n | extend devCenterUri = properties.devCenterUri\n | + project name,devCenterUri "}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev project list + Connection: + - keep-alive + Content-Length: + - '355' + Content-Type: + - application/json + ParameterSetName: + - --dev-center + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: POST + uri: https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01 + response: + body: + string: '{"totalRecords":1,"count":1,"data":[{"name":"cli000003","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}],"facets":[],"resultTruncated":"false"}' + headers: + cache-control: + - no-cache + content-length: + - '197' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:16 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-resource-requests: + - '13' + x-ms-resource-graph-request-duration: + - '0:00:00:00.2172196' + x-ms-user-quota-remaining: + - '13' + x-ms-user-quota-resets-after: + - 00:00:05 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev project list + Connection: + - keep-alive + ParameterSetName: + - --dev-center + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenterdataplaneclient/unknown Python/3.10.7 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/projects?api-version=2022-11-11-preview + response: + body: + string: "{\n \"value\": [\n {\n \"name\": \"cli000003\"\n }\n ]\n}" + headers: + connection: + - keep-alive + content-length: + - '58' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:17 GMT + strict-transport-security: + - max-age=15724800; includeSubDomains + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '295' + x-rate-limit-reset: + - '2023-02-01T21:52:21.5661910Z' + status: + code: 200 + message: OK +- request: + body: '{"query": " Resources |where type =~''Microsoft.devcenter/projects''\n | + where name =~ ''cli000003''\n | extend devCenterArr = split(properties.devCenterId, + ''/'')\n | extend devCenterName = devCenterArr[array_length(devCenterArr) + -1]\n | where devCenterName =~ ''cli000002''\n | take 1\n | extend + devCenterUri = properties.devCenterUri\n | project name,devCenterUri "}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev project show + Connection: + - keep-alive + Content-Length: + - '382' + Content-Type: + - application/json + ParameterSetName: + - --name --dev-center + User-Agent: + - python/3.10.7 (Windows-10-10.0.22621-SP0) AZURECLI/2.44.1 + method: POST + uri: https://management.azure.com/providers/Microsoft.ResourceGraph/resources?api-version=2021-03-01 + response: + body: + string: '{"totalRecords":1,"count":1,"data":[{"name":"cli000003","devCenterUri":"https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/"}],"facets":[],"resultTruncated":"false"}' + headers: + cache-control: + - no-cache + content-length: + - '197' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:18 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - Kestrel + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-tenant-resource-requests: + - '12' + x-ms-resource-graph-request-duration: + - '0:00:00:00.3237647' + x-ms-user-quota-remaining: + - '12' + x-ms-user-quota-resets-after: + - 00:00:05 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - devcenter dev project show + Connection: + - keep-alive + ParameterSetName: + - --name --dev-center + User-Agent: + - AZURECLI/2.44.1 azsdk-python-devcenterdataplaneclient/unknown Python/3.10.7 + (Windows-10-10.0.22621-SP0) + method: GET + uri: https://72f988bf-86f1-41af-91ab-2d7cd011db47-cli000002.westus3.devcenter.azure.com/projects/cli000003?api-version=2022-11-11-preview + response: + body: + string: "{\n \"name\": \"cli000003\"\n}" + headers: + connection: + - keep-alive + content-length: + - '25' + content-type: + - application/json; charset=utf-8 + date: + - Wed, 01 Feb 2023 21:52:19 GMT + strict-transport-security: + - max-age=15724800; includeSubDomains + x-rate-limit-limit: + - 1m + x-rate-limit-remaining: + - '298' + x-rate-limit-reset: + - '2023-02-01T21:53:15.6418501Z' + status: + code: 200 + message: OK +version: 1 diff --git a/src/devcenter/azext_devcenter/tests/latest/test_devcenter_scenario.py b/src/devcenter/azext_devcenter/tests/latest/test_devcenter_scenario.py index 37edacf2684..f6ac70a1647 100644 --- a/src/devcenter/azext_devcenter/tests/latest/test_devcenter_scenario.py +++ b/src/devcenter/azext_devcenter/tests/latest/test_devcenter_scenario.py @@ -25,7 +25,9 @@ create_network_connection, create_attached_network_dev_box_definition, create_kv_policy, - create_env_type + create_env_type, + add_dev_box_user_role_to_project, + create_pool_with_schedule ) @@ -1232,3 +1234,168 @@ def test_proj_env_type_scenario(self): self.check("length(@)", 0), ] ) + +@record_only() +@try_manual +class DevcenterDataPlaneScenarioTest(ScenarioTest): + def __init__(self, *args, **kwargs): + super(DevcenterDataPlaneScenarioTest, self).__init__(*args, **kwargs) + self.kwargs.update({ + 'subscriptionId': self.get_subscription_id(), + 'location': 'westus3', + }) + + @ResourceGroupPreparer(name_prefix='clitestdevcenter_rg1'[:7], key='rg', parameter_name='rg') + def test_project_dataplane_scenario(self): + self.kwargs.update({ + 'devcenterName': self.create_random_name(prefix='cli', length=24), + }) + + create_dev_center(self) + + self.cmd('az devcenter dev project list ' + '--dev-center "{devcenterName}" ', + checks=[ + self.check("length(@)", 0), + ] + ) + + create_project(self) + add_dev_box_user_role_to_project(self) + + self.cmd('az devcenter dev project list ' + '--dev-center "{devcenterName}" ', + checks=[ + self.check("length(@)", 1), + self.check("[0].name", "{projectName}"), + ] + ) + + self.cmd('az devcenter dev project show ' + '--name "{projectName}" ' + '--dev-center "{devcenterName}" ', + checks=[ + self.check("name", "{projectName}"), + ] + ) + + @ResourceGroupPreparer(name_prefix='clitestdevcenter_rg1'[:7], key='rg', parameter_name='rg') + def test_pool_dataplane_scenario(self): + self.kwargs.update({ + 'devcenterName': self.create_random_name(prefix='cli', length=24), + }) + + create_dev_center(self) + create_project(self) + add_dev_box_user_role_to_project(self) + create_pool_with_schedule(self) + + self.cmd('az devcenter dev pool list ' + '--dev-center "{devcenterName}" ' + '--project "{projectName}" ', + checks=[ + self.check("length(@)", 1), + self.check("[0].name", "{poolName}"), + ] + ) + + self.cmd('az devcenter dev pool show ' + '--name "{poolName}" ' + '--dev-center "{devcenterName}" ' + '--project "{projectName}" ', + checks=[ + self.check('name', "{poolName}"), + self.check('storageProfile.osDisk.diskSizeGb', "1024"), + self.check('hardwareProfile.skuName', "{skuName}"), + self.check('localAdministrator', "Enabled"), + self.check('osType', "Windows"), + self.check('location', "{location}"), + self.check('hibernateSupport', "Enabled"), + self.check('imageReference.name', 'microsoftwindowsdesktop_windows-ent-cpc_win11-21h2-ent-cpc-m365') + ] + ) + + self.cmd('az devcenter dev schedule list ' + '--pool "{poolName}" ' + '--dev-center "{devcenterName}" ' + '--project "{projectName}" ', + checks=[ + self.check("length(@)", 1), + self.check("[0].name", "default"), + ] + ) + + self.cmd('az devcenter dev schedule show ' + '-n "default" ' + '--pool "{poolName}" ' + '--dev-center "{devcenterName}" ' + '--project "{projectName}" ', + checks=[ + self.check('name', "default"), + self.check('frequency', "Daily"), + self.check('time', "{time}"), + self.check('timeZone', "{timeZone}"), + self.check('type', "StopDevBox"), + ] + ) + + @ResourceGroupPreparer(name_prefix='clitestdevcenter_rg1'[:7], key='rg', parameter_name='rg') + def test_dev_box_dataplane_scenario(self): + self.kwargs.update({ + 'devcenterName': self.create_random_name(prefix='cli', length=24), + }) + + create_dev_center(self) + create_project(self) + add_dev_box_user_role_to_project(self) + create_pool_with_schedule(self) + + self.cmd('az devcenter dev pool list ' + '--dev-center "{devcenterName}" ' + '--project "{projectName}" ', + checks=[ + self.check("length(@)", 1), + self.check("[0].name", "{poolName}"), + ] + ) + + self.cmd('az devcenter dev pool show ' + '--name "{poolName}" ' + '--dev-center "{devcenterName}" ' + '--project "{projectName}" ', + checks=[ + self.check('name', "{poolName}"), + self.check('storageProfile.osDisk.diskSizeGb', "1024"), + self.check('hardwareProfile.skuName', "{skuName}"), + self.check('localAdministrator', "Enabled"), + self.check('osType', "Windows"), + self.check('location', "{location}"), + self.check('hibernateSupport', "Enabled"), + self.check('imageReference.name', 'microsoftwindowsdesktop_windows-ent-cpc_win11-21h2-ent-cpc-m365') + ] + ) + + self.cmd('az devcenter dev schedule list ' + '--pool "{poolName}" ' + '--dev-center "{devcenterName}" ' + '--project "{projectName}" ', + checks=[ + self.check("length(@)", 1), + self.check("[0].name", "default"), + ] + ) + + self.cmd('az devcenter dev schedule show ' + '-n "default" ' + '--pool "{poolName}" ' + '--dev-center "{devcenterName}" ' + '--project "{projectName}" ', + checks=[ + self.check('name', "default"), + self.check('frequency', "Daily"), + self.check('time', "{time}"), + self.check('timeZone', "{timeZone}"), + self.check('type', "StopDevBox"), + ] + ) + diff --git a/src/devcenter/src/devcenter-cp-dp-2022-11-11-preview/devcenter-0.1.0-py3-none-any.whl b/src/devcenter/src/devcenter-cp-dp-2022-11-11-preview/devcenter-0.1.0-py3-none-any.whl index 7d4b0e5822c..feca417ddbc 100644 Binary files a/src/devcenter/src/devcenter-cp-dp-2022-11-11-preview/devcenter-0.1.0-py3-none-any.whl and b/src/devcenter/src/devcenter-cp-dp-2022-11-11-preview/devcenter-0.1.0-py3-none-any.whl differ