From 091a21452492f57b620e4983b4471695e35ed1e2 Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Tue, 26 Jul 2022 13:43:48 +0800 Subject: [PATCH 01/11] [FluidRelay]Generate fluid-relay with codegen v2 --- src/fluid-relay/HISTORY.rst | 8 + src/fluid-relay/README.md | 5 + src/fluid-relay/azext_fluid_relay/__init__.py | 42 + src/fluid-relay/azext_fluid_relay/_help.py | 11 + src/fluid-relay/azext_fluid_relay/_params.py | 13 + .../azext_fluid_relay/aaz/__init__.py | 6 + .../azext_fluid_relay/aaz/latest/__init__.py | 6 + .../aaz/latest/fluid_relay/__cmd_group.py | 23 + .../aaz/latest/fluid_relay/__init__.py | 11 + .../fluid_relay/container/__cmd_group.py | 23 + .../latest/fluid_relay/container/__init__.py | 14 + .../latest/fluid_relay/container/_delete.py | 132 ++ .../aaz/latest/fluid_relay/container/_list.py | 222 +++ .../aaz/latest/fluid_relay/container/_show.py | 221 +++ .../latest/fluid_relay/server/__cmd_group.py | 23 + .../aaz/latest/fluid_relay/server/__init__.py | 18 + .../aaz/latest/fluid_relay/server/_create.py | 421 +++++ .../aaz/latest/fluid_relay/server/_delete.py | 122 ++ .../aaz/latest/fluid_relay/server/_list.py | 526 +++++++ .../latest/fluid_relay/server/_list_key.py | 154 ++ .../fluid_relay/server/_regenerate_key.py | 179 +++ .../aaz/latest/fluid_relay/server/_show.py | 289 ++++ .../aaz/latest/fluid_relay/server/_update.py | 400 +++++ .../azext_fluid_relay/azext_metadata.json | 4 + src/fluid-relay/azext_fluid_relay/commands.py | 15 + src/fluid-relay/azext_fluid_relay/custom.py | 14 + .../azext_fluid_relay/tests/__init__.py | 6 + .../tests/latest/__init__.py | 6 + .../recordings/test_fluid_relay_scenario.yaml | 1358 +++++++++++++++++ .../tests/latest/test_fluid_relay.py | 76 + src/fluid-relay/setup.cfg | 1 + src/fluid-relay/setup.py | 49 + 32 files changed, 4398 insertions(+) create mode 100644 src/fluid-relay/HISTORY.rst create mode 100644 src/fluid-relay/README.md create mode 100644 src/fluid-relay/azext_fluid_relay/__init__.py create mode 100644 src/fluid-relay/azext_fluid_relay/_help.py create mode 100644 src/fluid-relay/azext_fluid_relay/_params.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/__init__.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/__init__.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/__cmd_group.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/__init__.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/__cmd_group.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/__init__.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_delete.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_list.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_show.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/__cmd_group.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/__init__.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_create.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_delete.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list_key.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_regenerate_key.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_show.py create mode 100644 src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_update.py create mode 100644 src/fluid-relay/azext_fluid_relay/azext_metadata.json create mode 100644 src/fluid-relay/azext_fluid_relay/commands.py create mode 100644 src/fluid-relay/azext_fluid_relay/custom.py create mode 100644 src/fluid-relay/azext_fluid_relay/tests/__init__.py create mode 100644 src/fluid-relay/azext_fluid_relay/tests/latest/__init__.py create mode 100644 src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml create mode 100644 src/fluid-relay/azext_fluid_relay/tests/latest/test_fluid_relay.py create mode 100644 src/fluid-relay/setup.cfg create mode 100644 src/fluid-relay/setup.py diff --git a/src/fluid-relay/HISTORY.rst b/src/fluid-relay/HISTORY.rst new file mode 100644 index 00000000000..8c34bccfff8 --- /dev/null +++ b/src/fluid-relay/HISTORY.rst @@ -0,0 +1,8 @@ +.. :changelog: + +Release History +=============== + +0.1.0 +++++++ +* Initial release. \ No newline at end of file diff --git a/src/fluid-relay/README.md b/src/fluid-relay/README.md new file mode 100644 index 00000000000..d23150ad4c2 --- /dev/null +++ b/src/fluid-relay/README.md @@ -0,0 +1,5 @@ +# Azure CLI FluidRelay Extension # +This is an extension to Azure CLI to manage FluidRelay resources. + +## How to use ## +Please add commands usage here. \ No newline at end of file diff --git a/src/fluid-relay/azext_fluid_relay/__init__.py b/src/fluid-relay/azext_fluid_relay/__init__.py new file mode 100644 index 00000000000..c2570aee457 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/__init__.py @@ -0,0 +1,42 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +from azure.cli.core import AzCommandsLoader +from azext_fluid_relay._help import helps # pylint: disable=unused-import + + +class FluidRelayCommandsLoader(AzCommandsLoader): + + def __init__(self, cli_ctx=None): + from azure.cli.core.commands import CliCommandType + custom_command_type = CliCommandType( + operations_tmpl='azext_fluid_relay.custom#{}') + super().__init__(cli_ctx=cli_ctx, + custom_command_type=custom_command_type) + + def load_command_table(self, args): + from azext_fluid_relay.commands import load_command_table + from azure.cli.core.aaz import load_aaz_command_table + try: + from . import aaz + except ImportError: + aaz = None + if aaz: + load_aaz_command_table( + loader=self, + aaz_pkg_name=aaz.__name__, + args=args + ) + load_command_table(self, args) + return self.command_table + + def load_arguments(self, command): + from azext_fluid_relay._params import load_arguments + load_arguments(self, command) + + +COMMAND_LOADER_CLS = FluidRelayCommandsLoader diff --git a/src/fluid-relay/azext_fluid_relay/_help.py b/src/fluid-relay/azext_fluid_relay/_help.py new file mode 100644 index 00000000000..126d5d00714 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/_help.py @@ -0,0 +1,11 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: disable=line-too-long +# pylint: disable=too-many-lines + +from knack.help_files import helps # pylint: disable=unused-import diff --git a/src/fluid-relay/azext_fluid_relay/_params.py b/src/fluid-relay/azext_fluid_relay/_params.py new file mode 100644 index 00000000000..cfcec717c9c --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/_params.py @@ -0,0 +1,13 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: disable=too-many-lines +# pylint: disable=too-many-statements + + +def load_arguments(self, _): # pylint: disable=unused-argument + pass diff --git a/src/fluid-relay/azext_fluid_relay/aaz/__init__.py b/src/fluid-relay/azext_fluid_relay/aaz/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/__init__.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/__cmd_group.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/__cmd_group.py new file mode 100644 index 00000000000..15fbddb8af2 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "fluid-relay", +) +class __CMDGroup(AAZCommandGroup): + """Manage Fluid Relay + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/__init__.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/__init__.py new file mode 100644 index 00000000000..5a9d61963d6 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/__init__.py @@ -0,0 +1,11 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/__cmd_group.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/__cmd_group.py new file mode 100644 index 00000000000..9cf5425c4d2 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "fluid-relay container", +) +class __CMDGroup(AAZCommandGroup): + """Manage Fluid Relay Container. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/__init__.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/__init__.py new file mode 100644 index 00000000000..054d52707ea --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/__init__.py @@ -0,0 +1,14 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._delete import * +from ._list import * +from ._show import * diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_delete.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_delete.py new file mode 100644 index 00000000000..a45d2de47fe --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_delete.py @@ -0,0 +1,132 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "fluid-relay container delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a Fluid Relay container. + """ + + _aaz_info = { + "version": "2022-06-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.fluidrelay/fluidrelayservers/{}/fluidrelaycontainers/{}", "2022-06-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.container_name = AAZStrArg( + options=["-n", "--name", "--container-name"], + help="The Fluid Relay container resource name.", + required=True, + id_part="child_name_1", + ) + _args_schema.server_name = AAZStrArg( + options=["--server-name"], + help="The Fluid Relay server resource name.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.FluidRelayContainersDelete(ctx=self.ctx)() + + class FluidRelayContainersDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.FluidRelay/fluidRelayServers/{fluidRelayServerName}/fluidRelayContainers/{fluidRelayContainerName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "fluidRelayContainerName", self.ctx.args.container_name, + required=True, + ), + **self.serialize_url_param( + "fluidRelayServerName", self.ctx.args.server_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroup", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-06-01", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_list.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_list.py new file mode 100644 index 00000000000..af58c7047bd --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_list.py @@ -0,0 +1,222 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "fluid-relay container list", +) +class List(AAZCommand): + """List all Fluid Relay containers which are children of a given Fluid Relay server. + """ + + _aaz_info = { + "version": "2022-06-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.fluidrelay/fluidrelayservers/{}/fluidrelaycontainers", "2022-06-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.server_name = AAZStrArg( + options=["--server-name"], + help="The Fluid Relay server resource name.", + required=True, + ) + _args_schema.resource_group = AAZStrArg( + options=["-g", "--resource-group"], + help="The resource group containing the resource.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.FluidRelayContainersListByFluidRelayServers(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class FluidRelayContainersListByFluidRelayServers(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.FluidRelay/fluidRelayServers/{fluidRelayServerName}/fluidRelayContainers", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "fluidRelayServerName", self.ctx.args.server_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroup", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-06-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + flags={"read_only": True}, + ) + _schema_on_200.value = AAZListType() + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True, "read_only": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.creation_time = AAZStrType( + serialized_name="creationTime", + flags={"read_only": True}, + ) + properties.frs_container_id = AAZStrType( + serialized_name="frsContainerId", + flags={"read_only": True}, + ) + properties.frs_tenant_id = AAZStrType( + serialized_name="frsTenantId", + flags={"read_only": True}, + ) + properties.last_access_time = AAZStrType( + serialized_name="lastAccessTime", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + return cls._schema_on_200 + + +__all__ = ["List"] diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_show.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_show.py new file mode 100644 index 00000000000..a2cc6be960f --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_show.py @@ -0,0 +1,221 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "fluid-relay container show", +) +class Show(AAZCommand): + """Get a Fluid Relay container. + """ + + _aaz_info = { + "version": "2022-06-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.fluidrelay/fluidrelayservers/{}/fluidrelaycontainers/{}", "2022-06-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.container_name = AAZStrArg( + options=["-n", "--name", "--container-name"], + help="The Fluid Relay container resource name.", + required=True, + id_part="child_name_1", + ) + _args_schema.server_name = AAZStrArg( + options=["--server-name"], + help="The Fluid Relay server resource name.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.FluidRelayContainersGet(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class FluidRelayContainersGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.FluidRelay/fluidRelayServers/{fluidRelayServerName}/fluidRelayContainers/{fluidRelayContainerName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "fluidRelayContainerName", self.ctx.args.container_name, + required=True, + ), + **self.serialize_url_param( + "fluidRelayServerName", self.ctx.args.server_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroup", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-06-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True, "read_only": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.creation_time = AAZStrType( + serialized_name="creationTime", + flags={"read_only": True}, + ) + properties.frs_container_id = AAZStrType( + serialized_name="frsContainerId", + flags={"read_only": True}, + ) + properties.frs_tenant_id = AAZStrType( + serialized_name="frsTenantId", + flags={"read_only": True}, + ) + properties.last_access_time = AAZStrType( + serialized_name="lastAccessTime", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/__cmd_group.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/__cmd_group.py new file mode 100644 index 00000000000..dd8f4885a6d --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/__cmd_group.py @@ -0,0 +1,23 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command_group( + "fluid-relay server", +) +class __CMDGroup(AAZCommandGroup): + """Manage Fluid Relay Server. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/__init__.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/__init__.py new file mode 100644 index 00000000000..7d340b8ec98 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/__init__.py @@ -0,0 +1,18 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from .__cmd_group import * +from ._create import * +from ._delete import * +from ._list import * +from ._list_key import * +from ._regenerate_key import * +from ._show import * +from ._update import * diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_create.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_create.py new file mode 100644 index 00000000000..1d203b24078 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_create.py @@ -0,0 +1,421 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "fluid-relay server create", +) +class Create(AAZCommand): + """Create a Fluid Relay server. + """ + + _aaz_info = { + "version": "2022-06-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.fluidrelay/fluidrelayservers/{}", "2022-06-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.server_name = AAZStrArg( + options=["-n", "--name", "--server-name"], + help="The Fluid Relay server resource name.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "CustomerManagedKeyEncryption" + + _args_schema = cls._args_schema + _args_schema.key_identity = AAZObjectArg( + options=["--key-identity"], + arg_group="CustomerManagedKeyEncryption", + help="All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.", + ) + _args_schema.key_url = AAZStrArg( + options=["--key-url"], + arg_group="CustomerManagedKeyEncryption", + help="key encryption key Url, with or without a version. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. Key auto rotation is enabled by providing a key uri without version. Otherwise, customer is responsible for rotating the key. The keyEncryptionKeyIdentity(either SystemAssigned or UserAssigned) should have permission to access this key url.", + ) + + key_identity = cls._args_schema.key_identity + key_identity.identity_type = AAZStrArg( + options=["identity-type"], + help="Values can be SystemAssigned or UserAssigned", + enum={"SystemAssigned": "SystemAssigned", "UserAssigned": "UserAssigned"}, + ) + key_identity.user_assigned_identities = AAZStrArg( + options=["user-assigned-identities"], + help="user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity.", + ) + + # define Arg Group "Properties" + + _args_schema = cls._args_schema + _args_schema.provisioning_state = AAZStrArg( + options=["--provisioning-state"], + arg_group="Properties", + help="Provision states for FluidRelay RP", + enum={"Canceled": "Canceled", "Failed": "Failed", "Succeeded": "Succeeded"}, + ) + _args_schema.sku = AAZStrArg( + options=["--sku"], + arg_group="Properties", + help="Sku of the storage associated with the resource", + enum={"basic": "basic", "standard": "standard"}, + ) + + # define Arg Group "Resource" + + _args_schema = cls._args_schema + _args_schema.identity = AAZObjectArg( + options=["--identity"], + arg_group="Resource", + help="The type of identity used for the resource.", + ) + _args_schema.location = AAZResourceLocationArg( + arg_group="Resource", + help="The geo-location where the resource lives", + required=True, + fmt=AAZResourceLocationArgFormat( + resource_group_arg="resource_group", + ), + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="Resource", + help="Resource tags.", + ) + + identity = cls._args_schema.identity + identity.type = AAZStrArg( + options=["type"], + help="The identity type.", + enum={"None": "None", "SystemAssigned": "SystemAssigned", "SystemAssigned, UserAssigned": "SystemAssigned, UserAssigned", "UserAssigned": "UserAssigned"}, + ) + identity.user_assigned_identities = AAZDictArg( + options=["user-assigned-identities"], + help="The list of user identities associated with the resource.", + ) + + user_assigned_identities = cls._args_schema.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectArg( + blank={}, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + self.FluidRelayServersCreateOrUpdate(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class FluidRelayServersCreateOrUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.FluidRelay/fluidRelayServers/{fluidRelayServerName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "fluidRelayServerName", self.ctx.args.server_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroup", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-06-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("identity", AAZObjectType, ".identity") + _builder.set_prop("location", AAZStrType, ".location", typ_kwargs={"flags": {"required": True}}) + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + identity = _builder.get(".identity") + if identity is not None: + identity.set_prop("type", AAZStrType, ".type") + identity.set_prop("userAssignedIdentities", AAZDictType, ".user_assigned_identities") + + user_assigned_identities = _builder.get(".identity.userAssignedIdentities") + if user_assigned_identities is not None: + user_assigned_identities.set_elements(AAZObjectType, ".") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("encryption", AAZObjectType) + properties.set_prop("provisioningState", AAZStrType, ".provisioning_state") + properties.set_prop("storagesku", AAZStrType, ".sku") + + encryption = _builder.get(".properties.encryption") + if encryption is not None: + encryption.set_prop("customerManagedKeyEncryption", AAZObjectType) + + customer_managed_key_encryption = _builder.get(".properties.encryption.customerManagedKeyEncryption") + if customer_managed_key_encryption is not None: + customer_managed_key_encryption.set_prop("keyEncryptionKeyIdentity", AAZObjectType, ".key_identity") + customer_managed_key_encryption.set_prop("keyEncryptionKeyUrl", AAZStrType, ".key_url") + + key_encryption_key_identity = _builder.get(".properties.encryption.customerManagedKeyEncryption.keyEncryptionKeyIdentity") + if key_encryption_key_identity is not None: + key_encryption_key_identity.set_prop("identityType", AAZStrType, ".identity_type") + key_encryption_key_identity.set_prop("userAssignedIdentityResourceId", AAZStrType, ".user_assigned_identities") + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.identity = AAZObjectType() + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.encryption = AAZObjectType() + properties.fluid_relay_endpoints = AAZObjectType( + serialized_name="fluidRelayEndpoints", + flags={"read_only": True}, + ) + properties.frs_tenant_id = AAZStrType( + serialized_name="frsTenantId", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.storagesku = AAZStrType() + + encryption = cls._schema_on_200.properties.encryption + encryption.customer_managed_key_encryption = AAZObjectType( + serialized_name="customerManagedKeyEncryption", + ) + + customer_managed_key_encryption = cls._schema_on_200.properties.encryption.customer_managed_key_encryption + customer_managed_key_encryption.key_encryption_key_identity = AAZObjectType( + serialized_name="keyEncryptionKeyIdentity", + ) + customer_managed_key_encryption.key_encryption_key_url = AAZStrType( + serialized_name="keyEncryptionKeyUrl", + ) + + key_encryption_key_identity = cls._schema_on_200.properties.encryption.customer_managed_key_encryption.key_encryption_key_identity + key_encryption_key_identity.identity_type = AAZStrType( + serialized_name="identityType", + ) + key_encryption_key_identity.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + ) + + fluid_relay_endpoints = cls._schema_on_200.properties.fluid_relay_endpoints + fluid_relay_endpoints.orderer_endpoints = AAZListType( + serialized_name="ordererEndpoints", + flags={"read_only": True}, + ) + fluid_relay_endpoints.service_endpoints = AAZListType( + serialized_name="serviceEndpoints", + flags={"read_only": True}, + ) + fluid_relay_endpoints.storage_endpoints = AAZListType( + serialized_name="storageEndpoints", + flags={"read_only": True}, + ) + + orderer_endpoints = cls._schema_on_200.properties.fluid_relay_endpoints.orderer_endpoints + orderer_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + service_endpoints = cls._schema_on_200.properties.fluid_relay_endpoints.service_endpoints + service_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + storage_endpoints = cls._schema_on_200.properties.fluid_relay_endpoints.storage_endpoints + storage_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["Create"] diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_delete.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_delete.py new file mode 100644 index 00000000000..ba407e3f18e --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_delete.py @@ -0,0 +1,122 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "fluid-relay server delete", + confirmation="Are you sure you want to perform this operation?", +) +class Delete(AAZCommand): + """Delete a Fluid Relay server. + """ + + _aaz_info = { + "version": "2022-06-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.fluidrelay/fluidrelayservers/{}", "2022-06-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return None + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.server_name = AAZStrArg( + options=["-n", "--name", "--server-name"], + help="The Fluid Relay server resource name.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.FluidRelayServersDelete(ctx=self.ctx)() + + class FluidRelayServersDelete(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + if session.http_response.status_code in [204]: + return self.on_204(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.FluidRelay/fluidRelayServers/{fluidRelayServerName}", + **self.url_parameters + ) + + @property + def method(self): + return "DELETE" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "fluidRelayServerName", self.ctx.args.server_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroup", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-06-01", + required=True, + ), + } + return parameters + + def on_200(self, session): + pass + + def on_204(self, session): + pass + + +__all__ = ["Delete"] diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py new file mode 100644 index 00000000000..c6eefd653ad --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py @@ -0,0 +1,526 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "fluid-relay server list", +) +class List(AAZCommand): + """List all Fluid Relay servers. + """ + + _aaz_info = { + "version": "2022-06-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.fluidrelay/fluidrelayservers", "2022-06-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.fluidrelay/fluidrelayservers", "2022-06-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + return self.build_paging(self._execute_operations, self._output) + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.resource_group = AAZStrArg( + options=["-g", "--resource-group"], + help="The resource group containing the resource.", + ) + return cls._args_schema + + def _execute_operations(self): + condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True + if condition_0: + self.FluidRelayServersListByResourceGroup(ctx=self.ctx)() + if condition_1: + self.FluidRelayServersListBySubscription(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) + next_link = self.deserialize_output(self.ctx.vars.instance.next_link) + return result, next_link + + class FluidRelayServersListByResourceGroup(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.FluidRelay/fluidRelayServers", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "resourceGroup", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-06-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType( + flags={"required": True}, + ) + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.identity = AAZObjectType() + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.value.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.value.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.encryption = AAZObjectType() + properties.fluid_relay_endpoints = AAZObjectType( + serialized_name="fluidRelayEndpoints", + flags={"read_only": True}, + ) + properties.frs_tenant_id = AAZStrType( + serialized_name="frsTenantId", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.storagesku = AAZStrType() + + encryption = cls._schema_on_200.value.Element.properties.encryption + encryption.customer_managed_key_encryption = AAZObjectType( + serialized_name="customerManagedKeyEncryption", + ) + + customer_managed_key_encryption = cls._schema_on_200.value.Element.properties.encryption.customer_managed_key_encryption + customer_managed_key_encryption.key_encryption_key_identity = AAZObjectType( + serialized_name="keyEncryptionKeyIdentity", + ) + customer_managed_key_encryption.key_encryption_key_url = AAZStrType( + serialized_name="keyEncryptionKeyUrl", + ) + + key_encryption_key_identity = cls._schema_on_200.value.Element.properties.encryption.customer_managed_key_encryption.key_encryption_key_identity + key_encryption_key_identity.identity_type = AAZStrType( + serialized_name="identityType", + ) + key_encryption_key_identity.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + ) + + fluid_relay_endpoints = cls._schema_on_200.value.Element.properties.fluid_relay_endpoints + fluid_relay_endpoints.orderer_endpoints = AAZListType( + serialized_name="ordererEndpoints", + flags={"read_only": True}, + ) + fluid_relay_endpoints.service_endpoints = AAZListType( + serialized_name="serviceEndpoints", + flags={"read_only": True}, + ) + fluid_relay_endpoints.storage_endpoints = AAZListType( + serialized_name="storageEndpoints", + flags={"read_only": True}, + ) + + orderer_endpoints = cls._schema_on_200.value.Element.properties.fluid_relay_endpoints.orderer_endpoints + orderer_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + service_endpoints = cls._schema_on_200.value.Element.properties.fluid_relay_endpoints.service_endpoints + service_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + storage_endpoints = cls._schema_on_200.value.Element.properties.fluid_relay_endpoints.storage_endpoints + storage_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + class FluidRelayServersListBySubscription(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/providers/Microsoft.FluidRelay/fluidRelayServers", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-06-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.next_link = AAZStrType( + serialized_name="nextLink", + ) + _schema_on_200.value = AAZListType( + flags={"required": True}, + ) + + value = cls._schema_on_200.value + value.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element + _element.id = AAZStrType( + flags={"read_only": True}, + ) + _element.identity = AAZObjectType() + _element.location = AAZStrType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"read_only": True}, + ) + _element.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _element.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _element.tags = AAZDictType() + _element.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.value.Element.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.value.Element.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.value.Element.properties + properties.encryption = AAZObjectType() + properties.fluid_relay_endpoints = AAZObjectType( + serialized_name="fluidRelayEndpoints", + flags={"read_only": True}, + ) + properties.frs_tenant_id = AAZStrType( + serialized_name="frsTenantId", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.storagesku = AAZStrType() + + encryption = cls._schema_on_200.value.Element.properties.encryption + encryption.customer_managed_key_encryption = AAZObjectType( + serialized_name="customerManagedKeyEncryption", + ) + + customer_managed_key_encryption = cls._schema_on_200.value.Element.properties.encryption.customer_managed_key_encryption + customer_managed_key_encryption.key_encryption_key_identity = AAZObjectType( + serialized_name="keyEncryptionKeyIdentity", + ) + customer_managed_key_encryption.key_encryption_key_url = AAZStrType( + serialized_name="keyEncryptionKeyUrl", + ) + + key_encryption_key_identity = cls._schema_on_200.value.Element.properties.encryption.customer_managed_key_encryption.key_encryption_key_identity + key_encryption_key_identity.identity_type = AAZStrType( + serialized_name="identityType", + ) + key_encryption_key_identity.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + ) + + fluid_relay_endpoints = cls._schema_on_200.value.Element.properties.fluid_relay_endpoints + fluid_relay_endpoints.orderer_endpoints = AAZListType( + serialized_name="ordererEndpoints", + flags={"read_only": True}, + ) + fluid_relay_endpoints.service_endpoints = AAZListType( + serialized_name="serviceEndpoints", + flags={"read_only": True}, + ) + fluid_relay_endpoints.storage_endpoints = AAZListType( + serialized_name="storageEndpoints", + flags={"read_only": True}, + ) + + orderer_endpoints = cls._schema_on_200.value.Element.properties.fluid_relay_endpoints.orderer_endpoints + orderer_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + service_endpoints = cls._schema_on_200.value.Element.properties.fluid_relay_endpoints.service_endpoints + service_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + storage_endpoints = cls._schema_on_200.value.Element.properties.fluid_relay_endpoints.storage_endpoints + storage_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.value.Element.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.value.Element.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["List"] diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list_key.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list_key.py new file mode 100644 index 00000000000..3017b6ca7f2 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list_key.py @@ -0,0 +1,154 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "fluid-relay server list-key", +) +class ListKey(AAZCommand): + """Get primary and secondary key for this server. + """ + + _aaz_info = { + "version": "2022-06-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.fluidrelay/fluidrelayservers/{}/listkeys", "2022-06-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.server_name = AAZStrArg( + options=["--server-name"], + help="The Fluid Relay server resource name.", + required=True, + ) + _args_schema.resource_group = AAZStrArg( + options=["-g", "--resource-group"], + help="The resource group containing the resource.", + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.FluidRelayServersListKeys(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class FluidRelayServersListKeys(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.FluidRelay/fluidRelayServers/{fluidRelayServerName}/listKeys", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "fluidRelayServerName", self.ctx.args.server_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroup", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-06-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.key1 = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.key2 = AAZStrType( + flags={"read_only": True}, + ) + + return cls._schema_on_200 + + +__all__ = ["ListKey"] diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_regenerate_key.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_regenerate_key.py new file mode 100644 index 00000000000..3e4524fdb94 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_regenerate_key.py @@ -0,0 +1,179 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "fluid-relay server regenerate-key", +) +class RegenerateKey(AAZCommand): + """Regenerate the primary or secondary key for this server. + """ + + _aaz_info = { + "version": "2022-06-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.fluidrelay/fluidrelayservers/{}/regeneratekey", "2022-06-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.server_name = AAZStrArg( + options=["--server-name"], + help="The Fluid Relay server resource name.", + required=True, + ) + _args_schema.resource_group = AAZStrArg( + options=["-g", "--resource-group"], + help="The resource group containing the resource.", + required=True, + ) + + # define Arg Group "Parameters" + + _args_schema = cls._args_schema + _args_schema.key_name = AAZStrArg( + options=["--key-name"], + arg_group="Parameters", + help="The key to regenerate.", + required=True, + enum={"key1": "key1", "key2": "key2"}, + ) + return cls._args_schema + + def _execute_operations(self): + self.FluidRelayServersRegenerateKey(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class FluidRelayServersRegenerateKey(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.FluidRelay/fluidRelayServers/{fluidRelayServerName}/regenerateKey", + **self.url_parameters + ) + + @property + def method(self): + return "POST" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "fluidRelayServerName", self.ctx.args.server_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroup", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-06-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("keyName", AAZStrType, ".key_name", typ_kwargs={"flags": {"required": True}}) + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.key1 = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.key2 = AAZStrType( + flags={"read_only": True}, + ) + + return cls._schema_on_200 + + +__all__ = ["RegenerateKey"] diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_show.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_show.py new file mode 100644 index 00000000000..32f94e987b6 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_show.py @@ -0,0 +1,289 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "fluid-relay server show", +) +class Show(AAZCommand): + """Get a Fluid Relay server. + """ + + _aaz_info = { + "version": "2022-06-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.fluidrelay/fluidrelayservers/{}", "2022-06-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.server_name = AAZStrArg( + options=["-n", "--name", "--server-name"], + help="The Fluid Relay server resource name.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.FluidRelayServersGet(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class FluidRelayServersGet(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.FluidRelay/fluidRelayServers/{fluidRelayServerName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "fluidRelayServerName", self.ctx.args.server_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroup", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-06-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.identity = AAZObjectType() + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.encryption = AAZObjectType() + properties.fluid_relay_endpoints = AAZObjectType( + serialized_name="fluidRelayEndpoints", + flags={"read_only": True}, + ) + properties.frs_tenant_id = AAZStrType( + serialized_name="frsTenantId", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.storagesku = AAZStrType() + + encryption = cls._schema_on_200.properties.encryption + encryption.customer_managed_key_encryption = AAZObjectType( + serialized_name="customerManagedKeyEncryption", + ) + + customer_managed_key_encryption = cls._schema_on_200.properties.encryption.customer_managed_key_encryption + customer_managed_key_encryption.key_encryption_key_identity = AAZObjectType( + serialized_name="keyEncryptionKeyIdentity", + ) + customer_managed_key_encryption.key_encryption_key_url = AAZStrType( + serialized_name="keyEncryptionKeyUrl", + ) + + key_encryption_key_identity = cls._schema_on_200.properties.encryption.customer_managed_key_encryption.key_encryption_key_identity + key_encryption_key_identity.identity_type = AAZStrType( + serialized_name="identityType", + ) + key_encryption_key_identity.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + ) + + fluid_relay_endpoints = cls._schema_on_200.properties.fluid_relay_endpoints + fluid_relay_endpoints.orderer_endpoints = AAZListType( + serialized_name="ordererEndpoints", + flags={"read_only": True}, + ) + fluid_relay_endpoints.service_endpoints = AAZListType( + serialized_name="serviceEndpoints", + flags={"read_only": True}, + ) + fluid_relay_endpoints.storage_endpoints = AAZListType( + serialized_name="storageEndpoints", + flags={"read_only": True}, + ) + + orderer_endpoints = cls._schema_on_200.properties.fluid_relay_endpoints.orderer_endpoints + orderer_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + service_endpoints = cls._schema_on_200.properties.fluid_relay_endpoints.service_endpoints + service_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + storage_endpoints = cls._schema_on_200.properties.fluid_relay_endpoints.storage_endpoints + storage_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["Show"] diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_update.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_update.py new file mode 100644 index 00000000000..c3d5919e9df --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_update.py @@ -0,0 +1,400 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: skip-file +# flake8: noqa + +from azure.cli.core.aaz import * + + +@register_command( + "fluid-relay server update", +) +class Update(AAZCommand): + """Update a Fluid Relay server. + """ + + _aaz_info = { + "version": "2022-06-01", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.fluidrelay/fluidrelayservers/{}", "2022-06-01"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self._execute_operations() + return self._output() + + _args_schema = None + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + if cls._args_schema is not None: + return cls._args_schema + cls._args_schema = super()._build_arguments_schema(*args, **kwargs) + + # define Arg Group "" + + _args_schema = cls._args_schema + _args_schema.server_name = AAZStrArg( + options=["-n", "--name", "--server-name"], + help="The Fluid Relay server resource name.", + required=True, + id_part="name", + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "CustomerManagedKeyEncryption" + + _args_schema = cls._args_schema + _args_schema.key_identity = AAZObjectArg( + options=["--key-identity"], + arg_group="CustomerManagedKeyEncryption", + help="All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault.", + ) + _args_schema.key_url = AAZStrArg( + options=["--key-url"], + arg_group="CustomerManagedKeyEncryption", + help="key encryption key Url, with or without a version. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. Key auto rotation is enabled by providing a key uri without version. Otherwise, customer is responsible for rotating the key. The keyEncryptionKeyIdentity(either SystemAssigned or UserAssigned) should have permission to access this key url.", + ) + + key_identity = cls._args_schema.key_identity + key_identity.identity_type = AAZStrArg( + options=["identity-type"], + help="Values can be SystemAssigned or UserAssigned", + enum={"SystemAssigned": "SystemAssigned", "UserAssigned": "UserAssigned"}, + ) + key_identity.user_assigned_identities = AAZStrArg( + options=["user-assigned-identities"], + help="user assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups//providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity.", + ) + + # define Arg Group "Resource" + + _args_schema = cls._args_schema + _args_schema.identity = AAZObjectArg( + options=["--identity"], + arg_group="Resource", + help="The type of identity used for the resource.", + ) + _args_schema.location = AAZStrArg( + options=["--location"], + arg_group="Resource", + help="The geo-location where the resource lives", + ) + _args_schema.tags = AAZDictArg( + options=["--tags"], + arg_group="Resource", + help="Resource tags.", + ) + + identity = cls._args_schema.identity + identity.type = AAZStrArg( + options=["type"], + help="The identity type.", + enum={"None": "None", "SystemAssigned": "SystemAssigned", "SystemAssigned, UserAssigned": "SystemAssigned, UserAssigned", "UserAssigned": "UserAssigned"}, + ) + identity.user_assigned_identities = AAZDictArg( + options=["user-assigned-identities"], + help="The list of user identities associated with the resource.", + ) + + user_assigned_identities = cls._args_schema.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectArg( + blank={}, + ) + + tags = cls._args_schema.tags + tags.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + self.FluidRelayServersUpdate(ctx=self.ctx)() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result + + class FluidRelayServersUpdate(AAZHttpOperation): + CLIENT_TYPE = "MgmtClient" + + def __call__(self, *args, **kwargs): + request = self.make_request() + session = self.client.send_request(request=request, stream=False, **kwargs) + if session.http_response.status_code in [200]: + return self.on_200(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.FluidRelay/fluidRelayServers/{fluidRelayServerName}", + **self.url_parameters + ) + + @property + def method(self): + return "PATCH" + + @property + def error_format(self): + return "MgmtErrorFormat" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "fluidRelayServerName", self.ctx.args.server_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroup", self.ctx.args.resource_group, + required=True, + ), + **self.serialize_url_param( + "subscriptionId", self.ctx.subscription_id, + required=True, + ), + } + return parameters + + @property + def query_parameters(self): + parameters = { + **self.serialize_query_param( + "api-version", "2022-06-01", + required=True, + ), + } + return parameters + + @property + def header_parameters(self): + parameters = { + **self.serialize_header_param( + "Content-Type", "application/json", + ), + **self.serialize_header_param( + "Accept", "application/json", + ), + } + return parameters + + @property + def content(self): + _content_value, _builder = self.new_content_builder( + self.ctx.args, + typ=AAZObjectType, + typ_kwargs={"flags": {"required": True, "client_flatten": True}} + ) + _builder.set_prop("identity", AAZObjectType, ".identity") + _builder.set_prop("location", AAZStrType, ".location") + _builder.set_prop("properties", AAZObjectType, typ_kwargs={"flags": {"client_flatten": True}}) + _builder.set_prop("tags", AAZDictType, ".tags") + + identity = _builder.get(".identity") + if identity is not None: + identity.set_prop("type", AAZStrType, ".type") + identity.set_prop("userAssignedIdentities", AAZDictType, ".user_assigned_identities") + + user_assigned_identities = _builder.get(".identity.userAssignedIdentities") + if user_assigned_identities is not None: + user_assigned_identities.set_elements(AAZObjectType, ".") + + properties = _builder.get(".properties") + if properties is not None: + properties.set_prop("encryption", AAZObjectType) + + encryption = _builder.get(".properties.encryption") + if encryption is not None: + encryption.set_prop("customerManagedKeyEncryption", AAZObjectType) + + customer_managed_key_encryption = _builder.get(".properties.encryption.customerManagedKeyEncryption") + if customer_managed_key_encryption is not None: + customer_managed_key_encryption.set_prop("keyEncryptionKeyIdentity", AAZObjectType, ".key_identity") + customer_managed_key_encryption.set_prop("keyEncryptionKeyUrl", AAZStrType, ".key_url") + + key_encryption_key_identity = _builder.get(".properties.encryption.customerManagedKeyEncryption.keyEncryptionKeyIdentity") + if key_encryption_key_identity is not None: + key_encryption_key_identity.set_prop("identityType", AAZStrType, ".identity_type") + key_encryption_key_identity.set_prop("userAssignedIdentityResourceId", AAZStrType, ".user_assigned_identities") + + tags = _builder.get(".tags") + if tags is not None: + tags.set_elements(AAZStrType, ".") + + return self.serialize_content(_content_value) + + def on_200(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200 + ) + + _schema_on_200 = None + + @classmethod + def _build_schema_on_200(cls): + if cls._schema_on_200 is not None: + return cls._schema_on_200 + + cls._schema_on_200 = AAZObjectType() + + _schema_on_200 = cls._schema_on_200 + _schema_on_200.id = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.identity = AAZObjectType() + _schema_on_200.location = AAZStrType( + flags={"required": True}, + ) + _schema_on_200.name = AAZStrType( + flags={"read_only": True}, + ) + _schema_on_200.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + _schema_on_200.system_data = AAZObjectType( + serialized_name="systemData", + flags={"read_only": True}, + ) + _schema_on_200.tags = AAZDictType() + _schema_on_200.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = cls._schema_on_200.identity + identity.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + identity.tenant_id = AAZStrType( + serialized_name="tenantId", + flags={"read_only": True}, + ) + identity.type = AAZStrType() + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType() + + _element = cls._schema_on_200.identity.user_assigned_identities.Element + _element.client_id = AAZStrType( + serialized_name="clientId", + flags={"read_only": True}, + ) + _element.principal_id = AAZStrType( + serialized_name="principalId", + flags={"read_only": True}, + ) + + properties = cls._schema_on_200.properties + properties.encryption = AAZObjectType() + properties.fluid_relay_endpoints = AAZObjectType( + serialized_name="fluidRelayEndpoints", + flags={"read_only": True}, + ) + properties.frs_tenant_id = AAZStrType( + serialized_name="frsTenantId", + flags={"read_only": True}, + ) + properties.provisioning_state = AAZStrType( + serialized_name="provisioningState", + ) + properties.storagesku = AAZStrType() + + encryption = cls._schema_on_200.properties.encryption + encryption.customer_managed_key_encryption = AAZObjectType( + serialized_name="customerManagedKeyEncryption", + ) + + customer_managed_key_encryption = cls._schema_on_200.properties.encryption.customer_managed_key_encryption + customer_managed_key_encryption.key_encryption_key_identity = AAZObjectType( + serialized_name="keyEncryptionKeyIdentity", + ) + customer_managed_key_encryption.key_encryption_key_url = AAZStrType( + serialized_name="keyEncryptionKeyUrl", + ) + + key_encryption_key_identity = cls._schema_on_200.properties.encryption.customer_managed_key_encryption.key_encryption_key_identity + key_encryption_key_identity.identity_type = AAZStrType( + serialized_name="identityType", + ) + key_encryption_key_identity.user_assigned_identity_resource_id = AAZStrType( + serialized_name="userAssignedIdentityResourceId", + ) + + fluid_relay_endpoints = cls._schema_on_200.properties.fluid_relay_endpoints + fluid_relay_endpoints.orderer_endpoints = AAZListType( + serialized_name="ordererEndpoints", + flags={"read_only": True}, + ) + fluid_relay_endpoints.service_endpoints = AAZListType( + serialized_name="serviceEndpoints", + flags={"read_only": True}, + ) + fluid_relay_endpoints.storage_endpoints = AAZListType( + serialized_name="storageEndpoints", + flags={"read_only": True}, + ) + + orderer_endpoints = cls._schema_on_200.properties.fluid_relay_endpoints.orderer_endpoints + orderer_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + service_endpoints = cls._schema_on_200.properties.fluid_relay_endpoints.service_endpoints + service_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + storage_endpoints = cls._schema_on_200.properties.fluid_relay_endpoints.storage_endpoints + storage_endpoints.Element = AAZStrType( + flags={"read_only": True}, + ) + + system_data = cls._schema_on_200.system_data + system_data.created_at = AAZStrType( + serialized_name="createdAt", + flags={"read_only": True}, + ) + system_data.created_by = AAZStrType( + serialized_name="createdBy", + flags={"read_only": True}, + ) + system_data.created_by_type = AAZStrType( + serialized_name="createdByType", + flags={"read_only": True}, + ) + system_data.last_modified_at = AAZStrType( + serialized_name="lastModifiedAt", + flags={"read_only": True}, + ) + system_data.last_modified_by = AAZStrType( + serialized_name="lastModifiedBy", + flags={"read_only": True}, + ) + system_data.last_modified_by_type = AAZStrType( + serialized_name="lastModifiedByType", + flags={"read_only": True}, + ) + + tags = cls._schema_on_200.tags + tags.Element = AAZStrType() + + return cls._schema_on_200 + + +__all__ = ["Update"] diff --git a/src/fluid-relay/azext_fluid_relay/azext_metadata.json b/src/fluid-relay/azext_fluid_relay/azext_metadata.json new file mode 100644 index 00000000000..ade6d0c3e08 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/azext_metadata.json @@ -0,0 +1,4 @@ +{ + "azext.isExperimental": true, + "azext.minCliCoreVersion": "2.38.0" +} \ No newline at end of file diff --git a/src/fluid-relay/azext_fluid_relay/commands.py b/src/fluid-relay/azext_fluid_relay/commands.py new file mode 100644 index 00000000000..b0d842e4993 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/commands.py @@ -0,0 +1,15 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: disable=too-many-lines +# pylint: disable=too-many-statements + +# from azure.cli.core.commands import CliCommandType + + +def load_command_table(self, _): # pylint: disable=unused-argument + pass diff --git a/src/fluid-relay/azext_fluid_relay/custom.py b/src/fluid-relay/azext_fluid_relay/custom.py new file mode 100644 index 00000000000..86df1e48ef5 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/custom.py @@ -0,0 +1,14 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +# pylint: disable=too-many-lines +# pylint: disable=too-many-statements + +from knack.log import get_logger + + +logger = get_logger(__name__) diff --git a/src/fluid-relay/azext_fluid_relay/tests/__init__.py b/src/fluid-relay/azext_fluid_relay/tests/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/tests/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- diff --git a/src/fluid-relay/azext_fluid_relay/tests/latest/__init__.py b/src/fluid-relay/azext_fluid_relay/tests/latest/__init__.py new file mode 100644 index 00000000000..5757aea3175 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/tests/latest/__init__.py @@ -0,0 +1,6 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- diff --git a/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml b/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml new file mode 100644 index 00000000000..f1ca351709a --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml @@ -0,0 +1,1358 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + ParameterSetName: + - -n -g --query + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T05:36:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '331' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:36:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + Content-Length: + - '23' + Content-Type: + - application/json + ParameterSetName: + - -n -g --query + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-msi/6.0.1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1?api-version=2021-09-30-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","name":"id1","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"8729f191-78f2-437b-9518-7580d395e501","clientId":"16f900ce-1be6-4e06-b57d-07b58d2dc16f"}}' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:36:11 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + ParameterSetName: + - -n -g --query + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-resource/21.1.0b1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001?api-version=2021-04-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T05:36:02Z"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '331' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:36:12 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + status: + code: 200 + message: OK +- request: + body: '{"location": "westus2"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + Content-Length: + - '23' + Content-Type: + - application/json + ParameterSetName: + - -n -g --query + User-Agent: + - AZURECLI/2.38.0 azsdk-python-azure-mgmt-msi/6.0.1 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2?api-version=2021-09-30-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2","name":"id2","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"0fcb3f06-1279-4cff-b016-ec8e3eb37861","clientId":"82e47816-3dc1-4520-9644-065e82543cc4"}}' + headers: + cache-control: + - no-cache + content-length: + - '435' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:36:16 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + status: + code: 201 + message: Created +- request: + body: '{"identity": {"type": "SystemAssigned"}, "location": "westus2", "properties": + {"storagesku": "standard"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server create + Connection: + - keep-alive + Content-Length: + - '105' + Content-Type: + - application/json + ParameterSetName: + - -n -l -g --sku --identity + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:20.1097321Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:20.1097321Z"},"identity":{"principalId":"d944782c-cabc-4a6a-848c-f7ec6658c8e7","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"0f2a3dec-00c0-4ccb-a6b0-6a15a3d8f0ee","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '943' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:36:25 GMT + etag: + - '"a801cff5-0000-0500-0000-62df7d590000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: '{"tags": {"category": "sales"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server update + Connection: + - keep-alive + Content-Length: + - '31' + Content-Type: + - application/json + ParameterSetName: + - -n -g --tags + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:20.1097321Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:28.1769303Z"},"identity":{"principalId":"d944782c-cabc-4a6a-848c-f7ec6658c8e7","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"0f2a3dec-00c0-4ccb-a6b0-6a15a3d8f0ee","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '971' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:36:31 GMT + etag: + - '"a801d6f5-0000-0500-0000-62df7d5e0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned, UserAssigned", "userAssignedIdentities": + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": + {}, "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2": + {}}}, "location": "westus2", "properties": {"storagesku": "standard"}, "tags": + {"category": "sales"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server create + Connection: + - keep-alive + Content-Length: + - '506' + Content-Type: + - application/json + ParameterSetName: + - -n -l -g --sku --tags --identity + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:35.3057018Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:35.3057018Z"},"identity":{"principalId":"65e9e831-04d2-4df7-a6a3-a13b7b735ac0","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"16f900ce-1be6-4e06-b57d-07b58d2dc16f","principalId":"8729f191-78f2-437b-9518-7580d395e501"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"82e47816-3dc1-4520-9644-065e82543cc4","principalId":"0fcb3f06-1279-4cff-b016-ec8e3eb37861"}}},"properties":{"frsTenantId":"79518125-c095-4480-9ea4-fb2b83f4d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1540' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:36:38 GMT + etag: + - '"a801e5f5-0000-0500-0000-62df7d660000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: '{"tags": {"category": "sales"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server update + Connection: + - keep-alive + Content-Length: + - '31' + Content-Type: + - application/json + ParameterSetName: + - -n -g --tags + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PATCH + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:35.3057018Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:42.8880662Z"},"identity":{"principalId":"65e9e831-04d2-4df7-a6a3-a13b7b735ac0","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"16f900ce-1be6-4e06-b57d-07b58d2dc16f","principalId":"8729f191-78f2-437b-9518-7580d395e501"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"82e47816-3dc1-4520-9644-065e82543cc4","principalId":"0fcb3f06-1279-4cff-b016-ec8e3eb37861"}}},"properties":{"frsTenantId":"79518125-c095-4480-9ea4-fb2b83f4d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1540' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:36:45 GMT + etag: + - '"a801ecf5-0000-0500-0000-62df7d6c0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "UserAssigned", "userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": + {}}}, "location": "westus2", "properties": {"encryption": {"customerManagedKeyEncryption": + {"keyEncryptionKeyIdentity": {"identityType": "UserAssigned", "userAssignedIdentityResourceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"}, + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek"}}, + "storagesku": "basic"}, "tags": {"category": "sales"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server create + Connection: + - keep-alive + Content-Length: + - '708' + Content-Type: + - application/json + ParameterSetName: + - -n -l -g --sku --key-identity --key-url --tags --identity + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr3?api-version=2022-06-01 + response: + body: + string: '{"error":{"code":"503","message":"CMK is temporarily not available + and it is not allowed to enable CMK on new Fluid Relay resource for now."}}' + headers: + cache-control: + - no-cache + connection: + - close + content-length: + - '142' + content-type: + - application/json + date: + - Tue, 26 Jul 2022 05:36:52 GMT + etag: + - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - service + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - Express + status: + code: 503 + message: Service Unavailable +- request: + body: '{"identity": {"type": "UserAssigned", "userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": + {}}}, "location": "westus2", "properties": {"encryption": {"customerManagedKeyEncryption": + {"keyEncryptionKeyIdentity": {"identityType": "UserAssigned", "userAssignedIdentityResourceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"}, + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek"}}, + "storagesku": "basic"}, "tags": {"category": "sales"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server create + Connection: + - keep-alive + Content-Length: + - '708' + Content-Type: + - application/json + ParameterSetName: + - -n -l -g --sku --key-identity --key-url --tags --identity + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr3?api-version=2022-06-01 + response: + body: + string: '{"error":{"code":"503","message":"CMK is temporarily not available + and it is not allowed to enable CMK on new Fluid Relay resource for now."}}' + headers: + cache-control: + - no-cache + connection: + - close + content-length: + - '142' + content-type: + - application/json + date: + - Tue, 26 Jul 2022 05:36:55 GMT + etag: + - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - service + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + x-powered-by: + - Express + status: + code: 503 + message: Service Unavailable +- request: + body: '{"identity": {"type": "UserAssigned", "userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": + {}}}, "location": "westus2", "properties": {"encryption": {"customerManagedKeyEncryption": + {"keyEncryptionKeyIdentity": {"identityType": "UserAssigned", "userAssignedIdentityResourceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"}, + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek"}}, + "storagesku": "basic"}, "tags": {"category": "sales"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server create + Connection: + - keep-alive + Content-Length: + - '708' + Content-Type: + - application/json + ParameterSetName: + - -n -l -g --sku --key-identity --key-url --tags --identity + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr3?api-version=2022-06-01 + response: + body: + string: '{"error":{"code":"503","message":"CMK is temporarily not available + and it is not allowed to enable CMK on new Fluid Relay resource for now."}}' + headers: + cache-control: + - no-cache + connection: + - close + content-length: + - '142' + content-type: + - application/json + date: + - Tue, 26 Jul 2022 05:37:00 GMT + etag: + - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - service + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-powered-by: + - Express + status: + code: 503 + message: Service Unavailable +- request: + body: '{"identity": {"type": "UserAssigned", "userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1": + {}}}, "location": "westus2", "properties": {"encryption": {"customerManagedKeyEncryption": + {"keyEncryptionKeyIdentity": {"identityType": "UserAssigned", "userAssignedIdentityResourceId": + "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1"}, + "keyEncryptionKeyUrl": "https://contosovault.vault.azure.net/keys/contosokek"}}, + "storagesku": "basic"}, "tags": {"category": "sales"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server create + Connection: + - keep-alive + Content-Length: + - '708' + Content-Type: + - application/json + ParameterSetName: + - -n -l -g --sku --key-identity --key-url --tags --identity + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr3?api-version=2022-06-01 + response: + body: + string: '{"error":{"code":"503","message":"CMK is temporarily not available + and it is not allowed to enable CMK on new Fluid Relay resource for now."}}' + headers: + cache-control: + - no-cache + connection: + - close + content-length: + - '142' + content-type: + - application/json + date: + - Tue, 26 Jul 2022 05:37:06 GMT + etag: + - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-failure-cause: + - service + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-powered-by: + - Express + status: + code: 503 + message: Service Unavailable +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers?api-version=2022-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:20.1097321Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:28.1769303Z"},"identity":{"principalId":"d944782c-cabc-4a6a-848c-f7ec6658c8e7","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"0f2a3dec-00c0-4ccb-a6b0-6a15a3d8f0ee","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:35.3057018Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:42.8880662Z"},"identity":{"principalId":"65e9e831-04d2-4df7-a6a3-a13b7b735ac0","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"16f900ce-1be6-4e06-b57d-07b58d2dc16f","principalId":"8729f191-78f2-437b-9518-7580d395e501"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"82e47816-3dc1-4520-9644-065e82543cc4","principalId":"0fcb3f06-1279-4cff-b016-ec8e3eb37861"}}},"properties":{"frsTenantId":"79518125-c095-4480-9ea4-fb2b83f4d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2524' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:37:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - ead05036-e2bf-44c4-93db-19ecf60b62df + - 722129e0-b1b7-4334-b005-a3099a363b4b + - 734ae552-cc0b-47ca-9c1f-fe3a7d6dea75 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server list + Connection: + - keep-alive + ParameterSetName: + - --subscription + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.FluidRelay/fluidRelayServers?api-version=2022-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr","name":"testfr","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sale"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T03:43:39.7668954Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T01:54:34.5745357Z"},"identity":{"principalId":"f11ef8b7-8c1e-4166-8076-1753785e9210","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"c54a1dbd-2941-4147-8ed0-37f4bd30f817","principalId":"d60334e4-4a63-4291-b29d-ae29eb65c9c5"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"88e7899c-a6a9-4668-ad15-e612180fbc5e","principalId":"43f0d15e-92f0-48c4-9544-62526c6508cb"}}},"properties":{"frsTenantId":"68c1cc1a-f5bd-4103-a06c-3bcae653867e","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T07:48:58.8149595Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:25:04.2220749Z"},"identity":{"principalId":"8b190b2a-d2c3-4189-9935-20c8ff217c6b","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"d50f3c04-4be6-4df4-8e89-87e14315d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:20.1097321Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:28.1769303Z"},"identity":{"principalId":"d944782c-cabc-4a6a-848c-f7ec6658c8e7","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"0f2a3dec-00c0-4ccb-a6b0-6a15a3d8f0ee","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:35.3057018Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:42.8880662Z"},"identity":{"principalId":"65e9e831-04d2-4df7-a6a3-a13b7b735ac0","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"16f900ce-1be6-4e06-b57d-07b58d2dc16f","principalId":"8729f191-78f2-437b-9518-7580d395e501"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"82e47816-3dc1-4520-9644-065e82543cc4","principalId":"0fcb3f06-1279-4cff-b016-ec8e3eb37861"}}},"properties":{"frsTenantId":"79518125-c095-4480-9ea4-fb2b83f4d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '4954' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:37:09 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - 0162db9b-a37a-41ea-aec6-d102a420bf78 + - 2a860c76-f7cd-46a3-a92f-6da9ac17590b + - 7bf2d145-aace-4619-9aca-2dc785f9191b + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server list-key + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --server-name + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1/listKeys?api-version=2022-06-01 + response: + body: + string: '{"key1":"bf7b04963667629d22942bc6a241840c","key2":"fd7d9eb031213426a6c2721cc723adad"}' + headers: + cache-control: + - no-cache + content-length: + - '85' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:37:12 GMT + etag: + - W/"55-CC/vdAd1tAwIN3Q9W+yFoL3LuRc" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server list-key + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -g --server-name + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2/listKeys?api-version=2022-06-01 + response: + body: + string: '{"key1":"29b60fbca464fadfad65e63285f8ab4c","key2":"7cdfbb8818bf841bf5887573a55978a9"}' + headers: + cache-control: + - no-cache + content-length: + - '85' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:37:14 GMT + etag: + - W/"55-ZfSMTladIbwSmFkd1fsdDDbLjXE" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: '{"keyName": "key1"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server regenerate-key + Connection: + - keep-alive + Content-Length: + - '19' + Content-Type: + - application/json + ParameterSetName: + - -g --server-name --key-name + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1/regenerateKey?api-version=2022-06-01 + response: + body: + string: '{"key1":"2d27750a92d71f867c495cebfe14c25e","key2":"fd7d9eb031213426a6c2721cc723adad"}' + headers: + cache-control: + - no-cache + content-length: + - '85' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:37:18 GMT + etag: + - W/"55-3qh0QGVpiLnleBu+iK0ug0ewcy4" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: '{"keyName": "key1"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server regenerate-key + Connection: + - keep-alive + Content-Length: + - '19' + Content-Type: + - application/json + ParameterSetName: + - -g --server-name --key-name + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2/regenerateKey?api-version=2022-06-01 + response: + body: + string: '{"key1":"42835e1506c64e9b0b79262ce2247436","key2":"7cdfbb8818bf841bf5887573a55978a9"}' + headers: + cache-control: + - no-cache + content-length: + - '85' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:37:21 GMT + etag: + - W/"55-zAXRISY9hCJZ6WGU0wwKqD2LIIg" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:20.1097321Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:28.1769303Z"},"identity":{"principalId":"d944782c-cabc-4a6a-848c-f7ec6658c8e7","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"0f2a3dec-00c0-4ccb-a6b0-6a15a3d8f0ee","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '971' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:37:22 GMT + etag: + - '"a801d6f5-0000-0500-0000-62df7d5e0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server show + Connection: + - keep-alive + ParameterSetName: + - -g -n + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:35.3057018Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:42.8880662Z"},"identity":{"principalId":"65e9e831-04d2-4df7-a6a3-a13b7b735ac0","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"16f900ce-1be6-4e06-b57d-07b58d2dc16f","principalId":"8729f191-78f2-437b-9518-7580d395e501"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"82e47816-3dc1-4520-9644-065e82543cc4","principalId":"0fcb3f06-1279-4cff-b016-ec8e3eb37861"}}},"properties":{"frsTenantId":"79518125-c095-4480-9ea4-fb2b83f4d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '1540' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:37:24 GMT + etag: + - '"a801ecf5-0000-0500-0000-62df7d6c0000"' + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay container list + Connection: + - keep-alive + ParameterSetName: + - -g --server-name + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1/fluidRelayContainers?api-version=2022-06-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:37:26 GMT + etag: + - W/"c-ct3goOI+b+kRZv2R9j2fTtMXwkk" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay container list + Connection: + - keep-alive + ParameterSetName: + - -g --server-name + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2/fluidRelayContainers?api-version=2022-06-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:37:29 GMT + etag: + - W/"c-ct3goOI+b+kRZv2R9j2fTtMXwkk" + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g -y + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 26 Jul 2022 05:37:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g -y + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Tue, 26 Jul 2022 05:37:46 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-providerhub-traffic: + - 'True' + x-ms-ratelimit-remaining-subscription-deletes: + - '14999' + x-powered-by: + - Express + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server list + Connection: + - keep-alive + ParameterSetName: + - -g + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers?api-version=2022-06-01 + response: + body: + string: '{"value":[]}' + headers: + cache-control: + - no-cache + content-length: + - '12' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:37:47 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - 4b22153f-1038-4024-a05c-d13d1c564020 + - 5c0899e0-bfc4-417a-8932-d0d79ed6c829 + - 263cc18c-56c8-4033-9230-6883f6435949 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - fluid-relay server list + Connection: + - keep-alive + ParameterSetName: + - --subscription + User-Agent: + - AZURECLI/2.38.0 (AAZ) azsdk-python-core/1.24.0 Python/3.9.5 (Windows-10-10.0.19044-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.FluidRelay/fluidRelayServers?api-version=2022-06-01 + response: + body: + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr","name":"testfr","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sale"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T03:43:39.7668954Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T01:54:34.5745357Z"},"identity":{"principalId":"f11ef8b7-8c1e-4166-8076-1753785e9210","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"c54a1dbd-2941-4147-8ed0-37f4bd30f817","principalId":"d60334e4-4a63-4291-b29d-ae29eb65c9c5"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"88e7899c-a6a9-4668-ad15-e612180fbc5e","principalId":"43f0d15e-92f0-48c4-9544-62526c6508cb"}}},"properties":{"frsTenantId":"68c1cc1a-f5bd-4103-a06c-3bcae653867e","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T07:48:58.8149595Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:25:04.2220749Z"},"identity":{"principalId":"8b190b2a-d2c3-4189-9935-20c8ff217c6b","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"d50f3c04-4be6-4df4-8e89-87e14315d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' + headers: + cache-control: + - no-cache + content-length: + - '2441' + content-type: + - application/json; charset=utf-8 + date: + - Tue, 26 Jul 2022 05:37:49 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding + x-content-type-options: + - nosniff + x-ms-original-request-ids: + - 5c1c8c8d-8e5c-479c-a3b1-128ca23f0f18 + - 2f668004-ea8b-4712-a962-4b174f570da3 + - edd32162-88d9-4cb1-bebf-9c039b6ea645 + status: + code: 200 + message: OK +version: 1 diff --git a/src/fluid-relay/azext_fluid_relay/tests/latest/test_fluid_relay.py b/src/fluid-relay/azext_fluid_relay/tests/latest/test_fluid_relay.py new file mode 100644 index 00000000000..2ac13e5b2d9 --- /dev/null +++ b/src/fluid-relay/azext_fluid_relay/tests/latest/test_fluid_relay.py @@ -0,0 +1,76 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +from azure.cli.testsdk import * + + +class FluidRelayScenario(ScenarioTest): + # TODO: add tests here + + @ResourceGroupPreparer(name_prefix='cli_test_fluid_relay', location='westus2') + def test_fluid_relay_scenario(self, resource_group): + self.kwargs.update({ + 'subscription_id': self.get_subscription_id(), + 'server_name1': 'testfr1', + 'server_name2': 'testfr2', + 'server_name3': 'testfr3', + 'identity_name1': 'id1', + 'identity_name2': 'id2', + }) + + self.kwargs['id1'] = self.cmd('identity create -n {identity_name1} -g {rg} --query id').get_output_in_json() + self.kwargs['id2'] = self.cmd('identity create -n {identity_name2} -g {rg} --query id').get_output_in_json() + self.cmd('fluid-relay server create -n {server_name1} -l westus2 -g {rg} --sku standard ' + '--identity type="SystemAssigned"', + checks=[self.check('identity.type', 'SystemAssigned'), + self.check('name', 'testfr1'), + self.check('provisioningState', 'Succeeded')]) + self.cmd('fluid-relay server update -n {server_name1} -g {rg} --tags category=sales', + self.check('tags.category', 'sales')) + + self.cmd('fluid-relay server create -n {server_name2} -l westus2 -g {rg} --sku standard --tags category=sales ' + '--identity \"{{type:\'SystemAssigned, UserAssigned\',user-assigned-identities:{{"/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/{rg}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/{rg}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2"}}}}\"', + checks=[self.check('identity.type', 'SystemAssigned, UserAssigned'), + self.check('name', 'testfr2'), + self.check('provisioningState', 'Succeeded')] + ) + self.cmd('fluid-relay server update -n {server_name2} -g {rg} --tags category=sales', + self.check('tags.category', 'sales')) + + from azure.core.exceptions import HttpResponseError + with self.assertRaisesRegex(HttpResponseError, 'CMK is temporarily not available and it is not allowed to enable CMK on new Fluid Relay resource for now.'): + self.cmd('fluid-relay server create -n {server_name3} -l westus2 -g {rg} --sku basic ' + '--key-identity \"{{identity-type:"UserAssigned",user-assigned-identities:{id1}}}\" ' + '--key-url="https://contosovault.vault.azure.net/keys/contosokek" --tags category=sales ' + '--identity \"{{type:"UserAssigned",user-assigned-identities:{{{id1}}}}}\"') + + self.cmd('fluid-relay server list -g {rg}', checks=self.check('length(@)', 2)) + self.cmd('fluid-relay server list --subscription 0b1f6471-1bf0-4dda-aec3-cb9272f09590') + self.cmd('fluid-relay server list-key -g {rg} --server-name {server_name1}', + checks=self.check('length(@)', 2)) + self.cmd('fluid-relay server list-key -g {rg} --server-name {server_name2}', + checks=self.check('length(@)', 2)) + self.cmd('fluid-relay server regenerate-key -g {rg} --server-name {server_name1} --key-name key1', + checks=self.check('length(@)', 2)) + self.cmd('fluid-relay server regenerate-key -g {rg} --server-name {server_name2} --key-name key1', + checks=self.check('length(@)', 2)) + self.cmd('fluid-relay server show -g {rg} -n {server_name1}', + checks=[self.check('identity.type', 'SystemAssigned'), + self.check('name', 'testfr1')]) + self.cmd('fluid-relay server show -g {rg} -n {server_name2}', + checks=[self.check('identity.type', 'SystemAssigned, UserAssigned'), + self.check('name', 'testfr2')] + ) + + self.cmd('fluid-relay container list -g {rg} --server-name {server_name1}', checks=self.check('length(@)', 0)) + self.cmd('fluid-relay container list -g {rg} --server-name {server_name2}', checks=self.check('length(@)', 0)) + + self.cmd('fluid-relay server delete -n {server_name1} -g {rg} -y') + self.cmd('fluid-relay server delete -n {server_name2} -g {rg} -y') + + self.cmd('fluid-relay server list -g {rg}', checks=self.check('length(@)', 0)) + self.cmd('fluid-relay server list --subscription 0b1f6471-1bf0-4dda-aec3-cb9272f09590') diff --git a/src/fluid-relay/setup.cfg b/src/fluid-relay/setup.cfg new file mode 100644 index 00000000000..2fdd96e5d39 --- /dev/null +++ b/src/fluid-relay/setup.cfg @@ -0,0 +1 @@ +#setup.cfg \ No newline at end of file diff --git a/src/fluid-relay/setup.py b/src/fluid-relay/setup.py new file mode 100644 index 00000000000..d3f79791580 --- /dev/null +++ b/src/fluid-relay/setup.py @@ -0,0 +1,49 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# +# Code generated by aaz-dev-tools +# -------------------------------------------------------------------------------------------- + +from codecs import open +from setuptools import setup, find_packages + + +# HISTORY.rst entry. +VERSION = '0.1.0' + +# The full list of classifiers is available at +# https://pypi.python.org/pypi?%3Aaction=list_classifiers +CLASSIFIERS = [ + 'Development Status :: 4 - Beta', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'Programming Language :: Python', + 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.9', + 'License :: OSI Approved :: MIT License', +] + +DEPENDENCIES = [] + +with open('README.md', 'r', encoding='utf-8') as f: + README = f.read() +with open('HISTORY.rst', 'r', encoding='utf-8') as f: + HISTORY = f.read() + +setup( + name='fluid-relay', + version=VERSION, + description='Microsoft Azure Command-Line Tools FluidRelay Extension.', + long_description=README + '\n\n' + HISTORY, + license='MIT', + author='Microsoft Corporation', + author_email='azpycli@microsoft.com', + url='https://github.com/Azure/azure-cli-extensions/tree/main/src/fluid-relay', + classifiers=CLASSIFIERS, + packages=find_packages(exclude=["tests"]), + package_data={'azext_fluid_relay': ['azext_metadata.json']}, + install_requires=DEPENDENCIES +) From 2cb35b39165a4932c191e0752b229178912b5905 Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Tue, 26 Jul 2022 14:12:36 +0800 Subject: [PATCH 02/11] update --- .../recordings/test_fluid_relay_scenario.yaml | 158 +++++++++--------- .../tests/latest/test_fluid_relay.py | 4 +- 2 files changed, 79 insertions(+), 83 deletions(-) diff --git a/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml b/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml index f1ca351709a..59fb8d2e6d3 100644 --- a/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml +++ b/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T05:36:02Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T05:54:39Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:36:05 GMT + - Tue, 26 Jul 2022 05:54:46 GMT expires: - '-1' pragma: @@ -64,7 +64,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1?api-version=2021-09-30-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","name":"id1","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"8729f191-78f2-437b-9518-7580d395e501","clientId":"16f900ce-1be6-4e06-b57d-07b58d2dc16f"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","name":"id1","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"03915ae8-4692-487c-9610-fdbb9a4a87b6","clientId":"535c212c-c395-45f5-bbe6-c417961f1919"}}' headers: cache-control: - no-cache @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:36:11 GMT + - Tue, 26 Jul 2022 05:54:52 GMT expires: - '-1' location: @@ -85,7 +85,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' status: code: 201 message: Created @@ -108,7 +108,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T05:36:02Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T05:54:39Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -117,7 +117,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:36:12 GMT + - Tue, 26 Jul 2022 05:54:52 GMT expires: - '-1' pragma: @@ -154,7 +154,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2?api-version=2021-09-30-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2","name":"id2","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"0fcb3f06-1279-4cff-b016-ec8e3eb37861","clientId":"82e47816-3dc1-4520-9644-065e82543cc4"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2","name":"id2","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"00e52259-3951-4dc6-922c-2da34abcb31c","clientId":"cced6fff-a128-4546-a51a-c93edf26ac24"}}' headers: cache-control: - no-cache @@ -163,7 +163,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:36:16 GMT + - Tue, 26 Jul 2022 05:54:59 GMT expires: - '-1' location: @@ -175,7 +175,7 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' status: code: 201 message: Created @@ -203,7 +203,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:20.1097321Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:20.1097321Z"},"identity":{"principalId":"d944782c-cabc-4a6a-848c-f7ec6658c8e7","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"0f2a3dec-00c0-4ccb-a6b0-6a15a3d8f0ee","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:06.1329316Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:06.1329316Z"},"identity":{"principalId":"3eb88366-d987-414f-9a79-2ba880fa98e8","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"ded3e6a8-0e04-47fd-af84-23ff9bfd4d0d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -212,9 +212,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:36:25 GMT + - Tue, 26 Jul 2022 05:55:12 GMT etag: - - '"a801cff5-0000-0500-0000-62df7d590000"' + - '"a801d3fd-0000-0500-0000-62df81bf0000"' expires: - '-1' pragma: @@ -230,7 +230,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' x-powered-by: - Express status: @@ -259,7 +259,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:20.1097321Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:28.1769303Z"},"identity":{"principalId":"d944782c-cabc-4a6a-848c-f7ec6658c8e7","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"0f2a3dec-00c0-4ccb-a6b0-6a15a3d8f0ee","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:06.1329316Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:15.0391973Z"},"identity":{"principalId":"3eb88366-d987-414f-9a79-2ba880fa98e8","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"ded3e6a8-0e04-47fd-af84-23ff9bfd4d0d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -268,9 +268,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:36:31 GMT + - Tue, 26 Jul 2022 05:55:18 GMT etag: - - '"a801d6f5-0000-0500-0000-62df7d5e0000"' + - '"a801e2fd-0000-0500-0000-62df81c50000"' expires: - '-1' pragma: @@ -286,7 +286,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' x-powered-by: - Express status: @@ -319,8 +319,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:35.3057018Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:35.3057018Z"},"identity":{"principalId":"65e9e831-04d2-4df7-a6a3-a13b7b735ac0","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"16f900ce-1be6-4e06-b57d-07b58d2dc16f","principalId":"8729f191-78f2-437b-9518-7580d395e501"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"82e47816-3dc1-4520-9644-065e82543cc4","principalId":"0fcb3f06-1279-4cff-b016-ec8e3eb37861"}}},"properties":{"frsTenantId":"79518125-c095-4480-9ea4-fb2b83f4d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:24.2467972Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:24.2467972Z"},"identity":{"principalId":"806cd437-b984-4366-81a6-fad516b6ea4c","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"535c212c-c395-45f5-bbe6-c417961f1919","principalId":"03915ae8-4692-487c-9610-fdbb9a4a87b6"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"cced6fff-a128-4546-a51a-c93edf26ac24","principalId":"00e52259-3951-4dc6-922c-2da34abcb31c"}}},"properties":{"frsTenantId":"a05cd063-1e85-4b83-95d2-72ecc5afbf1d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -329,9 +329,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:36:38 GMT + - Tue, 26 Jul 2022 05:55:30 GMT etag: - - '"a801e5f5-0000-0500-0000-62df7d660000"' + - '"a801ecfd-0000-0500-0000-62df81d00000"' expires: - '-1' pragma: @@ -347,7 +347,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' x-powered-by: - Express status: @@ -376,8 +376,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:35.3057018Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:42.8880662Z"},"identity":{"principalId":"65e9e831-04d2-4df7-a6a3-a13b7b735ac0","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"16f900ce-1be6-4e06-b57d-07b58d2dc16f","principalId":"8729f191-78f2-437b-9518-7580d395e501"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"82e47816-3dc1-4520-9644-065e82543cc4","principalId":"0fcb3f06-1279-4cff-b016-ec8e3eb37861"}}},"properties":{"frsTenantId":"79518125-c095-4480-9ea4-fb2b83f4d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:24.2467972Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:32.4288559Z"},"identity":{"principalId":"806cd437-b984-4366-81a6-fad516b6ea4c","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"535c212c-c395-45f5-bbe6-c417961f1919","principalId":"03915ae8-4692-487c-9610-fdbb9a4a87b6"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"cced6fff-a128-4546-a51a-c93edf26ac24","principalId":"00e52259-3951-4dc6-922c-2da34abcb31c"}}},"properties":{"frsTenantId":"a05cd063-1e85-4b83-95d2-72ecc5afbf1d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -386,9 +386,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:36:45 GMT + - Tue, 26 Jul 2022 05:55:37 GMT etag: - - '"a801ecf5-0000-0500-0000-62df7d6c0000"' + - '"a801f9fd-0000-0500-0000-62df81d60000"' expires: - '-1' pragma: @@ -404,7 +404,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' x-powered-by: - Express status: @@ -450,7 +450,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 05:36:52 GMT + - Tue, 26 Jul 2022 05:55:43 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -512,7 +512,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 05:36:55 GMT + - Tue, 26 Jul 2022 05:55:48 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -528,7 +528,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1196' + - '1199' x-powered-by: - Express status: @@ -574,7 +574,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 05:37:00 GMT + - Tue, 26 Jul 2022 05:55:54 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -590,7 +590,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' x-powered-by: - Express status: @@ -636,7 +636,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 05:37:06 GMT + - Tue, 26 Jul 2022 05:56:01 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -677,8 +677,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers?api-version=2022-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:20.1097321Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:28.1769303Z"},"identity":{"principalId":"d944782c-cabc-4a6a-848c-f7ec6658c8e7","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"0f2a3dec-00c0-4ccb-a6b0-6a15a3d8f0ee","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:35.3057018Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:42.8880662Z"},"identity":{"principalId":"65e9e831-04d2-4df7-a6a3-a13b7b735ac0","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"16f900ce-1be6-4e06-b57d-07b58d2dc16f","principalId":"8729f191-78f2-437b-9518-7580d395e501"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"82e47816-3dc1-4520-9644-065e82543cc4","principalId":"0fcb3f06-1279-4cff-b016-ec8e3eb37861"}}},"properties":{"frsTenantId":"79518125-c095-4480-9ea4-fb2b83f4d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:06.1329316Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:15.0391973Z"},"identity":{"principalId":"3eb88366-d987-414f-9a79-2ba880fa98e8","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"ded3e6a8-0e04-47fd-af84-23ff9bfd4d0d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:24.2467972Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:32.4288559Z"},"identity":{"principalId":"806cd437-b984-4366-81a6-fad516b6ea4c","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"535c212c-c395-45f5-bbe6-c417961f1919","principalId":"03915ae8-4692-487c-9610-fdbb9a4a87b6"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"cced6fff-a128-4546-a51a-c93edf26ac24","principalId":"00e52259-3951-4dc6-922c-2da34abcb31c"}}},"properties":{"frsTenantId":"a05cd063-1e85-4b83-95d2-72ecc5afbf1d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache @@ -687,7 +687,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:37:08 GMT + - Tue, 26 Jul 2022 05:56:03 GMT expires: - '-1' pragma: @@ -699,9 +699,9 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - ead05036-e2bf-44c4-93db-19ecf60b62df - - 722129e0-b1b7-4334-b005-a3099a363b4b - - 734ae552-cc0b-47ca-9c1f-fe3a7d6dea75 + - db01a0f9-0c5d-427c-b338-b93a499ff2c0 + - f3a30eeb-e9e4-4843-85db-a699cf0a2e53 + - c867e37c-11c6-44f0-b5d8-39af339a6111 status: code: 200 message: OK @@ -725,8 +725,8 @@ interactions: response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr","name":"testfr","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sale"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T03:43:39.7668954Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T01:54:34.5745357Z"},"identity":{"principalId":"f11ef8b7-8c1e-4166-8076-1753785e9210","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"c54a1dbd-2941-4147-8ed0-37f4bd30f817","principalId":"d60334e4-4a63-4291-b29d-ae29eb65c9c5"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"88e7899c-a6a9-4668-ad15-e612180fbc5e","principalId":"43f0d15e-92f0-48c4-9544-62526c6508cb"}}},"properties":{"frsTenantId":"68c1cc1a-f5bd-4103-a06c-3bcae653867e","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T07:48:58.8149595Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:25:04.2220749Z"},"identity":{"principalId":"8b190b2a-d2c3-4189-9935-20c8ff217c6b","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"d50f3c04-4be6-4df4-8e89-87e14315d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:20.1097321Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:28.1769303Z"},"identity":{"principalId":"d944782c-cabc-4a6a-848c-f7ec6658c8e7","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"0f2a3dec-00c0-4ccb-a6b0-6a15a3d8f0ee","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:35.3057018Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:42.8880662Z"},"identity":{"principalId":"65e9e831-04d2-4df7-a6a3-a13b7b735ac0","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"16f900ce-1be6-4e06-b57d-07b58d2dc16f","principalId":"8729f191-78f2-437b-9518-7580d395e501"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"82e47816-3dc1-4520-9644-065e82543cc4","principalId":"0fcb3f06-1279-4cff-b016-ec8e3eb37861"}}},"properties":{"frsTenantId":"79518125-c095-4480-9ea4-fb2b83f4d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"c54a1dbd-2941-4147-8ed0-37f4bd30f817","principalId":"d60334e4-4a63-4291-b29d-ae29eb65c9c5"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"88e7899c-a6a9-4668-ad15-e612180fbc5e","principalId":"43f0d15e-92f0-48c4-9544-62526c6508cb"}}},"properties":{"frsTenantId":"68c1cc1a-f5bd-4103-a06c-3bcae653867e","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T07:48:58.8149595Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:25:04.2220749Z"},"identity":{"principalId":"8b190b2a-d2c3-4189-9935-20c8ff217c6b","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"d50f3c04-4be6-4df4-8e89-87e14315d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:06.1329316Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:15.0391973Z"},"identity":{"principalId":"3eb88366-d987-414f-9a79-2ba880fa98e8","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"ded3e6a8-0e04-47fd-af84-23ff9bfd4d0d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:24.2467972Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:32.4288559Z"},"identity":{"principalId":"806cd437-b984-4366-81a6-fad516b6ea4c","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"535c212c-c395-45f5-bbe6-c417961f1919","principalId":"03915ae8-4692-487c-9610-fdbb9a4a87b6"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"cced6fff-a128-4546-a51a-c93edf26ac24","principalId":"00e52259-3951-4dc6-922c-2da34abcb31c"}}},"properties":{"frsTenantId":"a05cd063-1e85-4b83-95d2-72ecc5afbf1d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache @@ -735,7 +735,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:37:09 GMT + - Tue, 26 Jul 2022 05:56:06 GMT expires: - '-1' pragma: @@ -747,9 +747,9 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 0162db9b-a37a-41ea-aec6-d102a420bf78 - - 2a860c76-f7cd-46a3-a92f-6da9ac17590b - - 7bf2d145-aace-4619-9aca-2dc785f9191b + - 6658d5f5-987e-4171-bb03-c1d91230c706 + - bb3453ba-7596-4db2-8362-47d3a74f681f + - 041b5229-79b8-4ec5-b297-d4bc5dd555b9 status: code: 200 message: OK @@ -774,7 +774,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1/listKeys?api-version=2022-06-01 response: body: - string: '{"key1":"bf7b04963667629d22942bc6a241840c","key2":"fd7d9eb031213426a6c2721cc723adad"}' + string: '{"key1":"86c2cd9415e4161699898bc5eea502a3","key2":"ab8b523259a9e587e381c24c5707e489"}' headers: cache-control: - no-cache @@ -783,9 +783,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:37:12 GMT + - Tue, 26 Jul 2022 05:56:09 GMT etag: - - W/"55-CC/vdAd1tAwIN3Q9W+yFoL3LuRc" + - W/"55-dokprL1VMmMAsGgTLHcstRAl1bg" expires: - '-1' pragma: @@ -828,7 +828,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2/listKeys?api-version=2022-06-01 response: body: - string: '{"key1":"29b60fbca464fadfad65e63285f8ab4c","key2":"7cdfbb8818bf841bf5887573a55978a9"}' + string: '{"key1":"28d308914bfa09f721e28d34ef577d58","key2":"6a1d9e67aeb1a8dda73d461fbda8c41e"}' headers: cache-control: - no-cache @@ -837,9 +837,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:37:14 GMT + - Tue, 26 Jul 2022 05:56:11 GMT etag: - - W/"55-ZfSMTladIbwSmFkd1fsdDDbLjXE" + - W/"55-8aPj65mMsuNw4IKlYMqaIo79QDU" expires: - '-1' pragma: @@ -884,7 +884,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1/regenerateKey?api-version=2022-06-01 response: body: - string: '{"key1":"2d27750a92d71f867c495cebfe14c25e","key2":"fd7d9eb031213426a6c2721cc723adad"}' + string: '{"key1":"8f6134fabf762fd504a2d729765d2670","key2":"ab8b523259a9e587e381c24c5707e489"}' headers: cache-control: - no-cache @@ -893,9 +893,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:37:18 GMT + - Tue, 26 Jul 2022 05:56:14 GMT etag: - - W/"55-3qh0QGVpiLnleBu+iK0ug0ewcy4" + - W/"55-TVwtxrF5l1nhHGOrgJcL+bnj7w8" expires: - '-1' pragma: @@ -940,7 +940,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2/regenerateKey?api-version=2022-06-01 response: body: - string: '{"key1":"42835e1506c64e9b0b79262ce2247436","key2":"7cdfbb8818bf841bf5887573a55978a9"}' + string: '{"key1":"3d8796a181da77e8deb6a1e145742fcc","key2":"6a1d9e67aeb1a8dda73d461fbda8c41e"}' headers: cache-control: - no-cache @@ -949,9 +949,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:37:21 GMT + - Tue, 26 Jul 2022 05:56:17 GMT etag: - - W/"55-zAXRISY9hCJZ6WGU0wwKqD2LIIg" + - W/"55-pAJfgBwF8REQKNUGbytrn4ZVvKc" expires: - '-1' pragma: @@ -992,7 +992,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:20.1097321Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:28.1769303Z"},"identity":{"principalId":"d944782c-cabc-4a6a-848c-f7ec6658c8e7","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"0f2a3dec-00c0-4ccb-a6b0-6a15a3d8f0ee","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:06.1329316Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:15.0391973Z"},"identity":{"principalId":"3eb88366-d987-414f-9a79-2ba880fa98e8","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"ded3e6a8-0e04-47fd-af84-23ff9bfd4d0d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1001,9 +1001,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:37:22 GMT + - Tue, 26 Jul 2022 05:56:19 GMT etag: - - '"a801d6f5-0000-0500-0000-62df7d5e0000"' + - '"a801e2fd-0000-0500-0000-62df81c50000"' expires: - '-1' pragma: @@ -1040,8 +1040,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:36:35.3057018Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:36:42.8880662Z"},"identity":{"principalId":"65e9e831-04d2-4df7-a6a3-a13b7b735ac0","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"16f900ce-1be6-4e06-b57d-07b58d2dc16f","principalId":"8729f191-78f2-437b-9518-7580d395e501"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"82e47816-3dc1-4520-9644-065e82543cc4","principalId":"0fcb3f06-1279-4cff-b016-ec8e3eb37861"}}},"properties":{"frsTenantId":"79518125-c095-4480-9ea4-fb2b83f4d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:24.2467972Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:32.4288559Z"},"identity":{"principalId":"806cd437-b984-4366-81a6-fad516b6ea4c","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"535c212c-c395-45f5-bbe6-c417961f1919","principalId":"03915ae8-4692-487c-9610-fdbb9a4a87b6"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"cced6fff-a128-4546-a51a-c93edf26ac24","principalId":"00e52259-3951-4dc6-922c-2da34abcb31c"}}},"properties":{"frsTenantId":"a05cd063-1e85-4b83-95d2-72ecc5afbf1d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1050,9 +1050,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:37:24 GMT + - Tue, 26 Jul 2022 05:56:21 GMT etag: - - '"a801ecf5-0000-0500-0000-62df7d6c0000"' + - '"a801f9fd-0000-0500-0000-62df81d60000"' expires: - '-1' pragma: @@ -1098,7 +1098,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:37:26 GMT + - Tue, 26 Jul 2022 05:56:24 GMT etag: - W/"c-ct3goOI+b+kRZv2R9j2fTtMXwkk" expires: @@ -1107,10 +1107,6 @@ interactions: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -1148,7 +1144,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:37:29 GMT + - Tue, 26 Jul 2022 05:56:27 GMT etag: - W/"c-ct3goOI+b+kRZv2R9j2fTtMXwkk" expires: @@ -1198,7 +1194,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Jul 2022 05:37:37 GMT + - Tue, 26 Jul 2022 05:56:38 GMT expires: - '-1' pragma: @@ -1244,7 +1240,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Jul 2022 05:37:46 GMT + - Tue, 26 Jul 2022 05:56:51 GMT expires: - '-1' pragma: @@ -1290,7 +1286,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:37:47 GMT + - Tue, 26 Jul 2022 05:56:53 GMT expires: - '-1' pragma: @@ -1302,9 +1298,9 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 4b22153f-1038-4024-a05c-d13d1c564020 - - 5c0899e0-bfc4-417a-8932-d0d79ed6c829 - - 263cc18c-56c8-4033-9230-6883f6435949 + - 71fa02f6-91fd-4337-8a34-ff8d0c08e151 + - 5b4b0894-6697-448f-8c15-057c39138426 + - abc8f781-814f-49cf-aa2a-43dd3796e049 status: code: 200 message: OK @@ -1337,7 +1333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:37:49 GMT + - Tue, 26 Jul 2022 05:56:55 GMT expires: - '-1' pragma: @@ -1349,9 +1345,9 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 5c1c8c8d-8e5c-479c-a3b1-128ca23f0f18 - - 2f668004-ea8b-4712-a962-4b174f570da3 - - edd32162-88d9-4cb1-bebf-9c039b6ea645 + - 0c1c7eeb-eb51-49a8-be36-2c91853423cd + - cc26faa1-7aa0-4c5c-baa2-1d422df45f39 + - ddc4ebf9-edba-4fc9-91b6-a471bc4f4297 status: code: 200 message: OK diff --git a/src/fluid-relay/azext_fluid_relay/tests/latest/test_fluid_relay.py b/src/fluid-relay/azext_fluid_relay/tests/latest/test_fluid_relay.py index 2ac13e5b2d9..163a882caff 100644 --- a/src/fluid-relay/azext_fluid_relay/tests/latest/test_fluid_relay.py +++ b/src/fluid-relay/azext_fluid_relay/tests/latest/test_fluid_relay.py @@ -49,7 +49,7 @@ def test_fluid_relay_scenario(self, resource_group): '--identity \"{{type:"UserAssigned",user-assigned-identities:{{{id1}}}}}\"') self.cmd('fluid-relay server list -g {rg}', checks=self.check('length(@)', 2)) - self.cmd('fluid-relay server list --subscription 0b1f6471-1bf0-4dda-aec3-cb9272f09590') + self.cmd('fluid-relay server list --subscription {subscription_id}') self.cmd('fluid-relay server list-key -g {rg} --server-name {server_name1}', checks=self.check('length(@)', 2)) self.cmd('fluid-relay server list-key -g {rg} --server-name {server_name2}', @@ -73,4 +73,4 @@ def test_fluid_relay_scenario(self, resource_group): self.cmd('fluid-relay server delete -n {server_name2} -g {rg} -y') self.cmd('fluid-relay server list -g {rg}', checks=self.check('length(@)', 0)) - self.cmd('fluid-relay server list --subscription 0b1f6471-1bf0-4dda-aec3-cb9272f09590') + self.cmd('fluid-relay server list --subscription {subscription_id}') From 9e4f728cbb7575671df3490df19f511349a49437 Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Tue, 26 Jul 2022 14:24:22 +0800 Subject: [PATCH 03/11] update --- .../recordings/test_fluid_relay_scenario.yaml | 174 +++++++++--------- 1 file changed, 82 insertions(+), 92 deletions(-) diff --git a/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml b/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml index 59fb8d2e6d3..915f54ff2fa 100644 --- a/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml +++ b/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T05:54:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T06:21:00Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:54:46 GMT + - Tue, 26 Jul 2022 06:21:03 GMT expires: - '-1' pragma: @@ -64,7 +64,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1?api-version=2021-09-30-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","name":"id1","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"03915ae8-4692-487c-9610-fdbb9a4a87b6","clientId":"535c212c-c395-45f5-bbe6-c417961f1919"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","name":"id1","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"b3bdb05b-fbfe-4fc7-94b6-e7befb75607c","clientId":"7a046759-9587-4475-a725-bf26b61df89e"}}' headers: cache-control: - no-cache @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:54:52 GMT + - Tue, 26 Jul 2022 06:21:12 GMT expires: - '-1' location: @@ -108,7 +108,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T05:54:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T06:21:00Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -117,7 +117,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:54:52 GMT + - Tue, 26 Jul 2022 06:21:14 GMT expires: - '-1' pragma: @@ -154,7 +154,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2?api-version=2021-09-30-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2","name":"id2","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"00e52259-3951-4dc6-922c-2da34abcb31c","clientId":"cced6fff-a128-4546-a51a-c93edf26ac24"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2","name":"id2","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"9b9a7421-09e5-482f-abea-9949c95b9a9e","clientId":"3465c36d-c12f-4f08-abc2-561a6e24b66f"}}' headers: cache-control: - no-cache @@ -163,7 +163,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:54:59 GMT + - Tue, 26 Jul 2022 06:21:21 GMT expires: - '-1' location: @@ -203,18 +203,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:06.1329316Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:06.1329316Z"},"identity":{"principalId":"3eb88366-d987-414f-9a79-2ba880fa98e8","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"ded3e6a8-0e04-47fd-af84-23ff9bfd4d0d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:27.487763Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:21:27.487763Z"},"identity":{"principalId":"bfb5ed11-10b0-4428-89d2-ec0369fca02d","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"492a826d-2701-48e0-995a-b363cd1d48a1","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '943' + - '941' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:55:12 GMT + - Tue, 26 Jul 2022 06:21:33 GMT etag: - - '"a801d3fd-0000-0500-0000-62df81bf0000"' + - '"a9011408-0000-0500-0000-62df87ec0000"' expires: - '-1' pragma: @@ -230,7 +230,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' x-powered-by: - Express status: @@ -259,28 +259,24 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:06.1329316Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:15.0391973Z"},"identity":{"principalId":"3eb88366-d987-414f-9a79-2ba880fa98e8","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"ded3e6a8-0e04-47fd-af84-23ff9bfd4d0d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:27.487763Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:21:40.1689652Z"},"identity":{"principalId":"bfb5ed11-10b0-4428-89d2-ec0369fca02d","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"492a826d-2701-48e0-995a-b363cd1d48a1","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '971' + - '970' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:55:18 GMT + - Tue, 26 Jul 2022 06:21:45 GMT etag: - - '"a801e2fd-0000-0500-0000-62df81c50000"' + - '"a9012808-0000-0500-0000-62df87f70000"' expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -319,8 +315,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:24.2467972Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:24.2467972Z"},"identity":{"principalId":"806cd437-b984-4366-81a6-fad516b6ea4c","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"535c212c-c395-45f5-bbe6-c417961f1919","principalId":"03915ae8-4692-487c-9610-fdbb9a4a87b6"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"cced6fff-a128-4546-a51a-c93edf26ac24","principalId":"00e52259-3951-4dc6-922c-2da34abcb31c"}}},"properties":{"frsTenantId":"a05cd063-1e85-4b83-95d2-72ecc5afbf1d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:52.2198421Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:21:52.2198421Z"},"identity":{"principalId":"01205064-d1a4-4815-9c72-5871e0d80f17","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"7a046759-9587-4475-a725-bf26b61df89e","principalId":"b3bdb05b-fbfe-4fc7-94b6-e7befb75607c"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"3465c36d-c12f-4f08-abc2-561a6e24b66f","principalId":"9b9a7421-09e5-482f-abea-9949c95b9a9e"}}},"properties":{"frsTenantId":"d2ffff67-0fdd-47f7-bab7-de2b5c2e5e0a","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -329,9 +325,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:55:30 GMT + - Tue, 26 Jul 2022 06:21:56 GMT etag: - - '"a801ecfd-0000-0500-0000-62df81d00000"' + - '"a9013708-0000-0500-0000-62df88040000"' expires: - '-1' pragma: @@ -376,8 +372,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:24.2467972Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:32.4288559Z"},"identity":{"principalId":"806cd437-b984-4366-81a6-fad516b6ea4c","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"535c212c-c395-45f5-bbe6-c417961f1919","principalId":"03915ae8-4692-487c-9610-fdbb9a4a87b6"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"cced6fff-a128-4546-a51a-c93edf26ac24","principalId":"00e52259-3951-4dc6-922c-2da34abcb31c"}}},"properties":{"frsTenantId":"a05cd063-1e85-4b83-95d2-72ecc5afbf1d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:52.2198421Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:22:00.0027188Z"},"identity":{"principalId":"01205064-d1a4-4815-9c72-5871e0d80f17","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"7a046759-9587-4475-a725-bf26b61df89e","principalId":"b3bdb05b-fbfe-4fc7-94b6-e7befb75607c"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"3465c36d-c12f-4f08-abc2-561a6e24b66f","principalId":"9b9a7421-09e5-482f-abea-9949c95b9a9e"}}},"properties":{"frsTenantId":"d2ffff67-0fdd-47f7-bab7-de2b5c2e5e0a","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -386,9 +382,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:55:37 GMT + - Tue, 26 Jul 2022 06:22:03 GMT etag: - - '"a801f9fd-0000-0500-0000-62df81d60000"' + - '"a9014008-0000-0500-0000-62df88090000"' expires: - '-1' pragma: @@ -450,7 +446,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 05:55:43 GMT + - Tue, 26 Jul 2022 06:22:12 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -512,7 +508,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 05:55:48 GMT + - Tue, 26 Jul 2022 06:22:16 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -528,7 +524,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' x-powered-by: - Express status: @@ -574,7 +570,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 05:55:54 GMT + - Tue, 26 Jul 2022 06:22:25 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -636,7 +632,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 05:56:01 GMT + - Tue, 26 Jul 2022 06:22:34 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -652,7 +648,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' x-powered-by: - Express status: @@ -677,17 +673,17 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers?api-version=2022-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:06.1329316Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:15.0391973Z"},"identity":{"principalId":"3eb88366-d987-414f-9a79-2ba880fa98e8","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"ded3e6a8-0e04-47fd-af84-23ff9bfd4d0d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:24.2467972Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:32.4288559Z"},"identity":{"principalId":"806cd437-b984-4366-81a6-fad516b6ea4c","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"535c212c-c395-45f5-bbe6-c417961f1919","principalId":"03915ae8-4692-487c-9610-fdbb9a4a87b6"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"cced6fff-a128-4546-a51a-c93edf26ac24","principalId":"00e52259-3951-4dc6-922c-2da34abcb31c"}}},"properties":{"frsTenantId":"a05cd063-1e85-4b83-95d2-72ecc5afbf1d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:27.487763Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:21:40.1689652Z"},"identity":{"principalId":"bfb5ed11-10b0-4428-89d2-ec0369fca02d","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"492a826d-2701-48e0-995a-b363cd1d48a1","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:52.2198421Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:22:00.0027188Z"},"identity":{"principalId":"01205064-d1a4-4815-9c72-5871e0d80f17","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"7a046759-9587-4475-a725-bf26b61df89e","principalId":"b3bdb05b-fbfe-4fc7-94b6-e7befb75607c"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"3465c36d-c12f-4f08-abc2-561a6e24b66f","principalId":"9b9a7421-09e5-482f-abea-9949c95b9a9e"}}},"properties":{"frsTenantId":"d2ffff67-0fdd-47f7-bab7-de2b5c2e5e0a","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '2524' + - '2523' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:56:03 GMT + - Tue, 26 Jul 2022 06:22:36 GMT expires: - '-1' pragma: @@ -699,9 +695,9 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - db01a0f9-0c5d-427c-b338-b93a499ff2c0 - - f3a30eeb-e9e4-4843-85db-a699cf0a2e53 - - c867e37c-11c6-44f0-b5d8-39af339a6111 + - 7fbf8c9f-78a7-4cff-a80f-6fc8a06f7be3 + - ff71854a-dfc4-404c-9815-d363f8525226 + - 6feed451-f943-4238-b72d-fca2095e7bb4 status: code: 200 message: OK @@ -725,31 +721,29 @@ interactions: response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr","name":"testfr","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sale"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T03:43:39.7668954Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T01:54:34.5745357Z"},"identity":{"principalId":"f11ef8b7-8c1e-4166-8076-1753785e9210","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"c54a1dbd-2941-4147-8ed0-37f4bd30f817","principalId":"d60334e4-4a63-4291-b29d-ae29eb65c9c5"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"88e7899c-a6a9-4668-ad15-e612180fbc5e","principalId":"43f0d15e-92f0-48c4-9544-62526c6508cb"}}},"properties":{"frsTenantId":"68c1cc1a-f5bd-4103-a06c-3bcae653867e","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T07:48:58.8149595Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:25:04.2220749Z"},"identity":{"principalId":"8b190b2a-d2c3-4189-9935-20c8ff217c6b","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"d50f3c04-4be6-4df4-8e89-87e14315d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:06.1329316Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:15.0391973Z"},"identity":{"principalId":"3eb88366-d987-414f-9a79-2ba880fa98e8","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"ded3e6a8-0e04-47fd-af84-23ff9bfd4d0d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:24.2467972Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:32.4288559Z"},"identity":{"principalId":"806cd437-b984-4366-81a6-fad516b6ea4c","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"535c212c-c395-45f5-bbe6-c417961f1919","principalId":"03915ae8-4692-487c-9610-fdbb9a4a87b6"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"cced6fff-a128-4546-a51a-c93edf26ac24","principalId":"00e52259-3951-4dc6-922c-2da34abcb31c"}}},"properties":{"frsTenantId":"a05cd063-1e85-4b83-95d2-72ecc5afbf1d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"c54a1dbd-2941-4147-8ed0-37f4bd30f817","principalId":"d60334e4-4a63-4291-b29d-ae29eb65c9c5"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"88e7899c-a6a9-4668-ad15-e612180fbc5e","principalId":"43f0d15e-92f0-48c4-9544-62526c6508cb"}}},"properties":{"frsTenantId":"68c1cc1a-f5bd-4103-a06c-3bcae653867e","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T07:48:58.8149595Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:25:04.2220749Z"},"identity":{"principalId":"8b190b2a-d2c3-4189-9935-20c8ff217c6b","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"d50f3c04-4be6-4df4-8e89-87e14315d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:27.487763Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:21:40.1689652Z"},"identity":{"principalId":"bfb5ed11-10b0-4428-89d2-ec0369fca02d","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"492a826d-2701-48e0-995a-b363cd1d48a1","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:52.2198421Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:22:00.0027188Z"},"identity":{"principalId":"01205064-d1a4-4815-9c72-5871e0d80f17","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"7a046759-9587-4475-a725-bf26b61df89e","principalId":"b3bdb05b-fbfe-4fc7-94b6-e7befb75607c"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"3465c36d-c12f-4f08-abc2-561a6e24b66f","principalId":"9b9a7421-09e5-482f-abea-9949c95b9a9e"}}},"properties":{"frsTenantId":"d2ffff67-0fdd-47f7-bab7-de2b5c2e5e0a","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '4954' + - '4953' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:56:06 GMT + - Tue, 26 Jul 2022 06:22:38 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-original-request-ids: - - 6658d5f5-987e-4171-bb03-c1d91230c706 - - bb3453ba-7596-4db2-8362-47d3a74f681f - - 041b5229-79b8-4ec5-b297-d4bc5dd555b9 + - 7f992027-4b33-4753-b252-5ffc5f7bc9a3 + - dbadb5c7-095c-44d9-90e3-fa78e0c92018 + - deb55e08-5dc4-432b-8dbd-77e32c2c5a58 status: code: 200 message: OK @@ -774,7 +768,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1/listKeys?api-version=2022-06-01 response: body: - string: '{"key1":"86c2cd9415e4161699898bc5eea502a3","key2":"ab8b523259a9e587e381c24c5707e489"}' + string: '{"key1":"77cc58219b9824f944d7c3226ebfa3db","key2":"8d85d92aadafed43358174e2bcdedd19"}' headers: cache-control: - no-cache @@ -783,9 +777,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:56:09 GMT + - Tue, 26 Jul 2022 06:22:41 GMT etag: - - W/"55-dokprL1VMmMAsGgTLHcstRAl1bg" + - W/"55-byfV1NetWlyltmKHD6bfQx4vEyw" expires: - '-1' pragma: @@ -828,7 +822,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2/listKeys?api-version=2022-06-01 response: body: - string: '{"key1":"28d308914bfa09f721e28d34ef577d58","key2":"6a1d9e67aeb1a8dda73d461fbda8c41e"}' + string: '{"key1":"0b9ccd7fa40490a6a761d4c5f381f649","key2":"3a7d638cbed73497aa4e66391f0d9d8b"}' headers: cache-control: - no-cache @@ -837,9 +831,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:56:11 GMT + - Tue, 26 Jul 2022 06:22:44 GMT etag: - - W/"55-8aPj65mMsuNw4IKlYMqaIo79QDU" + - W/"55-5cvRLqOZ6df6ELuhZS1WVOr/COk" expires: - '-1' pragma: @@ -884,7 +878,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1/regenerateKey?api-version=2022-06-01 response: body: - string: '{"key1":"8f6134fabf762fd504a2d729765d2670","key2":"ab8b523259a9e587e381c24c5707e489"}' + string: '{"key1":"db9d86a6eefd07f1ac1f9153d83192ad","key2":"8d85d92aadafed43358174e2bcdedd19"}' headers: cache-control: - no-cache @@ -893,9 +887,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:56:14 GMT + - Tue, 26 Jul 2022 06:22:47 GMT etag: - - W/"55-TVwtxrF5l1nhHGOrgJcL+bnj7w8" + - W/"55-kNKz1t+rK5iCPMx1lK8JskLifFg" expires: - '-1' pragma: @@ -911,7 +905,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' x-powered-by: - Express status: @@ -940,7 +934,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2/regenerateKey?api-version=2022-06-01 response: body: - string: '{"key1":"3d8796a181da77e8deb6a1e145742fcc","key2":"6a1d9e67aeb1a8dda73d461fbda8c41e"}' + string: '{"key1":"11c96b7f8c40a8d8557556b84462c0fe","key2":"3a7d638cbed73497aa4e66391f0d9d8b"}' headers: cache-control: - no-cache @@ -949,19 +943,15 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:56:17 GMT + - Tue, 26 Jul 2022 06:22:51 GMT etag: - - W/"55-pAJfgBwF8REQKNUGbytrn4ZVvKc" + - W/"55-+RH3SmoAl9OufahJZoPTbu/64sE" expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -992,18 +982,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:06.1329316Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:15.0391973Z"},"identity":{"principalId":"3eb88366-d987-414f-9a79-2ba880fa98e8","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"ded3e6a8-0e04-47fd-af84-23ff9bfd4d0d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:27.487763Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:21:40.1689652Z"},"identity":{"principalId":"bfb5ed11-10b0-4428-89d2-ec0369fca02d","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"492a826d-2701-48e0-995a-b363cd1d48a1","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '971' + - '970' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:56:19 GMT + - Tue, 26 Jul 2022 06:22:52 GMT etag: - - '"a801e2fd-0000-0500-0000-62df81c50000"' + - '"a9012808-0000-0500-0000-62df87f70000"' expires: - '-1' pragma: @@ -1040,8 +1030,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T05:55:24.2467972Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:55:32.4288559Z"},"identity":{"principalId":"806cd437-b984-4366-81a6-fad516b6ea4c","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"535c212c-c395-45f5-bbe6-c417961f1919","principalId":"03915ae8-4692-487c-9610-fdbb9a4a87b6"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"cced6fff-a128-4546-a51a-c93edf26ac24","principalId":"00e52259-3951-4dc6-922c-2da34abcb31c"}}},"properties":{"frsTenantId":"a05cd063-1e85-4b83-95d2-72ecc5afbf1d","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:52.2198421Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:22:00.0027188Z"},"identity":{"principalId":"01205064-d1a4-4815-9c72-5871e0d80f17","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"7a046759-9587-4475-a725-bf26b61df89e","principalId":"b3bdb05b-fbfe-4fc7-94b6-e7befb75607c"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"3465c36d-c12f-4f08-abc2-561a6e24b66f","principalId":"9b9a7421-09e5-482f-abea-9949c95b9a9e"}}},"properties":{"frsTenantId":"d2ffff67-0fdd-47f7-bab7-de2b5c2e5e0a","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -1050,9 +1040,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:56:21 GMT + - Tue, 26 Jul 2022 06:22:55 GMT etag: - - '"a801f9fd-0000-0500-0000-62df81d60000"' + - '"a9014008-0000-0500-0000-62df88090000"' expires: - '-1' pragma: @@ -1098,7 +1088,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:56:24 GMT + - Tue, 26 Jul 2022 06:22:57 GMT etag: - W/"c-ct3goOI+b+kRZv2R9j2fTtMXwkk" expires: @@ -1107,6 +1097,10 @@ interactions: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -1144,7 +1138,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:56:27 GMT + - Tue, 26 Jul 2022 06:23:00 GMT etag: - W/"c-ct3goOI+b+kRZv2R9j2fTtMXwkk" expires: @@ -1153,10 +1147,6 @@ interactions: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -1194,7 +1184,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Jul 2022 05:56:38 GMT + - Tue, 26 Jul 2022 06:23:11 GMT expires: - '-1' pragma: @@ -1240,7 +1230,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Jul 2022 05:56:51 GMT + - Tue, 26 Jul 2022 06:23:21 GMT expires: - '-1' pragma: @@ -1286,7 +1276,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:56:53 GMT + - Tue, 26 Jul 2022 06:23:23 GMT expires: - '-1' pragma: @@ -1298,9 +1288,9 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 71fa02f6-91fd-4337-8a34-ff8d0c08e151 - - 5b4b0894-6697-448f-8c15-057c39138426 - - abc8f781-814f-49cf-aa2a-43dd3796e049 + - b308970c-761a-47d8-9e57-4554353b616d + - a855c4c8-3acc-4751-845e-86c199cf0f11 + - c6d9e684-33db-4966-8308-b4fb9c3da3ae status: code: 200 message: OK @@ -1333,7 +1323,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 05:56:55 GMT + - Tue, 26 Jul 2022 06:23:25 GMT expires: - '-1' pragma: @@ -1345,9 +1335,9 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 0c1c7eeb-eb51-49a8-be36-2c91853423cd - - cc26faa1-7aa0-4c5c-baa2-1d422df45f39 - - ddc4ebf9-edba-4fc9-91b6-a471bc4f4297 + - ce3d18db-1d70-41d6-8267-6dbfe4f04a5d + - 92aa998b-c6fd-4cac-a62a-6d88ad88d9f6 + - d9a6f391-b4f4-4238-afad-47fb191f4673 status: code: 200 message: OK From 85599a297923622ad7ecbcc7cad8de226b12c2c2 Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Tue, 26 Jul 2022 14:36:27 +0800 Subject: [PATCH 04/11] Update service_name.json --- src/service_name.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/service_name.json b/src/service_name.json index 97fd51cdd9b..9dd887f90cd 100644 --- a/src/service_name.json +++ b/src/service_name.json @@ -189,6 +189,11 @@ "AzureServiceName": "Azure Elastic", "URL": "https://docs.microsoft.com/en-us/azure/partner-solutions/elastic/overview" }, + { + "Command": "az fluid-relay", + "AzureServiceName": "Azure Fluid Relay", + "URL": "https://docs.microsoft.com/en-us/azure/azure-fluid-relay/overview" + }, { "Command": "az footprint", "AzureServiceName": "Azure Monitor", From e91e8f44837254fe533e67496c97910fb2452b18 Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Tue, 26 Jul 2022 14:47:39 +0800 Subject: [PATCH 05/11] Update CODEOWNERS --- .github/CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index cc2770cc6cc..437794e19b9 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -239,3 +239,5 @@ /src/containerapp-compose/ @smurawski @jldeen /src/change-analysis/ @linglingtong + +/src/fluid-relay/ @kairu-ms @necusjz @ZengTaoxu From 29adaa512549531a322c619630cdb4e54ef7ae0f Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Tue, 26 Jul 2022 15:52:12 +0800 Subject: [PATCH 06/11] update --- .../aaz/latest/fluid_relay/container/_delete.py | 3 +++ .../aaz/latest/fluid_relay/container/_list.py | 3 +++ .../aaz/latest/fluid_relay/container/_show.py | 3 +++ .../aaz/latest/fluid_relay/server/_create.py | 4 ++++ .../aaz/latest/fluid_relay/server/_delete.py | 3 +++ .../aaz/latest/fluid_relay/server/_list.py | 17 +++++++++++++---- .../aaz/latest/fluid_relay/server/_list_key.py | 5 ++++- .../fluid_relay/server/_regenerate_key.py | 5 ++++- .../aaz/latest/fluid_relay/server/_show.py | 3 +++ .../aaz/latest/fluid_relay/server/_update.py | 3 +++ src/service_name.json | 2 +- 11 files changed, 44 insertions(+), 7 deletions(-) diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_delete.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_delete.py index a45d2de47fe..f91b8acbfb1 100644 --- a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_delete.py +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_delete.py @@ -17,6 +17,9 @@ ) class Delete(AAZCommand): """Delete a Fluid Relay container. + + :example: FluidRelayContainer_Delete + az fluid-relay container delete -g MyResourceGroup --server-name MyServerName -n MyContainerName """ _aaz_info = { diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_list.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_list.py index af58c7047bd..2c338d38d3f 100644 --- a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_list.py +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_list.py @@ -16,6 +16,9 @@ ) class List(AAZCommand): """List all Fluid Relay containers which are children of a given Fluid Relay server. + + :example: FluidRelayContainer_List + az fluid-relay container list -g MyResourceGroup --server-name MyServerName """ _aaz_info = { diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_show.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_show.py index a2cc6be960f..ec48be04dac 100644 --- a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_show.py +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/container/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get a Fluid Relay container. + + :example: FluidRelayContainer_Show + az fluid-relay container show -g MyResourceGroup --server-name MyServerName -n MyContainerName """ _aaz_info = { diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_create.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_create.py index 1d203b24078..40696255f39 100644 --- a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_create.py +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_create.py @@ -16,6 +16,10 @@ ) class Create(AAZCommand): """Create a Fluid Relay server. + + :example: FluidRelayServer_Create + az fluid-relay server create -n TestFluidRelay -l westus2 -g MyResourceGroup --sku standard --tags category=sales --identity type="SystemAssigned" + az fluid-relay server create -n TestFluidRelay -l westus2 -g MyResourceGroup --sku standard --tags category=sales --identity type="SystemAssigned, UserAssigned" user-assigned-identities={"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2"} """ _aaz_info = { diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_delete.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_delete.py index ba407e3f18e..74107991aca 100644 --- a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_delete.py +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_delete.py @@ -17,6 +17,9 @@ ) class Delete(AAZCommand): """Delete a Fluid Relay server. + + :example: FluidRelayServer_Delete + az fluid-relay server delete -n testFluidRelay -g MyResourceGroup -y """ _aaz_info = { diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py index c6eefd653ad..dda35450c3a 100644 --- a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py @@ -16,6 +16,10 @@ ) class List(AAZCommand): """List all Fluid Relay servers. + + :example: FluidRelayServer_List + az fluid-relay server list --subscription 00000000-0000-0000-0000-000000000000 + az fluid-relay server list -g MyResourceGroup """ _aaz_info = { @@ -45,11 +49,16 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-g", "--resource-group"], help="The resource group containing the resource.", ) + _args_schema.subscription = AAZSubscriptionIdArg( + options=["-s", "--subscription"], + help="Name or ID of subscription.", + required=True, + ) return cls._args_schema def _execute_operations(self): - condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) - condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True + condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.args.subscription) + condition_1 = has_value(self.ctx.args.subscription) and has_value(self.ctx.args.resource_group) is not True if condition_0: self.FluidRelayServersListByResourceGroup(ctx=self.ctx)() if condition_1: @@ -94,7 +103,7 @@ def url_parameters(self): required=True, ), **self.serialize_url_param( - "subscriptionId", self.ctx.subscription_id, + "subscriptionId", self.ctx.args.subscription, required=True, ), } @@ -323,7 +332,7 @@ def error_format(self): def url_parameters(self): parameters = { **self.serialize_url_param( - "subscriptionId", self.ctx.subscription_id, + "subscriptionId", self.ctx.args.subscription, required=True, ), } diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list_key.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list_key.py index 3017b6ca7f2..e9a344c505c 100644 --- a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list_key.py +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list_key.py @@ -16,6 +16,9 @@ ) class ListKey(AAZCommand): """Get primary and secondary key for this server. + + :example: FluidRelayServer_List-key + az fluid-relay server list-key -g MyResourceGroup --server-name MyServerName """ _aaz_info = { @@ -42,7 +45,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.server_name = AAZStrArg( - options=["--server-name"], + options=["-n", "--server-name"], help="The Fluid Relay server resource name.", required=True, ) diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_regenerate_key.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_regenerate_key.py index 3e4524fdb94..c47de8372ae 100644 --- a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_regenerate_key.py +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_regenerate_key.py @@ -16,6 +16,9 @@ ) class RegenerateKey(AAZCommand): """Regenerate the primary or secondary key for this server. + + :example: FluidRelayServer_Regenerate-key + az fluid-relay server regenerate-key -g MyResourceGroup --server-name MyServerName --key-name key1 """ _aaz_info = { @@ -42,7 +45,7 @@ def _build_arguments_schema(cls, *args, **kwargs): _args_schema = cls._args_schema _args_schema.server_name = AAZStrArg( - options=["--server-name"], + options=["-n", "--server-name"], help="The Fluid Relay server resource name.", required=True, ) diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_show.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_show.py index 32f94e987b6..425ba8db93f 100644 --- a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_show.py +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_show.py @@ -16,6 +16,9 @@ ) class Show(AAZCommand): """Get a Fluid Relay server. + + :example: FluidRelayServer_Show + az fluid-relay server show -g MyResourceGroup -n MyFluidRelay """ _aaz_info = { diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_update.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_update.py index c3d5919e9df..25a891772bc 100644 --- a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_update.py +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_update.py @@ -16,6 +16,9 @@ ) class Update(AAZCommand): """Update a Fluid Relay server. + + :example: FluidRelayServer_Update + az fluid-relay server update -n MyFluidRelay -l westus2 -g MyResourceGroup --tags category=sale """ _aaz_info = { diff --git a/src/service_name.json b/src/service_name.json index 9dd887f90cd..ff08a262f9e 100644 --- a/src/service_name.json +++ b/src/service_name.json @@ -192,7 +192,7 @@ { "Command": "az fluid-relay", "AzureServiceName": "Azure Fluid Relay", - "URL": "https://docs.microsoft.com/en-us/azure/azure-fluid-relay/overview" + "URL": "https://docs.microsoft.com/en-us/azure/azure-fluid-relay/overview/overview" }, { "Command": "az footprint", From adb79760f5dbd95d3b3b579adaec89089b135b23 Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Tue, 26 Jul 2022 15:52:49 +0800 Subject: [PATCH 07/11] Update azext_metadata.json --- src/fluid-relay/azext_fluid_relay/azext_metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fluid-relay/azext_fluid_relay/azext_metadata.json b/src/fluid-relay/azext_fluid_relay/azext_metadata.json index ade6d0c3e08..a0d4f25e0f3 100644 --- a/src/fluid-relay/azext_fluid_relay/azext_metadata.json +++ b/src/fluid-relay/azext_fluid_relay/azext_metadata.json @@ -1,4 +1,4 @@ { "azext.isExperimental": true, - "azext.minCliCoreVersion": "2.38.0" + "azext.minCliCoreVersion": "2.39.0" } \ No newline at end of file From ae1e043883c5631e001daebe35ef0cac99303cdc Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Tue, 26 Jul 2022 16:20:20 +0800 Subject: [PATCH 08/11] update --- .../aaz/latest/fluid_relay/server/_list.py | 13 +- .../azext_fluid_relay/azext_metadata.json | 2 +- .../recordings/test_fluid_relay_scenario.yaml | 188 +++++++++--------- 3 files changed, 98 insertions(+), 105 deletions(-) diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py index dda35450c3a..197b0c9a7cc 100644 --- a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py @@ -49,16 +49,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["-g", "--resource-group"], help="The resource group containing the resource.", ) - _args_schema.subscription = AAZSubscriptionIdArg( - options=["-s", "--subscription"], - help="Name or ID of subscription.", - required=True, - ) return cls._args_schema def _execute_operations(self): - condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.args.subscription) - condition_1 = has_value(self.ctx.args.subscription) and has_value(self.ctx.args.resource_group) is not True + condition_0 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) + condition_1 = has_value(self.ctx.subscription_id) and has_value(self.ctx.args.resource_group) is not True if condition_0: self.FluidRelayServersListByResourceGroup(ctx=self.ctx)() if condition_1: @@ -103,7 +98,7 @@ def url_parameters(self): required=True, ), **self.serialize_url_param( - "subscriptionId", self.ctx.args.subscription, + "subscriptionId", self.ctx.subscription_id, required=True, ), } @@ -332,7 +327,7 @@ def error_format(self): def url_parameters(self): parameters = { **self.serialize_url_param( - "subscriptionId", self.ctx.args.subscription, + "subscriptionId", self.ctx.subscription_id, required=True, ), } diff --git a/src/fluid-relay/azext_fluid_relay/azext_metadata.json b/src/fluid-relay/azext_fluid_relay/azext_metadata.json index a0d4f25e0f3..ade6d0c3e08 100644 --- a/src/fluid-relay/azext_fluid_relay/azext_metadata.json +++ b/src/fluid-relay/azext_fluid_relay/azext_metadata.json @@ -1,4 +1,4 @@ { "azext.isExperimental": true, - "azext.minCliCoreVersion": "2.39.0" + "azext.minCliCoreVersion": "2.38.0" } \ No newline at end of file diff --git a/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml b/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml index 915f54ff2fa..02ce94b80d3 100644 --- a/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml +++ b/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T06:21:00Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T08:17:39Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:21:03 GMT + - Tue, 26 Jul 2022 08:17:42 GMT expires: - '-1' pragma: @@ -64,7 +64,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1?api-version=2021-09-30-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","name":"id1","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"b3bdb05b-fbfe-4fc7-94b6-e7befb75607c","clientId":"7a046759-9587-4475-a725-bf26b61df89e"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","name":"id1","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"94d9ffac-0ee0-45e8-85fa-17dc7f01003e","clientId":"d5c4a05b-e7a9-433b-ae72-3d4c7a06653c"}}' headers: cache-control: - no-cache @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:21:12 GMT + - Tue, 26 Jul 2022 08:17:49 GMT expires: - '-1' location: @@ -108,7 +108,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T06:21:00Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T08:17:39Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -117,7 +117,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:21:14 GMT + - Tue, 26 Jul 2022 08:17:50 GMT expires: - '-1' pragma: @@ -154,7 +154,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2?api-version=2021-09-30-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2","name":"id2","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"9b9a7421-09e5-482f-abea-9949c95b9a9e","clientId":"3465c36d-c12f-4f08-abc2-561a6e24b66f"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2","name":"id2","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"f22bbe59-c3ee-445b-ac38-3e2f4af3bbc8","clientId":"7dff7250-1c7b-4f55-ac10-b2c3d1d5d671"}}' headers: cache-control: - no-cache @@ -163,7 +163,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:21:21 GMT + - Tue, 26 Jul 2022 08:17:59 GMT expires: - '-1' location: @@ -203,28 +203,24 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:27.487763Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:21:27.487763Z"},"identity":{"principalId":"bfb5ed11-10b0-4428-89d2-ec0369fca02d","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"492a826d-2701-48e0-995a-b363cd1d48a1","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:04.5951015Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:04.5951015Z"},"identity":{"principalId":"a4b0d2b5-49fa-4789-bad0-c70b3405d840","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"22851c80-feb2-4c5b-b4d1-e3c0098ba2a6","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '941' + - '943' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:21:33 GMT + - Tue, 26 Jul 2022 08:18:10 GMT etag: - - '"a9011408-0000-0500-0000-62df87ec0000"' + - '"a901fc2d-0000-0500-0000-62dfa3410000"' expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -259,24 +255,28 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:27.487763Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:21:40.1689652Z"},"identity":{"principalId":"bfb5ed11-10b0-4428-89d2-ec0369fca02d","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"492a826d-2701-48e0-995a-b363cd1d48a1","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:04.5951015Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:13.5067377Z"},"identity":{"principalId":"a4b0d2b5-49fa-4789-bad0-c70b3405d840","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"22851c80-feb2-4c5b-b4d1-e3c0098ba2a6","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '970' + - '971' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:21:45 GMT + - Tue, 26 Jul 2022 08:18:17 GMT etag: - - '"a9012808-0000-0500-0000-62df87f70000"' + - '"a901002e-0000-0500-0000-62dfa3470000"' expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -315,19 +315,19 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:52.2198421Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:21:52.2198421Z"},"identity":{"principalId":"01205064-d1a4-4815-9c72-5871e0d80f17","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"7a046759-9587-4475-a725-bf26b61df89e","principalId":"b3bdb05b-fbfe-4fc7-94b6-e7befb75607c"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"3465c36d-c12f-4f08-abc2-561a6e24b66f","principalId":"9b9a7421-09e5-482f-abea-9949c95b9a9e"}}},"properties":{"frsTenantId":"d2ffff67-0fdd-47f7-bab7-de2b5c2e5e0a","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:21.879224Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:21.879224Z"},"identity":{"principalId":"fbe5bff9-5385-4fe0-96fa-b79e03f12dab","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"d5c4a05b-e7a9-433b-ae72-3d4c7a06653c","principalId":"94d9ffac-0ee0-45e8-85fa-17dc7f01003e"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"7dff7250-1c7b-4f55-ac10-b2c3d1d5d671","principalId":"f22bbe59-c3ee-445b-ac38-3e2f4af3bbc8"}}},"properties":{"frsTenantId":"4688c436-cb45-46ef-9707-fde75dc0f875","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1540' + - '1538' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:21:56 GMT + - Tue, 26 Jul 2022 08:18:28 GMT etag: - - '"a9013708-0000-0500-0000-62df88040000"' + - '"a9010b2e-0000-0500-0000-62dfa3530000"' expires: - '-1' pragma: @@ -372,19 +372,19 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:52.2198421Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:22:00.0027188Z"},"identity":{"principalId":"01205064-d1a4-4815-9c72-5871e0d80f17","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"7a046759-9587-4475-a725-bf26b61df89e","principalId":"b3bdb05b-fbfe-4fc7-94b6-e7befb75607c"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"3465c36d-c12f-4f08-abc2-561a6e24b66f","principalId":"9b9a7421-09e5-482f-abea-9949c95b9a9e"}}},"properties":{"frsTenantId":"d2ffff67-0fdd-47f7-bab7-de2b5c2e5e0a","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:21.879224Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:30.7527831Z"},"identity":{"principalId":"fbe5bff9-5385-4fe0-96fa-b79e03f12dab","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"d5c4a05b-e7a9-433b-ae72-3d4c7a06653c","principalId":"94d9ffac-0ee0-45e8-85fa-17dc7f01003e"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"7dff7250-1c7b-4f55-ac10-b2c3d1d5d671","principalId":"f22bbe59-c3ee-445b-ac38-3e2f4af3bbc8"}}},"properties":{"frsTenantId":"4688c436-cb45-46ef-9707-fde75dc0f875","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1540' + - '1539' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:22:03 GMT + - Tue, 26 Jul 2022 08:18:35 GMT etag: - - '"a9014008-0000-0500-0000-62df88090000"' + - '"a901142e-0000-0500-0000-62dfa3590000"' expires: - '-1' pragma: @@ -446,7 +446,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 06:22:12 GMT + - Tue, 26 Jul 2022 08:18:42 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -508,7 +508,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 06:22:16 GMT + - Tue, 26 Jul 2022 08:18:45 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -524,7 +524,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' x-powered-by: - Express status: @@ -570,7 +570,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 06:22:25 GMT + - Tue, 26 Jul 2022 08:18:51 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -586,7 +586,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1197' x-powered-by: - Express status: @@ -632,7 +632,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 06:22:34 GMT + - Tue, 26 Jul 2022 08:18:58 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -648,7 +648,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' x-powered-by: - Express status: @@ -673,8 +673,8 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers?api-version=2022-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:27.487763Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:21:40.1689652Z"},"identity":{"principalId":"bfb5ed11-10b0-4428-89d2-ec0369fca02d","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"492a826d-2701-48e0-995a-b363cd1d48a1","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:52.2198421Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:22:00.0027188Z"},"identity":{"principalId":"01205064-d1a4-4815-9c72-5871e0d80f17","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"7a046759-9587-4475-a725-bf26b61df89e","principalId":"b3bdb05b-fbfe-4fc7-94b6-e7befb75607c"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"3465c36d-c12f-4f08-abc2-561a6e24b66f","principalId":"9b9a7421-09e5-482f-abea-9949c95b9a9e"}}},"properties":{"frsTenantId":"d2ffff67-0fdd-47f7-bab7-de2b5c2e5e0a","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:04.5951015Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:13.5067377Z"},"identity":{"principalId":"a4b0d2b5-49fa-4789-bad0-c70b3405d840","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"22851c80-feb2-4c5b-b4d1-e3c0098ba2a6","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:21.879224Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:30.7527831Z"},"identity":{"principalId":"fbe5bff9-5385-4fe0-96fa-b79e03f12dab","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"d5c4a05b-e7a9-433b-ae72-3d4c7a06653c","principalId":"94d9ffac-0ee0-45e8-85fa-17dc7f01003e"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"7dff7250-1c7b-4f55-ac10-b2c3d1d5d671","principalId":"f22bbe59-c3ee-445b-ac38-3e2f4af3bbc8"}}},"properties":{"frsTenantId":"4688c436-cb45-46ef-9707-fde75dc0f875","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache @@ -683,7 +683,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:22:36 GMT + - Tue, 26 Jul 2022 08:19:01 GMT expires: - '-1' pragma: @@ -695,9 +695,9 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 7fbf8c9f-78a7-4cff-a80f-6fc8a06f7be3 - - ff71854a-dfc4-404c-9815-d363f8525226 - - 6feed451-f943-4238-b72d-fca2095e7bb4 + - 8747931a-8862-4d5f-b47b-0be8130d203a + - b9be8a91-9576-437e-a7c1-ebd0e7636dcc + - f9a82bd2-2e29-4775-bfdb-5d7d4d074ffd status: code: 200 message: OK @@ -720,30 +720,31 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.FluidRelay/fluidRelayServers?api-version=2022-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr","name":"testfr","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sale"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T03:43:39.7668954Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T01:54:34.5745357Z"},"identity":{"principalId":"f11ef8b7-8c1e-4166-8076-1753785e9210","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"c54a1dbd-2941-4147-8ed0-37f4bd30f817","principalId":"d60334e4-4a63-4291-b29d-ae29eb65c9c5"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"88e7899c-a6a9-4668-ad15-e612180fbc5e","principalId":"43f0d15e-92f0-48c4-9544-62526c6508cb"}}},"properties":{"frsTenantId":"68c1cc1a-f5bd-4103-a06c-3bcae653867e","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T07:48:58.8149595Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:25:04.2220749Z"},"identity":{"principalId":"8b190b2a-d2c3-4189-9935-20c8ff217c6b","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"d50f3c04-4be6-4df4-8e89-87e14315d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:27.487763Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:21:40.1689652Z"},"identity":{"principalId":"bfb5ed11-10b0-4428-89d2-ec0369fca02d","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"492a826d-2701-48e0-995a-b363cd1d48a1","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:52.2198421Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:22:00.0027188Z"},"identity":{"principalId":"01205064-d1a4-4815-9c72-5871e0d80f17","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"7a046759-9587-4475-a725-bf26b61df89e","principalId":"b3bdb05b-fbfe-4fc7-94b6-e7befb75607c"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"3465c36d-c12f-4f08-abc2-561a6e24b66f","principalId":"9b9a7421-09e5-482f-abea-9949c95b9a9e"}}},"properties":{"frsTenantId":"d2ffff67-0fdd-47f7-bab7-de2b5c2e5e0a","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:04.5951015Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:13.5067377Z"},"identity":{"principalId":"a4b0d2b5-49fa-4789-bad0-c70b3405d840","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"22851c80-feb2-4c5b-b4d1-e3c0098ba2a6","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:21.879224Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:30.7527831Z"},"identity":{"principalId":"fbe5bff9-5385-4fe0-96fa-b79e03f12dab","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"d5c4a05b-e7a9-433b-ae72-3d4c7a06653c","principalId":"94d9ffac-0ee0-45e8-85fa-17dc7f01003e"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"7dff7250-1c7b-4f55-ac10-b2c3d1d5d671","principalId":"f22bbe59-c3ee-445b-ac38-3e2f4af3bbc8"}}},"properties":{"frsTenantId":"4688c436-cb45-46ef-9707-fde75dc0f875","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '4953' + - '2523' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:22:38 GMT + - Tue, 26 Jul 2022 08:19:02 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-original-request-ids: - - 7f992027-4b33-4753-b252-5ffc5f7bc9a3 - - dbadb5c7-095c-44d9-90e3-fa78e0c92018 - - deb55e08-5dc4-432b-8dbd-77e32c2c5a58 + - 5e07ee78-d8fb-4e76-a0c5-bb759c72adf6 + - d4cfcb2c-de9c-474a-898b-3ddf4931c432 + - 3887eb3f-6500-43dd-9efa-57336600364d status: code: 200 message: OK @@ -768,7 +769,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1/listKeys?api-version=2022-06-01 response: body: - string: '{"key1":"77cc58219b9824f944d7c3226ebfa3db","key2":"8d85d92aadafed43358174e2bcdedd19"}' + string: '{"key1":"e41d729bf36168eeaccc0f66f97c2486","key2":"2b3abaf037ee0dba3cf51230eeb6bef0"}' headers: cache-control: - no-cache @@ -777,9 +778,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:22:41 GMT + - Tue, 26 Jul 2022 08:19:05 GMT etag: - - W/"55-byfV1NetWlyltmKHD6bfQx4vEyw" + - W/"55-QjagqOVPZDiqqJ/0uYFP/yiGMIE" expires: - '-1' pragma: @@ -822,7 +823,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2/listKeys?api-version=2022-06-01 response: body: - string: '{"key1":"0b9ccd7fa40490a6a761d4c5f381f649","key2":"3a7d638cbed73497aa4e66391f0d9d8b"}' + string: '{"key1":"917b57d05aa99a179a8082f99c770b8a","key2":"57aa7dfcb9102b4bf05ea0bf8d79aad3"}' headers: cache-control: - no-cache @@ -831,9 +832,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:22:44 GMT + - Tue, 26 Jul 2022 08:19:08 GMT etag: - - W/"55-5cvRLqOZ6df6ELuhZS1WVOr/COk" + - W/"55-y0CQ7/x/zEJeQv5IC0vq8cxaJ7w" expires: - '-1' pragma: @@ -878,7 +879,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1/regenerateKey?api-version=2022-06-01 response: body: - string: '{"key1":"db9d86a6eefd07f1ac1f9153d83192ad","key2":"8d85d92aadafed43358174e2bcdedd19"}' + string: '{"key1":"602457e69e82ea2657f654dd173c0f12","key2":"2b3abaf037ee0dba3cf51230eeb6bef0"}' headers: cache-control: - no-cache @@ -887,25 +888,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:22:47 GMT + - Tue, 26 Jul 2022 08:19:11 GMT etag: - - W/"55-kNKz1t+rK5iCPMx1lK8JskLifFg" + - W/"55-W1GsEwkkycr0f0PfZobcXOFaWlk" expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' x-powered-by: - Express status: @@ -934,7 +931,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2/regenerateKey?api-version=2022-06-01 response: body: - string: '{"key1":"11c96b7f8c40a8d8557556b84462c0fe","key2":"3a7d638cbed73497aa4e66391f0d9d8b"}' + string: '{"key1":"e8584bcf13f9e9048fc86d775df4dd00","key2":"57aa7dfcb9102b4bf05ea0bf8d79aad3"}' headers: cache-control: - no-cache @@ -943,15 +940,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:22:51 GMT + - Tue, 26 Jul 2022 08:19:14 GMT etag: - - W/"55-+RH3SmoAl9OufahJZoPTbu/64sE" + - W/"55-spJK/oiSVyGF6zvaCs/l8aIO7bY" expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -982,18 +983,18 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:27.487763Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:21:40.1689652Z"},"identity":{"principalId":"bfb5ed11-10b0-4428-89d2-ec0369fca02d","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"492a826d-2701-48e0-995a-b363cd1d48a1","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:04.5951015Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:13.5067377Z"},"identity":{"principalId":"a4b0d2b5-49fa-4789-bad0-c70b3405d840","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"22851c80-feb2-4c5b-b4d1-e3c0098ba2a6","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '970' + - '971' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:22:52 GMT + - Tue, 26 Jul 2022 08:19:16 GMT etag: - - '"a9012808-0000-0500-0000-62df87f70000"' + - '"a901002e-0000-0500-0000-62dfa3470000"' expires: - '-1' pragma: @@ -1030,19 +1031,19 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T06:21:52.2198421Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T06:22:00.0027188Z"},"identity":{"principalId":"01205064-d1a4-4815-9c72-5871e0d80f17","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"7a046759-9587-4475-a725-bf26b61df89e","principalId":"b3bdb05b-fbfe-4fc7-94b6-e7befb75607c"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"3465c36d-c12f-4f08-abc2-561a6e24b66f","principalId":"9b9a7421-09e5-482f-abea-9949c95b9a9e"}}},"properties":{"frsTenantId":"d2ffff67-0fdd-47f7-bab7-de2b5c2e5e0a","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:21.879224Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:30.7527831Z"},"identity":{"principalId":"fbe5bff9-5385-4fe0-96fa-b79e03f12dab","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"d5c4a05b-e7a9-433b-ae72-3d4c7a06653c","principalId":"94d9ffac-0ee0-45e8-85fa-17dc7f01003e"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"7dff7250-1c7b-4f55-ac10-b2c3d1d5d671","principalId":"f22bbe59-c3ee-445b-ac38-3e2f4af3bbc8"}}},"properties":{"frsTenantId":"4688c436-cb45-46ef-9707-fde75dc0f875","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1540' + - '1539' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:22:55 GMT + - Tue, 26 Jul 2022 08:19:18 GMT etag: - - '"a9014008-0000-0500-0000-62df88090000"' + - '"a901142e-0000-0500-0000-62dfa3590000"' expires: - '-1' pragma: @@ -1088,7 +1089,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:22:57 GMT + - Tue, 26 Jul 2022 08:19:21 GMT etag: - W/"c-ct3goOI+b+kRZv2R9j2fTtMXwkk" expires: @@ -1138,7 +1139,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:23:00 GMT + - Tue, 26 Jul 2022 08:19:24 GMT etag: - W/"c-ct3goOI+b+kRZv2R9j2fTtMXwkk" expires: @@ -1184,7 +1185,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Jul 2022 06:23:11 GMT + - Tue, 26 Jul 2022 08:19:35 GMT expires: - '-1' pragma: @@ -1196,7 +1197,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '14998' x-powered-by: - Express status: @@ -1230,7 +1231,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Jul 2022 06:23:21 GMT + - Tue, 26 Jul 2022 08:19:43 GMT expires: - '-1' pragma: @@ -1276,21 +1277,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:23:23 GMT + - Tue, 26 Jul 2022 08:19:45 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding x-content-type-options: - nosniff x-ms-original-request-ids: - - b308970c-761a-47d8-9e57-4554353b616d - - a855c4c8-3acc-4751-845e-86c199cf0f11 - - c6d9e684-33db-4966-8308-b4fb9c3da3ae + - 417cda3e-8228-4da8-acb6-fb30c84ac778 + - 5824a485-6fe5-40f7-bc1c-4d8792813136 + - ebc6b3e7-874d-4bfb-a60f-cd9b27412baa status: code: 200 message: OK @@ -1313,17 +1312,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.FluidRelay/fluidRelayServers?api-version=2022-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr","name":"testfr","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sale"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T03:43:39.7668954Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T01:54:34.5745357Z"},"identity":{"principalId":"f11ef8b7-8c1e-4166-8076-1753785e9210","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"c54a1dbd-2941-4147-8ed0-37f4bd30f817","principalId":"d60334e4-4a63-4291-b29d-ae29eb65c9c5"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/testrg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"88e7899c-a6a9-4668-ad15-e612180fbc5e","principalId":"43f0d15e-92f0-48c4-9544-62526c6508cb"}}},"properties":{"frsTenantId":"68c1cc1a-f5bd-4103-a06c-3bcae653867e","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-25T07:48:58.8149595Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T05:25:04.2220749Z"},"identity":{"principalId":"8b190b2a-d2c3-4189-9935-20c8ff217c6b","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"d50f3c04-4be6-4df4-8e89-87e14315d7cb","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' + string: '{"value":[]}' headers: cache-control: - no-cache content-length: - - '2441' + - '12' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 06:23:25 GMT + - Tue, 26 Jul 2022 08:19:47 GMT expires: - '-1' pragma: @@ -1335,9 +1333,9 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - ce3d18db-1d70-41d6-8267-6dbfe4f04a5d - - 92aa998b-c6fd-4cac-a62a-6d88ad88d9f6 - - d9a6f391-b4f4-4238-afad-47fb191f4673 + - 5e542a4d-599f-46e3-87a1-9ab9579712ac + - 89f62730-8a44-413d-bd52-119f005eadd9 + - 9f17c2fc-7d2a-4512-8950-795e10199c15 status: code: 200 message: OK From 4212defc322646f3e5fc6cc44bd45c652ea1d530 Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Tue, 26 Jul 2022 16:45:06 +0800 Subject: [PATCH 09/11] Update azext_metadata.json --- src/fluid-relay/azext_fluid_relay/azext_metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fluid-relay/azext_fluid_relay/azext_metadata.json b/src/fluid-relay/azext_fluid_relay/azext_metadata.json index ade6d0c3e08..a0d4f25e0f3 100644 --- a/src/fluid-relay/azext_fluid_relay/azext_metadata.json +++ b/src/fluid-relay/azext_fluid_relay/azext_metadata.json @@ -1,4 +1,4 @@ { "azext.isExperimental": true, - "azext.minCliCoreVersion": "2.38.0" + "azext.minCliCoreVersion": "2.39.0" } \ No newline at end of file From 0012f2c5b0edbbd918d143d86dd68e1f2e154b5e Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Wed, 27 Jul 2022 14:03:58 +0800 Subject: [PATCH 10/11] update --- src/fluid-relay/README.md | 74 ++++++++++++++++++- .../azext_fluid_relay/azext_metadata.json | 1 - 2 files changed, 73 insertions(+), 2 deletions(-) diff --git a/src/fluid-relay/README.md b/src/fluid-relay/README.md index d23150ad4c2..687c02b2320 100644 --- a/src/fluid-relay/README.md +++ b/src/fluid-relay/README.md @@ -2,4 +2,76 @@ This is an extension to Azure CLI to manage FluidRelay resources. ## How to use ## -Please add commands usage here. \ No newline at end of file +Please add commands usage here. +``` +az extension add --name fluid-relay +``` + +### Included Features +#### Server: +Manage a fluid relay server: [more info](https://docs.microsoft.com/en-us/azure/azure-fluid-relay/overview/overview) +*Examples:* +``` +az fluid-relay server create \ + -n TestFluidRelay \ + -l westus2 \ + -g MyResourceGroup \ + --sku standard \ + --tags category=sales \ + --identity type="SystemAssigned + +az fluid-relay server create \ + -n TestFluidRelay \ + -l westus2 \ + -g MyResourceGroup \ + --sku standard \ + --tags category=sales \ + --identity type="SystemAssigned, UserAssigned" \ + user-assigned-identities= \ + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/MyResourceGroup/providers/ \ + Microsoft.ManagedIdentity/userAssignedIdentities/id1","/subscriptions/00000000-0000-0000-0000-000000000000/ \ + resourceGroups/MyResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2"} + +az fluid-relay server update \ + -n MyFluidRelay \ + -l westus2 \ + -g MyResourceGroup \ + --tags category=sale + +az fluid-relay server list-key \ + -g MyResourceGroup \ + --server-name MyServerName + +az fluid-relay server regenerate-key \ + -g MyResourceGroup \ + --server-name MyServerName \ + --key-name key1 + +az fluid-relay server list \ + --subscription 00000000-0000-0000-0000-000000000000 + +az fluid-relay server list \ + -g MyResourceGroup + +az fluid-relay server show \ + -g MyResourceGroup \ + -n MyFluidRelay +``` + +#### Container: +Manage a fluid relay container: [more info](https://docs.microsoft.com/en-us/azure/azure-fluid-relay/overview/overview) +``` +az fluid-relay container list \ + -g MyResourceGroup \ + --server-name MyServerName + +az fluid-relay container show \ + -g MyResourceGroup \ + --server-name MyServerName \ + -n MyContainerName + +az fluid-relay container delete \ + -g MyResourceGroup \ + --server-name MyServerName \ + -n MyContainerName +``` \ No newline at end of file diff --git a/src/fluid-relay/azext_fluid_relay/azext_metadata.json b/src/fluid-relay/azext_fluid_relay/azext_metadata.json index a0d4f25e0f3..5992a05c912 100644 --- a/src/fluid-relay/azext_fluid_relay/azext_metadata.json +++ b/src/fluid-relay/azext_fluid_relay/azext_metadata.json @@ -1,4 +1,3 @@ { - "azext.isExperimental": true, "azext.minCliCoreVersion": "2.39.0" } \ No newline at end of file From d9cb79a9b21170ba8bf2affd3794140cea4a651b Mon Sep 17 00:00:00 2001 From: Zeng Taoxu Date: Wed, 27 Jul 2022 14:47:20 +0800 Subject: [PATCH 11/11] update --- src/fluid-relay/README.md | 3 +- .../aaz/latest/fluid_relay/server/_list.py | 4 +- .../recordings/test_fluid_relay_scenario.yaml | 170 ++++++++++-------- 3 files changed, 95 insertions(+), 82 deletions(-) diff --git a/src/fluid-relay/README.md b/src/fluid-relay/README.md index 687c02b2320..736c2c62f05 100644 --- a/src/fluid-relay/README.md +++ b/src/fluid-relay/README.md @@ -1,8 +1,7 @@ # Azure CLI FluidRelay Extension # This is an extension to Azure CLI to manage FluidRelay resources. -## How to use ## -Please add commands usage here. +### How to use ### ``` az extension add --name fluid-relay ``` diff --git a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py index 197b0c9a7cc..05a6528fa0a 100644 --- a/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py +++ b/src/fluid-relay/azext_fluid_relay/aaz/latest/fluid_relay/server/_list.py @@ -18,8 +18,8 @@ class List(AAZCommand): """List all Fluid Relay servers. :example: FluidRelayServer_List - az fluid-relay server list --subscription 00000000-0000-0000-0000-000000000000 - az fluid-relay server list -g MyResourceGroup + az fluid-relay server list --subscription 00000000-0000-0000-0000-000000000000 + az fluid-relay server list -g MyResourceGroup """ _aaz_info = { diff --git a/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml b/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml index 02ce94b80d3..e7ee88f7aa7 100644 --- a/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml +++ b/src/fluid-relay/azext_fluid_relay/tests/latest/recordings/test_fluid_relay_scenario.yaml @@ -18,7 +18,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T08:17:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-27T06:41:53Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,7 +27,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:17:42 GMT + - Wed, 27 Jul 2022 06:42:04 GMT expires: - '-1' pragma: @@ -64,7 +64,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1?api-version=2021-09-30-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","name":"id1","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"94d9ffac-0ee0-45e8-85fa-17dc7f01003e","clientId":"d5c4a05b-e7a9-433b-ae72-3d4c7a06653c"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1","name":"id1","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"72dc1201-200f-44e6-a633-4ede68ac20e9","clientId":"a48701c2-d4b1-4eb5-bd8b-144f60fb5a11"}}' headers: cache-control: - no-cache @@ -73,7 +73,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:17:49 GMT + - Wed, 27 Jul 2022 06:42:10 GMT expires: - '-1' location: @@ -108,7 +108,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001?api-version=2021-04-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-26T08:17:39Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001","name":"cli_test_fluid_relay000001","type":"Microsoft.Resources/resourceGroups","location":"westus2","tags":{"product":"azurecli","cause":"automation","date":"2022-07-27T06:41:53Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -117,7 +117,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:17:50 GMT + - Wed, 27 Jul 2022 06:42:11 GMT expires: - '-1' pragma: @@ -154,7 +154,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2?api-version=2021-09-30-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2","name":"id2","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"f22bbe59-c3ee-445b-ac38-3e2f4af3bbc8","clientId":"7dff7250-1c7b-4f55-ac10-b2c3d1d5d671"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2","name":"id2","type":"Microsoft.ManagedIdentity/userAssignedIdentities","location":"westus2","tags":{},"properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"0c5df8a7-4b88-4ed3-b6fd-30bf178eaba9","clientId":"5fd3f6f2-4914-4534-9e60-00f4308e36e7"}}' headers: cache-control: - no-cache @@ -163,7 +163,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:17:59 GMT + - Wed, 27 Jul 2022 06:42:18 GMT expires: - '-1' location: @@ -203,7 +203,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:04.5951015Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:04.5951015Z"},"identity":{"principalId":"a4b0d2b5-49fa-4789-bad0-c70b3405d840","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"22851c80-feb2-4c5b-b4d1-e3c0098ba2a6","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-27T06:42:23.0042091Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-27T06:42:23.0042091Z"},"identity":{"principalId":"d629f377-8bd5-4c7b-8d78-9a0b70dbbfe9","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"c3c6a81d-8cac-4012-9f33-0bdbafeea4da","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -212,21 +212,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:18:10 GMT + - Wed, 27 Jul 2022 06:42:28 GMT etag: - - '"a901fc2d-0000-0500-0000-62dfa3410000"' + - '"ae01f581-0000-0500-0000-62e0de530000"' expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '1199' x-powered-by: - Express status: @@ -255,7 +259,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:04.5951015Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:13.5067377Z"},"identity":{"principalId":"a4b0d2b5-49fa-4789-bad0-c70b3405d840","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"22851c80-feb2-4c5b-b4d1-e3c0098ba2a6","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-27T06:42:23.0042091Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-27T06:42:30.6775284Z"},"identity":{"principalId":"d629f377-8bd5-4c7b-8d78-9a0b70dbbfe9","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"c3c6a81d-8cac-4012-9f33-0bdbafeea4da","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -264,9 +268,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:18:17 GMT + - Wed, 27 Jul 2022 06:42:33 GMT etag: - - '"a901002e-0000-0500-0000-62dfa3470000"' + - '"ae01ff81-0000-0500-0000-62e0de580000"' expires: - '-1' pragma: @@ -315,19 +319,19 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:21.879224Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:21.879224Z"},"identity":{"principalId":"fbe5bff9-5385-4fe0-96fa-b79e03f12dab","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"d5c4a05b-e7a9-433b-ae72-3d4c7a06653c","principalId":"94d9ffac-0ee0-45e8-85fa-17dc7f01003e"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"7dff7250-1c7b-4f55-ac10-b2c3d1d5d671","principalId":"f22bbe59-c3ee-445b-ac38-3e2f4af3bbc8"}}},"properties":{"frsTenantId":"4688c436-cb45-46ef-9707-fde75dc0f875","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-27T06:42:39.3947795Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-27T06:42:39.3947795Z"},"identity":{"principalId":"c40188fb-0305-4960-be8f-06809b9a8794","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"a48701c2-d4b1-4eb5-bd8b-144f60fb5a11","principalId":"72dc1201-200f-44e6-a633-4ede68ac20e9"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"5fd3f6f2-4914-4534-9e60-00f4308e36e7","principalId":"0c5df8a7-4b88-4ed3-b6fd-30bf178eaba9"}}},"properties":{"frsTenantId":"b7728456-3743-488f-931f-7660d393b20c","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1538' + - '1540' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:18:28 GMT + - Wed, 27 Jul 2022 06:42:44 GMT etag: - - '"a9010b2e-0000-0500-0000-62dfa3530000"' + - '"ae011182-0000-0500-0000-62e0de640000"' expires: - '-1' pragma: @@ -372,19 +376,19 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:21.879224Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:30.7527831Z"},"identity":{"principalId":"fbe5bff9-5385-4fe0-96fa-b79e03f12dab","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"d5c4a05b-e7a9-433b-ae72-3d4c7a06653c","principalId":"94d9ffac-0ee0-45e8-85fa-17dc7f01003e"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"7dff7250-1c7b-4f55-ac10-b2c3d1d5d671","principalId":"f22bbe59-c3ee-445b-ac38-3e2f4af3bbc8"}}},"properties":{"frsTenantId":"4688c436-cb45-46ef-9707-fde75dc0f875","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-27T06:42:39.3947795Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-27T06:42:47.7152823Z"},"identity":{"principalId":"c40188fb-0305-4960-be8f-06809b9a8794","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"a48701c2-d4b1-4eb5-bd8b-144f60fb5a11","principalId":"72dc1201-200f-44e6-a633-4ede68ac20e9"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"5fd3f6f2-4914-4534-9e60-00f4308e36e7","principalId":"0c5df8a7-4b88-4ed3-b6fd-30bf178eaba9"}}},"properties":{"frsTenantId":"b7728456-3743-488f-931f-7660d393b20c","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1539' + - '1540' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:18:35 GMT + - Wed, 27 Jul 2022 06:42:51 GMT etag: - - '"a901142e-0000-0500-0000-62dfa3590000"' + - '"ae011c82-0000-0500-0000-62e0de6a0000"' expires: - '-1' pragma: @@ -446,7 +450,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 08:18:42 GMT + - Wed, 27 Jul 2022 06:42:56 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -462,7 +466,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '1198' x-powered-by: - Express status: @@ -508,7 +512,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 08:18:45 GMT + - Wed, 27 Jul 2022 06:43:01 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -570,7 +574,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 08:18:51 GMT + - Wed, 27 Jul 2022 06:43:07 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -586,7 +590,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-writes: - - '1197' + - '1199' x-powered-by: - Express status: @@ -632,7 +636,7 @@ interactions: content-type: - application/json date: - - Tue, 26 Jul 2022 08:18:58 GMT + - Wed, 27 Jul 2022 06:43:14 GMT etag: - W/"2-nOO9QiTIwXgNtWtBJezz8kv3SLc" expires: @@ -673,17 +677,17 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers?api-version=2022-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:04.5951015Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:13.5067377Z"},"identity":{"principalId":"a4b0d2b5-49fa-4789-bad0-c70b3405d840","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"22851c80-feb2-4c5b-b4d1-e3c0098ba2a6","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:21.879224Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:30.7527831Z"},"identity":{"principalId":"fbe5bff9-5385-4fe0-96fa-b79e03f12dab","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"d5c4a05b-e7a9-433b-ae72-3d4c7a06653c","principalId":"94d9ffac-0ee0-45e8-85fa-17dc7f01003e"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"7dff7250-1c7b-4f55-ac10-b2c3d1d5d671","principalId":"f22bbe59-c3ee-445b-ac38-3e2f4af3bbc8"}}},"properties":{"frsTenantId":"4688c436-cb45-46ef-9707-fde75dc0f875","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-27T06:42:23.0042091Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-27T06:42:30.6775284Z"},"identity":{"principalId":"d629f377-8bd5-4c7b-8d78-9a0b70dbbfe9","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"c3c6a81d-8cac-4012-9f33-0bdbafeea4da","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-27T06:42:39.3947795Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-27T06:42:47.7152823Z"},"identity":{"principalId":"c40188fb-0305-4960-be8f-06809b9a8794","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"a48701c2-d4b1-4eb5-bd8b-144f60fb5a11","principalId":"72dc1201-200f-44e6-a633-4ede68ac20e9"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"5fd3f6f2-4914-4534-9e60-00f4308e36e7","principalId":"0c5df8a7-4b88-4ed3-b6fd-30bf178eaba9"}}},"properties":{"frsTenantId":"b7728456-3743-488f-931f-7660d393b20c","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '2523' + - '2524' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:19:01 GMT + - Wed, 27 Jul 2022 06:43:15 GMT expires: - '-1' pragma: @@ -695,9 +699,9 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 8747931a-8862-4d5f-b47b-0be8130d203a - - b9be8a91-9576-437e-a7c1-ebd0e7636dcc - - f9a82bd2-2e29-4775-bfdb-5d7d4d074ffd + - 3c742d57-d7d3-4761-8283-056f4acdbe2c + - 7f033a67-fe7b-46d8-ab42-526cd4f4a994 + - a5a88535-4b00-4f4d-9a0e-15702c890ad4 status: code: 200 message: OK @@ -720,17 +724,17 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.FluidRelay/fluidRelayServers?api-version=2022-06-01 response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:04.5951015Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:13.5067377Z"},"identity":{"principalId":"a4b0d2b5-49fa-4789-bad0-c70b3405d840","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"22851c80-feb2-4c5b-b4d1-e3c0098ba2a6","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:21.879224Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:30.7527831Z"},"identity":{"principalId":"fbe5bff9-5385-4fe0-96fa-b79e03f12dab","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"d5c4a05b-e7a9-433b-ae72-3d4c7a06653c","principalId":"94d9ffac-0ee0-45e8-85fa-17dc7f01003e"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"7dff7250-1c7b-4f55-ac10-b2c3d1d5d671","principalId":"f22bbe59-c3ee-445b-ac38-3e2f4af3bbc8"}}},"properties":{"frsTenantId":"4688c436-cb45-46ef-9707-fde75dc0f875","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-27T06:42:23.0042091Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-27T06:42:30.6775284Z"},"identity":{"principalId":"d629f377-8bd5-4c7b-8d78-9a0b70dbbfe9","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"c3c6a81d-8cac-4012-9f33-0bdbafeea4da","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-27T06:42:39.3947795Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-27T06:42:47.7152823Z"},"identity":{"principalId":"c40188fb-0305-4960-be8f-06809b9a8794","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"a48701c2-d4b1-4eb5-bd8b-144f60fb5a11","principalId":"72dc1201-200f-44e6-a633-4ede68ac20e9"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"5fd3f6f2-4914-4534-9e60-00f4308e36e7","principalId":"0c5df8a7-4b88-4ed3-b6fd-30bf178eaba9"}}},"properties":{"frsTenantId":"b7728456-3743-488f-931f-7660d393b20c","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}]}' headers: cache-control: - no-cache content-length: - - '2523' + - '2524' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:19:02 GMT + - Wed, 27 Jul 2022 06:43:17 GMT expires: - '-1' pragma: @@ -742,9 +746,9 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 5e07ee78-d8fb-4e76-a0c5-bb759c72adf6 - - d4cfcb2c-de9c-474a-898b-3ddf4931c432 - - 3887eb3f-6500-43dd-9efa-57336600364d + - 85371fea-fa57-41b8-ad84-9f95f76d3598 + - 469f6b43-26bc-474c-8900-9330f3baf2fc + - 1a2fd77d-067c-4e6b-a557-911bd2b6ad0f status: code: 200 message: OK @@ -769,7 +773,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1/listKeys?api-version=2022-06-01 response: body: - string: '{"key1":"e41d729bf36168eeaccc0f66f97c2486","key2":"2b3abaf037ee0dba3cf51230eeb6bef0"}' + string: '{"key1":"ee4045db087ea247f2f51e51b3b79388","key2":"717c7d0faee7f4ca75175d08e02f5d37"}' headers: cache-control: - no-cache @@ -778,9 +782,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:19:05 GMT + - Wed, 27 Jul 2022 06:43:19 GMT etag: - - W/"55-QjagqOVPZDiqqJ/0uYFP/yiGMIE" + - W/"55-xBAzgzOStlj7JVgAloV7SI1Fl1w" expires: - '-1' pragma: @@ -823,7 +827,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2/listKeys?api-version=2022-06-01 response: body: - string: '{"key1":"917b57d05aa99a179a8082f99c770b8a","key2":"57aa7dfcb9102b4bf05ea0bf8d79aad3"}' + string: '{"key1":"c5067a40fb0226aff480fa27b9e2ac0e","key2":"d51e7a6099c5d1c7270664940c424ba8"}' headers: cache-control: - no-cache @@ -832,9 +836,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:19:08 GMT + - Wed, 27 Jul 2022 06:43:20 GMT etag: - - W/"55-y0CQ7/x/zEJeQv5IC0vq8cxaJ7w" + - W/"55-WLo/d0M3wYNXy37ABB/Z0nWfmQE" expires: - '-1' pragma: @@ -879,7 +883,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1/regenerateKey?api-version=2022-06-01 response: body: - string: '{"key1":"602457e69e82ea2657f654dd173c0f12","key2":"2b3abaf037ee0dba3cf51230eeb6bef0"}' + string: '{"key1":"bc897dab05e739f1008d09d6d713fd28","key2":"717c7d0faee7f4ca75175d08e02f5d37"}' headers: cache-control: - no-cache @@ -888,15 +892,19 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:19:11 GMT + - Wed, 27 Jul 2022 06:43:23 GMT etag: - - W/"55-W1GsEwkkycr0f0PfZobcXOFaWlk" + - W/"55-JaYO1UjIH13U/HLuapvtT6a7+oY" expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -931,7 +939,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2/regenerateKey?api-version=2022-06-01 response: body: - string: '{"key1":"e8584bcf13f9e9048fc86d775df4dd00","key2":"57aa7dfcb9102b4bf05ea0bf8d79aad3"}' + string: '{"key1":"09621cdc129808a2136a86130939784c","key2":"d51e7a6099c5d1c7270664940c424ba8"}' headers: cache-control: - no-cache @@ -940,9 +948,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:19:14 GMT + - Wed, 27 Jul 2022 06:43:26 GMT etag: - - W/"55-spJK/oiSVyGF6zvaCs/l8aIO7bY" + - W/"55-OemhXID6kbdEg+zs+EkpFLdoUQI" expires: - '-1' pragma: @@ -983,7 +991,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:04.5951015Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:13.5067377Z"},"identity":{"principalId":"a4b0d2b5-49fa-4789-bad0-c70b3405d840","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"22851c80-feb2-4c5b-b4d1-e3c0098ba2a6","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr1","name":"testfr1","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-27T06:42:23.0042091Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-27T06:42:30.6775284Z"},"identity":{"principalId":"d629f377-8bd5-4c7b-8d78-9a0b70dbbfe9","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned"},"properties":{"frsTenantId":"c3c6a81d-8cac-4012-9f33-0bdbafeea4da","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -992,9 +1000,9 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:19:16 GMT + - Wed, 27 Jul 2022 06:43:29 GMT etag: - - '"a901002e-0000-0500-0000-62dfa3470000"' + - '"ae01ff81-0000-0500-0000-62e0de580000"' expires: - '-1' pragma: @@ -1031,19 +1039,19 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2?api-version=2022-06-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-26T08:18:21.879224Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-26T08:18:30.7527831Z"},"identity":{"principalId":"fbe5bff9-5385-4fe0-96fa-b79e03f12dab","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, - UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"d5c4a05b-e7a9-433b-ae72-3d4c7a06653c","principalId":"94d9ffac-0ee0-45e8-85fa-17dc7f01003e"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"7dff7250-1c7b-4f55-ac10-b2c3d1d5d671","principalId":"f22bbe59-c3ee-445b-ac38-3e2f4af3bbc8"}}},"properties":{"frsTenantId":"4688c436-cb45-46ef-9707-fde75dc0f875","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_fluid_relay000001/providers/Microsoft.FluidRelay/fluidRelayServers/testfr2","name":"testfr2","type":"microsoft.fluidrelay/fluidrelayservers","location":"westus2","tags":{"category":"sales"},"systemData":{"createdBy":"v-taoxuzeng@microsoft.com","createdByType":"User","createdAt":"2022-07-27T06:42:39.3947795Z","lastModifiedBy":"v-taoxuzeng@microsoft.com","lastModifiedByType":"User","lastModifiedAt":"2022-07-27T06:42:47.7152823Z"},"identity":{"principalId":"c40188fb-0305-4960-be8f-06809b9a8794","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","type":"SystemAssigned, + UserAssigned","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id1":{"clientId":"a48701c2-d4b1-4eb5-bd8b-144f60fb5a11","principalId":"72dc1201-200f-44e6-a633-4ede68ac20e9"},"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_fluid_relay000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id2":{"clientId":"5fd3f6f2-4914-4534-9e60-00f4308e36e7","principalId":"0c5df8a7-4b88-4ed3-b6fd-30bf178eaba9"}}},"properties":{"frsTenantId":"b7728456-3743-488f-931f-7660d393b20c","fluidRelayEndpoints":{"ordererEndpoints":["https://alfred.westus2.fluidrelay.azure.com"],"storageEndpoints":["https://historian.westus2.fluidrelay.azure.com"],"serviceEndpoints":["https://us.fluidrelay.azure.com"]},"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '1539' + - '1540' content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:19:18 GMT + - Wed, 27 Jul 2022 06:43:31 GMT etag: - - '"a901142e-0000-0500-0000-62dfa3590000"' + - '"ae011c82-0000-0500-0000-62e0de6a0000"' expires: - '-1' pragma: @@ -1089,7 +1097,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:19:21 GMT + - Wed, 27 Jul 2022 06:43:33 GMT etag: - W/"c-ct3goOI+b+kRZv2R9j2fTtMXwkk" expires: @@ -1139,7 +1147,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:19:24 GMT + - Wed, 27 Jul 2022 06:43:34 GMT etag: - W/"c-ct3goOI+b+kRZv2R9j2fTtMXwkk" expires: @@ -1148,6 +1156,10 @@ interactions: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-providerhub-traffic: @@ -1185,7 +1197,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Jul 2022 08:19:35 GMT + - Wed, 27 Jul 2022 06:43:42 GMT expires: - '-1' pragma: @@ -1197,7 +1209,7 @@ interactions: x-ms-providerhub-traffic: - 'True' x-ms-ratelimit-remaining-subscription-deletes: - - '14998' + - '14999' x-powered-by: - Express status: @@ -1231,7 +1243,7 @@ interactions: content-length: - '0' date: - - Tue, 26 Jul 2022 08:19:43 GMT + - Wed, 27 Jul 2022 06:43:51 GMT expires: - '-1' pragma: @@ -1277,19 +1289,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:19:45 GMT + - Wed, 27 Jul 2022 06:43:53 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + vary: + - Accept-Encoding x-content-type-options: - nosniff x-ms-original-request-ids: - - 417cda3e-8228-4da8-acb6-fb30c84ac778 - - 5824a485-6fe5-40f7-bc1c-4d8792813136 - - ebc6b3e7-874d-4bfb-a60f-cd9b27412baa + - 349a2383-6728-444e-b3ad-203af56e21e1 + - 8f9dd0a3-08b0-48a3-9326-fdb23272d990 + - aadb7e52-2f07-4999-a66d-4cdb34d26193 status: code: 200 message: OK @@ -1321,7 +1335,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Tue, 26 Jul 2022 08:19:47 GMT + - Wed, 27 Jul 2022 06:43:55 GMT expires: - '-1' pragma: @@ -1333,9 +1347,9 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - 5e542a4d-599f-46e3-87a1-9ab9579712ac - - 89f62730-8a44-413d-bd52-119f005eadd9 - - 9f17c2fc-7d2a-4512-8950-795e10199c15 + - 5ff9b2a2-3f64-44d8-addb-041fae8be394 + - 56d3edd7-f082-43e5-b22b-263f190ec033 + - 03644279-a7b1-4d16-b37d-a592fcb9f39b status: code: 200 message: OK