diff --git a/sdk/ml/azure-ai-ml/CHANGELOG.md b/sdk/ml/azure-ai-ml/CHANGELOG.md index edd8ea1f8005..3bbf551fccc4 100644 --- a/sdk/ml/azure-ai-ml/CHANGELOG.md +++ b/sdk/ml/azure-ai-ml/CHANGELOG.md @@ -11,6 +11,7 @@ ### Bugs Fixed - MLClient.from_config can now find the default config.json on Compute Instance when running sample notebooks. +- Registries now assign managed tags to match registry's tags. - Adjust registry experimental tags and imports to avoid warning printouts for unrelated operations. ### Other Changes diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2022_10_01_preview/models/_models.py b/sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2022_10_01_preview/models/_models.py index 3a1181cb97d5..5777e945622e 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2022_10_01_preview/models/_models.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2022_10_01_preview/models/_models.py @@ -18113,6 +18113,9 @@ class RegistryProperties(ResourceBase): :ivar region_details: Details of each region the registry is in. :vartype region_details: list[~azure.mgmt.machinelearningservices.models.RegistryRegionArmDetails] + :ivar managed_resource_group_tags: Tags to be applied to the managed resource group associated + with this registry. + :vartype managed_resource_group_tags: dict[str, str] """ _attribute_map = { @@ -18126,6 +18129,7 @@ class RegistryProperties(ResourceBase): 'ml_flow_registry_uri': {'key': 'mlFlowRegistryUri', 'type': 'str'}, 'private_link_count': {'key': 'privateLinkCount', 'type': 'int'}, 'region_details': {'key': 'regionDetails', 'type': '[RegistryRegionArmDetails]'}, + 'managed_resource_group_tags': {'key': 'managedResourceGroupTags', 'type': '{str}'}, } def __init__( @@ -18154,6 +18158,9 @@ def __init__( :keyword region_details: Details of each region the registry is in. :paramtype region_details: list[~azure.mgmt.machinelearningservices.models.RegistryRegionArmDetails] + :keyword managed_resource_group_tags: Tags to be applied to the managed resource group + associated with this registry. + :paramtype managed_resource_group_tags: dict[str, str] """ super(RegistryProperties, self).__init__(**kwargs) self.public_network_access = kwargs.get('public_network_access', None) @@ -18163,6 +18170,7 @@ def __init__( self.ml_flow_registry_uri = kwargs.get('ml_flow_registry_uri', None) self.private_link_count = kwargs.get('private_link_count', None) self.region_details = kwargs.get('region_details', None) + self.managed_resource_group_tags = kwargs.get('managed_resource_group_tags', None) class RegistryRegionArmDetails(msrest.serialization.Model): diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2022_10_01_preview/models/_models_py3.py b/sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2022_10_01_preview/models/_models_py3.py index fb0d5ecd8312..3db2af91f808 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2022_10_01_preview/models/_models_py3.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/_restclient/v2022_10_01_preview/models/_models_py3.py @@ -19634,6 +19634,9 @@ class RegistryProperties(ResourceBase): :ivar region_details: Details of each region the registry is in. :vartype region_details: list[~azure.mgmt.machinelearningservices.models.RegistryRegionArmDetails] + :ivar managed_resource_group_tags: Tags to be applied to the managed resource group associated + with this registry. + :vartype managed_resource_group_tags: dict[str, str] """ _attribute_map = { @@ -19647,6 +19650,7 @@ class RegistryProperties(ResourceBase): 'ml_flow_registry_uri': {'key': 'mlFlowRegistryUri', 'type': 'str'}, 'private_link_count': {'key': 'privateLinkCount', 'type': 'int'}, 'region_details': {'key': 'regionDetails', 'type': '[RegistryRegionArmDetails]'}, + 'managed_resource_group_tags': {'key': 'managedResourceGroupTags', 'type': '{str}'}, } def __init__( @@ -19662,6 +19666,7 @@ def __init__( ml_flow_registry_uri: Optional[str] = None, private_link_count: Optional[int] = None, region_details: Optional[List["RegistryRegionArmDetails"]] = None, + managed_resource_group_tags: Optional[Dict[str, str]] = None, **kwargs ): """ @@ -19686,6 +19691,9 @@ def __init__( :keyword region_details: Details of each region the registry is in. :paramtype region_details: list[~azure.mgmt.machinelearningservices.models.RegistryRegionArmDetails] + :keyword managed_resource_group_tags: Tags to be applied to the managed resource group + associated with this registry. + :paramtype managed_resource_group_tags: dict[str, str] """ super(RegistryProperties, self).__init__(description=description, properties=properties, tags=tags, **kwargs) self.public_network_access = public_network_access @@ -19695,6 +19703,7 @@ def __init__( self.ml_flow_registry_uri = ml_flow_registry_uri self.private_link_count = private_link_count self.region_details = region_details + self.managed_resource_group_tags = managed_resource_group_tags class RegistryRegionArmDetails(msrest.serialization.Model): diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_registry/registry.py b/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_registry/registry.py index 9135461c4a56..de8f3036895d 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_registry/registry.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_registry/registry.py @@ -215,6 +215,13 @@ def _to_rest_object(self) -> RestRegistry: replication_locations = [] if self.replication_locations: replication_locations = [details._to_rest_object() for details in self.replication_locations] + # Notes about this construction. + # RestRegistry.properties.tags: this property exists due to swagger inheritance + # issues, don't actually use it, use top level RestRegistry.tags instead + # RestRegistry.properties.managed_resource_group_tags: Registries create a + # managed resource group to manage their internal sub-resources. + # We always want the tags on this MRG to match those of the registry itself + # to keep janitor policies aligned. return RestRegistry( name=self.name, location=self.location, @@ -222,13 +229,12 @@ def _to_rest_object(self) -> RestRegistry: tags=self.tags, description=self.description, properties=RegistryProperties( - #tags=self.tags, interior tags exist due to swagger inheritance - # issues, don't actually use them. public_network_access=self.public_network_access, discovery_url=self.discovery_url, intellectual_property_publisher=self.intellectual_property_publisher, managed_resource_group=self.managed_resource_group, ml_flow_registry_uri=self.mlflow_registry_uri, region_details=replication_locations, + managed_resource_group_tags=self.tags, ), ) diff --git a/sdk/ml/azure-ai-ml/swagger/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/registries.json b/sdk/ml/azure-ai-ml/swagger/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/registries.json index 649822757ac7..b36f1a1a5cd4 100644 --- a/sdk/ml/azure-ai-ml/swagger/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/registries.json +++ b/sdk/ml/azure-ai-ml/swagger/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2022-10-01-preview/registries.json @@ -516,6 +516,14 @@ }, "x-ms-identifiers": [], "x-nullable": true + }, + "managedResourceGroupTags": { + "description": "Tags to be applied to the managed resource group associated with this registry.", + "type": "object", + "additionalProperties": { + "type": "string", + "x-nullable": true + } } }, "x-ms-client-name": "RegistryProperties", diff --git a/sdk/ml/azure-ai-ml/tests/recordings/registry/e2etests/test_registry.pyTestRegistrytest_registry_list_and_get.json b/sdk/ml/azure-ai-ml/tests/recordings/registry/e2etests/test_registry.pyTestRegistrytest_registry_list_and_get.json index 0fc124e6ce0b..cc2efa07cd33 100644 --- a/sdk/ml/azure-ai-ml/tests/recordings/registry/e2etests/test_registry.pyTestRegistrytest_registry_list_and_get.json +++ b/sdk/ml/azure-ai-ml/tests/recordings/registry/e2etests/test_registry.pyTestRegistrytest_registry_list_and_get.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test358236870698?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test733954978881?api-version=2022-10-01-preview", "RequestMethod": "PUT", "RequestHeaders": { "Accept": "application/json", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", - "Content-Length": "357", + "Content-Length": "406", "Content-Type": "application/json", "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" }, @@ -18,6 +18,7 @@ "type": "SystemAssigned" }, "properties": { + "description": "This is a registry description", "regionDetails": [ { "acrDetails": [ @@ -42,27 +43,27 @@ }, "StatusCode": 202, "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/ceeeb543-82a9-4379-b6c7-65585cbb5a8d?api-version=2022-10-01-preview\u0026type=async", + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/e5f9c2ba-04d6-482c-8204-e384bb2eafa6?api-version=2022-10-01-preview\u0026type=async", "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 15:20:59 GMT", + "Date": "Mon, 24 Oct 2022 20:46:02 GMT", "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/ceeeb543-82a9-4379-b6c7-65585cbb5a8d?api-version=2022-10-01-preview\u0026type=location", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/e5f9c2ba-04d6-482c-8204-e384bb2eafa6?api-version=2022-10-01-preview\u0026type=location", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "x-aml-cluster": "vienna-westcentralus-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "77912a45-fd7f-4179-9c8b-6661740169aa", + "x-ms-correlation-request-id": "aa597c4d-694a-4623-9cb0-8eac477e9453", "x-ms-ratelimit-remaining-subscription-writes": "1199", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152059Z:77912a45-fd7f-4179-9c8b-6661740169aa", - "x-request-time": "0.099" + "x-ms-routing-request-id": "CANADACENTRAL:20221024T204602Z:aa597c4d-694a-4623-9cb0-8eac477e9453", + "x-request-time": "0.104" }, "ResponseBody": null }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/ceeeb543-82a9-4379-b6c7-65585cbb5a8d?api-version=2022-10-01-preview\u0026type=async", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/e5f9c2ba-04d6-482c-8204-e384bb2eafa6?api-version=2022-10-01-preview\u0026type=async", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", @@ -76,7 +77,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 15:21:04 GMT", + "Date": "Mon, 24 Oct 2022 20:46:07 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", @@ -85,18 +86,18 @@ "Vary": "Accept-Encoding", "x-aml-cluster": "vienna-westcentralus-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "815e1fe1-b9b6-41f2-acdb-99807c0ea4ed", + "x-ms-correlation-request-id": "220678bc-ee91-43c2-b878-5a1def8b8b14", "x-ms-ratelimit-remaining-subscription-reads": "11999", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152105Z:815e1fe1-b9b6-41f2-acdb-99807c0ea4ed", - "x-request-time": "0.073" + "x-ms-routing-request-id": "CANADACENTRAL:20221024T204608Z:220678bc-ee91-43c2-b878-5a1def8b8b14", + "x-request-time": "0.048" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/ceeeb543-82a9-4379-b6c7-65585cbb5a8d?api-version=2022-10-01-preview\u0026type=async", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/e5f9c2ba-04d6-482c-8204-e384bb2eafa6?api-version=2022-10-01-preview\u0026type=async", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", @@ -110,7 +111,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 15:21:09 GMT", + "Date": "Mon, 24 Oct 2022 20:46:12 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", @@ -119,18 +120,18 @@ "Vary": "Accept-Encoding", "x-aml-cluster": "vienna-westcentralus-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4ed5025c-9252-43fd-b79c-d0d59a5a9982", + "x-ms-correlation-request-id": "4550f4d5-14e8-49ac-9503-2cfcf86a29b0", "x-ms-ratelimit-remaining-subscription-reads": "11998", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152110Z:4ed5025c-9252-43fd-b79c-d0d59a5a9982", - "x-request-time": "0.043" + "x-ms-routing-request-id": "CANADACENTRAL:20221024T204613Z:4550f4d5-14e8-49ac-9503-2cfcf86a29b0", + "x-request-time": "0.047" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/ceeeb543-82a9-4379-b6c7-65585cbb5a8d?api-version=2022-10-01-preview\u0026type=async", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/e5f9c2ba-04d6-482c-8204-e384bb2eafa6?api-version=2022-10-01-preview\u0026type=async", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", @@ -144,7 +145,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 15:21:14 GMT", + "Date": "Mon, 24 Oct 2022 20:46:17 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", @@ -153,18 +154,18 @@ "Vary": "Accept-Encoding", "x-aml-cluster": "vienna-westcentralus-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5c82aecd-1193-4b4b-a85c-0b9e6d4ab1ca", + "x-ms-correlation-request-id": "c5ea1332-05e6-4ee8-91bb-e188a85b5934", "x-ms-ratelimit-remaining-subscription-reads": "11997", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152115Z:5c82aecd-1193-4b4b-a85c-0b9e6d4ab1ca", - "x-request-time": "0.043" + "x-ms-routing-request-id": "CANADACENTRAL:20221024T204618Z:c5ea1332-05e6-4ee8-91bb-e188a85b5934", + "x-request-time": "0.042" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/ceeeb543-82a9-4379-b6c7-65585cbb5a8d?api-version=2022-10-01-preview\u0026type=async", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/e5f9c2ba-04d6-482c-8204-e384bb2eafa6?api-version=2022-10-01-preview\u0026type=async", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", @@ -178,7 +179,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 15:21:19 GMT", + "Date": "Mon, 24 Oct 2022 20:46:22 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", @@ -187,18 +188,18 @@ "Vary": "Accept-Encoding", "x-aml-cluster": "vienna-westcentralus-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "d915b64b-5fa4-467b-af8c-9a1c1bbc0775", + "x-ms-correlation-request-id": "aff73436-7287-49e2-906d-6642c203d082", "x-ms-ratelimit-remaining-subscription-reads": "11996", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152120Z:d915b64b-5fa4-467b-af8c-9a1c1bbc0775", - "x-request-time": "0.041" + "x-ms-routing-request-id": "CANADACENTRAL:20221024T204623Z:aff73436-7287-49e2-906d-6642c203d082", + "x-request-time": "0.044" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/ceeeb543-82a9-4379-b6c7-65585cbb5a8d?api-version=2022-10-01-preview\u0026type=async", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/e5f9c2ba-04d6-482c-8204-e384bb2eafa6?api-version=2022-10-01-preview\u0026type=async", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", @@ -212,7 +213,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 15:21:25 GMT", + "Date": "Mon, 24 Oct 2022 20:46:28 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", @@ -221,10 +222,10 @@ "Vary": "Accept-Encoding", "x-aml-cluster": "vienna-westcentralus-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "48c35855-adfa-47ea-9acf-1bb708996775", + "x-ms-correlation-request-id": "ede80a82-3dea-4993-a5e9-71e13a252def", "x-ms-ratelimit-remaining-subscription-reads": "11995", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152126Z:48c35855-adfa-47ea-9acf-1bb708996775", + "x-ms-routing-request-id": "CANADACENTRAL:20221024T204628Z:ede80a82-3dea-4993-a5e9-71e13a252def", "x-request-time": "0.043" }, "ResponseBody": { @@ -232,7 +233,7 @@ } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/ceeeb543-82a9-4379-b6c7-65585cbb5a8d?api-version=2022-10-01-preview\u0026type=async", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/e5f9c2ba-04d6-482c-8204-e384bb2eafa6?api-version=2022-10-01-preview\u0026type=async", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", @@ -246,7 +247,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 15:21:30 GMT", + "Date": "Mon, 24 Oct 2022 20:46:33 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", @@ -255,18 +256,18 @@ "Vary": "Accept-Encoding", "x-aml-cluster": "vienna-westcentralus-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "b19b1b2e-90a2-41ac-a02e-950203c7c83c", + "x-ms-correlation-request-id": "6a2f163f-39b1-4084-a3fa-7cb9227b8522", "x-ms-ratelimit-remaining-subscription-reads": "11994", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152131Z:b19b1b2e-90a2-41ac-a02e-950203c7c83c", - "x-request-time": "0.043" + "x-ms-routing-request-id": "CANADACENTRAL:20221024T204634Z:6a2f163f-39b1-4084-a3fa-7cb9227b8522", + "x-request-time": "0.041" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/ceeeb543-82a9-4379-b6c7-65585cbb5a8d?api-version=2022-10-01-preview\u0026type=async", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/e5f9c2ba-04d6-482c-8204-e384bb2eafa6?api-version=2022-10-01-preview\u0026type=async", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", @@ -280,7 +281,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 15:21:36 GMT", + "Date": "Mon, 24 Oct 2022 20:46:38 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", @@ -289,18 +290,18 @@ "Vary": "Accept-Encoding", "x-aml-cluster": "vienna-westcentralus-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bf8d6711-2016-4fa9-b469-2ab84072b53b", + "x-ms-correlation-request-id": "ee14a88e-7a3d-4011-afa7-0c5107e8fde2", "x-ms-ratelimit-remaining-subscription-reads": "11993", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152136Z:bf8d6711-2016-4fa9-b469-2ab84072b53b", - "x-request-time": "0.042" + "x-ms-routing-request-id": "CANADACENTRAL:20221024T204639Z:ee14a88e-7a3d-4011-afa7-0c5107e8fde2", + "x-request-time": "0.041" }, "ResponseBody": { "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/ceeeb543-82a9-4379-b6c7-65585cbb5a8d?api-version=2022-10-01-preview\u0026type=async", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/e5f9c2ba-04d6-482c-8204-e384bb2eafa6?api-version=2022-10-01-preview\u0026type=async", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", @@ -314,7 +315,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 15:21:41 GMT", + "Date": "Mon, 24 Oct 2022 20:46:44 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", @@ -323,19 +324,18 @@ "Vary": "Accept-Encoding", "x-aml-cluster": "vienna-westcentralus-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6bb77028-5388-4681-9a80-7b82710f3749", + "x-ms-correlation-request-id": "43ba70ce-1ae7-4b2f-aa80-6af832c0874d", "x-ms-ratelimit-remaining-subscription-reads": "11992", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152141Z:6bb77028-5388-4681-9a80-7b82710f3749", - "x-request-time": "0.071" + "x-ms-routing-request-id": "CANADACENTRAL:20221024T204644Z:43ba70ce-1ae7-4b2f-aa80-6af832c0874d", + "x-request-time": "0.041" }, "ResponseBody": { - "status": "Succeeded", - "percentComplete": 100.0 + "status": "InProgress" } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test358236870698?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/e5f9c2ba-04d6-482c-8204-e384bb2eafa6?api-version=2022-10-01-preview\u0026type=async", "RequestMethod": "GET", "RequestHeaders": { "Accept": "*/*", @@ -349,87 +349,31 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 15:21:41 GMT", + "Date": "Mon, 24 Oct 2022 20:46:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Transfer-Encoding": "chunked", - "Vary": [ - "Accept-Encoding", - "Accept-Encoding" - ], + "Vary": "Accept-Encoding", "x-aml-cluster": "vienna-westcentralus-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "2c545bb3-79a7-4b6e-a69e-ddc3e26b0324", + "x-ms-correlation-request-id": "483d4c40-da7a-4c27-9d89-3eb297788cdd", "x-ms-ratelimit-remaining-subscription-reads": "11991", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152141Z:2c545bb3-79a7-4b6e-a69e-ddc3e26b0324", - "x-request-time": "0.020" + "x-ms-routing-request-id": "CANADACENTRAL:20221024T204649Z:483d4c40-da7a-4c27-9d89-3eb297788cdd", + "x-request-time": "0.071" }, "ResponseBody": { - "tags": {}, - "location": "westcentralus", - "identity": { - "type": "SystemAssigned", - "principalId": "6209c189-b756-4f77-8aba-73f7edd0c0b6", - "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" - }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test358236870698", - "name": "test358236870698", - "type": "Microsoft.MachineLearningServices/registries", - "properties": { - "regionDetails": [ - { - "location": "westcentralus", - "storageAccountDetails": [ - { - "existingStorageAccount": null, - "newStorageAccount": null, - "userCreatedStorageAccount": null, - "systemCreatedStorageAccount": { - "storageAccountName": "test3544f72a4d25c4aa4b38", - "storageAccountType": "standard_lrs", - "storageAccountHnsEnabled": false, - "armResourceId": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test358236870698_2285f223-4d5a-461c-b7a2-4fc9b0a6d0eb/providers/Microsoft.Storage/storageAccounts/test3544f72a4d25c4aa4b38" - } - } - } - ], - "acrDetails": [ - { - "existingAcrAccount": null, - "newAcrAccount": null, - "userCreatedAcrAccount": null, - "systemCreatedAcrAccount": { - "acrAccountName": "test35c1a9742a15a43fb85a", - "acrAccountSku": "Premium", - "armResourceId": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test358236870698_2285f223-4d5a-461c-b7a2-4fc9b0a6d0eb/providers/Microsoft.ContainerRegistry/registries/test35c1a9742a15a43fb85a" - } - } - } - ] - } - ], - "intellectualPropertyPublisher": null, - "publicNetworkAccess": "Enabled", - "discoveryUrl": "https://westcentralus.api.azureml.ms/registrymanagement/v1.0/registries/test358236870698/discovery", - "managedResourceGroup": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test358236870698_2285f223-4d5a-461c-b7a2-4fc9b0a6d0eb" - }, - "managedResourceGroupTags": {}, - "mlFlowRegistryUri": "azureml://westcentralus.api.azureml.ms/mlflow/v1.0/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test358236870698" - }, - "systemData": null + "status": "Succeeded", + "percentComplete": 100.0 } }, { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test358236870698?api-version=2022-10-01-preview", + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test733954978881?api-version=2022-10-01-preview", "RequestMethod": "GET", "RequestHeaders": { - "Accept": "application/json", + "Accept": "*/*", "Accept-Encoding": "gzip, deflate", "Connection": "keep-alive", "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" @@ -440,7 +384,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 15:21:41 GMT", + "Date": "Mon, 24 Oct 2022 20:46:49 GMT", "Expires": "-1", "Pragma": "no-cache", "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", @@ -452,22 +396,22 @@ ], "x-aml-cluster": "vienna-westcentralus-02", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "46982c94-2aa4-47e3-8bb3-ca2badd26ff7", + "x-ms-correlation-request-id": "c96f26b3-0fe8-4b6d-87cd-eaae27ec230a", "x-ms-ratelimit-remaining-subscription-reads": "11990", "x-ms-response-type": "standard", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152142Z:46982c94-2aa4-47e3-8bb3-ca2badd26ff7", - "x-request-time": "0.044" + "x-ms-routing-request-id": "CANADACENTRAL:20221024T204649Z:c96f26b3-0fe8-4b6d-87cd-eaae27ec230a", + "x-request-time": "0.029" }, "ResponseBody": { "tags": {}, "location": "westcentralus", "identity": { "type": "SystemAssigned", - "principalId": "6209c189-b756-4f77-8aba-73f7edd0c0b6", + "principalId": "171ba63e-2bc1-4c40-afb1-51d995ce6a90", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" }, - "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test358236870698", - "name": "test358236870698", + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test733954978881", + "name": "test733954978881", "type": "Microsoft.MachineLearningServices/registries", "properties": { "regionDetails": [ @@ -479,11 +423,11 @@ "newStorageAccount": null, "userCreatedStorageAccount": null, "systemCreatedStorageAccount": { - "storageAccountName": "test3544f72a4d25c4aa4b38", + "storageAccountName": "test705486cd441a242708e5", "storageAccountType": "standard_lrs", "storageAccountHnsEnabled": false, "armResourceId": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test358236870698_2285f223-4d5a-461c-b7a2-4fc9b0a6d0eb/providers/Microsoft.Storage/storageAccounts/test3544f72a4d25c4aa4b38" + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test733954978881_3a4f74bd-7b5d-433b-bf65-40eb5056681c/providers/Microsoft.Storage/storageAccounts/test705486cd441a242708e5" } } } @@ -494,10 +438,10 @@ "newAcrAccount": null, "userCreatedAcrAccount": null, "systemCreatedAcrAccount": { - "acrAccountName": "test35c1a9742a15a43fb85a", + "acrAccountName": "test7c8915abbcbb94c07af8", "acrAccountSku": "Premium", "armResourceId": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test358236870698_2285f223-4d5a-461c-b7a2-4fc9b0a6d0eb/providers/Microsoft.ContainerRegistry/registries/test35c1a9742a15a43fb85a" + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test733954978881_3a4f74bd-7b5d-433b-bf65-40eb5056681c/providers/Microsoft.ContainerRegistry/registries/test7c8915abbcbb94c07af8" } } } @@ -506,112 +450,18 @@ ], "intellectualPropertyPublisher": null, "publicNetworkAccess": "Enabled", - "discoveryUrl": "https://westcentralus.api.azureml.ms/registrymanagement/v1.0/registries/test358236870698/discovery", + "discoveryUrl": "https://westcentralus.api.azureml.ms/registrymanagement/v1.0/registries/test733954978881/discovery", "managedResourceGroup": { - "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test358236870698_2285f223-4d5a-461c-b7a2-4fc9b0a6d0eb" + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test733954978881_3a4f74bd-7b5d-433b-bf65-40eb5056681c" }, "managedResourceGroupTags": {}, - "mlFlowRegistryUri": "azureml://westcentralus.api.azureml.ms/mlflow/v1.0/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test358236870698" + "mlFlowRegistryUri": "azureml://westcentralus.api.azureml.ms/mlflow/v1.0/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test733954978881" }, "systemData": null } - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test358236870698?api-version=2022-10-01-preview", - "RequestMethod": "DELETE", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "Content-Length": "0", - "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" - }, - "RequestBody": null, - "StatusCode": 202, - "ResponseHeaders": { - "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/westcentralus/registryOperationsStatus/88e9a6c3-b529-4172-9066-5047aaf75129?api-version=2022-10-01-preview\u0026type=async", - "Cache-Control": "no-cache", - "Content-Length": "0", - "Date": "Mon, 17 Oct 2022 15:21:42 GMT", - "Expires": "-1", - "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/westcentralus/registryOperationsStatus/88e9a6c3-b529-4172-9066-5047aaf75129?api-version=2022-10-01-preview\u0026type=location", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "x-aml-cluster": "vienna-westcentralus-02", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "bae5efcb-50f5-4392-8433-a010d84cd65d", - "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-response-type": "standard", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152142Z:bae5efcb-50f5-4392-8433-a010d84cd65d", - "x-request-time": "0.154" - }, - "ResponseBody": null - }, - { - "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test358236870698?api-version=2022-10-01-preview", - "RequestMethod": "GET", - "RequestHeaders": { - "Accept": "application/json", - "Accept-Encoding": "gzip, deflate", - "Connection": "keep-alive", - "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" - }, - "RequestBody": null, - "StatusCode": 404, - "ResponseHeaders": { - "Cache-Control": "no-cache", - "Content-Length": "800", - "Content-Type": "application/json; charset=utf-8", - "Date": "Mon, 17 Oct 2022 15:23:43 GMT", - "Expires": "-1", - "Pragma": "no-cache", - "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", - "Strict-Transport-Security": "max-age=31536000; includeSubDomains", - "Vary": "Accept-Encoding", - "x-aml-cluster": "vienna-westcentralus-01", - "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "5d4945bb-b909-4e1e-a504-92b4e0b9f07e", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-response-type": "error", - "x-ms-routing-request-id": "CANADACENTRAL:20221017T152343Z:5d4945bb-b909-4e1e-a504-92b4e0b9f07e", - "x-request-time": "0.052" - }, - "ResponseBody": { - "error": { - "code": "UserError", - "severity": null, - "message": "Registry test358236870698 not found", - "messageFormat": "Registry {registryName} not found", - "messageParameters": { - "registryName": "test358236870698" - }, - "referenceCode": null, - "detailsUri": null, - "target": null, - "details": [], - "innerError": { - "code": "NotFound", - "innerError": { - "code": "RegistryNotFound", - "innerError": null - } - }, - "debugInfo": null, - "additionalInfo": null - }, - "correlation": { - "operation": "c62e635c56078b3b2cbab1589c20dd25", - "request": "925a08cd59389764" - }, - "environment": "westcentralus", - "location": "westcentralus", - "time": "2022-10-17T15:23:43.2937755\u002B00:00", - "componentName": "feedmanagement" - } } ], "Variables": { - "reg_name": "test_358236870698" + "reg_name": "test_733954978881" } } diff --git a/sdk/ml/azure-ai-ml/tests/recordings/registry/e2etests/test_registry.pyTestRegistrytest_registry_operations.json b/sdk/ml/azure-ai-ml/tests/recordings/registry/e2etests/test_registry.pyTestRegistrytest_registry_operations.json new file mode 100644 index 000000000000..506b25bab228 --- /dev/null +++ b/sdk/ml/azure-ai-ml/tests/recordings/registry/e2etests/test_registry.pyTestRegistrytest_registry_operations.json @@ -0,0 +1,767 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test517671305774?api-version=2022-10-01-preview", + "RequestMethod": "PUT", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "447", + "Content-Type": "application/json", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": { + "tags": { + "one": "two", + "three": "five" + }, + "location": "WestCentralUS", + "identity": { + "type": "SystemAssigned" + }, + "properties": { + "regionDetails": [ + { + "acrDetails": [ + { + "systemCreatedAcrAccount": { + "acrAccountSku": "Premium" + } + } + ], + "location": "WestCentralUS", + "storageAccountDetails": [ + { + "systemCreatedStorageAccount": { + "storageAccountHnsEnabled": false, + "storageAccountType": "standard_lrs" + } + } + ] + } + ], + "managedResourceGroupTags": { + "one": "two", + "three": "five" + } + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/744fee32-e16d-4cae-a308-3092ebfd5a27?api-version=2022-10-01-preview\u0026type=async", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 21 Oct 2022 16:24:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/744fee32-e16d-4cae-a308-3092ebfd5a27?api-version=2022-10-01-preview\u0026type=location", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ee99f7ce-8e7a-4c79-b5a4-7bb08396114e", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162403Z:ee99f7ce-8e7a-4c79-b5a4-7bb08396114e", + "x-request-time": "0.108" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/744fee32-e16d-4cae-a308-3092ebfd5a27?api-version=2022-10-01-preview\u0026type=async", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:24:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "05a6090b-d8ef-49d0-a6d6-576bd098105b", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162408Z:05a6090b-d8ef-49d0-a6d6-576bd098105b", + "x-request-time": "0.042" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/744fee32-e16d-4cae-a308-3092ebfd5a27?api-version=2022-10-01-preview\u0026type=async", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:24:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ba3efdc5-930a-4bd4-be28-cc9039422c0d", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162413Z:ba3efdc5-930a-4bd4-be28-cc9039422c0d", + "x-request-time": "0.042" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/744fee32-e16d-4cae-a308-3092ebfd5a27?api-version=2022-10-01-preview\u0026type=async", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:24:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1aa113f9-d8da-4d18-b112-f0887c647e7f", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162418Z:1aa113f9-d8da-4d18-b112-f0887c647e7f", + "x-request-time": "0.040" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/744fee32-e16d-4cae-a308-3092ebfd5a27?api-version=2022-10-01-preview\u0026type=async", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:24:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2c65759b-60df-48c7-99c6-7a19355a79b8", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162423Z:2c65759b-60df-48c7-99c6-7a19355a79b8", + "x-request-time": "0.042" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/744fee32-e16d-4cae-a308-3092ebfd5a27?api-version=2022-10-01-preview\u0026type=async", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:24:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "254dc0b6-2554-417d-b63e-1bace46996bb", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162429Z:254dc0b6-2554-417d-b63e-1bace46996bb", + "x-request-time": "0.043" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/744fee32-e16d-4cae-a308-3092ebfd5a27?api-version=2022-10-01-preview\u0026type=async", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:24:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e1100673-9dee-46f6-ab6f-a10fc38da233", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162434Z:e1100673-9dee-46f6-ab6f-a10fc38da233", + "x-request-time": "0.044" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/744fee32-e16d-4cae-a308-3092ebfd5a27?api-version=2022-10-01-preview\u0026type=async", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:24:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4328d866-b41b-40e9-b68d-024450585ffb", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162439Z:4328d866-b41b-40e9-b68d-024450585ffb", + "x-request-time": "0.046" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/744fee32-e16d-4cae-a308-3092ebfd5a27?api-version=2022-10-01-preview\u0026type=async", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:24:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb0c7af7-a676-4a32-b710-ee169cab1121", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162444Z:bb0c7af7-a676-4a32-b710-ee169cab1121", + "x-request-time": "0.046" + }, + "ResponseBody": { + "status": "InProgress" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/WestCentralUS/registryOperationsStatus/744fee32-e16d-4cae-a308-3092ebfd5a27?api-version=2022-10-01-preview\u0026type=async", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:24:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6191de10-70f8-43ac-b9cc-3cbfec67d4f5", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162449Z:6191de10-70f8-43ac-b9cc-3cbfec67d4f5", + "x-request-time": "0.066" + }, + "ResponseBody": { + "status": "Succeeded", + "percentComplete": 100.0 + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test517671305774?api-version=2022-10-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:24:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "17e6cb71-3101-4860-9bc4-e7a77c9ec1a7", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162450Z:17e6cb71-3101-4860-9bc4-e7a77c9ec1a7", + "x-request-time": "0.024" + }, + "ResponseBody": { + "tags": { + "one": "two", + "three": "five" + }, + "location": "westcentralus", + "identity": { + "type": "SystemAssigned", + "principalId": "b7872e86-319a-4bf2-ae99-2f55ba8810ef", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test517671305774", + "name": "test517671305774", + "type": "Microsoft.MachineLearningServices/registries", + "properties": { + "regionDetails": [ + { + "location": "westcentralus", + "storageAccountDetails": [ + { + "existingStorageAccount": null, + "newStorageAccount": null, + "userCreatedStorageAccount": null, + "systemCreatedStorageAccount": { + "storageAccountName": "test5d81898358a0b418b887", + "storageAccountType": "standard_lrs", + "storageAccountHnsEnabled": false, + "armResourceId": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test517671305774_3e0441bc-69d8-4ecc-97d5-b1f43ebbe98c/providers/Microsoft.Storage/storageAccounts/test5d81898358a0b418b887" + } + } + } + ], + "acrDetails": [ + { + "existingAcrAccount": null, + "newAcrAccount": null, + "userCreatedAcrAccount": null, + "systemCreatedAcrAccount": { + "acrAccountName": "test5265e682b1df9499bba8", + "acrAccountSku": "Premium", + "armResourceId": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test517671305774_3e0441bc-69d8-4ecc-97d5-b1f43ebbe98c/providers/Microsoft.ContainerRegistry/registries/test5265e682b1df9499bba8" + } + } + } + ] + } + ], + "intellectualPropertyPublisher": null, + "publicNetworkAccess": "Enabled", + "discoveryUrl": "https://westcentralus.api.azureml.ms/registrymanagement/v1.0/registries/test517671305774/discovery", + "managedResourceGroup": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test517671305774_3e0441bc-69d8-4ecc-97d5-b1f43ebbe98c" + }, + "managedResourceGroupTags": { + "one": "two", + "three": "five" + }, + "mlFlowRegistryUri": "azureml://westcentralus.api.azureml.ms/mlflow/v1.0/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test517671305774" + }, + "systemData": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test517671305774?api-version=2022-10-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:24:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f3ca9d63-99c4-4747-abeb-0ad0bade344a", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162450Z:f3ca9d63-99c4-4747-abeb-0ad0bade344a", + "x-request-time": "0.018" + }, + "ResponseBody": { + "tags": { + "one": "two", + "three": "five" + }, + "location": "westcentralus", + "identity": { + "type": "SystemAssigned", + "principalId": "b7872e86-319a-4bf2-ae99-2f55ba8810ef", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test517671305774", + "name": "test517671305774", + "type": "Microsoft.MachineLearningServices/registries", + "properties": { + "regionDetails": [ + { + "location": "westcentralus", + "storageAccountDetails": [ + { + "existingStorageAccount": null, + "newStorageAccount": null, + "userCreatedStorageAccount": null, + "systemCreatedStorageAccount": { + "storageAccountName": "test5d81898358a0b418b887", + "storageAccountType": "standard_lrs", + "storageAccountHnsEnabled": false, + "armResourceId": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test517671305774_3e0441bc-69d8-4ecc-97d5-b1f43ebbe98c/providers/Microsoft.Storage/storageAccounts/test5d81898358a0b418b887" + } + } + } + ], + "acrDetails": [ + { + "existingAcrAccount": null, + "newAcrAccount": null, + "userCreatedAcrAccount": null, + "systemCreatedAcrAccount": { + "acrAccountName": "test5265e682b1df9499bba8", + "acrAccountSku": "Premium", + "armResourceId": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test517671305774_3e0441bc-69d8-4ecc-97d5-b1f43ebbe98c/providers/Microsoft.ContainerRegistry/registries/test5265e682b1df9499bba8" + } + } + } + ] + } + ], + "intellectualPropertyPublisher": null, + "publicNetworkAccess": "Enabled", + "discoveryUrl": "https://westcentralus.api.azureml.ms/registrymanagement/v1.0/registries/test517671305774/discovery", + "managedResourceGroup": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test517671305774_3e0441bc-69d8-4ecc-97d5-b1f43ebbe98c" + }, + "managedResourceGroupTags": { + "one": "two", + "three": "five" + }, + "mlFlowRegistryUri": "azureml://westcentralus.api.azureml.ms/mlflow/v1.0/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test517671305774" + }, + "systemData": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test517671305774?api-version=2022-10-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:24:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": [ + "Accept-Encoding", + "Accept-Encoding" + ], + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "40bb51a5-c06f-4f6f-bdff-2cc3d4078804", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162450Z:40bb51a5-c06f-4f6f-bdff-2cc3d4078804", + "x-request-time": "0.017" + }, + "ResponseBody": { + "tags": { + "one": "two", + "three": "five" + }, + "location": "westcentralus", + "identity": { + "type": "SystemAssigned", + "principalId": "b7872e86-319a-4bf2-ae99-2f55ba8810ef", + "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47" + }, + "id": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test517671305774", + "name": "test517671305774", + "type": "Microsoft.MachineLearningServices/registries", + "properties": { + "regionDetails": [ + { + "location": "westcentralus", + "storageAccountDetails": [ + { + "existingStorageAccount": null, + "newStorageAccount": null, + "userCreatedStorageAccount": null, + "systemCreatedStorageAccount": { + "storageAccountName": "test5d81898358a0b418b887", + "storageAccountType": "standard_lrs", + "storageAccountHnsEnabled": false, + "armResourceId": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test517671305774_3e0441bc-69d8-4ecc-97d5-b1f43ebbe98c/providers/Microsoft.Storage/storageAccounts/test5d81898358a0b418b887" + } + } + } + ], + "acrDetails": [ + { + "existingAcrAccount": null, + "newAcrAccount": null, + "userCreatedAcrAccount": null, + "systemCreatedAcrAccount": { + "acrAccountName": "test5265e682b1df9499bba8", + "acrAccountSku": "Premium", + "armResourceId": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test517671305774_3e0441bc-69d8-4ecc-97d5-b1f43ebbe98c/providers/Microsoft.ContainerRegistry/registries/test5265e682b1df9499bba8" + } + } + } + ] + } + ], + "intellectualPropertyPublisher": null, + "publicNetworkAccess": "Enabled", + "discoveryUrl": "https://westcentralus.api.azureml.ms/registrymanagement/v1.0/registries/test517671305774/discovery", + "managedResourceGroup": { + "resourceId": "/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/azureml-rg-test517671305774_3e0441bc-69d8-4ecc-97d5-b1f43ebbe98c" + }, + "managedResourceGroupTags": { + "one": "two", + "three": "five" + }, + "mlFlowRegistryUri": "azureml://westcentralus.api.azureml.ms/mlflow/v1.0/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test517671305774" + }, + "systemData": null + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test517671305774?api-version=2022-10-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "0", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Azure-AsyncOperation": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/westcentralus/registryOperationsStatus/a57009e2-77a6-4ec3-861f-db0fdeabf1ff?api-version=2022-10-01-preview\u0026type=async", + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 21 Oct 2022 16:25:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/providers/Microsoft.MachineLearningServices/locations/westcentralus/registryOperationsStatus/a57009e2-77a6-4ec3-861f-db0fdeabf1ff?api-version=2022-10-01-preview\u0026type=location", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "54640749-57a5-4398-8e11-66699d4643d9", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-response-type": "standard", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162525Z:54640749-57a5-4398-8e11-66699d4643d9", + "x-request-time": "0.102" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000/resourceGroups/00000/providers/Microsoft.MachineLearningServices/registries/test517671305774?api-version=2022-10-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azure-ai-ml/1.1.0 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.8.10 (Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29)" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "799", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 21 Oct 2022 16:27:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Request-Context": "appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Vary": "Accept-Encoding", + "x-aml-cluster": "vienna-westcentralus-02", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c0f20875-ffb5-43e0-9a4f-d5e7200eb1be", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-response-type": "error", + "x-ms-routing-request-id": "CANADACENTRAL:20221021T162726Z:c0f20875-ffb5-43e0-9a4f-d5e7200eb1be", + "x-request-time": "0.046" + }, + "ResponseBody": { + "error": { + "code": "UserError", + "severity": null, + "message": "Registry test517671305774 not found", + "messageFormat": "Registry {registryName} not found", + "messageParameters": { + "registryName": "test517671305774" + }, + "referenceCode": null, + "detailsUri": null, + "target": null, + "details": [], + "innerError": { + "code": "NotFound", + "innerError": { + "code": "RegistryNotFound", + "innerError": null + } + }, + "debugInfo": null, + "additionalInfo": null + }, + "correlation": { + "operation": "b1a045870e012dc2c8783af9f8812aaf", + "request": "a2082331b0e38dda" + }, + "environment": "westcentralus", + "location": "westcentralus", + "time": "2022-10-21T16:27:26.778097\u002B00:00", + "componentName": "feedmanagement" + } + } + ], + "Variables": { + "reg_name": "test_517671305774" + } +} diff --git a/sdk/ml/azure-ai-ml/tests/registry/e2etests/test_registry.py b/sdk/ml/azure-ai-ml/tests/registry/e2etests/test_registry.py index 279955ae3b57..0c437720a127 100644 --- a/sdk/ml/azure-ai-ml/tests/registry/e2etests/test_registry.py +++ b/sdk/ml/azure-ai-ml/tests/registry/e2etests/test_registry.py @@ -8,7 +8,8 @@ from azure.ai.ml.constants._common import LROConfigurations from azure.core.paging import ItemPaged from azure.core.exceptions import ResourceNotFoundError -from devtools_testutils import AzureRecordedTestCase, recorded_by_proxy, is_live +from devtools_testutils import AzureRecordedTestCase, is_live +from azure.ai.ml._restclient.v2022_10_01_preview.operations._registries_operations import RegistriesOperations import time @pytest.mark.e2etest @@ -16,7 +17,7 @@ @pytest.mark.production_experiences_test class TestRegistry(AzureRecordedTestCase): @pytest.mark.e2etest - def test_registry_list_and_get( + def test_registry_operations( self, crud_registry_client: MLClient, randstr: Callable[[], str], @@ -45,6 +46,16 @@ def test_registry_list_and_get( registry = crud_registry_client.registries.get(name=reg_name) assert registry.name == reg_name + # Some values are assigned by registries, but hidden in the local representation to avoid confusing users. + # Double check that they're set properly by examining the raw registry format. + rest_registry = crud_registry_client.registries._operation.get(resource_group_name=crud_registry_client.resource_group_name, registry_name=reg_name) + assert rest_registry + # don't do a standard dictionary equality check to avoid being surprised by auto-set tags + assert rest_registry.tags["one"] == "two" + assert rest_registry.tags["three"] == "five" + assert rest_registry.properties.managed_resource_group_tags["one"] == "two" + assert rest_registry.properties.managed_resource_group_tags["three"] == "five" + registry = crud_registry_client.registries.delete(name=reg_name) assert registry is None # give the delete operation time to fully take place in the backend diff --git a/sdk/ml/azure-ai-ml/tests/test_configs/registry/registry_valid_min.yaml b/sdk/ml/azure-ai-ml/tests/test_configs/registry/registry_valid_min.yaml index 1603bd15d47b..c74d1779342f 100644 --- a/sdk/ml/azure-ai-ml/tests/test_configs/registry/registry_valid_min.yaml +++ b/sdk/ml/azure-ai-ml/tests/test_configs/registry/registry_valid_min.yaml @@ -1,5 +1,8 @@ description: This is a registry description name: registry_name location: WestCentralUS +tags: + one: two + three: five replication_locations: - location: WestCentralUS