From a17fed25c68ed7d4cd588e7bcb597c83f1d3df8b Mon Sep 17 00:00:00 2001 From: Han Wang Date: Wed, 11 Jan 2023 14:17:03 +0800 Subject: [PATCH] [ML][Pipelines]Fix if_else CLI error and add related tests (#28252) * add test for if_else cli * add tests --- .../ml/_schema/pipeline/pipeline_component.py | 5 + .../ml/entities/_builders/condition_node.py | 33 +- .../dsl/e2etests/test_controlflow_pipeline.py | 6 +- .../e2etests/test_control_flow_pipeline.py | 92 +- ...TestIfElsetest_dsl_condition_pipeline.json | 841 ++++++------ ...e.pyTestIfElsetest_happy_path_if_else.json | 1153 +++++++++++++++++ ...pyTestIfElsetest_if_else_invalid_case.json | 4 + ...tIfElsetest_if_else_literal_condition.json | 618 +++++++++ ...e.pyTestIfElsetest_if_else_one_branch.json | 1063 +++++++++++++++ .../entry.py | 2 - .../spec.yaml | 8 +- .../components/write_jokes/conda.yaml | 8 + .../components/write_jokes/spec.yaml | 21 + .../components/write_jokes/src/hello.py | 7 + .../control_flow/if_else/invalid_binding.yml | 23 + .../if_else/literal_condition.yml | 19 + .../control_flow/if_else/one_branch.yml | 21 + .../control_flow/if_else/simple_pipeline.yml | 27 + 18 files changed, 3478 insertions(+), 473 deletions(-) create mode 100644 sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_happy_path_if_else.json create mode 100644 sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_if_else_invalid_case.json create mode 100644 sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_if_else_literal_condition.json create mode 100644 sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_if_else_one_branch.json create mode 100644 sdk/ml/azure-ai-ml/tests/test_configs/components/write_jokes/conda.yaml create mode 100644 sdk/ml/azure-ai-ml/tests/test_configs/components/write_jokes/spec.yaml create mode 100644 sdk/ml/azure-ai-ml/tests/test_configs/components/write_jokes/src/hello.py create mode 100644 sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/invalid_binding.yml create mode 100644 sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/literal_condition.yml create mode 100644 sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/one_branch.yml create mode 100644 sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/simple_pipeline.yml diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/_schema/pipeline/pipeline_component.py b/sdk/ml/azure-ai-ml/azure/ai/ml/_schema/pipeline/pipeline_component.py index 6fa6607b6fd1..f7681402e104 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/_schema/pipeline/pipeline_component.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/_schema/pipeline/pipeline_component.py @@ -93,6 +93,7 @@ def _post_load_pipeline_jobs(context, data: dict) -> dict: from azure.ai.ml.entities._builders.parallel_for import ParallelFor from azure.ai.ml.entities._job.automl.automl_job import AutoMLJob from azure.ai.ml.entities._job.pipeline._component_translatable import ComponentTranslatableMixin + from azure.ai.ml.entities._builders.condition_node import ConditionNode # parse inputs/outputs data = parse_inputs_outputs(data) @@ -107,6 +108,10 @@ def _post_load_pipeline_jobs(context, data: dict) -> dict: loaded_data=job_instance, ) jobs[key] = job_instance + elif job_instance.get("type") == ControlFlowType.IF_ELSE: + # Convert to if-else node. + job_instance = ConditionNode._create_instance_from_schema_dict(loaded_data=job_instance) + jobs[key] = job_instance elif job_instance.get("type") == ControlFlowType.DO_WHILE: # Convert to do-while node. job_instance = DoWhile._create_instance_from_schema_dict(pipeline_jobs=jobs, loaded_data=job_instance) diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_builders/condition_node.py b/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_builders/condition_node.py index edc04d6fa499..d71d65c9f7a7 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_builders/condition_node.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_builders/condition_node.py @@ -5,6 +5,7 @@ from typing import Dict from azure.ai.ml._schema import PathAwareSchema +from azure.ai.ml._utils.utils import is_data_binding_expression from azure.ai.ml.constants._component import ControlFlowType from azure.ai.ml.entities._builders import BaseNode from azure.ai.ml.entities._builders.control_flow_node import ControlFlowNode @@ -35,6 +36,11 @@ def _create_schema_for_validation(cls, context) -> PathAwareSchema: # pylint: d def _from_rest_object(cls, obj: dict) -> "ConditionNode": return cls(**obj) + @classmethod + def _create_instance_from_schema_dict(cls, loaded_data: Dict) -> "ConditionNode": + """Create a condition node instance from schema parsed dict.""" + return cls(**loaded_data) + def _to_dict(self) -> Dict: return self._dump_for_validation() @@ -63,16 +69,37 @@ def _validate_params(self, raise_error=True) -> MutableValidationResult: f"with value 'True', got {output_definition.is_control}", ) - error_msg = "{!r} of dsl.condition node must be an instance of " f"{BaseNode} or {AutoMLJob}," "got {!r}." - if self.true_block is not None and not isinstance(self.true_block, (BaseNode, AutoMLJob)): + # check if condition is valid binding + if isinstance(self.condition, str) and not is_data_binding_expression( + self.condition, ["parent"], is_singular=False): + error_tail = "for example, ${{parent.jobs.xxx.outputs.output}}" + validation_result.append_error( + yaml_path="condition", + message=f"'condition' of dsl.condition has invalid binding expression: {self.condition}, {error_tail}", + ) + + error_msg = "{!r} of dsl.condition node must be an instance of " \ + f"{BaseNode}, {AutoMLJob} or {str}," "got {!r}." + if self.true_block is not None and not isinstance(self.true_block, (BaseNode, AutoMLJob, str)): validation_result.append_error( yaml_path="true_block", message=error_msg.format("true_block", type(self.true_block)) ) - if self.false_block is not None and not isinstance(self.false_block, (BaseNode, AutoMLJob)): + if self.false_block is not None and not isinstance(self.false_block, (BaseNode, AutoMLJob, str)): validation_result.append_error( yaml_path="false_block", message=error_msg.format("false_block", type(self.false_block)) ) + # check if true/false block is valid binding + for name, block in {"true_block": self.true_block, "false_block": self.false_block}.items(): + if block is None or not isinstance(block, str): + continue + error_tail = "for example, ${{parent.jobs.xxx}}" + if not is_data_binding_expression(block, ["parent", "jobs"], is_singular=False): + validation_result.append_error( + yaml_path=name, + message=f"'{name}' of dsl.condition has invalid binding expression: {block}, {error_tail}", + ) + if self.true_block is None and self.false_block is None: validation_result.append_error( yaml_path="true_block", diff --git a/sdk/ml/azure-ai-ml/tests/dsl/e2etests/test_controlflow_pipeline.py b/sdk/ml/azure-ai-ml/tests/dsl/e2etests/test_controlflow_pipeline.py index 894bc60320b4..064a317e68a3 100644 --- a/sdk/ml/azure-ai-ml/tests/dsl/e2etests/test_controlflow_pipeline.py +++ b/sdk/ml/azure-ai-ml/tests/dsl/e2etests/test_controlflow_pipeline.py @@ -55,7 +55,7 @@ def test_dsl_condition_pipeline(self, client: MLClient): compute="cpu-cluster", ) def condition_pipeline(): - result = basic_component(str_param="abc", int_param=1) + result = basic_component() node1 = hello_world_component_no_paths(component_in_number=1) node2 = hello_world_component_no_paths(component_in_number=2) @@ -89,10 +89,6 @@ def condition_pipeline(): }, "result": { "_source": "REMOTE.WORKSPACE.COMPONENT", - "inputs": { - "int_param": {"job_input_type": "literal", "value": "1"}, - "str_param": {"job_input_type": "literal", "value": "abc"}, - }, "name": "result", "type": "command", }, diff --git a/sdk/ml/azure-ai-ml/tests/pipeline_job/e2etests/test_control_flow_pipeline.py b/sdk/ml/azure-ai-ml/tests/pipeline_job/e2etests/test_control_flow_pipeline.py index ec2e131bab87..d053c045b96c 100644 --- a/sdk/ml/azure-ai-ml/tests/pipeline_job/e2etests/test_control_flow_pipeline.py +++ b/sdk/ml/azure-ai-ml/tests/pipeline_job/e2etests/test_control_flow_pipeline.py @@ -1,18 +1,28 @@ from typing import Callable import pytest + +from azure.ai.ml.exceptions import ValidationException from devtools_testutils import AzureRecordedTestCase, is_live from test_utilities.utils import _PYTEST_TIMEOUT_METHOD from azure.ai.ml import MLClient, load_job from azure.ai.ml._schema.pipeline import pipeline_job -from azure.ai.ml._utils.utils import load_yaml from azure.ai.ml.entities._builders import Command, Pipeline from azure.ai.ml.entities._builders.do_while import DoWhile from azure.ai.ml.entities._builders.parallel_for import ParallelFor from .._util import _PIPELINE_JOB_TIMEOUT_SECOND from .test_pipeline_job import assert_job_cancel +from test_utilities.utils import omit_with_wildcard + +omit_fields = [ + "name", + "properties.display_name", + "properties.settings", + "properties.jobs.*._source", + "properties.jobs.*.componentId", +] @pytest.fixture() @@ -44,6 +54,86 @@ class TestConditionalNodeInPipeline(AzureRecordedTestCase): pass +class TestIfElse(TestConditionalNodeInPipeline): + def test_happy_path_if_else(self, client: MLClient, randstr: Callable[[], str]) -> None: + params_override = [{"name": randstr('name')}] + my_job = load_job( + "./tests/test_configs/pipeline_jobs/control_flow/if_else/simple_pipeline.yml", + params_override=params_override, + ) + created_pipeline = assert_job_cancel(my_job, client) + + pipeline_job_dict = created_pipeline._to_rest_object().as_dict() + + pipeline_job_dict = omit_with_wildcard(pipeline_job_dict, *omit_fields) + assert pipeline_job_dict["properties"]["jobs"] == { + 'conditionnode': {'condition': '${{parent.jobs.result.outputs.output}}', + 'false_block': '${{parent.jobs.node1}}', + 'true_block': '${{parent.jobs.node2}}', + 'type': 'if_else'}, + 'node1': {'inputs': {'component_in_number': {'job_input_type': 'literal', + 'value': '1'}}, + 'name': 'node1', + 'type': 'command'}, + 'node2': {'inputs': {'component_in_number': {'job_input_type': 'literal', + 'value': '2'}}, + 'name': 'node2', + 'type': 'command'}, + 'result': {'name': 'result', 'type': 'command'} + } + + def test_if_else_one_branch(self, client: MLClient, randstr: Callable[[], str]) -> None: + params_override = [{"name": randstr('name')}] + my_job = load_job( + "./tests/test_configs/pipeline_jobs/control_flow/if_else/one_branch.yml", + params_override=params_override, + ) + created_pipeline = assert_job_cancel(my_job, client) + + pipeline_job_dict = created_pipeline._to_rest_object().as_dict() + + pipeline_job_dict = omit_with_wildcard(pipeline_job_dict, *omit_fields) + assert pipeline_job_dict["properties"]["jobs"] == { + 'conditionnode': {'condition': '${{parent.jobs.result.outputs.output}}', + 'true_block': '${{parent.jobs.node1}}', + 'type': 'if_else'}, + 'node1': {'inputs': {'component_in_number': {'job_input_type': 'literal', + 'value': '1'}}, + 'name': 'node1', + 'type': 'command'}, + 'result': {'name': 'result', 'type': 'command'} + } + + def test_if_else_literal_condition(self, client: MLClient, randstr: Callable[[], str]) -> None: + params_override = [{"name": randstr('name')}] + my_job = load_job( + "./tests/test_configs/pipeline_jobs/control_flow/if_else/literal_condition.yml", + params_override=params_override, + ) + created_pipeline = assert_job_cancel(my_job, client) + + pipeline_job_dict = created_pipeline._to_rest_object().as_dict() + + pipeline_job_dict = omit_with_wildcard(pipeline_job_dict, *omit_fields) + assert pipeline_job_dict["properties"]["jobs"] == { + 'conditionnode': {'condition': True, + 'true_block': '${{parent.jobs.node1}}', + 'type': 'if_else'}, + 'node1': {'inputs': {'component_in_number': {'job_input_type': 'literal', + 'value': '1'}}, + 'name': 'node1', + 'type': 'command'} + } + + def test_if_else_invalid_case(self, client: MLClient, randstr: Callable[[], str]) -> None: + my_job = load_job( + "./tests/test_configs/pipeline_jobs/control_flow/if_else/invalid_binding.yml", + ) + with pytest.raises(ValidationException) as e: + my_job._validate(raise_error=True) + assert '"path": "jobs.conditionnode.true_block",' in str(e.value) + assert "'true_block' of dsl.condition has invalid binding expression:" in str(e.value) + class TestDoWhile(TestConditionalNodeInPipeline): def test_pipeline_with_do_while_node(self, client: MLClient, randstr: Callable[[], str]) -> None: params_override = [{"name": randstr('name')}] diff --git a/sdk/ml/azure-ai-ml/tests/recordings/dsl/e2etests/test_controlflow_pipeline.pyTestIfElsetest_dsl_condition_pipeline.json b/sdk/ml/azure-ai-ml/tests/recordings/dsl/e2etests/test_controlflow_pipeline.pyTestIfElsetest_dsl_condition_pipeline.json index e47aeb201dcb..bdf552153558 100644 --- a/sdk/ml/azure-ai-ml/tests/recordings/dsl/e2etests/test_controlflow_pipeline.pyTestIfElsetest_dsl_condition_pipeline.json +++ b/sdk/ml/azure-ai-ml/tests/recordings/dsl/e2etests/test_controlflow_pipeline.pyTestIfElsetest_dsl_condition_pipeline.json @@ -7,7 +7,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -15,11 +15,11 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:35:45 GMT", + "Date": "Tue, 10 Jan 2023 06:37:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-af761172fe0285541ce89ca824152843-d3384c43f78fc62f-00\u0022", + "Server-Timing": "traceparent;desc=\u002200-363b6d03ec8a7d0eb9c0f54e55bd63b7-c6c998bf907faed3-00\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ @@ -28,11 +28,11 @@ ], "x-aml-cluster": "vienna-test-westus2-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c6f0ed79-23e5-4b5b-99be-868e160717da", - "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-correlation-request-id": "fd2b32f6-fb16-4602-acc0-ef46c99738a9", + "x-ms-ratelimit-remaining-subscription-reads": "11999", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053545Z:c6f0ed79-23e5-4b5b-99be-868e160717da", - "x-request-time": "0.217" + "x-ms-routing-request-id": "JAPANEAST:20230110T063729Z:fd2b32f6-fb16-4602-acc0-ef46c99738a9", + "x-request-time": "0.240" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/computes/cpu-cluster", @@ -60,18 +60,18 @@ "nodeIdleTimeBeforeScaleDown": "PT2M" }, "subnet": null, - "currentNodeCount": 4, + "currentNodeCount": 6, "targetNodeCount": 6, "nodeStateCounts": { "preparingNodeCount": 0, - "runningNodeCount": 4, + "runningNodeCount": 6, "idleNodeCount": 0, "unusableNodeCount": 0, "leavingNodeCount": 0, "preemptedNodeCount": 0 }, - "allocationState": "Resizing", - "allocationStateTransitionTime": "2023-01-03T05:34:15.428\u002B00:00", + "allocationState": "Steady", + "allocationStateTransitionTime": "2023-01-06T18:59:34.232\u002B00:00", "errors": null, "remoteLoginPortPublicAccess": "Enabled", "osType": "Linux", @@ -91,7 +91,7 @@ "Connection": "keep-alive", "Content-Length": "379", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" }, "RequestBody": { "properties": { @@ -106,20 +106,20 @@ "Cache-Control": "no-cache", "Content-Length": "1267", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:35:52 GMT", + "Date": "Tue, 10 Jan 2023 06:37:34 GMT", "Expires": "-1", "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b?api-version=2022-05-01", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-9435b351e81f1a03ff77863bcca4c89a-0fb1c6a8013dc62e-00\u0022", + "Server-Timing": "traceparent;desc=\u002200-e7a323abb373659892fe74dc02894614-39ecdc51f0c5b25f-00\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-test-westus2-02", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4bae2b66-dd43-43c4-8713-e9af8a6d065e", + "x-ms-correlation-request-id": "5ffb99f6-57b8-4eb8-b3e8-42ab0363891b", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053552Z:4bae2b66-dd43-43c4-8713-e9af8a6d065e", - "x-request-time": "3.312" + "x-ms-routing-request-id": "JAPANEAST:20230110T063734Z:5ffb99f6-57b8-4eb8-b3e8-42ab0363891b", + "x-request-time": "1.825" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b", @@ -155,7 +155,7 @@ "Connection": "keep-alive", "Content-Length": "395", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" }, "RequestBody": { "properties": { @@ -170,20 +170,20 @@ "Cache-Control": "no-cache", "Content-Length": "1324", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:35:53 GMT", + "Date": "Tue, 10 Jan 2023 06:37:36 GMT", "Expires": "-1", "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/65a57bb8969551bd51f7d3e2f734e76e?api-version=2022-05-01", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-9a506dbaab15a3ad3a95911e5bf5de03-e3cb2dc8c88edc03-00\u0022", + "Server-Timing": "traceparent;desc=\u002200-549c98a8fced0767c6978bbf9c745bc3-c5c5a5952ba6f97c-00\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-test-westus2-02", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "df13a48f-ef48-4da1-b286-3de49581fb66", + "x-ms-correlation-request-id": "311c6052-2027-4562-8902-179653d096ae", "x-ms-ratelimit-remaining-subscription-writes": "1198", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053554Z:df13a48f-ef48-4da1-b286-3de49581fb66", - "x-request-time": "0.930" + "x-ms-routing-request-id": "JAPANEAST:20230110T063736Z:311c6052-2027-4562-8902-179653d096ae", + "x-request-time": "1.542" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/65a57bb8969551bd51f7d3e2f734e76e", @@ -217,7 +217,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -225,24 +225,24 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:35:54 GMT", + "Date": "Tue, 10 Jan 2023 06:37:36 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-f97d39da91692618af90ab0d35e8c405-5e1cb96d95f731cf-00\u0022", + "Server-Timing": "traceparent;desc=\u002200-8643005003132adff553fa6e64aad083-7f7e10161dbe73b7-00\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-test-westus2-02", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e526984f-8af3-4975-a2ff-892e07f0afd9", - "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-correlation-request-id": "f2dcc57d-6041-4fc7-a1c4-196b1ed7430e", + "x-ms-ratelimit-remaining-subscription-reads": "11998", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053554Z:e526984f-8af3-4975-a2ff-892e07f0afd9", - "x-request-time": "0.092" + "x-ms-routing-request-id": "JAPANEAST:20230110T063737Z:f2dcc57d-6041-4fc7-a1c4-196b1ed7430e", + "x-request-time": "0.097" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore", @@ -281,7 +281,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -289,314 +289,27 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:35:55 GMT", + "Date": "Tue, 10 Jan 2023 06:37:37 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-c0b04aaafb98c816d37486d69c7cfc61-b9a00f1a3ccef4cf-00\u0022", + "Server-Timing": "traceparent;desc=\u002200-3e6a83f174fb5c7cab54f27040f0114b-9784f2611cfa31a3-00\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-test-westus2-02", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d8577c0f-15d5-4b90-82a0-5b31628afaab", + "x-ms-correlation-request-id": "1632b94d-4e9e-4b07-9918-2bfd05bceea7", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053556Z:d8577c0f-15d5-4b90-82a0-5b31628afaab", - "x-request-time": "0.586" + "x-ms-routing-request-id": "JAPANEAST:20230110T063738Z:1632b94d-4e9e-4b07-9918-2bfd05bceea7", + "x-request-time": "0.562" }, "ResponseBody": { "secretsType": "AccountKey", "key": "dGhpcyBpcyBmYWtlIGtleQ==" } }, - { - "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/component_with_conditional_output/entry.py", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/xml", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-storage-blob/12.14.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)", - "x-ms-date": "Tue, 03 Jan 2023 05:35:56 GMT", - "x-ms-version": "2021-08-06" - }, - "RequestBody": null, - "StatusCode": 200, - "ResponseHeaders": { - "Accept-Ranges": "bytes", - "Content-Length": "594", - "Content-MD5": "42TEgML73MX8PtvISz5yXA==", - "Content-Type": "application/octet-stream", - "Date": "Tue, 03 Jan 2023 05:35:56 GMT", - "ETag": "\u00220x8DAE7F9E66F9CF3\u0022", - "Last-Modified": "Tue, 27 Dec 2022 11:02:52 GMT", - "Server": [ - "Windows-Azure-Blob/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Vary": "Origin", - "x-ms-access-tier": "Hot", - "x-ms-access-tier-inferred": "true", - "x-ms-blob-type": "BlockBlob", - "x-ms-creation-time": "Tue, 27 Dec 2022 11:02:51 GMT", - "x-ms-lease-state": "available", - "x-ms-lease-status": "unlocked", - "x-ms-meta-name": "f31bfc14-c592-422c-bed2-60b4e7357dc0", - "x-ms-meta-upload_status": "completed", - "x-ms-meta-version": "1", - "x-ms-server-encrypted": "true", - "x-ms-version": "2021-08-06" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/az-ml-artifacts/00000000000000000000000000000000/component_with_conditional_output/entry.py", - "RequestMethod": "HEAD", - "RequestHeaders": { - "Accept": "application/xml", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azsdk-python-storage-blob/12.14.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)", - "x-ms-date": "Tue, 03 Jan 2023 05:35:57 GMT", - "x-ms-version": "2021-08-06" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Date": "Tue, 03 Jan 2023 05:35:57 GMT", - "Server": [ - "Windows-Azure-Blob/1.0", - "Microsoft-HTTPAPI/2.0" - ], - "Transfer-Encoding": "chunked", - "Vary": "Origin", - "x-ms-error-code": "BlobNotFound", - "x-ms-version": "2021-08-06" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/f31bfc14-c592-422c-bed2-60b4e7357dc0/versions/1?api-version=2022-05-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Content-Length": "322", - "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": { - "properties": { - "properties": { - "hash_sha256": "0000000000000", - "hash_version": "0000000000000" - }, - "isAnonymous": true, - "isArchived": false, - "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/component_with_conditional_output" - } - }, - "StatusCode": 200, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Encoding": "gzip", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:35:58 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-6fbeab581ca0800d05fade642048c001-d9db3ed901864c36-00\u0022", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], - "x-aml-cluster": "vienna-test-westus2-02", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "519335d0-2e2c-45bf-bc3f-ef2f140e1fec", - "x-ms-ratelimit-remaining-subscription-writes": "1197", - "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053558Z:519335d0-2e2c-45bf-bc3f-ef2f140e1fec", - "x-request-time": "0.911" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/f31bfc14-c592-422c-bed2-60b4e7357dc0/versions/1", - "name": "1", - "type": "Microsoft.MachineLearningServices/workspaces/codes/versions", - "properties": { - "description": null, - "tags": {}, - "properties": { - "hash_sha256": "0000000000000", - "hash_version": "0000000000000" - }, - "isArchived": false, - "isAnonymous": false, - "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/component_with_conditional_output" - }, - "systemData": { - "createdAt": "2022-12-27T11:02:53.4631392\u002B00:00", - "createdBy": "Han Wang", - "createdByType": "User", - "lastModifiedAt": "2023-01-03T05:35:58.6135339\u002B00:00", - "lastModifiedBy": "Xingzhi Zhang", - "lastModifiedByType": "User" - } - } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/c3f79d7e-03d7-b290-3692-9c05c45c2697?api-version=2022-05-01", - "RequestMethod": "PUT", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Content-Length": "1403", - "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": { - "properties": { - "description": "module run logic goes here", - "properties": {}, - "tags": { - "codegenBy": "mldesigner" - }, - "isAnonymous": true, - "isArchived": false, - "componentSpec": { - "command": "mldesigner execute --source entry.py --name basic_component --inputs str_param=${{inputs.str_param}} int_param=${{inputs.int_param}} --outputs output1=${{outputs.output1}} output2=${{outputs.output2}} output3=${{outputs.output3}} output=${{outputs.output}}", - "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/f31bfc14-c592-422c-bed2-60b4e7357dc0/versions/1", - "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b", - "name": "basic_component", - "description": "module run logic goes here", - "tags": { - "codegenBy": "mldesigner" - }, - "version": "1", - "display_name": "basic_component", - "is_deterministic": true, - "inputs": { - "str_param": { - "type": "string" - }, - "int_param": { - "type": "integer" - } - }, - "outputs": { - "output1": { - "type": "boolean", - "is_control": true - }, - "output2": { - "type": "boolean", - "is_control": true - }, - "output3": { - "type": "boolean" - }, - "output": { - "type": "boolean", - "is_control": true - } - }, - "type": "command", - "_source": "YAML.COMPONENT" - } - } - }, - "StatusCode": 201, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2573", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:36:00 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/c3f79d7e-03d7-b290-3692-9c05c45c2697?api-version=2022-05-01", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-0dc6545c9696accd8909743fc9e6e9a3-f7169aa886c21c06-00\u0022", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-test-westus2-02", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "c3a7a459-09f4-4194-8f96-b03c2355ed6d", - "x-ms-ratelimit-remaining-subscription-writes": "1196", - "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053600Z:c3a7a459-09f4-4194-8f96-b03c2355ed6d", - "x-request-time": "1.558" - }, - "ResponseBody": { - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/29b50c36-d348-4bfa-b403-75d0c8bc0efa", - "name": "29b50c36-d348-4bfa-b403-75d0c8bc0efa", - "type": "Microsoft.MachineLearningServices/workspaces/components/versions", - "properties": { - "description": null, - "tags": { - "codegenBy": "mldesigner" - }, - "properties": {}, - "isArchived": false, - "isAnonymous": true, - "componentSpec": { - "name": "azureml_anonymous", - "version": "29b50c36-d348-4bfa-b403-75d0c8bc0efa", - "display_name": "basic_component", - "is_deterministic": "True", - "type": "command", - "description": "module run logic goes here", - "tags": { - "codegenBy": "mldesigner" - }, - "outputs": { - "output1": { - "type": "boolean", - "is_control": "True" - }, - "output2": { - "type": "boolean", - "is_control": "True" - }, - "output3": { - "type": "boolean" - }, - "output": { - "type": "boolean", - "is_control": "True" - } - }, - "inputs": { - "str_param": { - "type": "string", - "optional": "False" - }, - "int_param": { - "type": "integer", - "optional": "False" - } - }, - "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/f31bfc14-c592-422c-bed2-60b4e7357dc0/versions/1", - "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b", - "resources": { - "instance_count": "1" - }, - "command": "mldesigner execute --source entry.py --name basic_component --inputs str_param=${{inputs.str_param}} int_param=${{inputs.int_param}} --outputs output1=${{outputs.output1}} output2=${{outputs.output2}} output3=${{outputs.output3}} output=${{outputs.output}}", - "$schema": "https://componentsdk.azureedge.net/jsonschema/CommandComponent.json" - } - }, - "systemData": { - "createdAt": "2023-01-03T05:36:00.4396998\u002B00:00", - "createdBy": "Xingzhi Zhang", - "createdByType": "User", - "lastModifiedAt": "2023-01-03T05:36:00.4396998\u002B00:00", - "lastModifiedBy": "Xingzhi Zhang", - "lastModifiedByType": "User" - } - } - }, { "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore?api-version=2022-05-01", "RequestMethod": "GET", @@ -604,7 +317,7 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -612,24 +325,24 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:36:01 GMT", + "Date": "Tue, 10 Jan 2023 06:37:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-b2fdec8f5eec9aeb3195203487ca3261-54b33e404ed8f1ce-00\u0022", + "Server-Timing": "traceparent;desc=\u002200-8ca8dd712e3519a8dc4b87121eaf9504-15b132434c9b2ec3-00\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-test-westus2-02", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "e2f20309-f819-4224-8492-07c528cd0acf", - "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-correlation-request-id": "ab0e361c-c35b-42c7-b09a-b803265ca9ae", + "x-ms-ratelimit-remaining-subscription-reads": "11999", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053601Z:e2f20309-f819-4224-8492-07c528cd0acf", - "x-request-time": "0.084" + "x-ms-routing-request-id": "JAPANEAST:20230110T063739Z:ab0e361c-c35b-42c7-b09a-b803265ca9ae", + "x-request-time": "0.116" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore", @@ -668,7 +381,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" }, "RequestBody": null, "StatusCode": 200, @@ -676,21 +389,21 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:36:01 GMT", + "Date": "Tue, 10 Jan 2023 06:37:39 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-ebdc399402696252a6ed3dceae990876-5657f4c726e8d8ed-00\u0022", + "Server-Timing": "traceparent;desc=\u002200-a19da54619a08ec70309cfa6e4c627e3-6ef186614682b35c-00\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-test-westus2-02", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "f74c0daf-f8a8-44b5-b0d4-0df57ecb74c2", - "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-correlation-request-id": "51a6ca1d-3a63-4cba-871b-0a5167298f43", + "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053602Z:f74c0daf-f8a8-44b5-b0d4-0df57ecb74c2", - "x-request-time": "0.115" + "x-ms-routing-request-id": "JAPANEAST:20230110T063739Z:51a6ca1d-3a63-4cba-871b-0a5167298f43", + "x-request-time": "0.098" }, "ResponseBody": { "secretsType": "AccountKey", @@ -698,26 +411,66 @@ } }, { - "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/python/sample1.csv", + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/python/sample1.csv", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 06:37:37 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "508", + "Content-MD5": "dUQjYq1qrTeqLOaZ4N2AUQ==", + "Content-Type": "application/octet-stream", + "Date": "Tue, 10 Jan 2023 06:37:39 GMT", + "ETag": "\u00220x8DA9D482EE600C0\u0022", + "Last-Modified": "Fri, 23 Sep 2022 09:44:17 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": "Origin", + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Fri, 23 Sep 2022 09:44:17 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-meta-name": "92e51c4c-40c7-4f95-ba55-e3a63d7d7c14", + "x-ms-meta-upload_status": "completed", + "x-ms-meta-version": "1", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/component_with_conditional_output/entry.py", "RequestMethod": "HEAD", "RequestHeaders": { "Accept": "application/xml", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-storage-blob/12.14.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)", - "x-ms-date": "Tue, 03 Jan 2023 05:36:02 GMT", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 06:37:38 GMT", "x-ms-version": "2021-08-06" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Accept-Ranges": "bytes", - "Content-Length": "508", - "Content-MD5": "dUQjYq1qrTeqLOaZ4N2AUQ==", + "Content-Length": "544", + "Content-MD5": "ckhCMLno0vnEJhuGVfkbnA==", "Content-Type": "application/octet-stream", - "Date": "Tue, 03 Jan 2023 05:36:02 GMT", - "ETag": "\u00220x8DA9D482EE600C0\u0022", - "Last-Modified": "Fri, 23 Sep 2022 09:44:17 GMT", + "Date": "Tue, 10 Jan 2023 06:37:40 GMT", + "ETag": "\u00220x8DAF2D33678CC8F\u0022", + "Last-Modified": "Tue, 10 Jan 2023 06:23:39 GMT", "Server": [ "Windows-Azure-Blob/1.0", "Microsoft-HTTPAPI/2.0" @@ -726,10 +479,10 @@ "x-ms-access-tier": "Hot", "x-ms-access-tier-inferred": "true", "x-ms-blob-type": "BlockBlob", - "x-ms-creation-time": "Fri, 23 Sep 2022 09:44:17 GMT", + "x-ms-creation-time": "Tue, 10 Jan 2023 06:23:38 GMT", "x-ms-lease-state": "available", "x-ms-lease-status": "unlocked", - "x-ms-meta-name": "92e51c4c-40c7-4f95-ba55-e3a63d7d7c14", + "x-ms-meta-name": "dab5eb3a-726c-478e-a7d0-5ecb4b47e476", "x-ms-meta-upload_status": "completed", "x-ms-meta-version": "1", "x-ms-server-encrypted": "true", @@ -744,14 +497,40 @@ "Accept": "application/xml", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azsdk-python-storage-blob/12.14.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)", - "x-ms-date": "Tue, 03 Jan 2023 05:36:02 GMT", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 06:37:39 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Date": "Tue, 10 Jan 2023 06:37:40 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "Vary": "Origin", + "x-ms-error-code": "BlobNotFound", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/az-ml-artifacts/00000000000000000000000000000000/component_with_conditional_output/entry.py", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 06:37:39 GMT", "x-ms-version": "2021-08-06" }, "RequestBody": null, "StatusCode": 404, "ResponseHeaders": { - "Date": "Tue, 03 Jan 2023 05:36:02 GMT", + "Date": "Tue, 10 Jan 2023 06:37:40 GMT", "Server": [ "Windows-Azure-Blob/1.0", "Microsoft-HTTPAPI/2.0" @@ -763,6 +542,77 @@ }, "ResponseBody": null }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/dab5eb3a-726c-478e-a7d0-5ecb4b47e476/versions/1?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "322", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "properties": { + "hash_sha256": "0000000000000", + "hash_version": "0000000000000" + }, + "isAnonymous": true, + "isArchived": false, + "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/component_with_conditional_output" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:37:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-c18b141daaa4f65c202712dec7ff0750-63e90b1954dd799e-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "49a4155e-69de-40bc-84e9-5f566f364db6", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063741Z:49a4155e-69de-40bc-84e9-5f566f364db6", + "x-request-time": "0.381" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/dab5eb3a-726c-478e-a7d0-5ecb4b47e476/versions/1", + "name": "1", + "type": "Microsoft.MachineLearningServices/workspaces/codes/versions", + "properties": { + "description": null, + "tags": {}, + "properties": { + "hash_sha256": "0000000000000", + "hash_version": "0000000000000" + }, + "isArchived": false, + "isAnonymous": false, + "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/component_with_conditional_output" + }, + "systemData": { + "createdAt": "2023-01-10T06:23:40.65355\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:37:41.2148057\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, { "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/92e51c4c-40c7-4f95-ba55-e3a63d7d7c14/versions/1?api-version=2022-05-01", "RequestMethod": "PUT", @@ -772,7 +622,7 @@ "Connection": "keep-alive", "Content-Length": "295", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" }, "RequestBody": { "properties": { @@ -790,24 +640,24 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:36:03 GMT", + "Date": "Tue, 10 Jan 2023 06:37:41 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-eacd3e1a2bbec38ed71d35a74d718f18-7199aad2b5b8e072-00\u0022", + "Server-Timing": "traceparent;desc=\u002200-05a9b084177b21f02743d6bff0c49c83-d44b4385a5b19674-00\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", "Vary": [ "Accept-Encoding", "Accept-Encoding" ], - "x-aml-cluster": "vienna-test-westus2-02", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "90b1b9e7-7eb7-484f-8785-c5be22385284", - "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-correlation-request-id": "1da4e7bd-e511-4e86-87bd-831d1c116b8b", + "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053603Z:90b1b9e7-7eb7-484f-8785-c5be22385284", - "x-request-time": "0.353" + "x-ms-routing-request-id": "JAPANEAST:20230110T063741Z:1da4e7bd-e511-4e86-87bd-831d1c116b8b", + "x-request-time": "0.394" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/92e51c4c-40c7-4f95-ba55-e3a63d7d7c14/versions/1", @@ -828,14 +678,14 @@ "createdAt": "2022-09-23T09:44:19.3941658\u002B00:00", "createdBy": "Ying Chen", "createdByType": "User", - "lastModifiedAt": "2023-01-03T05:36:03.4400283\u002B00:00", - "lastModifiedBy": "Xingzhi Zhang", + "lastModifiedAt": "2023-01-10T06:37:41.5184419\u002B00:00", + "lastModifiedBy": "Han Wang", "lastModifiedByType": "User" } } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/24bd4b3b-0552-b290-f7e3-f3c55ccdefd0?api-version=2022-05-01", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/24bd4b3b-0552-b290-f7e3-f3c55ccdefd0?api-version=2022-10-01", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", @@ -843,7 +693,7 @@ "Connection": "keep-alive", "Content-Length": "1219", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" }, "RequestBody": { "properties": { @@ -887,20 +737,20 @@ "Cache-Control": "no-cache", "Content-Length": "2057", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:36:04 GMT", + "Date": "Tue, 10 Jan 2023 06:37:43 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/24bd4b3b-0552-b290-f7e3-f3c55ccdefd0?api-version=2022-05-01", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/24bd4b3b-0552-b290-f7e3-f3c55ccdefd0?api-version=2022-10-01", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-e8d5aadd46312581d6ec89ccfa9e5cac-684d988f5413de7f-00\u0022", + "Server-Timing": "traceparent;desc=\u002200-f496d8e8fabeec4004b524ab3e5f4c97-76af13d9ab42d67b-00\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-test-westus2-02", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fc15190e-2027-4e95-8467-59530a267dca", - "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-correlation-request-id": "e80bedbb-abd4-4168-b462-8e91712245ff", + "x-ms-ratelimit-remaining-subscription-writes": "1196", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053604Z:fc15190e-2027-4e95-8467-59530a267dca", - "x-request-time": "0.522" + "x-ms-routing-request-id": "JAPANEAST:20230110T063744Z:e80bedbb-abd4-4168-b462-8e91712245ff", + "x-request-time": "0.406" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/8df5798c-904e-43c3-aede-ffe0f51c9e74", @@ -953,6 +803,138 @@ } } }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/74ab01b3-ef9f-a2ef-382f-92c5498ce18f?api-version=2022-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "1251", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "description": "module run logic goes here", + "properties": {}, + "tags": { + "codegenBy": "mldesigner" + }, + "isAnonymous": true, + "isArchived": false, + "componentSpec": { + "command": "mldesigner execute --source entry.py --name basic_component --outputs output1=${{outputs.output1}} output2=${{outputs.output2}} output3=${{outputs.output3}} output=${{outputs.output}}", + "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/dab5eb3a-726c-478e-a7d0-5ecb4b47e476/versions/1", + "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b", + "name": "basic_component", + "description": "module run logic goes here", + "tags": { + "codegenBy": "mldesigner" + }, + "version": "1", + "display_name": "basic_component", + "is_deterministic": true, + "outputs": { + "output1": { + "type": "boolean", + "is_control": true + }, + "output2": { + "type": "boolean", + "is_control": true + }, + "output3": { + "type": "boolean" + }, + "output": { + "type": "boolean", + "is_control": true + } + }, + "type": "command", + "_source": "YAML.COMPONENT" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2279", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:37:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/74ab01b3-ef9f-a2ef-382f-92c5498ce18f?api-version=2022-10-01", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-4787e9490ba68534bb85960177474752-046869b934ce29af-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "edfa4a9c-696a-496e-90ac-2ce6ca07070b", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063744Z:edfa4a9c-696a-496e-90ac-2ce6ca07070b", + "x-request-time": "1.173" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/19cccaab-2e68-4ba6-82dd-a63d3a8da353", + "name": "19cccaab-2e68-4ba6-82dd-a63d3a8da353", + "type": "Microsoft.MachineLearningServices/workspaces/components/versions", + "properties": { + "description": null, + "tags": { + "codegenBy": "mldesigner" + }, + "properties": {}, + "isArchived": false, + "isAnonymous": true, + "componentSpec": { + "name": "azureml_anonymous", + "version": "19cccaab-2e68-4ba6-82dd-a63d3a8da353", + "display_name": "basic_component", + "is_deterministic": "True", + "type": "command", + "description": "module run logic goes here", + "tags": { + "codegenBy": "mldesigner" + }, + "outputs": { + "output1": { + "type": "boolean", + "is_control": "True" + }, + "output2": { + "type": "boolean", + "is_control": "True" + }, + "output3": { + "type": "boolean" + }, + "output": { + "type": "boolean", + "is_control": "True" + } + }, + "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/dab5eb3a-726c-478e-a7d0-5ecb4b47e476/versions/1", + "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b", + "resources": { + "instance_count": "1" + }, + "command": "mldesigner execute --source entry.py --name basic_component --outputs output1=${{outputs.output1}} output2=${{outputs.output2}} output3=${{outputs.output3}} output=${{outputs.output}}", + "$schema": "https://componentsdk.azureedge.net/jsonschema/CommandComponent.json" + } + }, + "systemData": { + "createdAt": "2023-01-10T06:37:44.4310432\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:37:44.4310432\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, { "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/000000000000000000000?api-version=2022-10-01-preview", "RequestMethod": "PUT", @@ -960,9 +942,9 @@ "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Content-Length": "1796", + "Content-Length": "1666", "Content-Type": "application/json", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" }, "RequestBody": { "properties": { @@ -978,18 +960,8 @@ "result": { "name": "result", "type": "command", - "inputs": { - "str_param": { - "job_input_type": "literal", - "value": "abc" - }, - "int_param": { - "job_input_type": "literal", - "value": "1" - } - }, "_source": "YAML.COMPONENT", - "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/29b50c36-d348-4bfa-b403-75d0c8bc0efa" + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/19cccaab-2e68-4ba6-82dd-a63d3a8da353" }, "node1": { "name": "node1", @@ -1031,22 +1003,22 @@ "StatusCode": 201, "ResponseHeaders": { "Cache-Control": "no-cache", - "Content-Length": "4035", + "Content-Length": "3790", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:36:06 GMT", + "Date": "Tue, 10 Jan 2023 06:37:47 GMT", "Expires": "-1", "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/000000000000000000000?api-version=2022-10-01-preview", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-13962cfddf9c5813bca7664f74abeb3a-66bcf03a7d71d43a-00\u0022", + "Server-Timing": "traceparent;desc=\u002200-af3ae26e35888f8e879187991e28ff2d-f68ec14ca8db927c-00\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-test-westus2-02", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "455e8dea-0ed1-41d3-8480-4f23ba70eb9d", - "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-correlation-request-id": "7d3b134e-b2c1-47d3-8892-9bb9257db61d", + "x-ms-ratelimit-remaining-subscription-writes": "1197", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053607Z:455e8dea-0ed1-41d3-8480-4f23ba70eb9d", - "x-request-time": "2.427" + "x-ms-routing-request-id": "JAPANEAST:20230110T063748Z:7d3b134e-b2c1-47d3-8892-9bb9257db61d", + "x-request-time": "2.636" }, "ResponseBody": { "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/000000000000000000000", @@ -1102,18 +1074,8 @@ "result": { "name": "result", "type": "command", - "inputs": { - "str_param": { - "job_input_type": "literal", - "value": "abc" - }, - "int_param": { - "job_input_type": "literal", - "value": "1" - } - }, "_source": "YAML.COMPONENT", - "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/29b50c36-d348-4bfa-b403-75d0c8bc0efa" + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/19cccaab-2e68-4ba6-82dd-a63d3a8da353" }, "node1": { "name": "node1", @@ -1151,8 +1113,8 @@ "sourceJobId": null }, "systemData": { - "createdAt": "2023-01-03T05:36:06.8538752\u002B00:00", - "createdBy": "Xingzhi Zhang", + "createdAt": "2023-01-10T06:37:47.3660729\u002B00:00", + "createdBy": "Han Wang", "createdByType": "User" } } @@ -1165,7 +1127,7 @@ "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "Content-Length": "0", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" }, "RequestBody": null, "StatusCode": 202, @@ -1173,20 +1135,20 @@ "Cache-Control": "no-cache", "Content-Length": "4", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:36:10 GMT", + "Date": "Tue, 10 Jan 2023 06:37:51 GMT", "Expires": "-1", "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/centraluseuap/mfeOperationResults/jc:e61cd5e2-512f-475e-9842-5e2a973993b8:000000000000000000000?api-version=2022-10-01-preview", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-test-westus2-02", + "x-aml-cluster": "vienna-test-westus2-01", "X-Content-Type-Options": "nosniff", "x-ms-async-operation-timeout": "PT1H", - "x-ms-correlation-request-id": "86e95447-fbbb-434d-8a20-361a113ce289", - "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-correlation-request-id": "c9258fb4-fa1c-4af5-bb48-d86edad87f14", + "x-ms-ratelimit-remaining-subscription-writes": "1198", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053611Z:86e95447-fbbb-434d-8a20-361a113ce289", - "x-request-time": "1.273" + "x-ms-routing-request-id": "JAPANEAST:20230110T063751Z:c9258fb4-fa1c-4af5-bb48-d86edad87f14", + "x-request-time": "1.044" }, "ResponseBody": "null" }, @@ -1197,57 +1159,26 @@ "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "2", - "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 03 Jan 2023 05:36:11 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/centraluseuap/mfeOperationResults/jc:e61cd5e2-512f-475e-9842-5e2a973993b8:000000000000000000000?api-version=2022-10-01-preview", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-test-westus2-02", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "db5f204c-d5ed-444f-affa-e67a2262707d", - "x-ms-ratelimit-remaining-subscription-reads": "11995", - "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053611Z:db5f204c-d5ed-444f-affa-e67a2262707d", - "x-request-time": "0.064" - }, - "ResponseBody": {} - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/centraluseuap/mfeOperationResults/jc:e61cd5e2-512f-475e-9842-5e2a973993b8:000000000000000000000?api-version=2022-10-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "*/*", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.3.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.9.10 (Windows-10-10.0.22621-SP0)" + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Tue, 03 Jan 2023 05:36:42 GMT", + "Date": "Tue, 10 Jan 2023 06:38:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", - "Server-Timing": "traceparent;desc=\u002200-6c446b37f1223644d56a9ab16784be3b-a4724ac1c2ff116b-00\u0022", + "Server-Timing": "traceparent;desc=\u002200-396abc9087bfb020a32c95d9ef41f4e9-58bde9f71a7184cc-00\u0022", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "x-aml-cluster": "vienna-test-westus2-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "da88a509-5a71-45c6-a6b5-3c87724b4581", - "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-correlation-request-id": "5afe78d2-7b56-4c21-a11f-8df6f054d305", + "x-ms-ratelimit-remaining-subscription-reads": "11998", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "JAPANEAST:20230103T053642Z:da88a509-5a71-45c6-a6b5-3c87724b4581", - "x-request-time": "0.051" + "x-ms-routing-request-id": "JAPANEAST:20230110T063822Z:5afe78d2-7b56-4c21-a11f-8df6f054d305", + "x-request-time": "0.030" }, "ResponseBody": null } diff --git a/sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_happy_path_if_else.json b/sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_happy_path_if_else.json new file mode 100644 index 000000000000..d465aec1b838 --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_happy_path_if_else.json @@ -0,0 +1,1153 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "379", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "isAnonymous": true, + "isArchived": false, + "condaFile": "channels:\n- defaults\ndependencies:\n- python=3.8.12\n- pip=21.2.2\n- pip:\n - --extra-index-url=https://azuremlsdktestpypi.azureedge.net/sdk-cli-v2\n - mldesigner==0.0.72212755\n - mlflow\n - azureml-mlflow\nname: default_environment\n", + "image": "mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1267", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:32:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b?api-version=2022-05-01", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-1f5a47741c0c40830509a0058c3de966-92e599ecbdd848e7-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fc1523d1-43c4-445a-a483-025ad1ee57f1", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063254Z:fc1523d1-43c4-445a-a483-025ad1ee57f1", + "x-request-time": "1.332" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b", + "name": "de330be7295a60292e69e4d0aca3cd6b", + "type": "Microsoft.MachineLearningServices/workspaces/environments/versions", + "properties": { + "description": null, + "tags": {}, + "properties": {}, + "isArchived": false, + "isAnonymous": true, + "environmentType": "UserCreated", + "image": "mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04", + "condaFile": "{\n \u0022channels\u0022: [\n \u0022defaults\u0022\n ],\n \u0022dependencies\u0022: [\n \u0022python=3.8.12\u0022,\n \u0022pip=21.2.2\u0022,\n {\n \u0022pip\u0022: [\n \u0022--extra-index-url=https://azuremlsdktestpypi.azureedge.net/sdk-cli-v2\u0022,\n \u0022mldesigner==0.0.72212755\u0022,\n \u0022mlflow\u0022,\n \u0022azureml-mlflow\u0022\n ]\n }\n ],\n \u0022name\u0022: \u0022default_environment\u0022\n}", + "osType": "Linux" + }, + "systemData": { + "createdAt": "2022-10-12T09:36:02.7844653\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2022-10-12T09:36:02.7844653\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "269", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "isAnonymous": true, + "isArchived": false, + "condaFile": "channels:\n- conda-forge\ndependencies:\n- python=3.7.9\n- pip\n- pip:\n - pyjokes\nname: demo_env\n", + "image": "mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.0.3-cudnn8-ubuntu18.04:20210405.v1" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1130", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:32:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50?api-version=2022-05-01", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-fdc8896363914ad9c055af92a879772e-1e5f84093517b75c-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3a875a43-af30-4592-8e1e-ccfb1799e4d9", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063255Z:3a875a43-af30-4592-8e1e-ccfb1799e4d9", + "x-request-time": "1.111" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50", + "name": "17c075d9307dbb12fb04c2cbf7087b50", + "type": "Microsoft.MachineLearningServices/workspaces/environments/versions", + "properties": { + "description": null, + "tags": {}, + "properties": {}, + "isArchived": false, + "isAnonymous": true, + "environmentType": "UserCreated", + "image": "mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.0.3-cudnn8-ubuntu18.04:20210405.v1", + "condaFile": "{\n \u0022channels\u0022: [\n \u0022conda-forge\u0022\n ],\n \u0022dependencies\u0022: [\n \u0022python=3.7.9\u0022,\n \u0022pip\u0022,\n {\n \u0022pip\u0022: [\n \u0022pyjokes\u0022\n ]\n }\n ],\n \u0022name\u0022: \u0022demo_env\u0022\n}", + "osType": "Linux" + }, + "systemData": { + "createdAt": "2023-01-10T06:23:23.5322997\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:23:23.5322997\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "269", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "isAnonymous": true, + "isArchived": false, + "condaFile": "channels:\n- conda-forge\ndependencies:\n- python=3.7.9\n- pip\n- pip:\n - pyjokes\nname: demo_env\n", + "image": "mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.0.3-cudnn8-ubuntu18.04:20210405.v1" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1130", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:32:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50?api-version=2022-05-01", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-7426de5255f670d78278a3388cbe81e9-bb07e9b39f7bf562-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cbb2c16f-9910-4d1c-993d-9cd18368f92e", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063256Z:cbb2c16f-9910-4d1c-993d-9cd18368f92e", + "x-request-time": "0.166" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50", + "name": "17c075d9307dbb12fb04c2cbf7087b50", + "type": "Microsoft.MachineLearningServices/workspaces/environments/versions", + "properties": { + "description": null, + "tags": {}, + "properties": {}, + "isArchived": false, + "isAnonymous": true, + "environmentType": "UserCreated", + "image": "mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.0.3-cudnn8-ubuntu18.04:20210405.v1", + "condaFile": "{\n \u0022channels\u0022: [\n \u0022conda-forge\u0022\n ],\n \u0022dependencies\u0022: [\n \u0022python=3.7.9\u0022,\n \u0022pip\u0022,\n {\n \u0022pip\u0022: [\n \u0022pyjokes\u0022\n ]\n }\n ],\n \u0022name\u0022: \u0022demo_env\u0022\n}", + "osType": "Linux" + }, + "systemData": { + "createdAt": "2023-01-10T06:23:23.5322997\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:23:23.5322997\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:32:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-19610b6d8b039eb1186b383c24272645-69f41a901067186e-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "094be100-cc83-4599-b5d0-1d42884a6879", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063258Z:094be100-cc83-4599-b5d0-1d42884a6879", + "x-request-time": "0.132" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore", + "name": "workspaceblobstore", + "type": "Microsoft.MachineLearningServices/workspaces/datastores", + "properties": { + "description": null, + "tags": null, + "properties": null, + "isDefault": true, + "credentials": { + "credentialsType": "AccountKey" + }, + "datastoreType": "AzureBlob", + "accountName": "sagvgsoim6nmhbq", + "containerName": "azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8", + "endpoint": "core.windows.net", + "protocol": "https", + "serviceDataAccessAuthIdentity": "WorkspaceSystemAssignedIdentity" + }, + "systemData": { + "createdAt": "2022-09-22T09:02:03.2629568\u002B00:00", + "createdBy": "779301c0-18b2-4cdc-801b-a0a3368fee0a", + "createdByType": "Application", + "lastModifiedAt": "2022-09-22T09:02:04.166989\u002B00:00", + "lastModifiedBy": "779301c0-18b2-4cdc-801b-a0a3368fee0a", + "lastModifiedByType": "Application" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:32:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-a26d2e82930fc893ff663d96bf60c233-39eff66c721eb130-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "aca827c8-2a30-4de1-9dfe-509c437147e4", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063258Z:aca827c8-2a30-4de1-9dfe-509c437147e4", + "x-request-time": "1.115" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore", + "name": "workspaceblobstore", + "type": "Microsoft.MachineLearningServices/workspaces/datastores", + "properties": { + "description": null, + "tags": null, + "properties": null, + "isDefault": true, + "credentials": { + "credentialsType": "AccountKey" + }, + "datastoreType": "AzureBlob", + "accountName": "sagvgsoim6nmhbq", + "containerName": "azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8", + "endpoint": "core.windows.net", + "protocol": "https", + "serviceDataAccessAuthIdentity": "WorkspaceSystemAssignedIdentity" + }, + "systemData": { + "createdAt": "2022-09-22T09:02:03.2629568\u002B00:00", + "createdBy": "779301c0-18b2-4cdc-801b-a0a3368fee0a", + "createdByType": "Application", + "lastModifiedAt": "2022-09-22T09:02:04.166989\u002B00:00", + "lastModifiedBy": "779301c0-18b2-4cdc-801b-a0a3368fee0a", + "lastModifiedByType": "Application" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2022-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:32:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-20eaa518e148da3db2b86f7a3c9aee38-93a51779185e4cb2-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "590c08f7-166a-43b4-b03e-edc726195ef4", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063259Z:590c08f7-166a-43b4-b03e-edc726195ef4", + "x-request-time": "0.496" + }, + "ResponseBody": { + "secretsType": "AccountKey", + "key": "dGhpcyBpcyBmYWtlIGtleQ==" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2022-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:32:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-e6c462ee2786e65ed751605f8a813e83-e6f056844a13336d-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c261f89d-4b4c-4242-8cf7-364f5352abdd", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063259Z:c261f89d-4b4c-4242-8cf7-364f5352abdd", + "x-request-time": "0.186" + }, + "ResponseBody": { + "secretsType": "AccountKey", + "key": "dGhpcyBpcyBmYWtlIGtleQ==" + } + }, + { + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/component_with_conditional_output/entry.py", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 06:32:58 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "544", + "Content-MD5": "ckhCMLno0vnEJhuGVfkbnA==", + "Content-Type": "application/octet-stream", + "Date": "Tue, 10 Jan 2023 06:32:59 GMT", + "ETag": "\u00220x8DAF2D33678CC8F\u0022", + "Last-Modified": "Tue, 10 Jan 2023 06:23:39 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": "Origin", + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Tue, 10 Jan 2023 06:23:38 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-meta-name": "dab5eb3a-726c-478e-a7d0-5ecb4b47e476", + "x-ms-meta-upload_status": "completed", + "x-ms-meta-version": "1", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/src/hello.py", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 06:32:58 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "164", + "Content-MD5": "JwWnNxaURgTIg9SlJe9A0A==", + "Content-Type": "application/octet-stream", + "Date": "Tue, 10 Jan 2023 06:33:00 GMT", + "ETag": "\u00220x8DAAC46416A0736\u0022", + "Last-Modified": "Wed, 12 Oct 2022 11:38:17 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": "Origin", + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 12 Oct 2022 11:38:16 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-meta-name": "0ff14f83-3e28-44fe-988e-90244bdecbf8", + "x-ms-meta-upload_status": "completed", + "x-ms-meta-version": "1", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/az-ml-artifacts/00000000000000000000000000000000/component_with_conditional_output/entry.py", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 06:32:59 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Date": "Tue, 10 Jan 2023 06:32:59 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "Vary": "Origin", + "x-ms-error-code": "BlobNotFound", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/az-ml-artifacts/00000000000000000000000000000000/src/hello.py", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 06:32:59 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Date": "Tue, 10 Jan 2023 06:33:00 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "Vary": "Origin", + "x-ms-error-code": "BlobNotFound", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/dab5eb3a-726c-478e-a7d0-5ecb4b47e476/versions/1?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "322", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "properties": { + "hash_sha256": "0000000000000", + "hash_version": "0000000000000" + }, + "isAnonymous": true, + "isArchived": false, + "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/component_with_conditional_output" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:33:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-709de566a1bcda60c05ba56cec19c069-8a9e39cf74f9011a-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "687708ae-285f-40ce-81da-647301724a96", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063301Z:687708ae-285f-40ce-81da-647301724a96", + "x-request-time": "0.956" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/dab5eb3a-726c-478e-a7d0-5ecb4b47e476/versions/1", + "name": "1", + "type": "Microsoft.MachineLearningServices/workspaces/codes/versions", + "properties": { + "description": null, + "tags": {}, + "properties": { + "hash_sha256": "0000000000000", + "hash_version": "0000000000000" + }, + "isArchived": false, + "isAnonymous": false, + "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/component_with_conditional_output" + }, + "systemData": { + "createdAt": "2023-01-10T06:23:40.65355\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:33:01.7334401\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/0ff14f83-3e28-44fe-988e-90244bdecbf8/versions/1?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "292", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "properties": { + "hash_sha256": "0000000000000", + "hash_version": "0000000000000" + }, + "isAnonymous": true, + "isArchived": false, + "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/src" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:33:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-f7460350a0eeed1c2cd33a94eb92a356-afb50b46bf7ce508-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "39de470c-ded9-47bf-8b2e-c6fd80c1ecbd", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063302Z:39de470c-ded9-47bf-8b2e-c6fd80c1ecbd", + "x-request-time": "0.896" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/0ff14f83-3e28-44fe-988e-90244bdecbf8/versions/1", + "name": "1", + "type": "Microsoft.MachineLearningServices/workspaces/codes/versions", + "properties": { + "description": null, + "tags": {}, + "properties": { + "hash_sha256": "0000000000000", + "hash_version": "0000000000000" + }, + "isArchived": false, + "isAnonymous": false, + "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/src" + }, + "systemData": { + "createdAt": "2022-10-12T11:38:17.7954362\u002B00:00", + "createdBy": "Xingzhi Zhang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:33:02.0751668\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/74ab01b3-ef9f-a2ef-382f-92c5498ce18f?api-version=2022-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "1253", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "description": "module run logic goes here", + "properties": {}, + "tags": { + "codegenBy": "mldesigner" + }, + "isAnonymous": true, + "isArchived": false, + "componentSpec": { + "command": "mldesigner execute --source entry.py --name basic_component --outputs output1=${{outputs.output1}} output2=${{outputs.output2}} output3=${{outputs.output3}} output=${{outputs.output}}", + "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/dab5eb3a-726c-478e-a7d0-5ecb4b47e476/versions/1", + "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b", + "name": "azureml_anonymous", + "description": "module run logic goes here", + "tags": { + "codegenBy": "mldesigner" + }, + "version": "1", + "display_name": "basic_component", + "is_deterministic": true, + "outputs": { + "output1": { + "type": "boolean", + "is_control": true + }, + "output2": { + "type": "boolean", + "is_control": true + }, + "output3": { + "type": "boolean" + }, + "output": { + "type": "boolean", + "is_control": true + } + }, + "type": "command", + "_source": "YAML.COMPONENT" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2279", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:33:05 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/74ab01b3-ef9f-a2ef-382f-92c5498ce18f?api-version=2022-10-01", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-af6090abf30199627f0040b3f0062e2b-f760dfdb58b79766-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ffcbcba5-6115-436f-b5db-3e26b9399755", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063305Z:ffcbcba5-6115-436f-b5db-3e26b9399755", + "x-request-time": "1.277" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/1777d52e-5dfd-49f8-badf-f56bad7a921d", + "name": "1777d52e-5dfd-49f8-badf-f56bad7a921d", + "type": "Microsoft.MachineLearningServices/workspaces/components/versions", + "properties": { + "description": null, + "tags": { + "codegenBy": "mldesigner" + }, + "properties": {}, + "isArchived": false, + "isAnonymous": true, + "componentSpec": { + "name": "azureml_anonymous", + "version": "1777d52e-5dfd-49f8-badf-f56bad7a921d", + "display_name": "basic_component", + "is_deterministic": "True", + "type": "command", + "description": "module run logic goes here", + "tags": { + "codegenBy": "mldesigner" + }, + "outputs": { + "output1": { + "type": "boolean", + "is_control": "True" + }, + "output2": { + "type": "boolean", + "is_control": "True" + }, + "output3": { + "type": "boolean" + }, + "output": { + "type": "boolean", + "is_control": "True" + } + }, + "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/dab5eb3a-726c-478e-a7d0-5ecb4b47e476/versions/1", + "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b", + "resources": { + "instance_count": "1" + }, + "command": "mldesigner execute --source entry.py --name basic_component --outputs output1=${{outputs.output1}} output2=${{outputs.output2}} output3=${{outputs.output3}} output=${{outputs.output}}", + "$schema": "https://componentsdk.azureedge.net/jsonschema/CommandComponent.json" + } + }, + "systemData": { + "createdAt": "2023-01-10T06:23:44.5341886\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:23:44.9201992\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/82b9420e-ca58-d007-4c20-9702d080db1d?api-version=2022-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "963", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "properties": {}, + "tags": {}, + "isAnonymous": true, + "isArchived": false, + "componentSpec": { + "command": "echo ${{inputs.component_in_number}} \u0026 python hello.py", + "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/0ff14f83-3e28-44fe-988e-90244bdecbf8/versions/1", + "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50", + "name": "azureml_anonymous", + "version": "1", + "$schema": "https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json", + "display_name": "Hello_Python_World", + "is_deterministic": true, + "inputs": { + "component_in_number": { + "type": "number", + "optional": false, + "description": "A number" + } + }, + "type": "command", + "_source": "YAML.COMPONENT" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1813", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:33:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/82b9420e-ca58-d007-4c20-9702d080db1d?api-version=2022-10-01", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-1a1f0f7bf35443f98f17fbe47024bf6b-ade3af9597f7613d-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e9bff419-34d8-4954-8ee2-f5aed1629437", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063305Z:e9bff419-34d8-4954-8ee2-f5aed1629437", + "x-request-time": "1.138" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/5776194e-d9f7-4e1e-bf47-23f87c3c47cb", + "name": "5776194e-d9f7-4e1e-bf47-23f87c3c47cb", + "type": "Microsoft.MachineLearningServices/workspaces/components/versions", + "properties": { + "description": null, + "tags": {}, + "properties": {}, + "isArchived": false, + "isAnonymous": true, + "componentSpec": { + "name": "azureml_anonymous", + "version": "5776194e-d9f7-4e1e-bf47-23f87c3c47cb", + "display_name": "Hello_Python_World", + "is_deterministic": "True", + "type": "command", + "inputs": { + "component_in_number": { + "type": "number", + "optional": "False", + "description": "A number" + } + }, + "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/0ff14f83-3e28-44fe-988e-90244bdecbf8/versions/1", + "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50", + "resources": { + "instance_count": "1" + }, + "command": "echo ${{inputs.component_in_number}} \u0026 python hello.py", + "$schema": "https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json" + } + }, + "systemData": { + "createdAt": "2023-01-10T06:23:44.3969958\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:23:44.790263\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/test_853862995666?api-version=2022-10-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "1646", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "properties": {}, + "tags": {}, + "displayName": "condition_pipeline", + "experimentName": "azure-ai-ml", + "isArchived": false, + "jobType": "Pipeline", + "inputs": {}, + "jobs": { + "result": { + "name": "result", + "type": "command", + "_source": "YAML.COMPONENT", + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/1777d52e-5dfd-49f8-badf-f56bad7a921d" + }, + "node1": { + "name": "node1", + "type": "command", + "inputs": { + "component_in_number": { + "job_input_type": "literal", + "value": "1" + } + }, + "_source": "YAML.COMPONENT", + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/5776194e-d9f7-4e1e-bf47-23f87c3c47cb" + }, + "node2": { + "name": "node2", + "type": "command", + "inputs": { + "component_in_number": { + "job_input_type": "literal", + "value": "2" + } + }, + "_source": "YAML.COMPONENT", + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/5776194e-d9f7-4e1e-bf47-23f87c3c47cb" + }, + "conditionnode": { + "type": "if_else", + "condition": "${{parent.jobs.result.outputs.output}}", + "true_block": "${{parent.jobs.node2}}", + "false_block": "${{parent.jobs.node1}}" + } + }, + "outputs": {}, + "settings": { + "default_compute": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/computes/cpu-cluster", + "_source": "YAML.JOB" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "3783", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:33:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/test_853862995666?api-version=2022-10-01-preview", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-c459709032aa7d9f5ccc10cc3e4742dd-9f590a2ac010c1ea-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "06f98fb6-8b86-4ce0-a05d-f3de14196581", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063310Z:06f98fb6-8b86-4ce0-a05d-f3de14196581", + "x-request-time": "2.201" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/test_853862995666", + "name": "test_853862995666", + "type": "Microsoft.MachineLearningServices/workspaces/jobs", + "properties": { + "description": null, + "tags": {}, + "properties": { + "azureml.DevPlatv2": "true", + "azureml.runsource": "azureml.PipelineRun", + "runSource": "MFE", + "runType": "HTTP", + "azureml.parameters": "{}", + "azureml.continue_on_step_failure": "False", + "azureml.continue_on_failed_optional_input": "True", + "azureml.defaultComputeName": "cpu-cluster", + "azureml.defaultDataStoreName": "workspaceblobstore", + "azureml.pipelineComponent": "pipelinerun" + }, + "displayName": "condition_pipeline", + "status": "Preparing", + "experimentName": "azure-ai-ml", + "services": { + "Tracking": { + "jobServiceType": "Tracking", + "port": null, + "endpoint": "azureml://master.api.azureml-test.ms/mlflow/v1.0/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000?", + "status": null, + "errorMessage": null, + "properties": null, + "nodes": null + }, + "Studio": { + "jobServiceType": "Studio", + "port": null, + "endpoint": "https://ml.azure.com/runs/test_853862995666?wsid=/subscriptions/00000000-0000-0000-0000-000000000/resourcegroups/00000/workspaces/00000", + "status": null, + "errorMessage": null, + "properties": null, + "nodes": null + } + }, + "computeId": null, + "isArchived": false, + "identity": null, + "componentId": null, + "jobType": "Pipeline", + "settings": { + "default_compute": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/computes/cpu-cluster", + "_source": "YAML.JOB" + }, + "jobs": { + "result": { + "name": "result", + "type": "command", + "_source": "YAML.COMPONENT", + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/1777d52e-5dfd-49f8-badf-f56bad7a921d" + }, + "node1": { + "name": "node1", + "type": "command", + "inputs": { + "component_in_number": { + "job_input_type": "literal", + "value": "1" + } + }, + "_source": "YAML.COMPONENT", + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/5776194e-d9f7-4e1e-bf47-23f87c3c47cb" + }, + "node2": { + "name": "node2", + "type": "command", + "inputs": { + "component_in_number": { + "job_input_type": "literal", + "value": "2" + } + }, + "_source": "YAML.COMPONENT", + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/5776194e-d9f7-4e1e-bf47-23f87c3c47cb" + }, + "conditionnode": { + "type": "if_else", + "condition": "${{parent.jobs.result.outputs.output}}", + "true_block": "${{parent.jobs.node2}}", + "false_block": "${{parent.jobs.node1}}" + } + }, + "inputs": {}, + "outputs": {}, + "sourceJobId": null + }, + "systemData": { + "createdAt": "2023-01-10T06:33:09.4358783\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/test_853862995666/cancel?api-version=2022-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 06:33:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/centraluseuap/mfeOperationResults/jc:e61cd5e2-512f-475e-9842-5e2a973993b8:test_853862995666?api-version=2022-10-01-preview", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-async-operation-timeout": "PT1H", + "x-ms-correlation-request-id": "b4ef097d-67c1-4e55-9492-fa7fdb2f29b5", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063313Z:b4ef097d-67c1-4e55-9492-fa7fdb2f29b5", + "x-request-time": "0.893" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/centraluseuap/mfeOperationResults/jc:e61cd5e2-512f-475e-9842-5e2a973993b8:test_853862995666?api-version=2022-10-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 10 Jan 2023 06:33:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-bb6bf90cd830240309f2eb9b1b4ec61c-877d1a387e63221a-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9c18b451-7b6c-4c85-b38f-cb531517ac04", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T063344Z:9c18b451-7b6c-4c85-b38f-cb531517ac04", + "x-request-time": "0.031" + }, + "ResponseBody": null + } + ], + "Variables": { + "name": "test_853862995666" + } +} diff --git a/sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_if_else_invalid_case.json b/sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_if_else_invalid_case.json new file mode 100644 index 000000000000..f721723386d8 --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_if_else_invalid_case.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_if_else_literal_condition.json b/sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_if_else_literal_condition.json new file mode 100644 index 000000000000..9a3410279f15 --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_if_else_literal_condition.json @@ -0,0 +1,618 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "269", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "isAnonymous": true, + "isArchived": false, + "condaFile": "channels:\n- conda-forge\ndependencies:\n- python=3.7.9\n- pip\n- pip:\n - pyjokes\nname: demo_env\n", + "image": "mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.0.3-cudnn8-ubuntu18.04:20210405.v1" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1130", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:15:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50?api-version=2022-05-01", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-a0a36a2bb3dabbc8849a3bd9e0a00004-b1ada1cada66aedf-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25bc9f33-5d07-4e6f-9968-d8073eb7a9b1", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T091508Z:25bc9f33-5d07-4e6f-9968-d8073eb7a9b1", + "x-request-time": "3.247" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50", + "name": "17c075d9307dbb12fb04c2cbf7087b50", + "type": "Microsoft.MachineLearningServices/workspaces/environments/versions", + "properties": { + "description": null, + "tags": {}, + "properties": {}, + "isArchived": false, + "isAnonymous": true, + "environmentType": "UserCreated", + "image": "mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.0.3-cudnn8-ubuntu18.04:20210405.v1", + "condaFile": "{\n \u0022channels\u0022: [\n \u0022conda-forge\u0022\n ],\n \u0022dependencies\u0022: [\n \u0022python=3.7.9\u0022,\n \u0022pip\u0022,\n {\n \u0022pip\u0022: [\n \u0022pyjokes\u0022\n ]\n }\n ],\n \u0022name\u0022: \u0022demo_env\u0022\n}", + "osType": "Linux" + }, + "systemData": { + "createdAt": "2023-01-10T06:23:23.5322997\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:23:23.5322997\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:15:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-c5b1176555b7f8c09a949586fa8bebe9-56979a27a0496c4a-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c7454ab3-dd5a-4216-8169-4780af0e5027", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T091509Z:c7454ab3-dd5a-4216-8169-4780af0e5027", + "x-request-time": "0.137" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore", + "name": "workspaceblobstore", + "type": "Microsoft.MachineLearningServices/workspaces/datastores", + "properties": { + "description": null, + "tags": null, + "properties": null, + "isDefault": true, + "credentials": { + "credentialsType": "AccountKey" + }, + "datastoreType": "AzureBlob", + "accountName": "sagvgsoim6nmhbq", + "containerName": "azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8", + "endpoint": "core.windows.net", + "protocol": "https", + "serviceDataAccessAuthIdentity": "WorkspaceSystemAssignedIdentity" + }, + "systemData": { + "createdAt": "2022-09-22T09:02:03.2629568\u002B00:00", + "createdBy": "779301c0-18b2-4cdc-801b-a0a3368fee0a", + "createdByType": "Application", + "lastModifiedAt": "2022-09-22T09:02:04.166989\u002B00:00", + "lastModifiedBy": "779301c0-18b2-4cdc-801b-a0a3368fee0a", + "lastModifiedByType": "Application" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2022-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:15:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-28cf97daba6aac5c660a899fd07f123d-a67b28161feb60c5-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3a8228ec-3101-4416-bdf2-6fe260ebf62a", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T091511Z:3a8228ec-3101-4416-bdf2-6fe260ebf62a", + "x-request-time": "0.647" + }, + "ResponseBody": { + "secretsType": "AccountKey", + "key": "dGhpcyBpcyBmYWtlIGtleQ==" + } + }, + { + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/src/hello.py", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 09:15:10 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "164", + "Content-MD5": "JwWnNxaURgTIg9SlJe9A0A==", + "Content-Type": "application/octet-stream", + "Date": "Tue, 10 Jan 2023 09:15:12 GMT", + "ETag": "\u00220x8DAAC46416A0736\u0022", + "Last-Modified": "Wed, 12 Oct 2022 11:38:17 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": "Origin", + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 12 Oct 2022 11:38:16 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-meta-name": "0ff14f83-3e28-44fe-988e-90244bdecbf8", + "x-ms-meta-upload_status": "completed", + "x-ms-meta-version": "1", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/az-ml-artifacts/00000000000000000000000000000000/src/hello.py", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 09:15:11 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Date": "Tue, 10 Jan 2023 09:15:12 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "Vary": "Origin", + "x-ms-error-code": "BlobNotFound", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/0ff14f83-3e28-44fe-988e-90244bdecbf8/versions/1?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "292", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "properties": { + "hash_sha256": "0000000000000", + "hash_version": "0000000000000" + }, + "isAnonymous": true, + "isArchived": false, + "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/src" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:15:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-979255e4f0c73d8a05b3d8fd9105e97a-7268c8d58f01c5be-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "982fb858-67a5-464a-8353-ae1079ec5a20", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T091514Z:982fb858-67a5-464a-8353-ae1079ec5a20", + "x-request-time": "1.070" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/0ff14f83-3e28-44fe-988e-90244bdecbf8/versions/1", + "name": "1", + "type": "Microsoft.MachineLearningServices/workspaces/codes/versions", + "properties": { + "description": null, + "tags": {}, + "properties": { + "hash_sha256": "0000000000000", + "hash_version": "0000000000000" + }, + "isArchived": false, + "isAnonymous": false, + "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/src" + }, + "systemData": { + "createdAt": "2022-10-12T11:38:17.7954362\u002B00:00", + "createdBy": "Xingzhi Zhang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T09:15:13.9259889\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/82b9420e-ca58-d007-4c20-9702d080db1d?api-version=2022-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "963", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "properties": {}, + "tags": {}, + "isAnonymous": true, + "isArchived": false, + "componentSpec": { + "command": "echo ${{inputs.component_in_number}} \u0026 python hello.py", + "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/0ff14f83-3e28-44fe-988e-90244bdecbf8/versions/1", + "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50", + "name": "azureml_anonymous", + "version": "1", + "$schema": "https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json", + "display_name": "Hello_Python_World", + "is_deterministic": true, + "inputs": { + "component_in_number": { + "type": "number", + "optional": false, + "description": "A number" + } + }, + "type": "command", + "_source": "YAML.COMPONENT" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1813", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:15:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/82b9420e-ca58-d007-4c20-9702d080db1d?api-version=2022-10-01", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-831420b8557c7f997c12c0028451c541-ed167232d334236f-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f866239a-2e9d-4c5c-9c43-f6df4c35dfc3", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T091517Z:f866239a-2e9d-4c5c-9c43-f6df4c35dfc3", + "x-request-time": "1.040" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/5776194e-d9f7-4e1e-bf47-23f87c3c47cb", + "name": "5776194e-d9f7-4e1e-bf47-23f87c3c47cb", + "type": "Microsoft.MachineLearningServices/workspaces/components/versions", + "properties": { + "description": null, + "tags": {}, + "properties": {}, + "isArchived": false, + "isAnonymous": true, + "componentSpec": { + "name": "azureml_anonymous", + "version": "5776194e-d9f7-4e1e-bf47-23f87c3c47cb", + "display_name": "Hello_Python_World", + "is_deterministic": "True", + "type": "command", + "inputs": { + "component_in_number": { + "type": "number", + "optional": "False", + "description": "A number" + } + }, + "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/0ff14f83-3e28-44fe-988e-90244bdecbf8/versions/1", + "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50", + "resources": { + "instance_count": "1" + }, + "command": "echo ${{inputs.component_in_number}} \u0026 python hello.py", + "$schema": "https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json" + } + }, + "systemData": { + "createdAt": "2023-01-10T06:23:44.3969958\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:23:44.790263\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/test_553780510736?api-version=2022-10-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "887", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "properties": {}, + "tags": {}, + "displayName": "condition_pipeline", + "experimentName": "azure-ai-ml", + "isArchived": false, + "jobType": "Pipeline", + "inputs": {}, + "jobs": { + "node1": { + "name": "node1", + "type": "command", + "inputs": { + "component_in_number": { + "job_input_type": "literal", + "value": "1" + } + }, + "_source": "YAML.COMPONENT", + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/5776194e-d9f7-4e1e-bf47-23f87c3c47cb" + }, + "conditionnode": { + "type": "if_else", + "condition": true, + "true_block": "${{parent.jobs.node1}}" + } + }, + "outputs": {}, + "settings": { + "default_compute": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/computes/cpu-cluster", + "_source": "YAML.JOB" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2860", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:15:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/test_553780510736?api-version=2022-10-01-preview", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-19dd88dd16620367eecdbb0122dc4515-0084c3ceb9efe418-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d5b9c1ae-1c2b-40d1-8f08-d39b3b203f6a", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T091522Z:d5b9c1ae-1c2b-40d1-8f08-d39b3b203f6a", + "x-request-time": "2.454" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/test_553780510736", + "name": "test_553780510736", + "type": "Microsoft.MachineLearningServices/workspaces/jobs", + "properties": { + "description": null, + "tags": {}, + "properties": { + "azureml.DevPlatv2": "true", + "azureml.runsource": "azureml.PipelineRun", + "runSource": "MFE", + "runType": "HTTP", + "azureml.parameters": "{}", + "azureml.continue_on_step_failure": "False", + "azureml.continue_on_failed_optional_input": "True", + "azureml.defaultComputeName": "cpu-cluster", + "azureml.defaultDataStoreName": "workspaceblobstore", + "azureml.pipelineComponent": "pipelinerun" + }, + "displayName": "condition_pipeline", + "status": "Preparing", + "experimentName": "azure-ai-ml", + "services": { + "Tracking": { + "jobServiceType": "Tracking", + "port": null, + "endpoint": "azureml://master.api.azureml-test.ms/mlflow/v1.0/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000?", + "status": null, + "errorMessage": null, + "properties": null, + "nodes": null + }, + "Studio": { + "jobServiceType": "Studio", + "port": null, + "endpoint": "https://ml.azure.com/runs/test_553780510736?wsid=/subscriptions/00000000-0000-0000-0000-000000000/resourcegroups/00000/workspaces/00000", + "status": null, + "errorMessage": null, + "properties": null, + "nodes": null + } + }, + "computeId": null, + "isArchived": false, + "identity": null, + "componentId": null, + "jobType": "Pipeline", + "settings": { + "default_compute": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/computes/cpu-cluster", + "_source": "YAML.JOB" + }, + "jobs": { + "node1": { + "name": "node1", + "type": "command", + "inputs": { + "component_in_number": { + "job_input_type": "literal", + "value": "1" + } + }, + "_source": "YAML.COMPONENT", + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/5776194e-d9f7-4e1e-bf47-23f87c3c47cb" + }, + "conditionnode": { + "type": "if_else", + "condition": true, + "true_block": "${{parent.jobs.node1}}" + } + }, + "inputs": {}, + "outputs": {}, + "sourceJobId": null + }, + "systemData": { + "createdAt": "2023-01-10T09:15:21.9475261\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/test_553780510736/cancel?api-version=2022-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:15:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/centraluseuap/mfeOperationResults/jc:e61cd5e2-512f-475e-9842-5e2a973993b8:test_553780510736?api-version=2022-10-01-preview", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-async-operation-timeout": "PT1H", + "x-ms-correlation-request-id": "3cc7c2ee-6e68-48af-9665-8df7d51c9ebf", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T091526Z:3cc7c2ee-6e68-48af-9665-8df7d51c9ebf", + "x-request-time": "1.023" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/centraluseuap/mfeOperationResults/jc:e61cd5e2-512f-475e-9842-5e2a973993b8:test_553780510736?api-version=2022-10-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 10 Jan 2023 09:15:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-b6b04e2060f42f7847c469b920a2414d-3437a43d38085c51-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7b73b74e-3d3e-452d-a6ef-18d616849444", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T091557Z:7b73b74e-3d3e-452d-a6ef-18d616849444", + "x-request-time": "0.085" + }, + "ResponseBody": null + } + ], + "Variables": { + "name": "test_553780510736" + } +} diff --git a/sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_if_else_one_branch.json b/sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_if_else_one_branch.json new file mode 100644 index 000000000000..ae20004c99cb --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/recordings/pipeline_job/e2etests/test_control_flow_pipeline.pyTestIfElsetest_if_else_one_branch.json @@ -0,0 +1,1063 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "379", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "isAnonymous": true, + "isArchived": false, + "condaFile": "channels:\n- defaults\ndependencies:\n- python=3.8.12\n- pip=21.2.2\n- pip:\n - --extra-index-url=https://azuremlsdktestpypi.azureedge.net/sdk-cli-v2\n - mldesigner==0.0.72212755\n - mlflow\n - azureml-mlflow\nname: default_environment\n", + "image": "mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1267", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:28:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b?api-version=2022-05-01", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-d0c4ba8b6bcedd940c63e8a6816a59bd-c69ce55b2331f51a-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c574778f-128e-4e4c-94ea-95cad055de35", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092821Z:c574778f-128e-4e4c-94ea-95cad055de35", + "x-request-time": "5.044" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b", + "name": "de330be7295a60292e69e4d0aca3cd6b", + "type": "Microsoft.MachineLearningServices/workspaces/environments/versions", + "properties": { + "description": null, + "tags": {}, + "properties": {}, + "isArchived": false, + "isAnonymous": true, + "environmentType": "UserCreated", + "image": "mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04", + "condaFile": "{\n \u0022channels\u0022: [\n \u0022defaults\u0022\n ],\n \u0022dependencies\u0022: [\n \u0022python=3.8.12\u0022,\n \u0022pip=21.2.2\u0022,\n {\n \u0022pip\u0022: [\n \u0022--extra-index-url=https://azuremlsdktestpypi.azureedge.net/sdk-cli-v2\u0022,\n \u0022mldesigner==0.0.72212755\u0022,\n \u0022mlflow\u0022,\n \u0022azureml-mlflow\u0022\n ]\n }\n ],\n \u0022name\u0022: \u0022default_environment\u0022\n}", + "osType": "Linux" + }, + "systemData": { + "createdAt": "2022-10-12T09:36:02.7844653\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2022-10-12T09:36:02.7844653\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "269", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "isAnonymous": true, + "isArchived": false, + "condaFile": "channels:\n- conda-forge\ndependencies:\n- python=3.7.9\n- pip\n- pip:\n - pyjokes\nname: demo_env\n", + "image": "mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.0.3-cudnn8-ubuntu18.04:20210405.v1" + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1130", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:28:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50?api-version=2022-05-01", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-df3ed81669b54acb446911172792b1a0-bba7d987720a449b-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "987f91b3-c294-4583-99ee-4e6ebbfd4e80", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092823Z:987f91b3-c294-4583-99ee-4e6ebbfd4e80", + "x-request-time": "0.527" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50", + "name": "17c075d9307dbb12fb04c2cbf7087b50", + "type": "Microsoft.MachineLearningServices/workspaces/environments/versions", + "properties": { + "description": null, + "tags": {}, + "properties": {}, + "isArchived": false, + "isAnonymous": true, + "environmentType": "UserCreated", + "image": "mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.0.3-cudnn8-ubuntu18.04:20210405.v1", + "condaFile": "{\n \u0022channels\u0022: [\n \u0022conda-forge\u0022\n ],\n \u0022dependencies\u0022: [\n \u0022python=3.7.9\u0022,\n \u0022pip\u0022,\n {\n \u0022pip\u0022: [\n \u0022pyjokes\u0022\n ]\n }\n ],\n \u0022name\u0022: \u0022demo_env\u0022\n}", + "osType": "Linux" + }, + "systemData": { + "createdAt": "2023-01-10T06:23:23.5322997\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:23:23.5322997\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:28:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-b6d270b0096333f63a1521c5bedfcbdd-1dc29e9ee83ff10c-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b2da1359-37c0-466d-9e3b-24afc6aba988", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092823Z:b2da1359-37c0-466d-9e3b-24afc6aba988", + "x-request-time": "0.104" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore", + "name": "workspaceblobstore", + "type": "Microsoft.MachineLearningServices/workspaces/datastores", + "properties": { + "description": null, + "tags": null, + "properties": null, + "isDefault": true, + "credentials": { + "credentialsType": "AccountKey" + }, + "datastoreType": "AzureBlob", + "accountName": "sagvgsoim6nmhbq", + "containerName": "azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8", + "endpoint": "core.windows.net", + "protocol": "https", + "serviceDataAccessAuthIdentity": "WorkspaceSystemAssignedIdentity" + }, + "systemData": { + "createdAt": "2022-09-22T09:02:03.2629568\u002B00:00", + "createdBy": "779301c0-18b2-4cdc-801b-a0a3368fee0a", + "createdByType": "Application", + "lastModifiedAt": "2022-09-22T09:02:04.166989\u002B00:00", + "lastModifiedBy": "779301c0-18b2-4cdc-801b-a0a3368fee0a", + "lastModifiedByType": "Application" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore?api-version=2022-05-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:28:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-b05175797461afce067ae091b4864dd7-c300c73b31a79de3-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a0dbbd26-0152-428c-8952-e134d4b207c9", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092824Z:a0dbbd26-0152-428c-8952-e134d4b207c9", + "x-request-time": "0.103" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore", + "name": "workspaceblobstore", + "type": "Microsoft.MachineLearningServices/workspaces/datastores", + "properties": { + "description": null, + "tags": null, + "properties": null, + "isDefault": true, + "credentials": { + "credentialsType": "AccountKey" + }, + "datastoreType": "AzureBlob", + "accountName": "sagvgsoim6nmhbq", + "containerName": "azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8", + "endpoint": "core.windows.net", + "protocol": "https", + "serviceDataAccessAuthIdentity": "WorkspaceSystemAssignedIdentity" + }, + "systemData": { + "createdAt": "2022-09-22T09:02:03.2629568\u002B00:00", + "createdBy": "779301c0-18b2-4cdc-801b-a0a3368fee0a", + "createdByType": "Application", + "lastModifiedAt": "2022-09-22T09:02:04.166989\u002B00:00", + "lastModifiedBy": "779301c0-18b2-4cdc-801b-a0a3368fee0a", + "lastModifiedByType": "Application" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2022-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:28:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-1f1f961fcbfd48756233422bfb330364-78c0386e24c0b82e-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d5b37bd3-7a06-48da-b26b-e94cc2fd3377", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092825Z:d5b37bd3-7a06-48da-b26b-e94cc2fd3377", + "x-request-time": "0.430" + }, + "ResponseBody": { + "secretsType": "AccountKey", + "key": "dGhpcyBpcyBmYWtlIGtleQ==" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/datastores/workspaceblobstore/listSecrets?api-version=2022-05-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:28:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-eddc6a34ebaaa8824f15f09ffb83e0cd-f083dcf34f46cd8f-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a6fdc8f8-5ed6-4369-b59e-db37ea35c525", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092825Z:a6fdc8f8-5ed6-4369-b59e-db37ea35c525", + "x-request-time": "0.123" + }, + "ResponseBody": { + "secretsType": "AccountKey", + "key": "dGhpcyBpcyBmYWtlIGtleQ==" + } + }, + { + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/src/hello.py", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 09:28:24 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "164", + "Content-MD5": "JwWnNxaURgTIg9SlJe9A0A==", + "Content-Type": "application/octet-stream", + "Date": "Tue, 10 Jan 2023 09:28:25 GMT", + "ETag": "\u00220x8DAAC46416A0736\u0022", + "Last-Modified": "Wed, 12 Oct 2022 11:38:17 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": "Origin", + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Wed, 12 Oct 2022 11:38:16 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-meta-name": "0ff14f83-3e28-44fe-988e-90244bdecbf8", + "x-ms-meta-upload_status": "completed", + "x-ms-meta-version": "1", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/component_with_conditional_output/entry.py", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 09:28:24 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Accept-Ranges": "bytes", + "Content-Length": "544", + "Content-MD5": "ckhCMLno0vnEJhuGVfkbnA==", + "Content-Type": "application/octet-stream", + "Date": "Tue, 10 Jan 2023 09:28:25 GMT", + "ETag": "\u00220x8DAF2D33678CC8F\u0022", + "Last-Modified": "Tue, 10 Jan 2023 06:23:39 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Vary": "Origin", + "x-ms-access-tier": "Hot", + "x-ms-access-tier-inferred": "true", + "x-ms-blob-type": "BlockBlob", + "x-ms-creation-time": "Tue, 10 Jan 2023 06:23:38 GMT", + "x-ms-lease-state": "available", + "x-ms-lease-status": "unlocked", + "x-ms-meta-name": "dab5eb3a-726c-478e-a7d0-5ecb4b47e476", + "x-ms-meta-upload_status": "completed", + "x-ms-meta-version": "1", + "x-ms-server-encrypted": "true", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/az-ml-artifacts/00000000000000000000000000000000/src/hello.py", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 09:28:25 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Date": "Tue, 10 Jan 2023 09:28:26 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "Vary": "Origin", + "x-ms-error-code": "BlobNotFound", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/az-ml-artifacts/00000000000000000000000000000000/component_with_conditional_output/entry.py", + "RequestMethod": "HEAD", + "RequestHeaders": { + "Accept": "application/xml", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-storage-blob/12.13.1 Python/3.8.13 (Windows-10-10.0.19045-SP0)", + "x-ms-date": "Tue, 10 Jan 2023 09:28:25 GMT", + "x-ms-version": "2021-08-06" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Date": "Tue, 10 Jan 2023 09:28:25 GMT", + "Server": [ + "Windows-Azure-Blob/1.0", + "Microsoft-HTTPAPI/2.0" + ], + "Transfer-Encoding": "chunked", + "Vary": "Origin", + "x-ms-error-code": "BlobNotFound", + "x-ms-version": "2021-08-06" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/dab5eb3a-726c-478e-a7d0-5ecb4b47e476/versions/1?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "322", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "properties": { + "hash_sha256": "0000000000000", + "hash_version": "0000000000000" + }, + "isAnonymous": true, + "isArchived": false, + "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/component_with_conditional_output" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:28:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-9ba33198e14fd6d20fa733fa1a95a25c-a2c2e50d112e23d9-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "db69eac9-dc69-454a-9e13-70b3f84310bd", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092828Z:db69eac9-dc69-454a-9e13-70b3f84310bd", + "x-request-time": "1.445" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/dab5eb3a-726c-478e-a7d0-5ecb4b47e476/versions/1", + "name": "1", + "type": "Microsoft.MachineLearningServices/workspaces/codes/versions", + "properties": { + "description": null, + "tags": {}, + "properties": { + "hash_sha256": "0000000000000", + "hash_version": "0000000000000" + }, + "isArchived": false, + "isAnonymous": false, + "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/component_with_conditional_output" + }, + "systemData": { + "createdAt": "2023-01-10T06:23:40.65355\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T09:28:28.3107114\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/0ff14f83-3e28-44fe-988e-90244bdecbf8/versions/1?api-version=2022-05-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "292", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "properties": { + "hash_sha256": "0000000000000", + "hash_version": "0000000000000" + }, + "isAnonymous": true, + "isArchived": false, + "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/src" + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:28:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-9b70b614539822cbfd40f2557e9b13e9-2ce59873a20548da-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2cb2b7c6-6036-4767-81cb-6c3f7ed9ebfd", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092828Z:2cb2b7c6-6036-4767-81cb-6c3f7ed9ebfd", + "x-request-time": "1.004" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/0ff14f83-3e28-44fe-988e-90244bdecbf8/versions/1", + "name": "1", + "type": "Microsoft.MachineLearningServices/workspaces/codes/versions", + "properties": { + "description": null, + "tags": {}, + "properties": { + "hash_sha256": "0000000000000", + "hash_version": "0000000000000" + }, + "isArchived": false, + "isAnonymous": false, + "codeUri": "https://sagvgsoim6nmhbq.blob.core.windows.net/azureml-blobstore-e61cd5e2-512f-475e-9842-5e2a973993b8/LocalUpload/00000000000000000000000000000000/src" + }, + "systemData": { + "createdAt": "2022-10-12T11:38:17.7954362\u002B00:00", + "createdBy": "Xingzhi Zhang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T09:28:28.337079\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/82b9420e-ca58-d007-4c20-9702d080db1d?api-version=2022-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "963", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "properties": {}, + "tags": {}, + "isAnonymous": true, + "isArchived": false, + "componentSpec": { + "command": "echo ${{inputs.component_in_number}} \u0026 python hello.py", + "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/0ff14f83-3e28-44fe-988e-90244bdecbf8/versions/1", + "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50", + "name": "azureml_anonymous", + "version": "1", + "$schema": "https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json", + "display_name": "Hello_Python_World", + "is_deterministic": true, + "inputs": { + "component_in_number": { + "type": "number", + "optional": false, + "description": "A number" + } + }, + "type": "command", + "_source": "YAML.COMPONENT" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1813", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:28:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/82b9420e-ca58-d007-4c20-9702d080db1d?api-version=2022-10-01", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-a74d3e9bc49b1b641ded83cb047ba5dc-e3fb0f1da277546c-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d64217ab-30d9-46af-adcb-671c7195be46", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092831Z:d64217ab-30d9-46af-adcb-671c7195be46", + "x-request-time": "1.021" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/5776194e-d9f7-4e1e-bf47-23f87c3c47cb", + "name": "5776194e-d9f7-4e1e-bf47-23f87c3c47cb", + "type": "Microsoft.MachineLearningServices/workspaces/components/versions", + "properties": { + "description": null, + "tags": {}, + "properties": {}, + "isArchived": false, + "isAnonymous": true, + "componentSpec": { + "name": "azureml_anonymous", + "version": "5776194e-d9f7-4e1e-bf47-23f87c3c47cb", + "display_name": "Hello_Python_World", + "is_deterministic": "True", + "type": "command", + "inputs": { + "component_in_number": { + "type": "number", + "optional": "False", + "description": "A number" + } + }, + "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/0ff14f83-3e28-44fe-988e-90244bdecbf8/versions/1", + "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/17c075d9307dbb12fb04c2cbf7087b50", + "resources": { + "instance_count": "1" + }, + "command": "echo ${{inputs.component_in_number}} \u0026 python hello.py", + "$schema": "https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json" + } + }, + "systemData": { + "createdAt": "2023-01-10T06:23:44.3969958\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:23:44.790263\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/74ab01b3-ef9f-a2ef-382f-92c5498ce18f?api-version=2022-10-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "1253", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "description": "module run logic goes here", + "properties": {}, + "tags": { + "codegenBy": "mldesigner" + }, + "isAnonymous": true, + "isArchived": false, + "componentSpec": { + "command": "mldesigner execute --source entry.py --name basic_component --outputs output1=${{outputs.output1}} output2=${{outputs.output2}} output3=${{outputs.output3}} output=${{outputs.output}}", + "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/dab5eb3a-726c-478e-a7d0-5ecb4b47e476/versions/1", + "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b", + "name": "azureml_anonymous", + "description": "module run logic goes here", + "tags": { + "codegenBy": "mldesigner" + }, + "version": "1", + "display_name": "basic_component", + "is_deterministic": true, + "outputs": { + "output1": { + "type": "boolean", + "is_control": true + }, + "output2": { + "type": "boolean", + "is_control": true + }, + "output3": { + "type": "boolean" + }, + "output": { + "type": "boolean", + "is_control": true + } + }, + "type": "command", + "_source": "YAML.COMPONENT" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "2279", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:28:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/74ab01b3-ef9f-a2ef-382f-92c5498ce18f?api-version=2022-10-01", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-43060461aacf6d512c1d6b5709a79121-fd087bdab83e11b2-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "13a7f900-1e1c-4ff1-8dac-3093753da2e3", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092831Z:13a7f900-1e1c-4ff1-8dac-3093753da2e3", + "x-request-time": "1.105" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/1777d52e-5dfd-49f8-badf-f56bad7a921d", + "name": "1777d52e-5dfd-49f8-badf-f56bad7a921d", + "type": "Microsoft.MachineLearningServices/workspaces/components/versions", + "properties": { + "description": null, + "tags": { + "codegenBy": "mldesigner" + }, + "properties": {}, + "isArchived": false, + "isAnonymous": true, + "componentSpec": { + "name": "azureml_anonymous", + "version": "1777d52e-5dfd-49f8-badf-f56bad7a921d", + "display_name": "basic_component", + "is_deterministic": "True", + "type": "command", + "description": "module run logic goes here", + "tags": { + "codegenBy": "mldesigner" + }, + "outputs": { + "output1": { + "type": "boolean", + "is_control": "True" + }, + "output2": { + "type": "boolean", + "is_control": "True" + }, + "output3": { + "type": "boolean" + }, + "output": { + "type": "boolean", + "is_control": "True" + } + }, + "code": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/codes/dab5eb3a-726c-478e-a7d0-5ecb4b47e476/versions/1", + "environment": "azureml:/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/environments/CliV2AnonymousEnvironment/versions/de330be7295a60292e69e4d0aca3cd6b", + "resources": { + "instance_count": "1" + }, + "command": "mldesigner execute --source entry.py --name basic_component --outputs output1=${{outputs.output1}} output2=${{outputs.output2}} output3=${{outputs.output3}} output=${{outputs.output}}", + "$schema": "https://componentsdk.azureedge.net/jsonschema/CommandComponent.json" + } + }, + "systemData": { + "createdAt": "2023-01-10T06:23:44.5341886\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User", + "lastModifiedAt": "2023-01-10T06:23:44.9201992\u002B00:00", + "lastModifiedBy": "Han Wang", + "lastModifiedByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/test_575107191496?api-version=2022-10-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "1225", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": { + "properties": { + "properties": {}, + "tags": {}, + "displayName": "condition_pipeline", + "experimentName": "azure-ai-ml", + "isArchived": false, + "jobType": "Pipeline", + "inputs": {}, + "jobs": { + "result": { + "name": "result", + "type": "command", + "_source": "YAML.COMPONENT", + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/1777d52e-5dfd-49f8-badf-f56bad7a921d" + }, + "node1": { + "name": "node1", + "type": "command", + "inputs": { + "component_in_number": { + "job_input_type": "literal", + "value": "1" + } + }, + "_source": "YAML.COMPONENT", + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/5776194e-d9f7-4e1e-bf47-23f87c3c47cb" + }, + "conditionnode": { + "type": "if_else", + "condition": "${{parent.jobs.result.outputs.output}}", + "true_block": "${{parent.jobs.node1}}" + } + }, + "outputs": {}, + "settings": { + "default_compute": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/computes/cpu-cluster", + "_source": "YAML.JOB" + } + } + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "3244", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:28:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/test_575107191496?api-version=2022-10-01-preview", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-a9529e0a7c7e729954868947a0ee438c-78ba995e5e389a03-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d1148081-6dd8-42a7-ade8-461eb29ac4ca", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092836Z:d1148081-6dd8-42a7-ade8-461eb29ac4ca", + "x-request-time": "2.336" + }, + "ResponseBody": { + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/test_575107191496", + "name": "test_575107191496", + "type": "Microsoft.MachineLearningServices/workspaces/jobs", + "properties": { + "description": null, + "tags": {}, + "properties": { + "azureml.DevPlatv2": "true", + "azureml.runsource": "azureml.PipelineRun", + "runSource": "MFE", + "runType": "HTTP", + "azureml.parameters": "{}", + "azureml.continue_on_step_failure": "False", + "azureml.continue_on_failed_optional_input": "True", + "azureml.defaultComputeName": "cpu-cluster", + "azureml.defaultDataStoreName": "workspaceblobstore", + "azureml.pipelineComponent": "pipelinerun" + }, + "displayName": "condition_pipeline", + "status": "Preparing", + "experimentName": "azure-ai-ml", + "services": { + "Tracking": { + "jobServiceType": "Tracking", + "port": null, + "endpoint": "azureml://master.api.azureml-test.ms/mlflow/v1.0/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000?", + "status": null, + "errorMessage": null, + "properties": null, + "nodes": null + }, + "Studio": { + "jobServiceType": "Studio", + "port": null, + "endpoint": "https://ml.azure.com/runs/test_575107191496?wsid=/subscriptions/00000000-0000-0000-0000-000000000/resourcegroups/00000/workspaces/00000", + "status": null, + "errorMessage": null, + "properties": null, + "nodes": null + } + }, + "computeId": null, + "isArchived": false, + "identity": null, + "componentId": null, + "jobType": "Pipeline", + "settings": { + "default_compute": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/computes/cpu-cluster", + "_source": "YAML.JOB" + }, + "jobs": { + "result": { + "name": "result", + "type": "command", + "_source": "YAML.COMPONENT", + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/1777d52e-5dfd-49f8-badf-f56bad7a921d" + }, + "node1": { + "name": "node1", + "type": "command", + "inputs": { + "component_in_number": { + "job_input_type": "literal", + "value": "1" + } + }, + "_source": "YAML.COMPONENT", + "componentId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/components/azureml_anonymous/versions/5776194e-d9f7-4e1e-bf47-23f87c3c47cb" + }, + "conditionnode": { + "type": "if_else", + "condition": "${{parent.jobs.result.outputs.output}}", + "true_block": "${{parent.jobs.node1}}" + } + }, + "inputs": {}, + "outputs": {}, + "sourceJobId": null + }, + "systemData": { + "createdAt": "2023-01-10T09:28:36.1922614\u002B00:00", + "createdBy": "Han Wang", + "createdByType": "User" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/workspaces/00000/jobs/test_575107191496/cancel?api-version=2022-10-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "4", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 10 Jan 2023 09:28:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/centraluseuap/mfeOperationResults/jc:e61cd5e2-512f-475e-9842-5e2a973993b8:test_575107191496?api-version=2022-10-01-preview", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-02", + "X-Content-Type-Options": "nosniff", + "x-ms-async-operation-timeout": "PT1H", + "x-ms-correlation-request-id": "951efdd4-90c4-4c86-8f71-cd3546519b8f", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092840Z:951efdd4-90c4-4c86-8f71-cd3546519b8f", + "x-request-time": "0.814" + }, + "ResponseBody": "null" + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/centraluseuap/mfeOperationResults/jc:e61cd5e2-512f-475e-9842-5e2a973993b8:test_575107191496?api-version=2022-10-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.4.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.13 (Windows-10-10.0.19045-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Tue, 10 Jan 2023 09:29:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:512cc15a-13b5-415b-bfd0-dce7accb6bb1", + "Server-Timing": "traceparent;desc=\u002200-910acd30f538741ab27d85598fe0d53b-1fe3608654460d78-00\u0022", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-test-westus2-01", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c07b9148-a11e-472e-8fee-2724486106e3", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "JAPANEAST:20230110T092911Z:c07b9148-a11e-472e-8fee-2724486106e3", + "x-request-time": "0.030" + }, + "ResponseBody": null + } + ], + "Variables": { + "name": "test_575107191496" + } +} diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/components/component_with_conditional_output/entry.py b/sdk/ml/azure-ai-ml/tests/test_configs/components/component_with_conditional_output/entry.py index 780b3b68fa26..e37438915eb8 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/components/component_with_conditional_output/entry.py +++ b/sdk/ml/azure-ai-ml/tests/test_configs/components/component_with_conditional_output/entry.py @@ -6,8 +6,6 @@ @command_component() def basic_component( - str_param: str, - int_param: int, output1: Output(type="boolean", is_control=True), output2: Output(type="boolean", is_control=True), output3: Output(type="boolean"), diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/components/component_with_conditional_output/spec.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/components/component_with_conditional_output/spec.yaml index 0eb6001e40b2..8e309cbf434f 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/components/component_with_conditional_output/spec.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/components/component_with_conditional_output/spec.yaml @@ -3,11 +3,6 @@ version: '1' display_name: basic_component description: module run logic goes here type: command -inputs: - str_param: - type: string - int_param: - type: integer outputs: output1: type: boolean @@ -20,8 +15,7 @@ outputs: output: type: boolean is_control: true -command: mldesigner execute --source entry.py --name basic_component --inputs - str_param=${{inputs.str_param}} int_param=${{inputs.int_param}} --outputs +command: mldesigner execute --source entry.py --name basic_component --outputs output1=${{outputs.output1}} output2=${{outputs.output2}} output3=${{outputs.output3}} output=${{outputs.output}} environment: diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/components/write_jokes/conda.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/components/write_jokes/conda.yaml new file mode 100644 index 000000000000..1c99d2a5460c --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/test_configs/components/write_jokes/conda.yaml @@ -0,0 +1,8 @@ +name: demo_env +channels: + - conda-forge +dependencies: + - python=3.7.9 + - pip + - pip: + - pyjokes diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/components/write_jokes/spec.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/components/write_jokes/spec.yaml new file mode 100644 index 000000000000..05e99093aaef --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/test_configs/components/write_jokes/spec.yaml @@ -0,0 +1,21 @@ +$schema: https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json +type: command + +name: hello_python_world +display_name: Hello_Python_World +version: 2 + +code: ./src + +environment: + conda_file: ./conda.yaml + image: mcr.microsoft.com/azureml/openmpi4.1.0-cuda11.0.3-cudnn8-ubuntu18.04:20210405.v1 + +inputs: + component_in_number: + type: number + optional: False + description: A number + +command: >- + echo ${{inputs.component_in_number}} & python hello.py diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/components/write_jokes/src/hello.py b/sdk/ml/azure-ai-ml/tests/test_configs/components/write_jokes/src/hello.py new file mode 100644 index 000000000000..b07625eb3bed --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/test_configs/components/write_jokes/src/hello.py @@ -0,0 +1,7 @@ +print("Hello Python World\nI tell a new joke each time you run me. Today's joke:\n") + +import pyjokes + +print(pyjokes.get_joke()) + +print("\nHow was it??\n\n") diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/invalid_binding.yml b/sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/invalid_binding.yml new file mode 100644 index 000000000000..6e422a9c4720 --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/invalid_binding.yml @@ -0,0 +1,23 @@ +$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json +type: pipeline + +display_name: condition_pipeline +inputs: + component_in_number: 1 + +jobs: + result: + component: ../../../components/component_with_conditional_output/spec.yaml + node1: + type: command + inputs: + component_in_number: 1 + component: ../../../components/write_jokes/spec.yaml + conditionnode: + type: if_else + true_block: ${{parent.inputs.component_in_number}} + condition: ${{parent.jobs.result.outputs.output}} +tags: {} +properties: {} +settings: + default_compute: azureml:cpu-cluster diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/literal_condition.yml b/sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/literal_condition.yml new file mode 100644 index 000000000000..0091f57563d9 --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/literal_condition.yml @@ -0,0 +1,19 @@ +$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json +type: pipeline + +display_name: condition_pipeline + +jobs: + node1: + type: command + inputs: + component_in_number: 1 + component: ../../../components/write_jokes/spec.yaml + conditionnode: + type: if_else + true_block: ${{parent.jobs.node1}} + condition: True +tags: {} +properties: {} +settings: + default_compute: azureml:cpu-cluster diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/one_branch.yml b/sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/one_branch.yml new file mode 100644 index 000000000000..f6a5304f77f8 --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/one_branch.yml @@ -0,0 +1,21 @@ +$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json +type: pipeline + +display_name: condition_pipeline + +jobs: + result: + component: ../../../components/component_with_conditional_output/spec.yaml + node1: + type: command + inputs: + component_in_number: 1 + component: ../../../components/write_jokes/spec.yaml + conditionnode: + type: if_else + true_block: ${{parent.jobs.node1}} + condition: ${{parent.jobs.result.outputs.output}} +tags: {} +properties: {} +settings: + default_compute: azureml:cpu-cluster diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/simple_pipeline.yml b/sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/simple_pipeline.yml new file mode 100644 index 000000000000..bb9b2ed382ea --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/test_configs/pipeline_jobs/control_flow/if_else/simple_pipeline.yml @@ -0,0 +1,27 @@ +$schema: https://azuremlschemas.azureedge.net/latest/pipelineJob.schema.json +type: pipeline + +display_name: condition_pipeline + +jobs: + result: + component: ../../../components/component_with_conditional_output/spec.yaml + node1: + type: command + inputs: + component_in_number: 1 + component: ../../../components/write_jokes/spec.yaml + node2: + type: command + inputs: + component_in_number: 2 + component: ../../../components/write_jokes/spec.yaml + conditionnode: + type: if_else + true_block: ${{parent.jobs.node2}} + condition: ${{parent.jobs.result.outputs.output}} + false_block: ${{parent.jobs.node1}} +tags: {} +properties: {} +settings: + default_compute: azureml:cpu-cluster