From 57b4d88f7c8d5d82675146e495ebb712f86f4beb Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Mon, 7 Apr 2025 15:47:30 +0800 Subject: [PATCH 1/9] implement --- .../latest/monitor/action_group/_create.py | 215 +++- .../latest/monitor/action_group/_delete.py | 7 +- .../monitor/action_group/_enable_receiver.py | 7 +- .../aaz/latest/monitor/action_group/_list.py | 212 +++- .../aaz/latest/monitor/action_group/_show.py | 94 +- .../latest/monitor/action_group/_update.py | 226 +++- .../test_notifications/_create.py | 98 +- .../cli/command_modules/monitor/commands.py | 5 + .../monitor/operations/action_groups.py | 6 + .../operations/action_groups_identity.py | 223 ++++ .../test_monitor_action_group_identity.yaml | 978 ++++++++++++++++++ ...nitor_action_group_incident_receivers.yaml | 337 ++++++ .../test_monitor_action_group_location.yaml | 24 +- .../latest/test_monitor_action_groups.py | 66 ++ 14 files changed, 2434 insertions(+), 64 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py create mode 100644 src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_identity.yaml create mode 100644 src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_incident_receivers.yaml diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_create.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_create.py index 6d71ad9f82f..bb8ac233320 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_create.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_create.py @@ -22,9 +22,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2022-06-01", + "version": "2024-10-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}", "2022-06-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}", "2024-10-01-preview"], ] } @@ -50,7 +50,6 @@ def _build_arguments_schema(cls, *args, **kwargs): required=True, ) _args_schema.resource_group = AAZResourceGroupNameArg( - help="Name of resource group. You can configure the default group using `az configure --defaults group=`.", required=True, ) _args_schema.location = AAZResourceLocationArg( @@ -76,6 +75,25 @@ def _build_arguments_schema(cls, *args, **kwargs): tags = cls._args_schema.tags tags.Element = AAZStrArg() + # define Arg Group "Identity" + + _args_schema = cls._args_schema + _args_schema.mi_system_assigned = AAZStrArg( + options=["--system-assigned", "--mi-system-assigned"], + arg_group="Identity", + help="Set the system managed identity.", + blank="True", + ) + _args_schema.mi_user_assigned = AAZListArg( + options=["--user-assigned", "--mi-user-assigned"], + arg_group="Identity", + help="Set the user managed identities.", + blank=[], + ) + + mi_user_assigned = cls._args_schema.mi_user_assigned + mi_user_assigned.Element = AAZStrArg() + # define Arg Group "Properties" _args_schema = cls._args_schema @@ -115,6 +133,11 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="Properties", help="The list of event hub receivers that are part of this action group.", ) + _args_schema.incident_receivers = AAZListArg( + options=["--incident-receivers"], + arg_group="Properties", + help="The list of incident receivers that are part of this action group.", + ) _args_schema.itsm_receivers = AAZListArg( options=["--itsm-receivers"], arg_group="Properties", @@ -175,6 +198,10 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Indicates whether this instance is global runbook.", required=True, ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + ) _element.name = AAZStrArg( options=["name"], help="Indicates name of the webhook.", @@ -233,6 +260,10 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The http trigger url where http request sent to.", required=True, ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + ) _element.name = AAZStrArg( options=["name"], help="The name of the azure function receiver. Names must be unique across all receivers within an action group.", @@ -278,6 +309,10 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The Event Hub namespace", required=True, ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + ) _element.name = AAZStrArg( options=["name"], help="The name of the Event hub receiver. Names must be unique across all receivers within an action group.", @@ -298,6 +333,47 @@ def _build_arguments_schema(cls, *args, **kwargs): default=False, ) + incident_receivers = cls._args_schema.incident_receivers + incident_receivers.Element = AAZObjectArg() + + _element = cls._args_schema.incident_receivers.Element + _element.connection = AAZObjectArg( + options=["connection"], + help="The incident service connection", + required=True, + ) + _element.incident_management_service = AAZStrArg( + options=["incident-management-service"], + help="The incident management service type", + required=True, + enum={"Icm": "Icm"}, + ) + _element.mappings = AAZDictArg( + options=["mappings"], + help="Field mappings for the incident service", + required=True, + ) + _element.name = AAZStrArg( + options=["name"], + help="The name of the Incident receiver. Names must be unique across all receivers within an action group.", + required=True, + ) + + connection = cls._args_schema.incident_receivers.Element.connection + connection.id = AAZStrArg( + options=["id"], + help="GUID value representing the connection ID for the incident management service.", + required=True, + ) + connection.name = AAZStrArg( + options=["name"], + help="The name of the connection.", + required=True, + ) + + mappings = cls._args_schema.incident_receivers.Element.mappings + mappings.Element = AAZStrArg() + itsm_receivers = cls._args_schema.itsm_receivers itsm_receivers.Element = AAZObjectArg() @@ -337,6 +413,10 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The callback url where http request sent to.", required=True, ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + ) _element.name = AAZStrArg( options=["name"], help="The name of the logic app receiver. Names must be unique across all receivers within an action group.", @@ -401,6 +481,10 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["identifier-uri"], help="Indicates the identifier uri for aad auth.", ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + ) _element.name = AAZStrArg( options=["name"], help="The name of the webhook receiver. Names must be unique across all receivers within an action group.", @@ -496,7 +580,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2022-06-01", + "api-version", "2024-10-01-preview", required=True, ), } @@ -521,10 +605,20 @@ def content(self): typ=AAZObjectType, typ_kwargs={"flags": {"required": True, "client_flatten": True}} ) + _builder.set_prop("identity", AAZIdentityObjectType) _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("userAssigned", AAZListType, ".mi_user_assigned", typ_kwargs={"flags": {"action": "create"}}) + identity.set_prop("systemAssigned", AAZStrType, ".mi_system_assigned", typ_kwargs={"flags": {"action": "create"}}) + + user_assigned = _builder.get(".identity.userAssigned") + if user_assigned is not None: + user_assigned.set_elements(AAZStrType, ".") + properties = _builder.get(".properties") if properties is not None: properties.set_prop("armRoleReceivers", AAZListType, ".arm_role_receivers") @@ -535,6 +629,7 @@ def content(self): properties.set_prop("enabled", AAZBoolType, ".enabled", typ_kwargs={"flags": {"required": True}}) properties.set_prop("eventHubReceivers", AAZListType, ".event_hub_receivers") properties.set_prop("groupShortName", AAZStrType, ".group_short_name", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("incidentReceivers", AAZListType, ".incident_receivers") properties.set_prop("itsmReceivers", AAZListType, ".itsm_receivers") properties.set_prop("logicAppReceivers", AAZListType, ".logic_app_receivers") properties.set_prop("smsReceivers", AAZListType, ".sms_receivers") @@ -559,6 +654,7 @@ def content(self): if _elements is not None: _elements.set_prop("automationAccountId", AAZStrType, ".automation_account_id", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("isGlobalRunbook", AAZBoolType, ".is_global_runbook", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name") _elements.set_prop("runbookName", AAZStrType, ".runbook_name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("serviceUri", AAZStrType, ".service_uri") @@ -583,6 +679,7 @@ def content(self): _elements.set_prop("functionAppResourceId", AAZStrType, ".function_app_resource_id", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("functionName", AAZStrType, ".function_name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("httpTriggerUrl", AAZStrType, ".http_trigger_url", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("useCommonAlertSchema", AAZBoolType, ".use_common_alert_schema") @@ -604,11 +701,32 @@ def content(self): if _elements is not None: _elements.set_prop("eventHubName", AAZStrType, ".event_hub_name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("eventHubNameSpace", AAZStrType, ".event_hub_name_space", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("subscriptionId", AAZStrType, ".subscription_id", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("tenantId", AAZStrType, ".tenant_id") _elements.set_prop("useCommonAlertSchema", AAZBoolType, ".use_common_alert_schema") + incident_receivers = _builder.get(".properties.incidentReceivers") + if incident_receivers is not None: + incident_receivers.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.incidentReceivers[]") + if _elements is not None: + _elements.set_prop("connection", AAZObjectType, ".connection", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("incidentManagementService", AAZStrType, ".incident_management_service", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("mappings", AAZDictType, ".mappings", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + + connection = _builder.get(".properties.incidentReceivers[].connection") + if connection is not None: + connection.set_prop("id", AAZStrType, ".id", typ_kwargs={"flags": {"required": True}}) + connection.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + + mappings = _builder.get(".properties.incidentReceivers[].mappings") + if mappings is not None: + mappings.set_elements(AAZStrType, ".") + itsm_receivers = _builder.get(".properties.itsmReceivers") if itsm_receivers is not None: itsm_receivers.set_elements(AAZObjectType, ".") @@ -628,6 +746,7 @@ def content(self): _elements = _builder.get(".properties.logicAppReceivers[]") if _elements is not None: _elements.set_prop("callbackUrl", AAZStrType, ".callback_url", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("resourceId", AAZStrType, ".resource_id", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("useCommonAlertSchema", AAZBoolType, ".use_common_alert_schema") @@ -659,6 +778,7 @@ def content(self): _elements = _builder.get(".properties.webhookReceivers[]") if _elements is not None: _elements.set_prop("identifierUri", AAZStrType, ".identifier_uri") + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("objectId", AAZStrType, ".object_id") _elements.set_prop("serviceUri", AAZStrType, ".service_uri", typ_kwargs={"flags": {"required": True}}) @@ -693,6 +813,7 @@ def _build_schema_on_200_201(cls): _schema_on_200_201.id = AAZStrType( flags={"read_only": True}, ) + _schema_on_200_201.identity = AAZIdentityObjectType() _schema_on_200_201.location = AAZStrType( flags={"required": True}, ) @@ -707,6 +828,37 @@ def _build_schema_on_200_201(cls): flags={"read_only": True}, ) + identity = cls._schema_on_200_201.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( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200_201.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType( + nullable=True, + ) + + _element = cls._schema_on_200_201.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_201.properties properties.arm_role_receivers = AAZListType( serialized_name="armRoleReceivers", @@ -733,6 +885,9 @@ def _build_schema_on_200_201(cls): serialized_name="groupShortName", flags={"required": True}, ) + properties.incident_receivers = AAZListType( + serialized_name="incidentReceivers", + ) properties.itsm_receivers = AAZListType( serialized_name="itsmReceivers", ) @@ -776,6 +931,9 @@ def _build_schema_on_200_201(cls): serialized_name="isGlobalRunbook", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType() _element.runbook_name = AAZStrType( serialized_name="runbookName", @@ -820,6 +978,9 @@ def _build_schema_on_200_201(cls): serialized_name="httpTriggerUrl", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -838,7 +999,9 @@ def _build_schema_on_200_201(cls): _element.name = AAZStrType( flags={"required": True}, ) - _element.status = AAZStrType() + _element.status = AAZStrType( + flags={"read_only": True}, + ) _element.use_common_alert_schema = AAZBoolType( serialized_name="useCommonAlertSchema", ) @@ -855,6 +1018,9 @@ def _build_schema_on_200_201(cls): serialized_name="eventHubNameSpace", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -869,6 +1035,35 @@ def _build_schema_on_200_201(cls): serialized_name="useCommonAlertSchema", ) + incident_receivers = cls._schema_on_200_201.properties.incident_receivers + incident_receivers.Element = AAZObjectType() + + _element = cls._schema_on_200_201.properties.incident_receivers.Element + _element.connection = AAZObjectType( + flags={"required": True}, + ) + _element.incident_management_service = AAZStrType( + serialized_name="incidentManagementService", + flags={"required": True}, + ) + _element.mappings = AAZDictType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + + connection = cls._schema_on_200_201.properties.incident_receivers.Element.connection + connection.id = AAZStrType( + flags={"required": True}, + ) + connection.name = AAZStrType( + flags={"required": True}, + ) + + mappings = cls._schema_on_200_201.properties.incident_receivers.Element.mappings + mappings.Element = AAZStrType() + itsm_receivers = cls._schema_on_200_201.properties.itsm_receivers itsm_receivers.Element = AAZObjectType() @@ -900,6 +1095,9 @@ def _build_schema_on_200_201(cls): serialized_name="callbackUrl", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -926,7 +1124,9 @@ def _build_schema_on_200_201(cls): serialized_name="phoneNumber", flags={"required": True}, ) - _element.status = AAZStrType() + _element.status = AAZStrType( + flags={"read_only": True}, + ) voice_receivers = cls._schema_on_200_201.properties.voice_receivers voice_receivers.Element = AAZObjectType() @@ -951,6 +1151,9 @@ def _build_schema_on_200_201(cls): _element.identifier_uri = AAZStrType( serialized_name="identifierUri", ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_delete.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_delete.py index 7f66594ca17..b4560cc0949 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_delete.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_delete.py @@ -19,9 +19,9 @@ class Delete(AAZCommand): """ _aaz_info = { - "version": "2022-06-01", + "version": "2024-10-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}", "2022-06-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}", "2024-10-01-preview"], ] } @@ -48,7 +48,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - help="Name of resource group. You can configure the default group using `az configure --defaults group=`.", required=True, ) return cls._args_schema @@ -116,7 +115,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2022-06-01", + "api-version", "2024-10-01-preview", required=True, ), } diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_enable_receiver.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_enable_receiver.py index 82a52ea8b57..01e59dea677 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_enable_receiver.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_enable_receiver.py @@ -21,9 +21,9 @@ class EnableReceiver(AAZCommand): """ _aaz_info = { - "version": "2022-06-01", + "version": "2024-10-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}/subscribe", "2022-06-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}/subscribe", "2024-10-01-preview"], ] } @@ -50,7 +50,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - help="Name of resource group. You can configure the default group using `az configure --defaults group=`.", required=True, ) _args_schema.receiver_name = AAZStrArg( @@ -121,7 +120,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2022-06-01", + "api-version", "2024-10-01-preview", required=True, ), } diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_list.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_list.py index 1ef51d12546..9f0a3ccfcc9 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_list.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_list.py @@ -19,10 +19,10 @@ class List(AAZCommand): """ _aaz_info = { - "version": "2022-06-01", + "version": "2024-10-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/providers/microsoft.insights/actiongroups", "2022-06-01"], - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups", "2022-06-01"], + ["mgmt-plane", "/subscriptions/{}/providers/microsoft.insights/actiongroups", "2024-10-01-preview"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups", "2024-10-01-preview"], ] } @@ -42,19 +42,17 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "" _args_schema = cls._args_schema - _args_schema.resource_group = AAZResourceGroupNameArg( - help="Name of resource group. You can configure the default group using `az configure --defaults group=`.", - ) + _args_schema.resource_group = AAZResourceGroupNameArg() return cls._args_schema def _execute_operations(self): self.pre_operations() - 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.subscription_id) and has_value(self.ctx.args.resource_group) is not True + condition_1 = has_value(self.ctx.args.resource_group) and has_value(self.ctx.subscription_id) if condition_0: - self.ActionGroupsListByResourceGroup(ctx=self.ctx)() - if condition_1: self.ActionGroupsListBySubscriptionId(ctx=self.ctx)() + if condition_1: + self.ActionGroupsListByResourceGroup(ctx=self.ctx)() self.post_operations() @register_callback @@ -69,7 +67,7 @@ def _output(self, *args, **kwargs): result = self.deserialize_output(self.ctx.vars.instance.value, client_flatten=True) return result - class ActionGroupsListByResourceGroup(AAZHttpOperation): + class ActionGroupsListBySubscriptionId(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): @@ -83,7 +81,7 @@ def __call__(self, *args, **kwargs): @property def url(self): return self.client.format_url( - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups", + "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/actionGroups", **self.url_parameters ) @@ -98,10 +96,6 @@ def error_format(self): @property def url_parameters(self): parameters = { - **self.serialize_url_param( - "resourceGroupName", self.ctx.args.resource_group, - required=True, - ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, @@ -113,7 +107,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2022-06-01", + "api-version", "2024-10-01-preview", required=True, ), } @@ -158,6 +152,7 @@ def _build_schema_on_200(cls): _element.id = AAZStrType( flags={"read_only": True}, ) + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType( flags={"required": True}, ) @@ -172,6 +167,37 @@ def _build_schema_on_200(cls): 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( + flags={"required": True}, + ) + 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( + nullable=True, + ) + + _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.arm_role_receivers = AAZListType( serialized_name="armRoleReceivers", @@ -198,6 +224,9 @@ def _build_schema_on_200(cls): serialized_name="groupShortName", flags={"required": True}, ) + properties.incident_receivers = AAZListType( + serialized_name="incidentReceivers", + ) properties.itsm_receivers = AAZListType( serialized_name="itsmReceivers", ) @@ -241,6 +270,9 @@ def _build_schema_on_200(cls): serialized_name="isGlobalRunbook", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType() _element.runbook_name = AAZStrType( serialized_name="runbookName", @@ -285,6 +317,9 @@ def _build_schema_on_200(cls): serialized_name="httpTriggerUrl", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -303,7 +338,9 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"required": True}, ) - _element.status = AAZStrType() + _element.status = AAZStrType( + flags={"read_only": True}, + ) _element.use_common_alert_schema = AAZBoolType( serialized_name="useCommonAlertSchema", ) @@ -320,6 +357,9 @@ def _build_schema_on_200(cls): serialized_name="eventHubNameSpace", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -334,6 +374,35 @@ def _build_schema_on_200(cls): serialized_name="useCommonAlertSchema", ) + incident_receivers = cls._schema_on_200.value.Element.properties.incident_receivers + incident_receivers.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.incident_receivers.Element + _element.connection = AAZObjectType( + flags={"required": True}, + ) + _element.incident_management_service = AAZStrType( + serialized_name="incidentManagementService", + flags={"required": True}, + ) + _element.mappings = AAZDictType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + + connection = cls._schema_on_200.value.Element.properties.incident_receivers.Element.connection + connection.id = AAZStrType( + flags={"required": True}, + ) + connection.name = AAZStrType( + flags={"required": True}, + ) + + mappings = cls._schema_on_200.value.Element.properties.incident_receivers.Element.mappings + mappings.Element = AAZStrType() + itsm_receivers = cls._schema_on_200.value.Element.properties.itsm_receivers itsm_receivers.Element = AAZObjectType() @@ -365,6 +434,9 @@ def _build_schema_on_200(cls): serialized_name="callbackUrl", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -391,7 +463,9 @@ def _build_schema_on_200(cls): serialized_name="phoneNumber", flags={"required": True}, ) - _element.status = AAZStrType() + _element.status = AAZStrType( + flags={"read_only": True}, + ) voice_receivers = cls._schema_on_200.value.Element.properties.voice_receivers voice_receivers.Element = AAZObjectType() @@ -416,6 +490,9 @@ def _build_schema_on_200(cls): _element.identifier_uri = AAZStrType( serialized_name="identifierUri", ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -441,7 +518,7 @@ def _build_schema_on_200(cls): return cls._schema_on_200 - class ActionGroupsListBySubscriptionId(AAZHttpOperation): + class ActionGroupsListByResourceGroup(AAZHttpOperation): CLIENT_TYPE = "MgmtClient" def __call__(self, *args, **kwargs): @@ -455,7 +532,7 @@ def __call__(self, *args, **kwargs): @property def url(self): return self.client.format_url( - "/subscriptions/{subscriptionId}/providers/Microsoft.Insights/actionGroups", + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups", **self.url_parameters ) @@ -470,6 +547,10 @@ def error_format(self): @property def url_parameters(self): parameters = { + **self.serialize_url_param( + "resourceGroupName", self.ctx.args.resource_group, + required=True, + ), **self.serialize_url_param( "subscriptionId", self.ctx.subscription_id, required=True, @@ -481,7 +562,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2022-06-01", + "api-version", "2024-10-01-preview", required=True, ), } @@ -526,6 +607,7 @@ def _build_schema_on_200(cls): _element.id = AAZStrType( flags={"read_only": True}, ) + _element.identity = AAZIdentityObjectType() _element.location = AAZStrType( flags={"required": True}, ) @@ -540,6 +622,37 @@ def _build_schema_on_200(cls): 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( + flags={"required": True}, + ) + 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( + nullable=True, + ) + + _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.arm_role_receivers = AAZListType( serialized_name="armRoleReceivers", @@ -566,6 +679,9 @@ def _build_schema_on_200(cls): serialized_name="groupShortName", flags={"required": True}, ) + properties.incident_receivers = AAZListType( + serialized_name="incidentReceivers", + ) properties.itsm_receivers = AAZListType( serialized_name="itsmReceivers", ) @@ -609,6 +725,9 @@ def _build_schema_on_200(cls): serialized_name="isGlobalRunbook", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType() _element.runbook_name = AAZStrType( serialized_name="runbookName", @@ -653,6 +772,9 @@ def _build_schema_on_200(cls): serialized_name="httpTriggerUrl", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -671,7 +793,9 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"required": True}, ) - _element.status = AAZStrType() + _element.status = AAZStrType( + flags={"read_only": True}, + ) _element.use_common_alert_schema = AAZBoolType( serialized_name="useCommonAlertSchema", ) @@ -688,6 +812,9 @@ def _build_schema_on_200(cls): serialized_name="eventHubNameSpace", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -702,6 +829,35 @@ def _build_schema_on_200(cls): serialized_name="useCommonAlertSchema", ) + incident_receivers = cls._schema_on_200.value.Element.properties.incident_receivers + incident_receivers.Element = AAZObjectType() + + _element = cls._schema_on_200.value.Element.properties.incident_receivers.Element + _element.connection = AAZObjectType( + flags={"required": True}, + ) + _element.incident_management_service = AAZStrType( + serialized_name="incidentManagementService", + flags={"required": True}, + ) + _element.mappings = AAZDictType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + + connection = cls._schema_on_200.value.Element.properties.incident_receivers.Element.connection + connection.id = AAZStrType( + flags={"required": True}, + ) + connection.name = AAZStrType( + flags={"required": True}, + ) + + mappings = cls._schema_on_200.value.Element.properties.incident_receivers.Element.mappings + mappings.Element = AAZStrType() + itsm_receivers = cls._schema_on_200.value.Element.properties.itsm_receivers itsm_receivers.Element = AAZObjectType() @@ -733,6 +889,9 @@ def _build_schema_on_200(cls): serialized_name="callbackUrl", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -759,7 +918,9 @@ def _build_schema_on_200(cls): serialized_name="phoneNumber", flags={"required": True}, ) - _element.status = AAZStrType() + _element.status = AAZStrType( + flags={"read_only": True}, + ) voice_receivers = cls._schema_on_200.value.Element.properties.voice_receivers voice_receivers.Element = AAZObjectType() @@ -784,6 +945,9 @@ def _build_schema_on_200(cls): _element.identifier_uri = AAZStrType( serialized_name="identifierUri", ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_show.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_show.py index e9e3b3f5539..759e492f291 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_show.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_show.py @@ -22,9 +22,9 @@ class Show(AAZCommand): """ _aaz_info = { - "version": "2022-06-01", + "version": "2024-10-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}", "2022-06-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}", "2024-10-01-preview"], ] } @@ -51,7 +51,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - help="Name of resource group. You can configure the default group using `az configure --defaults group=`.", required=True, ) return cls._args_schema @@ -121,7 +120,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2022-06-01", + "api-version", "2024-10-01-preview", required=True, ), } @@ -157,6 +156,7 @@ def _build_schema_on_200(cls): _schema_on_200.id = AAZStrType( flags={"read_only": True}, ) + _schema_on_200.identity = AAZIdentityObjectType() _schema_on_200.location = AAZStrType( flags={"required": True}, ) @@ -171,6 +171,37 @@ def _build_schema_on_200(cls): 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( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = cls._schema_on_200.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType( + nullable=True, + ) + + _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.arm_role_receivers = AAZListType( serialized_name="armRoleReceivers", @@ -197,6 +228,9 @@ def _build_schema_on_200(cls): serialized_name="groupShortName", flags={"required": True}, ) + properties.incident_receivers = AAZListType( + serialized_name="incidentReceivers", + ) properties.itsm_receivers = AAZListType( serialized_name="itsmReceivers", ) @@ -240,6 +274,9 @@ def _build_schema_on_200(cls): serialized_name="isGlobalRunbook", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType() _element.runbook_name = AAZStrType( serialized_name="runbookName", @@ -284,6 +321,9 @@ def _build_schema_on_200(cls): serialized_name="httpTriggerUrl", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -302,7 +342,9 @@ def _build_schema_on_200(cls): _element.name = AAZStrType( flags={"required": True}, ) - _element.status = AAZStrType() + _element.status = AAZStrType( + flags={"read_only": True}, + ) _element.use_common_alert_schema = AAZBoolType( serialized_name="useCommonAlertSchema", ) @@ -319,6 +361,9 @@ def _build_schema_on_200(cls): serialized_name="eventHubNameSpace", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -333,6 +378,35 @@ def _build_schema_on_200(cls): serialized_name="useCommonAlertSchema", ) + incident_receivers = cls._schema_on_200.properties.incident_receivers + incident_receivers.Element = AAZObjectType() + + _element = cls._schema_on_200.properties.incident_receivers.Element + _element.connection = AAZObjectType( + flags={"required": True}, + ) + _element.incident_management_service = AAZStrType( + serialized_name="incidentManagementService", + flags={"required": True}, + ) + _element.mappings = AAZDictType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + + connection = cls._schema_on_200.properties.incident_receivers.Element.connection + connection.id = AAZStrType( + flags={"required": True}, + ) + connection.name = AAZStrType( + flags={"required": True}, + ) + + mappings = cls._schema_on_200.properties.incident_receivers.Element.mappings + mappings.Element = AAZStrType() + itsm_receivers = cls._schema_on_200.properties.itsm_receivers itsm_receivers.Element = AAZObjectType() @@ -364,6 +438,9 @@ def _build_schema_on_200(cls): serialized_name="callbackUrl", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -390,7 +467,9 @@ def _build_schema_on_200(cls): serialized_name="phoneNumber", flags={"required": True}, ) - _element.status = AAZStrType() + _element.status = AAZStrType( + flags={"read_only": True}, + ) voice_receivers = cls._schema_on_200.properties.voice_receivers voice_receivers.Element = AAZObjectType() @@ -415,6 +494,9 @@ def _build_schema_on_200(cls): _element.identifier_uri = AAZStrType( serialized_name="identifierUri", ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_update.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_update.py index ff5a52292db..d1039b7b866 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_update.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_update.py @@ -22,9 +22,9 @@ class Update(AAZCommand): """ _aaz_info = { - "version": "2022-06-01", + "version": "2024-10-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}", "2022-06-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}", "2024-10-01-preview"], ] } @@ -53,7 +53,6 @@ def _build_arguments_schema(cls, *args, **kwargs): id_part="name", ) _args_schema.resource_group = AAZResourceGroupNameArg( - help="Name of resource group. You can configure the default group using `az configure --defaults group=`.", required=True, ) _args_schema.group_short_name = AAZStrArg( @@ -74,6 +73,28 @@ def _build_arguments_schema(cls, *args, **kwargs): nullable=True, ) + # define Arg Group "Identity" + + _args_schema = cls._args_schema + _args_schema.type = AAZStrArg( + options=["--type"], + arg_group="Identity", + help="Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", + enum={"None": "None", "SystemAssigned": "SystemAssigned", "SystemAssigned,UserAssigned": "SystemAssigned,UserAssigned", "UserAssigned": "UserAssigned"}, + ) + _args_schema.user_assigned_identities = AAZDictArg( + options=["--user-assigned-identities"], + arg_group="Identity", + help="The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", + nullable=True, + ) + + user_assigned_identities = cls._args_schema.user_assigned_identities + user_assigned_identities.Element = AAZObjectArg( + nullable=True, + blank={}, + ) + # define Arg Group "Properties" _args_schema = cls._args_schema @@ -118,6 +139,12 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The list of event hub receivers that are part of this action group.", nullable=True, ) + _args_schema.incident_receivers = AAZListArg( + options=["--incident-receivers"], + arg_group="Properties", + help="The list of incident receivers that are part of this action group.", + nullable=True, + ) _args_schema.itsm_receivers = AAZListArg( options=["--itsm-receivers"], arg_group="Properties", @@ -183,6 +210,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["is-global-runbook"], help="Indicates whether this instance is global runbook.", ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + nullable=True, + ) _element.name = AAZStrArg( options=["name"], help="Indicates name of the webhook.", @@ -240,6 +272,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["http-trigger-url"], help="The http trigger url where http request sent to.", ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + nullable=True, + ) _element.name = AAZStrArg( options=["name"], help="The name of the azure function receiver. Names must be unique across all receivers within an action group.", @@ -284,6 +321,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["event-hub-name-space"], help="The Event Hub namespace", ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + nullable=True, + ) _element.name = AAZStrArg( options=["name"], help="The name of the Event hub receiver. Names must be unique across all receivers within an action group.", @@ -303,6 +345,45 @@ def _build_arguments_schema(cls, *args, **kwargs): nullable=True, ) + incident_receivers = cls._args_schema.incident_receivers + incident_receivers.Element = AAZObjectArg( + nullable=True, + ) + + _element = cls._args_schema.incident_receivers.Element + _element.connection = AAZObjectArg( + options=["connection"], + help="The incident service connection", + ) + _element.incident_management_service = AAZStrArg( + options=["incident-management-service"], + help="The incident management service type", + enum={"Icm": "Icm"}, + ) + _element.mappings = AAZDictArg( + options=["mappings"], + help="Field mappings for the incident service", + ) + _element.name = AAZStrArg( + options=["name"], + help="The name of the Incident receiver. Names must be unique across all receivers within an action group.", + ) + + connection = cls._args_schema.incident_receivers.Element.connection + connection.id = AAZStrArg( + options=["id"], + help="GUID value representing the connection ID for the incident management service.", + ) + connection.name = AAZStrArg( + options=["name"], + help="The name of the connection.", + ) + + mappings = cls._args_schema.incident_receivers.Element.mappings + mappings.Element = AAZStrArg( + nullable=True, + ) + itsm_receivers = cls._args_schema.itsm_receivers itsm_receivers.Element = AAZObjectArg( nullable=True, @@ -340,6 +421,11 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["callback-url"], help="The callback url where http request sent to.", ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + nullable=True, + ) _element.name = AAZStrArg( options=["name"], help="The name of the logic app receiver. Names must be unique across all receivers within an action group.", @@ -403,6 +489,11 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Indicates the identifier uri for aad auth.", nullable=True, ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + nullable=True, + ) _element.name = AAZStrArg( options=["name"], help="The name of the webhook receiver. Names must be unique across all receivers within an action group.", @@ -511,7 +602,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2022-06-01", + "api-version", "2024-10-01-preview", required=True, ), } @@ -594,7 +685,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2022-06-01", + "api-version", "2024-10-01-preview", required=True, ), } @@ -652,9 +743,19 @@ def _update_instance(self, instance): value=instance, typ=AAZObjectType ) + _builder.set_prop("identity", AAZIdentityObjectType) _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", typ_kwargs={"flags": {"required": True}}) + 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, ".", typ_kwargs={"nullable": True}) + properties = _builder.get(".properties") if properties is not None: properties.set_prop("armRoleReceivers", AAZListType, ".arm_role_receivers") @@ -665,6 +766,7 @@ def _update_instance(self, instance): properties.set_prop("enabled", AAZBoolType, ".enabled", typ_kwargs={"flags": {"required": True}}) properties.set_prop("eventHubReceivers", AAZListType, ".event_hub_receivers") properties.set_prop("groupShortName", AAZStrType, ".group_short_name", typ_kwargs={"flags": {"required": True}}) + properties.set_prop("incidentReceivers", AAZListType, ".incident_receivers") properties.set_prop("itsmReceivers", AAZListType, ".itsm_receivers") properties.set_prop("logicAppReceivers", AAZListType, ".logic_app_receivers") properties.set_prop("smsReceivers", AAZListType, ".sms_receivers") @@ -689,6 +791,7 @@ def _update_instance(self, instance): if _elements is not None: _elements.set_prop("automationAccountId", AAZStrType, ".automation_account_id", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("isGlobalRunbook", AAZBoolType, ".is_global_runbook", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name") _elements.set_prop("runbookName", AAZStrType, ".runbook_name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("serviceUri", AAZStrType, ".service_uri") @@ -713,6 +816,7 @@ def _update_instance(self, instance): _elements.set_prop("functionAppResourceId", AAZStrType, ".function_app_resource_id", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("functionName", AAZStrType, ".function_name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("httpTriggerUrl", AAZStrType, ".http_trigger_url", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("useCommonAlertSchema", AAZBoolType, ".use_common_alert_schema") @@ -734,11 +838,32 @@ def _update_instance(self, instance): if _elements is not None: _elements.set_prop("eventHubName", AAZStrType, ".event_hub_name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("eventHubNameSpace", AAZStrType, ".event_hub_name_space", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("subscriptionId", AAZStrType, ".subscription_id", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("tenantId", AAZStrType, ".tenant_id") _elements.set_prop("useCommonAlertSchema", AAZBoolType, ".use_common_alert_schema") + incident_receivers = _builder.get(".properties.incidentReceivers") + if incident_receivers is not None: + incident_receivers.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".properties.incidentReceivers[]") + if _elements is not None: + _elements.set_prop("connection", AAZObjectType, ".connection", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("incidentManagementService", AAZStrType, ".incident_management_service", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("mappings", AAZDictType, ".mappings", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + + connection = _builder.get(".properties.incidentReceivers[].connection") + if connection is not None: + connection.set_prop("id", AAZStrType, ".id", typ_kwargs={"flags": {"required": True}}) + connection.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + + mappings = _builder.get(".properties.incidentReceivers[].mappings") + if mappings is not None: + mappings.set_elements(AAZStrType, ".") + itsm_receivers = _builder.get(".properties.itsmReceivers") if itsm_receivers is not None: itsm_receivers.set_elements(AAZObjectType, ".") @@ -758,6 +883,7 @@ def _update_instance(self, instance): _elements = _builder.get(".properties.logicAppReceivers[]") if _elements is not None: _elements.set_prop("callbackUrl", AAZStrType, ".callback_url", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("resourceId", AAZStrType, ".resource_id", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("useCommonAlertSchema", AAZBoolType, ".use_common_alert_schema") @@ -789,6 +915,7 @@ def _update_instance(self, instance): _elements = _builder.get(".properties.webhookReceivers[]") if _elements is not None: _elements.set_prop("identifierUri", AAZStrType, ".identifier_uri") + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("objectId", AAZStrType, ".object_id") _elements.set_prop("serviceUri", AAZStrType, ".service_uri", typ_kwargs={"flags": {"required": True}}) @@ -820,6 +947,7 @@ class _UpdateHelper: def _build_schema_action_group_resource_read(cls, _schema): if cls._schema_action_group_resource_read is not None: _schema.id = cls._schema_action_group_resource_read.id + _schema.identity = cls._schema_action_group_resource_read.identity _schema.location = cls._schema_action_group_resource_read.location _schema.name = cls._schema_action_group_resource_read.name _schema.properties = cls._schema_action_group_resource_read.properties @@ -833,6 +961,7 @@ def _build_schema_action_group_resource_read(cls, _schema): action_group_resource_read.id = AAZStrType( flags={"read_only": True}, ) + action_group_resource_read.identity = AAZIdentityObjectType() action_group_resource_read.location = AAZStrType( flags={"required": True}, ) @@ -847,6 +976,37 @@ def _build_schema_action_group_resource_read(cls, _schema): flags={"read_only": True}, ) + identity = _schema_action_group_resource_read.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( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_action_group_resource_read.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType( + nullable=True, + ) + + _element = _schema_action_group_resource_read.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 = _schema_action_group_resource_read.properties properties.arm_role_receivers = AAZListType( serialized_name="armRoleReceivers", @@ -873,6 +1033,9 @@ def _build_schema_action_group_resource_read(cls, _schema): serialized_name="groupShortName", flags={"required": True}, ) + properties.incident_receivers = AAZListType( + serialized_name="incidentReceivers", + ) properties.itsm_receivers = AAZListType( serialized_name="itsmReceivers", ) @@ -916,6 +1079,9 @@ def _build_schema_action_group_resource_read(cls, _schema): serialized_name="isGlobalRunbook", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType() _element.runbook_name = AAZStrType( serialized_name="runbookName", @@ -960,6 +1126,9 @@ def _build_schema_action_group_resource_read(cls, _schema): serialized_name="httpTriggerUrl", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -978,7 +1147,9 @@ def _build_schema_action_group_resource_read(cls, _schema): _element.name = AAZStrType( flags={"required": True}, ) - _element.status = AAZStrType() + _element.status = AAZStrType( + flags={"read_only": True}, + ) _element.use_common_alert_schema = AAZBoolType( serialized_name="useCommonAlertSchema", ) @@ -995,6 +1166,9 @@ def _build_schema_action_group_resource_read(cls, _schema): serialized_name="eventHubNameSpace", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -1009,6 +1183,35 @@ def _build_schema_action_group_resource_read(cls, _schema): serialized_name="useCommonAlertSchema", ) + incident_receivers = _schema_action_group_resource_read.properties.incident_receivers + incident_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.incident_receivers.Element + _element.connection = AAZObjectType( + flags={"required": True}, + ) + _element.incident_management_service = AAZStrType( + serialized_name="incidentManagementService", + flags={"required": True}, + ) + _element.mappings = AAZDictType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + + connection = _schema_action_group_resource_read.properties.incident_receivers.Element.connection + connection.id = AAZStrType( + flags={"required": True}, + ) + connection.name = AAZStrType( + flags={"required": True}, + ) + + mappings = _schema_action_group_resource_read.properties.incident_receivers.Element.mappings + mappings.Element = AAZStrType() + itsm_receivers = _schema_action_group_resource_read.properties.itsm_receivers itsm_receivers.Element = AAZObjectType() @@ -1040,6 +1243,9 @@ def _build_schema_action_group_resource_read(cls, _schema): serialized_name="callbackUrl", flags={"required": True}, ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -1066,7 +1272,9 @@ def _build_schema_action_group_resource_read(cls, _schema): serialized_name="phoneNumber", flags={"required": True}, ) - _element.status = AAZStrType() + _element.status = AAZStrType( + flags={"read_only": True}, + ) voice_receivers = _schema_action_group_resource_read.properties.voice_receivers voice_receivers.Element = AAZObjectType() @@ -1091,6 +1299,9 @@ def _build_schema_action_group_resource_read(cls, _schema): _element.identifier_uri = AAZStrType( serialized_name="identifierUri", ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) _element.name = AAZStrType( flags={"required": True}, ) @@ -1115,6 +1326,7 @@ def _build_schema_action_group_resource_read(cls, _schema): tags.Element = AAZStrType() _schema.id = cls._schema_action_group_resource_read.id + _schema.identity = cls._schema_action_group_resource_read.identity _schema.location = cls._schema_action_group_resource_read.location _schema.name = cls._schema_action_group_resource_read.name _schema.properties = cls._schema_action_group_resource_read.properties diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/test_notifications/_create.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/test_notifications/_create.py index e33c514e1e7..5ac17ca1cbf 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/test_notifications/_create.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/test_notifications/_create.py @@ -22,9 +22,9 @@ class Create(AAZCommand): """ _aaz_info = { - "version": "2022-06-01", + "version": "2024-10-01-preview", "resources": [ - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}/createnotifications", "2022-06-01"], + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}/createnotifications", "2024-10-01-preview"], ] } @@ -95,6 +95,11 @@ def _build_arguments_schema(cls, *args, **kwargs): arg_group="NotificationRequest", help="The list of event hub receivers that are part of this action group.", ) + _args_schema.incident_receivers = AAZListArg( + options=["--incident-receivers"], + arg_group="NotificationRequest", + help="The list of incident receivers that are part of this action group.", + ) _args_schema.itsm_receivers = AAZListArg( options=["--itsm-receivers"], arg_group="NotificationRequest", @@ -155,6 +160,10 @@ def _build_arguments_schema(cls, *args, **kwargs): help="Indicates whether this instance is global runbook.", required=True, ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + ) _element.name = AAZStrArg( options=["name"], help="Indicates name of the webhook.", @@ -213,6 +222,10 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The http trigger url where http request sent to.", required=True, ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + ) _element.name = AAZStrArg( options=["name"], help="The name of the azure function receiver. Names must be unique across all receivers within an action group.", @@ -258,6 +271,10 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The Event Hub namespace", required=True, ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + ) _element.name = AAZStrArg( options=["name"], help="The name of the Event hub receiver. Names must be unique across all receivers within an action group.", @@ -278,6 +295,47 @@ def _build_arguments_schema(cls, *args, **kwargs): default=False, ) + incident_receivers = cls._args_schema.incident_receivers + incident_receivers.Element = AAZObjectArg() + + _element = cls._args_schema.incident_receivers.Element + _element.connection = AAZObjectArg( + options=["connection"], + help="The incident service connection", + required=True, + ) + _element.incident_management_service = AAZStrArg( + options=["incident-management-service"], + help="The incident management service type", + required=True, + enum={"Icm": "Icm"}, + ) + _element.mappings = AAZDictArg( + options=["mappings"], + help="Field mappings for the incident service", + required=True, + ) + _element.name = AAZStrArg( + options=["name"], + help="The name of the Incident receiver. Names must be unique across all receivers within an action group.", + required=True, + ) + + connection = cls._args_schema.incident_receivers.Element.connection + connection.id = AAZStrArg( + options=["id"], + help="GUID value representing the connection ID for the incident management service.", + required=True, + ) + connection.name = AAZStrArg( + options=["name"], + help="The name of the connection.", + required=True, + ) + + mappings = cls._args_schema.incident_receivers.Element.mappings + mappings.Element = AAZStrArg() + itsm_receivers = cls._args_schema.itsm_receivers itsm_receivers.Element = AAZObjectArg() @@ -317,6 +375,10 @@ def _build_arguments_schema(cls, *args, **kwargs): help="The callback url where http request sent to.", required=True, ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + ) _element.name = AAZStrArg( options=["name"], help="The name of the logic app receiver. Names must be unique across all receivers within an action group.", @@ -381,6 +443,10 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["identifier-uri"], help="Indicates the identifier uri for aad auth.", ) + _element.managed_identity = AAZStrArg( + options=["managed-identity"], + help="The principal id of the managed identity. The value can be \"None\", \"SystemAssigned\" ", + ) _element.name = AAZStrArg( options=["name"], help="The name of the webhook receiver. Names must be unique across all receivers within an action group.", @@ -492,7 +558,7 @@ def url_parameters(self): def query_parameters(self): parameters = { **self.serialize_query_param( - "api-version", "2022-06-01", + "api-version", "2024-10-01-preview", required=True, ), } @@ -524,6 +590,7 @@ def content(self): _builder.set_prop("azureFunctionReceivers", AAZListType, ".azure_function_receivers") _builder.set_prop("emailReceivers", AAZListType, ".email_receivers") _builder.set_prop("eventHubReceivers", AAZListType, ".event_hub_receivers") + _builder.set_prop("incidentReceivers", AAZListType, ".incident_receivers") _builder.set_prop("itsmReceivers", AAZListType, ".itsm_receivers") _builder.set_prop("logicAppReceivers", AAZListType, ".logic_app_receivers") _builder.set_prop("smsReceivers", AAZListType, ".sms_receivers") @@ -548,6 +615,7 @@ def content(self): if _elements is not None: _elements.set_prop("automationAccountId", AAZStrType, ".automation_account_id", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("isGlobalRunbook", AAZBoolType, ".is_global_runbook", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name") _elements.set_prop("runbookName", AAZStrType, ".runbook_name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("serviceUri", AAZStrType, ".service_uri") @@ -572,6 +640,7 @@ def content(self): _elements.set_prop("functionAppResourceId", AAZStrType, ".function_app_resource_id", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("functionName", AAZStrType, ".function_name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("httpTriggerUrl", AAZStrType, ".http_trigger_url", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("useCommonAlertSchema", AAZBoolType, ".use_common_alert_schema") @@ -593,11 +662,32 @@ def content(self): if _elements is not None: _elements.set_prop("eventHubName", AAZStrType, ".event_hub_name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("eventHubNameSpace", AAZStrType, ".event_hub_name_space", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("subscriptionId", AAZStrType, ".subscription_id", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("tenantId", AAZStrType, ".tenant_id") _elements.set_prop("useCommonAlertSchema", AAZBoolType, ".use_common_alert_schema") + incident_receivers = _builder.get(".incidentReceivers") + if incident_receivers is not None: + incident_receivers.set_elements(AAZObjectType, ".") + + _elements = _builder.get(".incidentReceivers[]") + if _elements is not None: + _elements.set_prop("connection", AAZObjectType, ".connection", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("incidentManagementService", AAZStrType, ".incident_management_service", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("mappings", AAZDictType, ".mappings", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + + connection = _builder.get(".incidentReceivers[].connection") + if connection is not None: + connection.set_prop("id", AAZStrType, ".id", typ_kwargs={"flags": {"required": True}}) + connection.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) + + mappings = _builder.get(".incidentReceivers[].mappings") + if mappings is not None: + mappings.set_elements(AAZStrType, ".") + itsm_receivers = _builder.get(".itsmReceivers") if itsm_receivers is not None: itsm_receivers.set_elements(AAZObjectType, ".") @@ -617,6 +707,7 @@ def content(self): _elements = _builder.get(".logicAppReceivers[]") if _elements is not None: _elements.set_prop("callbackUrl", AAZStrType, ".callback_url", typ_kwargs={"flags": {"required": True}}) + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("resourceId", AAZStrType, ".resource_id", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("useCommonAlertSchema", AAZBoolType, ".use_common_alert_schema") @@ -648,6 +739,7 @@ def content(self): _elements = _builder.get(".webhookReceivers[]") if _elements is not None: _elements.set_prop("identifierUri", AAZStrType, ".identifier_uri") + _elements.set_prop("managedIdentity", AAZStrType, ".managed_identity") _elements.set_prop("name", AAZStrType, ".name", typ_kwargs={"flags": {"required": True}}) _elements.set_prop("objectId", AAZStrType, ".object_id") _elements.set_prop("serviceUri", AAZStrType, ".service_uri", typ_kwargs={"flags": {"required": True}}) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/commands.py b/src/azure-cli/azure/cli/command_modules/monitor/commands.py index 1924c89fb74..399bd8e435f 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/commands.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/commands.py @@ -94,6 +94,11 @@ def load_command_table(self, _): self.command_table['monitor action-group test-notifications create'] = \ ActionGroupTestNotificationCreate(loader=self, table_transformer=action_group_list_table) + from .operations.action_groups_identity import ActionGroupIdentityRemove, ActionGroupIdentityShow, ActionGroupIdentityAssign + self.command_table['monitor action-group identity assign'] = ActionGroupIdentityAssign(loader=self) + self.command_table['monitor action-group identity remove'] = ActionGroupIdentityRemove(loader=self) + self.command_table['monitor action-group identity show'] = ActionGroupIdentityShow(loader=self) + with self.command_group('monitor activity-log', activity_log_sdk) as g: g.custom_command('list', 'list_activity_log') diff --git a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py index ea33068901f..018c74be9be 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py @@ -223,6 +223,8 @@ def _build_arguments_schema(cls, *args, **kwargs): args_schema.sms_receivers._registered = False args_schema.voice_receivers._registered = False args_schema.webhook_receivers._registered = False + args_schema.type._registered = False + args_schema.user_assigned_identities._registered = False args_schema.receiver_actions = AAZCustomListArg( options=["--add-actions"], singular_options=["--add-action", "-a"], @@ -292,6 +294,10 @@ def pre_instance_update(self, instance): def filter_receivers(collection): return [item for item in collection if item.name.to_serialized_data() not in receiver_remove_list] + instance.properties.incident_receivers = filter_receivers(instance.properties.incident_receivers) + instance.properties.incident_receivers.extend(args.incident_receivers) + args.incident_receivers = instance.properties.incident_receivers + instance.properties.email_receivers = filter_receivers(instance.properties.email_receivers) instance.properties.email_receivers.extend(args.email_receivers) args.email_receivers = instance.properties.email_receivers diff --git a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py new file mode 100644 index 00000000000..b93af036bde --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py @@ -0,0 +1,223 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=protected-access +from knack.log import get_logger + +from azure.cli.core.aaz import register_command ,has_value, AAZBoolArg, AAZListArg, AAZResourceIdArg, AAZResourceIdArgFormat +from ..aaz.latest.monitor.action_group import Update as _ActionGroupUpdate, Show as _ActionGroupShow + +logger = get_logger(__name__) + + +@register_command( + "monitor action-group identity assign", +) +class ActionGroupIdentityAssign(_ActionGroupUpdate): + """Add managed identities to an existing action group. + + :example: Add a system assigned managed identity to an existing action group. + az monitor action-group identity assign --name ag --resource-group rg --system-assigned + + :example: Add a user assigned managed identity to an existing action group. + az monitor action-group identity assign --name ag --resource-group rg --user-assigned MyAssignedId + + :example: Add system assigned identity and a user assigned managed identity to an existing action group. + az monitor action-group identity assign --name ag --resource-group rg --system-assigned --user-assigned MyAssignedId + """ + + AZ_SUPPORT_GENERIC_UPDATE = False + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + args_schema = super()._build_arguments_schema(*args, **kwargs) + args_schema.system_assigned = AAZBoolArg( + options=["--system-assigned"], + help="Provide this flag to use system assigned identity.", + arg_group="Managed Identity", + blank=True + ) + args_schema.user_assigned = AAZListArg( + options=["--user-assigned"], + help="User Assigned Identity ids to be used for disk encryption set. Accepts using the argument without any value.", + arg_group="Managed Identity", + blank=[] + ) + args_schema.user_assigned.Element = AAZResourceIdArg( + fmt=AAZResourceIdArgFormat(template="/subscriptions/{subscription}/resourceGroups/{resource_group}" + "/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{}") + ) + args_schema.arm_role_receivers._registered = False + args_schema.automation_runbook_receivers._registered = False + args_schema.azure_app_push_receivers._registered = False + args_schema.azure_function_receivers._registered = False + args_schema.email_receivers._registered = False + args_schema.enabled._registered = False + args_schema.event_hub_receivers._registered = False + args_schema.itsm_receivers._registered = False + args_schema.logic_app_receivers._registered = False + args_schema.sms_receivers._registered = False + args_schema.voice_receivers._registered = False + args_schema.webhook_receivers._registered = False + args_schema.incident_receivers._registered = False + args_schema.group_short_name._registered = False + args_schema.tags._registered = False + args_schema.type._registered = False + args_schema.user_assigned_identities._registered = False + return args_schema + + def pre_instance_update(self, instance): + existing_system_identity = False + existing_user_identity = set() + if instance.to_serialized_data().get('identity', None): + existing_system_identity = instance.identity.type in ['SystemAssigned', 'SystemAssigned, UserAssigned'] + existing_user_identity = {x.lower() for x in list(getattr(instance.identity, 'user_assigned_identities', {}).keys())} + + add_system_assigned = self.ctx.args.system_assigned.to_serialized_data() + add_user_assigned = {x.lower() for x in self.ctx.args.user_assigned.to_serialized_data() or []} + + updated_system_assigned = existing_system_identity or add_system_assigned + updated_user_assigned = list(existing_user_identity.union(add_user_assigned)) + + instance.identity.type = 'SystemAssigned' + if updated_user_assigned: + instance.identity.type = 'SystemAssigned, UserAssigned' if updated_system_assigned else 'UserAssigned' + instance.identity.user_assigned_identities = dict.fromkeys(updated_user_assigned, {}) + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result.get('identity', None) + + +@register_command( + "monitor action-group identity remove", + confirmation="Are you sure you want to perform this operation?" +) +class ActionGroupIdentityRemove(_ActionGroupUpdate): + """Remove managed identities from an existing action group. + + :example: Remove a system assigned managed identity from an existing action group. + az monitor action-group identity remove --name ag --resource-group rg --system-assigned + + :example: Remove a user assigned managed identity from an existing action group. + az monitor action-group identity remove --name ag --resource-group rg --user-assigned MyAssignedId + + :example: Remove all user assigned managed identities from an existing action group. + az monitor action-group identity remove --name ag --resource-group rg --user-assigned + """ + + AZ_SUPPORT_GENERIC_UPDATE = False + + @classmethod + def _build_arguments_schema(cls, *args, **kwargs): + args_schema = super()._build_arguments_schema(*args, **kwargs) + args_schema.system_assigned = AAZBoolArg( + options=["--system-assigned"], + help="Provide this flag to use system assigned identity.", + arg_group="Managed Identity", + blank=True + ) + args_schema.user_assigned = AAZListArg( + options=["--user-assigned"], + help="User Assigned Identity ids to be used for disk encryption set. Accepts using the argument without any value.", + arg_group="Managed Identity", + blank=[] + ) + args_schema.user_assigned.Element = AAZResourceIdArg( + fmt=AAZResourceIdArgFormat(template="/subscriptions/{subscription}/resourceGroups/{resource_group}" + "/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{}") + ) + args_schema.arm_role_receivers._registered = False + args_schema.automation_runbook_receivers._registered = False + args_schema.azure_app_push_receivers._registered = False + args_schema.azure_function_receivers._registered = False + args_schema.email_receivers._registered = False + args_schema.enabled._registered = False + args_schema.event_hub_receivers._registered = False + args_schema.itsm_receivers._registered = False + args_schema.logic_app_receivers._registered = False + args_schema.sms_receivers._registered = False + args_schema.voice_receivers._registered = False + args_schema.webhook_receivers._registered = False + args_schema.incident_receivers._registered = False + args_schema.group_short_name._registered = False + args_schema.tags._registered = False + args_schema.type._registered = False + args_schema.user_assigned_identities._registered = False + return args_schema + + def _execute_operations(self): + self.pre_operations() + self.ActionGroupsGet(ctx=self.ctx)() + if self.pre_instance_update(self.ctx.vars.instance): + return + self.InstanceUpdateByJson(ctx=self.ctx)() + self.InstanceUpdateByGeneric(ctx=self.ctx)() + self.post_instance_update(self.ctx.vars.instance) + self.ActionGroupsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + def pre_instance_update(self, instance): + identity = instance.to_serialized_data().get('identity', None) + if identity is None: + from types import MethodType + + def _output(self, *args, **kwargs): + return None + self._output = MethodType(_output, self) + + # skip the update operation if the identity is not present + return True + + user_identities_to_remove = [] + if has_value(self.ctx.args.user_assigned): + existing_user_identities = {x.lower() for x in list(getattr(instance.identity, 'user_assigned_identities', {}).keys())} + + # all user assigned identities will be removed if the length of mi_user_assigned is 0, + # otherwise the specified identity + for x in self.ctx.args.user_assigned: + pass + user_identities_to_remove = {str(x).lower() for x in self.ctx.args.user_assigned} \ + if len(self.ctx.args.user_assigned) > 0 else existing_user_identities + non_existing = user_identities_to_remove.difference(existing_user_identities) + if non_existing: + from azure.cli.core.azclierror import InvalidArgumentValueError + raise InvalidArgumentValueError("'{}' are not associated with '{}', please provide existing user managed " + "identities".format(','.join(non_existing), instance.name)) + if not list(existing_user_identities - user_identities_to_remove): + if hasattr(instance.identity, 'user_assigned_identities'): + del instance.identity.user_assigned_identities + if instance.identity.type == 'UserAssigned': + instance.identity.type = 'None' + elif instance.identity.type == 'SystemAssigned, UserAssigned': + instance.identity.type = 'SystemAssigned' + + if self.ctx.args.system_assigned: + instance.identity.type = 'None' if instance.identity.type == 'SystemAssigned' else 'UserAssigned' + + if user_identities_to_remove: + if instance.identity.type not in ['None', 'SystemAssigned']: + for _id in user_identities_to_remove: + if hasattr(instance.identity.user_assigned_identities, _id): + del instance.identity.user_assigned_identities[_id] + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result.get('identity', None) + + +@register_command( + "monitor action-group identity show" +) +class ActionGroupIdentityShow(_ActionGroupShow): + """Show the managed identities of an existing action group. + + :example: Show the managed identities of an existing action group. + az monitor action-group identity show --name ag --resource-group rg + """ + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) + return result.get('identity', {}) + \ No newline at end of file diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_identity.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_identity.yaml new file mode 100644 index 00000000000..9a7eb84dd05 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_identity.yaml @@ -0,0 +1,978 @@ +interactions: +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001?api-version=2022-09-01 + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001","name":"cli_test_monitor_ag_identity000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_action_group_identity","date":"2025-04-07T07:01:41Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' + headers: + cache-control: + - no-cache + content-length: + - '417' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:01:51 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B2EE5C41C4D54EB3B6B582AE8DAC1B18 Ref B: MAA201060513037 Ref C: 2025-04-07T07:01:51Z' + status: + code: 200 + message: OK +- request: + body: '{"location": "southcentralus"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - identity create + Connection: + - keep-alive + Content-Length: + - '30' + Content-Type: + - application/json + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003?api-version=2023-01-31 + response: + body: + string: '{"location":"southcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003","name":"agid000003","type":"Microsoft.ManagedIdentity/userAssignedIdentities","properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"3d9c4d26-a895-4458-9d42-0b706e03ae0e","clientId":"6bb58a7c-af1b-406c-805a-bd76ceaeb028"}}' + headers: + cache-control: + - no-cache + content-length: + - '464' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:01:57 GMT + expires: + - '-1' + location: + - /subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003 + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/5c854d7b-789f-4b09-89c4-cff066527f9c + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' + x-ms-ratelimit-remaining-subscription-writes: + - '199' + x-msedge-ref: + - 'Ref A: 6B0FC70D46974D2F9044D57B17349C47 Ref B: MAA201060515025 Ref C: 2025-04-07T07:01:52Z' + status: + code: 201 + message: Created +- request: + body: '{"identity": {"userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003": + {}}, "type": "UserAssigned"}, "location": "Global", "properties": {"enabled": + true, "groupShortName": "cliactiongro"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group create + Connection: + - keep-alive + Content-Length: + - '334' + Content-Type: + - application/json + ParameterSetName: + - -n -g --user-assigned + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"6bb58a7c-af1b-406c-805a-bd76ceaeb028","principalId":"3d9c4d26-a895-4458-9d42-0b706e03ae0e"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '988' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 322d4fc5-137e-11f0-af0e-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/aba202ec-3272-4368-8d38-a4fee8a9b155 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' + x-msedge-ref: + - 'Ref A: 1D82A05DBD18440F9501385B6B33A4DD Ref B: MAA201060516045 Ref C: 2025-04-07T07:02:01Z' + x-servedby: + - EUS2ONEIM000001 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group identity show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"6bb58a7c-af1b-406c-805a-bd76ceaeb028","principalId":"3d9c4d26-a895-4458-9d42-0b706e03ae0e"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '988' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:06 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 378236ac-137e-11f0-8334-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 626E4376203641A78589AA3BD8BE7D4C Ref B: MAA201060516025 Ref C: 2025-04-07T07:02:07Z' + x-servedby: + - EUS2ONEIM000008 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group identity remove + Connection: + - keep-alive + ParameterSetName: + - -n -g --user-assigned -y + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"6bb58a7c-af1b-406c-805a-bd76ceaeb028","principalId":"3d9c4d26-a895-4458-9d42-0b706e03ae0e"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '988' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:08 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 383d93d1-137e-11f0-9160-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 408E1AF85DBF4588AC36E1010560E854 Ref B: MAA201060514033 Ref C: 2025-04-07T07:02:08Z' + x-servedby: + - WUS2ONEIM000002 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "None"}, "location": "Global", "properties": {"armRoleReceivers": + [], "automationRunbookReceivers": [], "azureAppPushReceivers": [], "azureFunctionReceivers": + [], "emailReceivers": [], "enabled": true, "eventHubReceivers": [], "groupShortName": + "cliactiongro", "itsmReceivers": [], "logicAppReceivers": [], "smsReceivers": + [], "voiceReceivers": [], "webhookReceivers": []}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group identity remove + Connection: + - keep-alive + Content-Length: + - '395' + Content-Type: + - application/json + ParameterSetName: + - -n -g --user-assigned -y + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '612' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 383d93d1-137e-11f0-9160-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/72358dd8-8412-4778-b63e-d89738043c58 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' + x-msedge-ref: + - 'Ref A: 11EBAE5647D9414680EFF74436B97A56 Ref B: MAA201060514033 Ref C: 2025-04-07T07:02:09Z' + x-servedby: + - WUS2ONEIM000006 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group identity show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '612' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:16 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 3ce1203f-137e-11f0-9f0e-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 726E32C7F2F14816A564E3096DE254A6 Ref B: MAA201060514037 Ref C: 2025-04-07T07:02:16Z' + x-servedby: + - WUS2ONEIM000002 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group identity assign + Connection: + - keep-alive + ParameterSetName: + - -n -g --system-assigned + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '612' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:18 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 3dacc437-137e-11f0-892f-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: F4AFA8D1EF4A47E2AD1204E2D31D3822 Ref B: MAA201060516047 Ref C: 2025-04-07T07:02:17Z' + x-servedby: + - EUS2ONEIM000006 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}, "location": "Global", "properties": + {"armRoleReceivers": [], "automationRunbookReceivers": [], "azureAppPushReceivers": + [], "azureFunctionReceivers": [], "emailReceivers": [], "enabled": true, "eventHubReceivers": + [], "groupShortName": "cliactiongro", "itsmReceivers": [], "logicAppReceivers": + [], "smsReceivers": [], "voiceReceivers": [], "webhookReceivers": []}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group identity assign + Connection: + - keep-alive + Content-Length: + - '405' + Content-Type: + - application/json + ParameterSetName: + - -n -g --system-assigned + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"f3c3beae-486b-4821-99a9-40d92fb271b2","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '752' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:26 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 3dacc437-137e-11f0-892f-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/20568ac5-1ec8-4f26-a525-1c40f1ade495 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' + x-msedge-ref: + - 'Ref A: 51396266764049AEBEC0349C116877AA Ref B: MAA201060516047 Ref C: 2025-04-07T07:02:19Z' + x-servedby: + - WUS2ONEIM000005 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group identity assign + Connection: + - keep-alive + ParameterSetName: + - -n -g --user-assigned + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"f3c3beae-486b-4821-99a9-40d92fb271b2","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '752' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:27 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 436ac293-137e-11f0-ba78-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 6C14992E90674FE2A2B0AF85FA0364D4 Ref B: MAA201060514027 Ref C: 2025-04-07T07:02:27Z' + x-servedby: + - EUS2ONEIM000004 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned, UserAssigned", "userAssignedIdentities": + {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/microsoft.managedidentity/userassignedidentities/agid000003": + {}}}, "location": "Global", "properties": {"armRoleReceivers": [], "automationRunbookReceivers": + [], "azureAppPushReceivers": [], "azureFunctionReceivers": [], "emailReceivers": + [], "enabled": true, "eventHubReceivers": [], "groupShortName": "cliactiongro", + "itsmReceivers": [], "logicAppReceivers": [], "smsReceivers": [], "voiceReceivers": + [], "webhookReceivers": []}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group identity assign + Connection: + - keep-alive + Content-Length: + - '626' + Content-Type: + - application/json + ParameterSetName: + - -n -g --user-assigned + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned, + UserAssigned","principalId":"f3c3beae-486b-4821-99a9-40d92fb271b2","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/microsoft.managedidentity/userassignedidentities/agid000003":{"clientId":"6bb58a7c-af1b-406c-805a-bd76ceaeb028","principalId":"3d9c4d26-a895-4458-9d42-0b706e03ae0e"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '1072' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:37 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 436ac293-137e-11f0-ba78-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/b0c646e2-6bc8-4a79-a242-0040c0594a36 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' + x-msedge-ref: + - 'Ref A: AC891739F0524D78AE46FAB6E62EBA71 Ref B: MAA201060514027 Ref C: 2025-04-07T07:02:28Z' + x-servedby: + - WUS2ONEIM000002 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group identity remove + Connection: + - keep-alive + ParameterSetName: + - -n -g --user-assigned -y + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned, + UserAssigned","principalId":"f3c3beae-486b-4821-99a9-40d92fb271b2","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/microsoft.managedidentity/userassignedidentities/agid000003":{"clientId":"6bb58a7c-af1b-406c-805a-bd76ceaeb028","principalId":"3d9c4d26-a895-4458-9d42-0b706e03ae0e"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '1072' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:38 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 4a3f4df0-137e-11f0-bc12-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 9E723DACF1054495B7B66F478283D17B Ref B: SIN221080715019 Ref C: 2025-04-07T07:02:38Z' + x-servedby: + - EUS2ONEIM000000 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}, "location": "Global", "properties": + {"armRoleReceivers": [], "automationRunbookReceivers": [], "azureAppPushReceivers": + [], "azureFunctionReceivers": [], "emailReceivers": [], "enabled": true, "eventHubReceivers": + [], "groupShortName": "cliactiongro", "itsmReceivers": [], "logicAppReceivers": + [], "smsReceivers": [], "voiceReceivers": [], "webhookReceivers": []}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group identity remove + Connection: + - keep-alive + Content-Length: + - '405' + Content-Type: + - application/json + ParameterSetName: + - -n -g --user-assigned -y + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"f3c3beae-486b-4821-99a9-40d92fb271b2","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '752' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:43 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 4a3f4df0-137e-11f0-bc12-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/5d76752d-c38c-4fee-804e-30af205401a7 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' + x-msedge-ref: + - 'Ref A: CA40858C80CE40A8861436D544B3D456 Ref B: SIN221080715019 Ref C: 2025-04-07T07:02:39Z' + x-servedby: + - EUS2ONEIM000000 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group identity remove + Connection: + - keep-alive + ParameterSetName: + - -n -g --system-assigned -y + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"f3c3beae-486b-4821-99a9-40d92fb271b2","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '752' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:45 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 4e201b72-137e-11f0-93df-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 459D24941FE04136A5F26AF114C69AA4 Ref B: SIN221080711007 Ref C: 2025-04-07T07:02:45Z' + x-servedby: + - WUS2ONEIM000003 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "None"}, "location": "Global", "properties": {"armRoleReceivers": + [], "automationRunbookReceivers": [], "azureAppPushReceivers": [], "azureFunctionReceivers": + [], "emailReceivers": [], "enabled": true, "eventHubReceivers": [], "groupShortName": + "cliactiongro", "itsmReceivers": [], "logicAppReceivers": [], "smsReceivers": + [], "voiceReceivers": [], "webhookReceivers": []}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group identity remove + Connection: + - keep-alive + Content-Length: + - '395' + Content-Type: + - application/json + ParameterSetName: + - -n -g --system-assigned -y + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '612' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:50 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 4e201b72-137e-11f0-93df-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/96866e4c-0d1d-4888-b6b9-091a8d2b13aa + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' + x-msedge-ref: + - 'Ref A: 219EE4B087BF4ADF8E31F49C3B3337EB Ref B: SIN221080711007 Ref C: 2025-04-07T07:02:46Z' + x-servedby: + - WUS2ONEIM000002 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group show + Connection: + - keep-alive + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '612' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 07:02:52 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 51ffbb61-137e-11f0-b702-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-ratelimit-remaining-subscription-resource-requests: + - '248' + x-msedge-ref: + - 'Ref A: 7F01A2C6D4EC4EDA83FD3CA7252CE0BA Ref B: SIN221080711045 Ref C: 2025-04-07T07:02:52Z' + x-servedby: + - WUS2ONEIM000003 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_incident_receivers.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_incident_receivers.yaml new file mode 100644 index 00000000000..33fdcce4331 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_incident_receivers.yaml @@ -0,0 +1,337 @@ +interactions: +- request: + body: '{"location": "Global", "properties": {"enabled": true, "groupShortName": + "cliactiongro", "incidentReceivers": [{"connection": {"id": "8be638e7-1419-42d4-a059-437a5f4f4e4e", + "name": "testconn"}, "incidentManagementService": "Icm", "mappings": {"Icm.title": + "${data.essentials.severity}:${data.essentials.monitorCondition} ${data.essentials.monitoringService}:${data.essentials.signalType} + ${data.essentials.alertTargetIds}", "Icm.occurringlocation.environment": "PROD", + "Icm.routingid": "${data.essentials.monitoringService}://${data.essentials.signalType}", + "Icm.automitigationenabled": "true", "Icm.monitorid": "${data.essentials.alertRule}", + "Icm.correlationid": "${data.essentials.signalType}://${data.essentials.originAlertId}", + "Icm.tsgid": "https://microsoft.com"}, "name": "testag"}]}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group create + Connection: + - keep-alive + Content-Length: + - '792' + Content-Type: + - application/json + ParameterSetName: + - -n -g --incident-receivers + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_incident000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_incident000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[{"name":"testag","connection":{"Name":"testconn","id":"8be638e7-1419-42d4-a059-437a5f4f4e4e"},"mappings":{"Icm.title":"${data.essentials.severity}:${data.essentials.monitorCondition} + ${data.essentials.monitoringService}:${data.essentials.signalType} ${data.essentials.alertTargetIds}","Icm.occurringlocation.environment":"PROD","Icm.routingid":"${data.essentials.monitoringService}://${data.essentials.signalType}","Icm.automitigationenabled":"true","Icm.monitorid":"${data.essentials.alertRule}","Icm.correlationid":"${data.essentials.signalType}://${data.essentials.originAlertId}","Icm.tsgid":"https://microsoft.com"},"incidentManagementService":"Icm"}]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '1290' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 03:08:57 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - a10267db-135d-11f0-8b37-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/73f0af18-916e-4e69-84ad-5c1b5ccac4ab + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' + x-msedge-ref: + - 'Ref A: 0941937DBADF4FAAA1F77FF1B04DE61B Ref B: MAA201060513017 Ref C: 2025-04-07T03:08:52Z' + x-servedby: + - WUS2ONEIM000000 + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group update + Connection: + - keep-alive + ParameterSetName: + - -r -n -g + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_incident000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_incident000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[{"name":"testag","connection":{"Name":"testconn","id":"8be638e7-1419-42d4-a059-437a5f4f4e4e"},"mappings":{"Icm.title":"${data.essentials.severity}:${data.essentials.monitorCondition} + ${data.essentials.monitoringService}:${data.essentials.signalType} ${data.essentials.alertTargetIds}","Icm.occurringlocation.environment":"PROD","Icm.routingid":"${data.essentials.monitoringService}://${data.essentials.signalType}","Icm.automitigationenabled":"true","Icm.monitorid":"${data.essentials.alertRule}","Icm.correlationid":"${data.essentials.signalType}://${data.essentials.originAlertId}","Icm.tsgid":"https://microsoft.com"},"incidentManagementService":"Icm"}]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '1290' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 03:08:58 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - a5485776-135d-11f0-985c-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 2E2B01A9BFB84D668540B50A185085E8 Ref B: MAA201060514025 Ref C: 2025-04-07T03:08:58Z' + x-servedby: + - WUS2ONEIM000006 + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "properties": {"armRoleReceivers": [], "automationRunbookReceivers": + [], "azureAppPushReceivers": [], "azureFunctionReceivers": [], "emailReceivers": + [], "enabled": true, "eventHubReceivers": [], "groupShortName": "cliactiongro", + "incidentReceivers": [], "itsmReceivers": [], "logicAppReceivers": [], "smsReceivers": + [], "voiceReceivers": [], "webhookReceivers": []}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group update + Connection: + - keep-alive + Content-Length: + - '390' + Content-Type: + - application/json + ParameterSetName: + - -r -n -g + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_incident000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_incident000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '635' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 03:09:01 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - a5485776-135d-11f0-985c-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/5167066a-7d02-41e5-a49d-f2e8bc8c02c1 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' + x-msedge-ref: + - 'Ref A: 62E1AC0969DC4C5D9F00B6CAEEC1F0B5 Ref B: MAA201060514025 Ref C: 2025-04-07T03:08:58Z' + x-servedby: + - EUS2ONEIM000001 + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group update + Connection: + - keep-alive + ParameterSetName: + - -n -g --incident-receivers + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_incident000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_incident000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '635' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 03:09:03 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - a7db9680-135d-11f0-881a-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: BE02517CF3AD47BEB821579915BA1CB8 Ref B: MAA201060516025 Ref C: 2025-04-07T03:09:02Z' + x-servedby: + - WUS2ONEIM000008 + status: + code: 200 + message: OK +- request: + body: '{"location": "Global", "properties": {"armRoleReceivers": [], "automationRunbookReceivers": + [], "azureAppPushReceivers": [], "azureFunctionReceivers": [], "emailReceivers": + [], "enabled": true, "eventHubReceivers": [], "groupShortName": "cliactiongro", + "incidentReceivers": [{"connection": {"id": "8be638e7-1419-42d4-a059-437a5f4f4e4e", + "name": "testconn"}, "incidentManagementService": "Icm", "mappings": {"Icm.title": + "${data.essentials.severity}:${data.essentials.monitorCondition} ${data.essentials.monitoringService}:${data.essentials.signalType} + ${data.essentials.alertTargetIds}", "Icm.occurringlocation.environment": "PROD", + "Icm.routingid": "${data.essentials.monitoringService}://${data.essentials.signalType}", + "Icm.automitigationenabled": "true", "Icm.monitorid": "${data.essentials.alertRule}", + "Icm.correlationid": "${data.essentials.signalType}://${data.essentials.originAlertId}", + "Icm.tsgid": "https://microsoft.com"}, "name": "testag"}], "itsmReceivers": + [], "logicAppReceivers": [], "smsReceivers": [], "voiceReceivers": [], "webhookReceivers": + []}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group update + Connection: + - keep-alive + Content-Length: + - '1068' + Content-Type: + - application/json + ParameterSetName: + - -n -g --incident-receivers + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_incident000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_incident000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[{"name":"testag","connection":{"Name":"testconn","id":"8be638e7-1419-42d4-a059-437a5f4f4e4e"},"mappings":{"Icm.title":"${data.essentials.severity}:${data.essentials.monitorCondition} + ${data.essentials.monitoringService}:${data.essentials.signalType} ${data.essentials.alertTargetIds}","Icm.occurringlocation.environment":"PROD","Icm.routingid":"${data.essentials.monitoringService}://${data.essentials.signalType}","Icm.automitigationenabled":"true","Icm.monitorid":"${data.essentials.alertRule}","Icm.correlationid":"${data.essentials.signalType}://${data.essentials.originAlertId}","Icm.tsgid":"https://microsoft.com"},"incidentManagementService":"Icm"}]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '1290' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 07 Apr 2025 03:09:05 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - a7db9680-135d-11f0-881a-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/ebdf7a1f-ea04-4cb0-8094-f955a14c1b88 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' + x-msedge-ref: + - 'Ref A: BF8FD980F99F4076AEE828185026E55C Ref B: MAA201060516025 Ref C: 2025-04-07T03:09:03Z' + x-servedby: + - WUS2ONEIM000003 + status: + code: 200 + message: OK +version: 1 diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_location.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_location.yaml index 3c9de1a6176..706aeb76a8b 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_location.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_location.yaml @@ -18,45 +18,49 @@ interactions: ParameterSetName: - -n -g -l -o User-Agent: - - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_location000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_location000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_location000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"SwedenCentral","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]},"identity":null}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_location000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"SwedenCentral","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01 + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: - - '635' + - '619' content-type: - application/json; charset=utf-8 date: - - Thu, 24 Aug 2023 11:12:26 GMT + - Mon, 07 Apr 2025 07:27:00 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 1832b09a-426f-11ee-96da-acde48001122 + - ae79c444-1381-11f0-88af-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/b0211724-0cfa-41d9-9684-294ee62d277f x-ms-ratelimit-remaining-subscription-resource-requests: - '24' + x-msedge-ref: + - 'Ref A: 387E6B9EA3164F5CB79C765110B0A00B Ref B: MAA201060516045 Ref C: 2025-04-07T07:26:56Z' x-servedby: - - SEC1AZNS000008 + - SEC2AZNS00000E status: code: 201 message: Created diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_action_groups.py b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_action_groups.py index f963315748c..1923e1af578 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_action_groups.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_action_groups.py @@ -80,6 +80,72 @@ def test_monitor_action_group_basic_scenario(self, resource_group): checks=[JMESPathCheck('type(@)', 'array'), JMESPathCheck('length(@)', 0)]) + # pylint: disable=line-too-long + @ResourceGroupPreparer(name_prefix='cli_test_monitor_ag_incident', location='southcentralus') + def test_monitor_action_group_incident_receivers(self, resource_group): + action_group_name = self.create_random_name('cliactiongrouptest', 32) + self.kwargs.update({ + 'rg': resource_group, + 'ag': action_group_name, + 'mappings': r"[{mappings:{'Icm.title':'${data.essentials.severity}:${data.essentials.monitorCondition} ${data.essentials.monitoringService}:${data.essentials.signalType} ${data.essentials.alertTargetIds}','Icm.occurringlocation.environment':PROD,'Icm.routingid':'${data.essentials.monitoringService}://${data.essentials.signalType}','Icm.automitigationenabled':true,'Icm.monitorid':'${data.essentials.alertRule}','Icm.correlationid':'${data.essentials.signalType}://${data.essentials.originAlertId}','Icm.tsgid':'https://microsoft.com'}}]" + }) + + self.cmd("monitor action-group create -n {ag} -g {rg} --incident-receivers \"{mappings}\" " + "[0].connection.name=testconn [0].connection.id=8be638e7-1419-42d4-a059-437a5f4f4e4e " + "[0].incidentManagementService=Icm [0].name=testag", + checks=[ + self.check('length(incidentReceivers)', 1), + self.check('incidentReceivers[0].name', 'testag')]) + + self.cmd("monitor action-group update --remove-action testag -n {ag} -g {rg}", checks=self.check('length(incidentReceivers)', 0)) + self.cmd("monitor action-group update -n {ag} -g {rg} --incident-receivers \"{mappings}\" " + "[0].connection.name=testconn [0].connection.id=8be638e7-1419-42d4-a059-437a5f4f4e4e " + "[0].incidentManagementService=Icm [0].name=testag", + checks=[ + self.check('length(incidentReceivers)', 1), + self.check('incidentReceivers[0].name', 'testag')]) + + @ResourceGroupPreparer(name_prefix='cli_test_monitor_ag_identity', location='southcentralus') + def test_monitor_action_group_identity(self, resource_group): + action_group_name = self.create_random_name('cliactiongrouptest', 32) + self.kwargs.update({ + 'rg': resource_group, + 'ag': action_group_name, + 'id_name': self.create_random_name('agid', 10) + }) + + identity = self.cmd('identity create -n {id_name} -g {rg}').get_output_in_json() + self.kwargs['identity'] = identity['id'] + self.cmd('monitor action-group create -n {ag} -g {rg} --user-assigned {identity}') + self.cmd('monitor action-group identity show -n {ag} -g {rg}', checks=[ + self.check('type', 'UserAssigned'), + self.check('length(userAssignedIdentities)', 1), + ]) + + self.cmd('monitor action-group identity remove -n {ag} -g {rg} --user-assigned -y') + self.cmd('monitor action-group identity show -n {ag} -g {rg}', checks=[ + self.check('type', 'None') + ]) + + self.cmd('monitor action-group identity assign -n {ag} -g {rg} --system-assigned', checks=[ + self.check('type', 'SystemAssigned') + ]) + + self.cmd('monitor action-group identity assign -n {ag} -g {rg} --user-assigned {identity}', checks=[ + self.check('type', 'SystemAssigned, UserAssigned'), + self.check('length(userAssignedIdentities)', 1) + ]) + + self.cmd('monitor action-group identity remove -n {ag} -g {rg} --user-assigned -y', checks=[ + self.check('type', 'SystemAssigned') + ]) + + self.cmd('monitor action-group identity remove -n {ag} -g {rg} --system-assigned -y') + self.cmd('monitor action-group show -n {ag} -g {rg}', checks=[ + self.check('idnetity', 'None') + ]) + + @ResourceGroupPreparer(name_prefix='cli_test_monitor_ag_notifications', location='southcentralus') def test_monitor_action_group_notifications(self, resource_group): action_group_name = self.create_random_name('cliactiongrouptest', 32) From 802462abd3ac53fc5d646f7ad54a4f95e76fece8 Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Tue, 8 Apr 2025 10:19:20 +0800 Subject: [PATCH 2/9] fix style --- .../monitor/operations/action_groups_identity.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py index b93af036bde..541ab1279c8 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py @@ -5,7 +5,7 @@ # pylint: disable=protected-access from knack.log import get_logger -from azure.cli.core.aaz import register_command ,has_value, AAZBoolArg, AAZListArg, AAZResourceIdArg, AAZResourceIdArgFormat +from azure.cli.core.aaz import register_command, has_value, AAZBoolArg, AAZListArg, AAZResourceIdArg, AAZResourceIdArgFormat from ..aaz.latest.monitor.action_group import Update as _ActionGroupUpdate, Show as _ActionGroupShow logger = get_logger(__name__) @@ -220,4 +220,3 @@ class ActionGroupIdentityShow(_ActionGroupShow): def _output(self, *args, **kwargs): result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) return result.get('identity', {}) - \ No newline at end of file From 28a014443558675f5b310b3cb41a9b80af0df4c4 Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Tue, 8 Apr 2025 10:50:04 +0800 Subject: [PATCH 3/9] update recording --- .../test_dynamic_metric_alert_basic.yaml | 2 +- ..._dynamic_metric_alert_multiple_scopes.yaml | 4 +- .../test_metric_alert_condition_create.yaml | 2 +- .../test_metric_alert_for_rg_and_sub.yaml | 2 +- ...t_metric_alert_for_sql_database_scope.yaml | 2 +- .../test_metric_alert_multiple_scopes.yaml | 2 +- .../test_metric_alert_single_scope.yaml | 2 +- .../test_metric_alert_v2_scenario.yaml | 327 +++--- ...t_monitor_action_group_basic_scenario.yaml | 26 +- ...st_monitor_action_group_notifications.yaml | 6 +- ...itor_activity_log_alert_update_action.yaml | 989 ++++++++++-------- ...nitor_activity_log_alert_update_scope.yaml | 631 ++++++----- ...lone_public_ip_metric_alerts_scenario.yaml | 767 ++++++-------- ...storage_metric_alerts_always_scenario.yaml | 608 ++++------- ..._clone_storage_metric_alerts_scenario.yaml | 576 ++++------ ...nitor_clone_vm_metric_alerts_scenario.yaml | 2 +- ...reate_full_fledged_activity_log_alert.yaml | 160 +-- 17 files changed, 1907 insertions(+), 2201 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_basic.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_basic.yaml index 1446c1b532b..42be8b4e38e 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_basic.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_basic.yaml @@ -1260,7 +1260,7 @@ interactions: User-Agent: - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_multiple_scopes.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_multiple_scopes.yaml index 11d1b7ae3b3..d25247f3007 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_multiple_scopes.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_dynamic_metric_alert_multiple_scopes.yaml @@ -2499,7 +2499,7 @@ interactions: User-Agent: - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert_v2000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert_v2000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert_v2000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' @@ -2564,7 +2564,7 @@ interactions: User-Agent: - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert_v2000001/providers/Microsoft.Insights/actionGroups/ag2?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert_v2000001/providers/Microsoft.Insights/actionGroups/ag2?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_dynamic_metric_alert_v2000001/providers/microsoft.insights/actionGroups/ag2","type":"Microsoft.Insights/ActionGroups","name":"ag2","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag2","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_condition_create.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_condition_create.yaml index d7b863376d2..6fa154548c5 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_condition_create.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_condition_create.yaml @@ -2499,7 +2499,7 @@ interactions: User-Agent: - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_condition_create000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_condition_create000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_condition_create000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_for_rg_and_sub.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_for_rg_and_sub.yaml index b7cd5a1d3b5..3cc8f0fb82b 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_for_rg_and_sub.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_for_rg_and_sub.yaml @@ -2500,7 +2500,7 @@ interactions: User-Agent: - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_for_sql_database_scope.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_for_sql_database_scope.yaml index 38742bb7ccb..44aba53b65d 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_for_sql_database_scope.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_for_sql_database_scope.yaml @@ -898,7 +898,7 @@ interactions: User-Agent: - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.10.11 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v1_2000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v1_2000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v1_2000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_multiple_scopes.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_multiple_scopes.yaml index 5b4e3f6ce74..3f332927a6a 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_multiple_scopes.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_multiple_scopes.yaml @@ -2497,7 +2497,7 @@ interactions: User-Agent: - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_single_scope.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_single_scope.yaml index 873b6c5911d..69ab2f34569 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_single_scope.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_single_scope.yaml @@ -1260,7 +1260,7 @@ interactions: User-Agent: - AZURECLI/2.72.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v1000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v1000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v1000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_v2_scenario.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_v2_scenario.yaml index ec700e10a0b..27f9b9d835d 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_v2_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_metric_alert_v2_scenario.yaml @@ -18,9 +18,9 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' @@ -38,7 +38,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:23:16 GMT + - Tue, 08 Apr 2025 02:27:38 GMT expires: - '-1' pragma: @@ -46,19 +46,21 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - aaf59346-f25e-11ef-a282-7c1e523c98de + - 0715eb19-1421-11f0-9b7a-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/malaysiasouth/6096d441-f966-422f-832f-0b1cea01927e x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: C8336BD122ED45D1AF05E73C0ED09624 Ref B: MAA201060515021 Ref C: 2025-02-24T03:23:09Z' + - 'Ref A: EDB29A8C363646F3B56F6C0E8CC2421B Ref B: MAA201060515029 Ref C: 2025-04-08T02:27:33Z' x-servedby: - - EUS2ONEIM000004 + - WUS2ONEIM000001 status: code: 201 message: Created @@ -81,9 +83,9 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/actionGroups/ag2?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/actionGroups/ag2?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/microsoft.insights/actionGroups/ag2","type":"Microsoft.Insights/ActionGroups","name":"ag2","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag2","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' @@ -101,7 +103,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:23:20 GMT + - Tue, 08 Apr 2025 02:27:42 GMT expires: - '-1' pragma: @@ -109,19 +111,21 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - b05adb76-f25e-11ef-a5c1-7c1e523c98de + - 0a7f3bc9-1421-11f0-b9c5-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/4d35ca13-3e61-4758-a85d-4026f09fca5f x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: 11F2F3ACCF0146B3B9E19EDA2FBF16EE Ref B: MAA201060513047 Ref C: 2025-02-24T03:23:17Z' + - 'Ref A: DB3A3A57BBE945DC94CE24E3CFC5E131 Ref B: MAA201060513045 Ref C: 2025-04-08T02:27:39Z' x-servedby: - - EUS2ONEIM000008 + - WUS2ONEIM000001 status: code: 201 message: Created @@ -154,7 +158,7 @@ interactions: ParameterSetName: - -g -n --scopes --action --region --description --condition --condition User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: @@ -197,7 +201,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:23:30 GMT + - Tue, 08 Apr 2025 02:27:49 GMT expires: - '-1' pragma: @@ -212,10 +216,12 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/a27c3acc-5c5b-4928-a61c-418f265bc476 x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' + - '298' x-msedge-ref: - - 'Ref A: D04D4C53022C4A6BB8336E6B17DFBD64 Ref B: MAA201060514029 Ref C: 2025-02-24T03:23:21Z' + - 'Ref A: 9DA9200D1E32493F90ABFF30F875A284 Ref B: MAA201060516045 Ref C: 2025-04-08T02:27:43Z' x-powered-by: - ASP.NET status: @@ -236,7 +242,7 @@ interactions: - -g -n --severity --description --add-action --remove-action --remove-conditions --evaluation-frequency --window-size --tags --auto-mitigate User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: @@ -279,7 +285,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:23:31 GMT + - Tue, 08 Apr 2025 02:27:49 GMT expires: - '-1' pragma: @@ -297,9 +303,9 @@ interactions: x-ms-orig-api-version: - '2018-03-01' x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' + - '3749' x-msedge-ref: - - 'Ref A: 33E5645B811F44A680536B7C75AA693F Ref B: MAA201060513035 Ref C: 2025-02-24T03:23:31Z' + - 'Ref A: C6EC4965F00E4EF99E37A6A0F8A68D94 Ref B: MAA201060513017 Ref C: 2025-04-08T02:27:50Z' x-powered-by: - ASP.NET status: @@ -333,7 +339,7 @@ interactions: - -g -n --severity --description --add-action --remove-action --remove-conditions --evaluation-frequency --window-size --tags --auto-mitigate User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: @@ -368,7 +374,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:23:44 GMT + - Tue, 08 Apr 2025 02:28:04 GMT expires: - '-1' pragma: @@ -383,10 +389,12 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/3de0fffa-b6b9-44ad-9b3c-dedaf225772e x-ms-ratelimit-remaining-subscription-resource-requests: - '299' x-msedge-ref: - - 'Ref A: BBB627AA685B49F18A00AE4AEC7C4A19 Ref B: MAA201060513035 Ref C: 2025-02-24T03:23:31Z' + - 'Ref A: 04CCC2D27673444FB78FFC4B4F173115 Ref B: MAA201060513017 Ref C: 2025-04-08T02:27:50Z' x-powered-by: - ASP.NET status: @@ -406,7 +414,7 @@ interactions: ParameterSetName: - -g -n --enabled User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: @@ -441,7 +449,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:23:44 GMT + - Tue, 08 Apr 2025 02:28:05 GMT expires: - '-1' pragma: @@ -459,9 +467,9 @@ interactions: x-ms-orig-api-version: - '2018-03-01' x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' + - '3749' x-msedge-ref: - - 'Ref A: 6000163A88A14C2FB4C432DE4BF62928 Ref B: MAA201060513051 Ref C: 2025-02-24T03:23:44Z' + - 'Ref A: 3474205D713A41F595E9B39986D3F4C9 Ref B: MAA201060516039 Ref C: 2025-04-08T02:28:05Z' x-powered-by: - ASP.NET status: @@ -494,7 +502,7 @@ interactions: ParameterSetName: - -g -n --enabled User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: @@ -529,7 +537,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:23:50 GMT + - Tue, 08 Apr 2025 02:28:12 GMT expires: - '-1' pragma: @@ -544,10 +552,12 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/ae2e4609-f3f4-4ccc-b72b-b2bbe8af391a x-ms-ratelimit-remaining-subscription-resource-requests: - - '299' + - '298' x-msedge-ref: - - 'Ref A: CD3B8EAC97D54F7EBA1A8DAB7FC800E5 Ref B: MAA201060513051 Ref C: 2025-02-24T03:23:45Z' + - 'Ref A: 51226A7EE63E46AE97D4F0754EEAED94 Ref B: MAA201060516039 Ref C: 2025-04-08T02:28:06Z' x-powered-by: - ASP.NET status: @@ -567,7 +577,7 @@ interactions: ParameterSetName: - -g -n --add-action User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: @@ -602,7 +612,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:23:51 GMT + - Tue, 08 Apr 2025 02:28:13 GMT expires: - '-1' pragma: @@ -620,9 +630,9 @@ interactions: x-ms-orig-api-version: - '2018-03-01' x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' + - '3749' x-msedge-ref: - - 'Ref A: 6A1942A50D93401DBD2C9EB9968C2B9E Ref B: MAA201060516051 Ref C: 2025-02-24T03:23:51Z' + - 'Ref A: CB5CF655350748879FE7E62C6A86C5AD Ref B: MAA201060515047 Ref C: 2025-04-08T02:28:13Z' x-powered-by: - ASP.NET status: @@ -654,7 +664,7 @@ interactions: ParameterSetName: - -g -n --add-action User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: @@ -688,7 +698,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:23:55 GMT + - Tue, 08 Apr 2025 02:28:20 GMT expires: - '-1' pragma: @@ -703,10 +713,12 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/d4e23fae-912f-41cf-9068-f3ce3b5ef7a4 x-ms-ratelimit-remaining-subscription-resource-requests: - '299' x-msedge-ref: - - 'Ref A: 5452E3CD0A544D0CAAC51668F228F481 Ref B: MAA201060516051 Ref C: 2025-02-24T03:23:52Z' + - 'Ref A: 48F58C7C819D402A872BF90CF67D8678 Ref B: MAA201060515047 Ref C: 2025-04-08T02:28:14Z' x-powered-by: - ASP.NET status: @@ -726,7 +738,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01 response: @@ -745,7 +757,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:23:57 GMT + - Tue, 08 Apr 2025 02:28:22 GMT pragma: - no-cache strict-transport-security: @@ -759,11 +771,11 @@ interactions: x-content-type-options: - nosniff x-ms-original-request-ids: - - fd93f48b-a0e1-4040-9873-5bb09ea8825e + - 356d009e-cbb3-4e66-a801-1b7e69c0641d x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' + - '3749' x-msedge-ref: - - 'Ref A: 49C3136D077F4FB19B10E2BB98A65231 Ref B: MAA201060514009 Ref C: 2025-02-24T03:23:56Z' + - 'Ref A: 9DF47AA073BB415EA96E0C408F9BEF07 Ref B: MAA201060514021 Ref C: 2025-04-08T02:28:20Z' x-powered-by: - ASP.NET status: @@ -783,7 +795,7 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: @@ -817,7 +829,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:23:57 GMT + - Tue, 08 Apr 2025 02:28:22 GMT expires: - '-1' pragma: @@ -835,9 +847,9 @@ interactions: x-ms-orig-api-version: - '2018-03-01' x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' + - '3748' x-msedge-ref: - - 'Ref A: 8A7463D45AC04D089634280F3C4124D4 Ref B: MAA201060513051 Ref C: 2025-02-24T03:23:57Z' + - 'Ref A: 31F794B51B154CA98F356EC130FCF98F Ref B: MAA201060514031 Ref C: 2025-04-08T02:28:23Z' x-powered-by: - ASP.NET status: @@ -859,7 +871,7 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: @@ -875,7 +887,7 @@ interactions: content-length: - '0' date: - - Mon, 24 Feb 2025 03:24:07 GMT + - Tue, 08 Apr 2025 02:28:28 GMT expires: - '-1' pragma: @@ -888,12 +900,14 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/f4806afd-6e77-414a-8299-11c87a24b0e4 x-ms-ratelimit-remaining-subscription-deletes: - - '800' + - '199' x-ms-ratelimit-remaining-subscription-global-deletes: - - '12000' + - '2999' x-msedge-ref: - - 'Ref A: D4F415DE675F450E8B308BD9FE9A7AE4 Ref B: MAA201060515027 Ref C: 2025-02-24T03:23:57Z' + - 'Ref A: 353882469FE44D4FB31CB8E184992556 Ref B: MAA201060516021 Ref C: 2025-04-08T02:28:24Z' x-powered-by: - ASP.NET status: @@ -913,7 +927,7 @@ interactions: ParameterSetName: - -g User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01 response: @@ -927,7 +941,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:24:08 GMT + - Tue, 08 Apr 2025 02:28:29 GMT expires: - '-1' pragma: @@ -939,9 +953,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' + - '3749' x-msedge-ref: - - 'Ref A: D31C352DCC1B4AD08B6EAC0CCA3515F9 Ref B: MAA201060514033 Ref C: 2025-02-24T03:24:07Z' + - 'Ref A: A55EDAFF709F49AAB33B0FDF23BAD961 Ref B: MAA201060516009 Ref C: 2025-04-08T02:28:29Z' status: code: 200 message: OK @@ -970,7 +984,7 @@ interactions: ParameterSetName: - -g -n --scopes --region --action --description --condition User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: @@ -1004,7 +1018,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:24:18 GMT + - Tue, 08 Apr 2025 02:28:39 GMT expires: - '-1' pragma: @@ -1019,10 +1033,12 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/b3014dd0-d720-48b0-b4a0-5dbde0f99c84 x-ms-ratelimit-remaining-subscription-resource-requests: - '299' x-msedge-ref: - - 'Ref A: 895F55607010417DBFE2822F313A0891 Ref B: MAA201060514027 Ref C: 2025-02-24T03:24:08Z' + - 'Ref A: 447B2479A0204251AAB336467F83DD2D Ref B: MAA201060514027 Ref C: 2025-04-08T02:28:30Z' x-powered-by: - ASP.NET status: @@ -1042,21 +1058,21 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_metric_alert_v2000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001","name":"cli_test_metric_alert_v2000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","test":"test_metric_alert_v2_scenario","date":"2025-02-24T03:22:35Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001","name":"cli_test_metric_alert_v2000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","test":"test_metric_alert_v2_scenario","date":"2025-04-08T02:26:59Z","module":"monitor","DateCreated":"2025-04-08T02:27:03Z","Creator":"v-ruih@microsoft.com"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '396' + - '466' content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:24:21 GMT + - Tue, 08 Apr 2025 02:28:42 GMT expires: - '-1' pragma: @@ -1068,9 +1084,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' + - '3749' x-msedge-ref: - - 'Ref A: 76CEE6D50BC446449A309BCEA4315BD6 Ref B: MAA201060515021 Ref C: 2025-02-24T03:24:19Z' + - 'Ref A: E706D7643D6D4EF6BE6A217B97E5721C Ref B: MAA201060514027 Ref C: 2025-04-08T02:28:42Z' status: code: 200 message: OK @@ -1094,24 +1110,24 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/serverfarms/plan1?api-version=2023-01-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/serverfarms/plan1","name":"plan1","type":"Microsoft.Web/serverfarms","kind":"app","location":"westus","properties":{"serverFarmId":79357,"name":"plan1","sku":{"name":"B1","tier":"Basic","size":"B1","family":"B","capacity":1},"workerSize":"Default","workerSizeId":0,"workerTierName":null,"numberOfWorkers":1,"currentWorkerSize":"Default","currentWorkerSizeId":0,"currentNumberOfWorkers":1,"status":"Ready","webSpace":"cli_test_metric_alert_v2000001-WestUSwebspace","subscription":"bef29afb-3c08-4894-ae64-43bdd8f3f447","adminSiteName":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"maximumNumberOfWorkers":0,"planName":"VirtualDedicatedPlan","adminRuntimeSiteName":null,"computeMode":"Dedicated","siteMode":null,"geoRegion":"West - US","perSiteScaling":false,"elasticScaleEnabled":false,"maximumElasticWorkerCount":1,"numberOfSites":0,"hostingEnvironmentId":null,"isSpot":false,"spotExpirationTime":null,"freeOfferExpirationTime":null,"tags":null,"kind":"app","resourceGroup":"cli_test_metric_alert_v2000001","reserved":false,"isXenon":false,"hyperV":false,"mdmId":"waws-prod-bay-043_79357","targetWorkerCount":0,"targetWorkerSizeId":0,"provisioningState":"Succeeded","webSiteId":null,"existingServerFarmIds":null,"kubeEnvironmentProfile":null,"zoneRedundant":false,"migrateToVMSS":null,"vnetConnectionsUsed":null,"vnetConnectionsMax":null,"createdTime":"2025-02-24T03:24:27.74"},"sku":{"name":"B1","tier":"Basic","size":"B1","family":"B","capacity":1}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/serverfarms/plan1","name":"plan1","type":"Microsoft.Web/serverfarms","kind":"app","location":"westus","properties":{"serverFarmId":59824,"name":"plan1","sku":{"name":"B1","tier":"Basic","size":"B1","family":"B","capacity":1},"workerSize":"Default","workerSizeId":0,"workerTierName":null,"numberOfWorkers":1,"currentWorkerSize":"Default","currentWorkerSizeId":0,"currentNumberOfWorkers":1,"status":"Ready","webSpace":"cli_test_metric_alert_v2000001-WestUSwebspace","subscription":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","adminSiteName":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"maximumNumberOfWorkers":0,"planName":"VirtualDedicatedPlan","adminRuntimeSiteName":null,"computeMode":"Dedicated","siteMode":null,"geoRegion":"West + US","perSiteScaling":false,"elasticScaleEnabled":false,"maximumElasticWorkerCount":1,"numberOfSites":0,"hostingEnvironmentId":null,"isSpot":false,"spotExpirationTime":null,"freeOfferExpirationTime":null,"tags":null,"kind":"app","resourceGroup":"cli_test_metric_alert_v2000001","reserved":false,"isXenon":false,"hyperV":false,"mdmId":"waws-prod-bay-177_59824","targetWorkerCount":0,"targetWorkerSizeId":0,"provisioningState":"Succeeded","webSiteId":null,"existingServerFarmIds":null,"kubeEnvironmentProfile":null,"zoneRedundant":false,"migrateToVMSS":null,"vnetConnectionsUsed":null,"vnetConnectionsMax":null,"createdTime":"2025-04-08T02:28:49.1566667"},"sku":{"name":"B1","tier":"Basic","size":"B1","family":"B","capacity":1}}' headers: cache-control: - no-cache content-length: - - '1597' + - '1602' content-type: - application/json date: - - Mon, 24 Feb 2025 03:24:30 GMT + - Tue, 08 Apr 2025 02:28:52 GMT etag: - - '"1DB866B9C7186B0"' + - '"1DBA82DF6690275"' expires: - '-1' pragma: @@ -1124,12 +1140,14 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/indonesiacentral/d7183597-e637-4ff4-b5ed-0f53d7589ef7 x-ms-ratelimit-remaining-subscription-global-writes: - - '12000' + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '800' + - '199' x-msedge-ref: - - 'Ref A: 4A4E4A6D7805473FB126FBB4CDCE374C Ref B: MAA201060514047 Ref C: 2025-02-24T03:24:22Z' + - 'Ref A: 97B18FB5B9EE410C836888E71E3ACE2C Ref B: MAA201060514009 Ref C: 2025-04-08T02:28:42Z' x-powered-by: - ASP.NET status: @@ -1149,23 +1167,23 @@ interactions: ParameterSetName: - -g -n -p User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/serverfarms/plan1?api-version=2023-01-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/serverfarms/plan1","name":"plan1","type":"Microsoft.Web/serverfarms","kind":"app","location":"West - US","properties":{"serverFarmId":79357,"name":"plan1","workerSize":"Default","workerSizeId":0,"workerTierName":null,"numberOfWorkers":1,"currentWorkerSize":"Default","currentWorkerSizeId":0,"currentNumberOfWorkers":1,"status":"Ready","webSpace":"cli_test_metric_alert_v2000001-WestUSwebspace","subscription":"bef29afb-3c08-4894-ae64-43bdd8f3f447","adminSiteName":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"maximumNumberOfWorkers":3,"planName":"VirtualDedicatedPlan","adminRuntimeSiteName":null,"computeMode":"Dedicated","siteMode":null,"geoRegion":"West - US","perSiteScaling":false,"elasticScaleEnabled":false,"maximumElasticWorkerCount":1,"numberOfSites":0,"hostingEnvironmentId":null,"isSpot":false,"spotExpirationTime":null,"freeOfferExpirationTime":null,"tags":null,"kind":"app","resourceGroup":"cli_test_metric_alert_v2000001","reserved":false,"isXenon":false,"hyperV":false,"mdmId":"waws-prod-bay-043_79357","targetWorkerCount":0,"targetWorkerSizeId":0,"provisioningState":"Succeeded","webSiteId":null,"existingServerFarmIds":null,"kubeEnvironmentProfile":null,"zoneRedundant":false,"migrateToVMSS":null,"vnetConnectionsUsed":0,"vnetConnectionsMax":2,"createdTime":"2025-02-24T03:24:27.74"},"sku":{"name":"B1","tier":"Basic","size":"B1","family":"B","capacity":1}}' + US","properties":{"serverFarmId":59824,"name":"plan1","workerSize":"Default","workerSizeId":0,"workerTierName":null,"numberOfWorkers":1,"currentWorkerSize":"Default","currentWorkerSizeId":0,"currentNumberOfWorkers":1,"status":"Ready","webSpace":"cli_test_metric_alert_v2000001-WestUSwebspace","subscription":"0b1f6471-1bf0-4dda-aec3-cb9272f09590","adminSiteName":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"maximumNumberOfWorkers":3,"planName":"VirtualDedicatedPlan","adminRuntimeSiteName":null,"computeMode":"Dedicated","siteMode":null,"geoRegion":"West + US","perSiteScaling":false,"elasticScaleEnabled":false,"maximumElasticWorkerCount":1,"numberOfSites":0,"hostingEnvironmentId":null,"isSpot":false,"spotExpirationTime":null,"freeOfferExpirationTime":null,"tags":null,"kind":"app","resourceGroup":"cli_test_metric_alert_v2000001","reserved":false,"isXenon":false,"hyperV":false,"mdmId":"waws-prod-bay-177_59824","targetWorkerCount":0,"targetWorkerSizeId":0,"provisioningState":"Succeeded","webSiteId":null,"existingServerFarmIds":null,"kubeEnvironmentProfile":null,"zoneRedundant":false,"migrateToVMSS":null,"vnetConnectionsUsed":0,"vnetConnectionsMax":2,"createdTime":"2025-04-08T02:28:49.1566667"},"sku":{"name":"B1","tier":"Basic","size":"B1","family":"B","capacity":1}}' headers: cache-control: - no-cache content-length: - - '1519' + - '1524' content-type: - application/json date: - - Mon, 24 Feb 2025 03:24:31 GMT + - Tue, 08 Apr 2025 02:28:54 GMT expires: - '-1' pragma: @@ -1179,9 +1197,9 @@ interactions: x-content-type-options: - nosniff x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' + - '3749' x-msedge-ref: - - 'Ref A: 027A394D4AEF4C859666E2D9B52B5214 Ref B: MAA201060516049 Ref C: 2025-02-24T03:24:30Z' + - 'Ref A: 391DE41D653C4770A61DEC4A7411ACE9 Ref B: MAA201060516047 Ref C: 2025-04-08T02:28:53Z' x-powered-by: - ASP.NET status: @@ -1205,7 +1223,7 @@ interactions: ParameterSetName: - -g -n -p User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Web/checknameavailability?api-version=2023-12-01 response: @@ -1219,7 +1237,7 @@ interactions: content-type: - application/json date: - - Mon, 24 Feb 2025 03:24:32 GMT + - Tue, 08 Apr 2025 02:28:55 GMT expires: - '-1' pragma: @@ -1232,10 +1250,12 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/4f195850-fca3-4ed6-9cf9-d7bec9f5fe20 x-ms-ratelimit-remaining-subscription-global-reads: - - '16499' + - '3749' x-msedge-ref: - - 'Ref A: 8C4801AB67684309AA11CBF077DED21B Ref B: MAA201060513009 Ref C: 2025-02-24T03:24:32Z' + - 'Ref A: 1F99A43887E0433FBE76C5675FA7247E Ref B: MAA201060516039 Ref C: 2025-04-08T02:28:55Z' x-powered-by: - ASP.NET status: @@ -1255,16 +1275,16 @@ interactions: ParameterSetName: - -g -n -p User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Web/webAppStacks?api-version=2023-01-01 response: body: string: '{"value":[{"id":null,"name":"dotnet","type":"Microsoft.Web/webAppStacks?stackOsType=All","properties":{"displayText":".NET","value":"dotnet","preferredOs":"windows","majorVersions":[{"displayText":".NET - 9 (STS)","value":"dotnet9","minorVersions":[{"displayText":".NET 9 (STS)","value":"9","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"v9.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"9.x"}},"linuxRuntimeSettings":{"runtimeVersion":"DOTNETCORE|9.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"9.x"},"supportedFeatures":{"disableSsh":true}}}}]},{"displayText":".NET - 8 (LTS)","value":"dotnet8","minorVersions":[{"displayText":".NET 8 (LTS)","value":"8","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"v8.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8.x"}},"linuxRuntimeSettings":{"runtimeVersion":"DOTNETCORE|8.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8.x"},"supportedFeatures":{"disableSsh":true}}}}]},{"displayText":".NET + 9 (STS)","value":"dotnet9","minorVersions":[{"displayText":".NET 9 (STS)","value":"9","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"v9.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"9.x"},"endOfLifeDate":"2026-05-12T00:00:00Z"},"linuxRuntimeSettings":{"runtimeVersion":"DOTNETCORE|9.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"9.x"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2026-05-12T00:00:00Z"}}}]},{"displayText":".NET + 8 (LTS)","value":"dotnet8","minorVersions":[{"displayText":".NET 8 (LTS)","value":"8","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"v8.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8.x"},"endOfLifeDate":"2026-11-10T00:00:00Z"},"linuxRuntimeSettings":{"runtimeVersion":"DOTNETCORE|8.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8.x"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2026-11-10T00:00:00Z"}}}]},{"displayText":".NET 7 (STS)","value":"dotnet7","minorVersions":[{"displayText":".NET 7 (STS)","value":"7","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"v7.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"7.x"},"endOfLifeDate":"2024-05-14T00:00:00Z"},"linuxRuntimeSettings":{"runtimeVersion":"DOTNETCORE|7.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"7.x"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2024-05-14T00:00:00Z"}}}]},{"displayText":".NET - 6","value":"dotnet6","minorVersions":[{"displayText":".NET 6 (LTS)","value":"6","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"v6.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"6.0.x"}},"linuxRuntimeSettings":{"runtimeVersion":"DOTNETCORE|6.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"6.0.x"},"supportedFeatures":{"disableSsh":true}}}}]},{"displayText":".NET + 6","value":"dotnet6","minorVersions":[{"displayText":".NET 6 (LTS)","value":"6","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"v6.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"6.0.x"},"endOfLifeDate":"2024-11-12T00:00:00Z"},"linuxRuntimeSettings":{"runtimeVersion":"DOTNETCORE|6.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"6.0.x"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2024-11-12T00:00:00Z"}}}]},{"displayText":".NET 5","value":"dotnet5","minorVersions":[{"displayText":".NET 5","value":"5","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"v5.0","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"5.0.x"},"endOfLifeDate":"2022-05-08T00:00:00Z"},"linuxRuntimeSettings":{"runtimeVersion":"DOTNETCORE|5.0","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"5.0.x"},"endOfLifeDate":"2022-05-08T00:00:00Z"}}}]},{"displayText":".NET Core 3","value":"dotnetcore3","minorVersions":[{"displayText":".NET Core 3.1 (LTS)","value":"3.1","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"3.1","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.1.301"},"isDeprecated":true,"endOfLifeDate":"2022-12-03T00:00:00Z"},"linuxRuntimeSettings":{"runtimeVersion":"DOTNETCORE|3.1","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.1.301"},"isDeprecated":true,"endOfLifeDate":"2022-12-03T00:00:00Z"}}},{"displayText":".NET @@ -1277,9 +1297,9 @@ interactions: V4","value":"aspdotnetv4","minorVersions":[{"displayText":"ASP.NET V4.8","value":"v4.8","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"v4.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.1"}}}}]},{"displayText":"ASP.NET V3","value":"aspdotnetv3","minorVersions":[{"displayText":"ASP.NET V3.5","value":"v3.5","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"v2.0","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"2.1"}}}}]}]}},{"id":null,"name":"node","type":"Microsoft.Web/webAppStacks?stackOsType=All","properties":{"displayText":"Node","value":"node","preferredOs":"linux","majorVersions":[{"displayText":"Node LTS","value":"lts","minorVersions":[{"displayText":"Node LTS","value":"lts","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|lts","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true}}}}]},{"displayText":"Node - 22","value":"22","minorVersions":[{"displayText":"Node 22 LTS","value":"22-lts","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|22-lts","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"22.x"},"supportedFeatures":{"disableSsh":true}}}}]},{"displayText":"Node - 20","value":"20","minorVersions":[{"displayText":"Node 20 LTS","value":"20-lts","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|20-lts","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"20.x"},"supportedFeatures":{"disableSsh":true}},"windowsRuntimeSettings":{"runtimeVersion":"~20","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"20.x"}}}}]},{"displayText":"Node - 18","value":"18","minorVersions":[{"displayText":"Node 18 LTS","value":"18-lts","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|18-lts","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"18.x"},"supportedFeatures":{"disableSsh":true}},"windowsRuntimeSettings":{"runtimeVersion":"~18","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"18.x"}}}}]},{"displayText":"Node + 22","value":"22","minorVersions":[{"displayText":"Node 22 LTS","value":"22-lts","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|22-lts","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"22.x"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2027-04-30T00:00:00Z"}}}]},{"displayText":"Node + 20","value":"20","minorVersions":[{"displayText":"Node 20 LTS","value":"20-lts","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|20-lts","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"20.x"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2026-04-30T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"~20","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"20.x"},"endOfLifeDate":"2026-04-30T00:00:00Z"}}}]},{"displayText":"Node + 18","value":"18","minorVersions":[{"displayText":"Node 18 LTS","value":"18-lts","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|18-lts","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"18.x"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2025-04-30T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"~18","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"18.x"},"endOfLifeDate":"2025-04-30T00:00:00Z"}}}]},{"displayText":"Node 16","value":"16","minorVersions":[{"displayText":"Node 16 LTS","value":"16-lts","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|16-lts","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"16.x"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2023-09-11T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"~16","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"16.x"},"endOfLifeDate":"2023-09-11T00:00:00Z"}}}]},{"displayText":"Node 14","value":"14","minorVersions":[{"displayText":"Node 14 LTS","value":"14-lts","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|14-lts","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"14.x"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2023-04-30T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"~14","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"14.x"},"endOfLifeDate":"2023-04-30T00:00:00Z"}}}]},{"displayText":"Node 12","value":"12","minorVersions":[{"displayText":"Node 12 LTS","value":"12-lts","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|12-lts","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"12.x"},"endOfLifeDate":"2022-04-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"12.13.0","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true},"endOfLifeDate":"2022-04-01T00:00:00Z"}}},{"displayText":"Node @@ -1316,17 +1336,19 @@ interactions: 4","value":"4","minorVersions":[{"displayText":"Node 4.8","value":"4.8","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|4.8","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true},"endOfLifeDate":"2018-04-30T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"4.8","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":false},"endOfLifeDate":"2018-04-30T00:00:00Z"}}},{"displayText":"Node 4.5","value":"4.5","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|4.5","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true},"endOfLifeDate":"2018-04-30T00:00:00Z"}}},{"displayText":"Node 4.4","value":"4.4","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"NODE|4.4","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true},"endOfLifeDate":"2018-04-30T00:00:00Z"}}}]}]}},{"id":null,"name":"python","type":"Microsoft.Web/webAppStacks?stackOsType=All","properties":{"displayText":"Python","value":"python","preferredOs":"linux","majorVersions":[{"displayText":"Python - 3","value":"3","minorVersions":[{"displayText":"Python 3.12","value":"3.12","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.12","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.12"},"supportedFeatures":{"disableSsh":true}}}},{"displayText":"Python - 3.11","value":"3.11","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.11","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.11"},"supportedFeatures":{"disableSsh":true},"isHidden":false}}},{"displayText":"Python - 3.10","value":"3.10","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.10","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.10"},"supportedFeatures":{"disableSsh":true},"isHidden":false,"isEarlyAccess":false}}},{"displayText":"Python - 3.9","value":"3.9","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.9","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.9"},"supportedFeatures":{"disableSsh":true},"isHidden":false}}},{"displayText":"Python - 3.8","value":"3.8","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.8","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.8"},"supportedFeatures":{"disableSsh":true}}}},{"displayText":"Python - 3.7","value":"3.7","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.7","remoteDebuggingSupported":false,"isDeprecated":true,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.7"},"supportedFeatures":{"disableSsh":true}}}},{"displayText":"Python - 3.6","value":"3.6","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.6","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.6"}},"windowsRuntimeSettings":{"runtimeVersion":"3.4.0","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.6"}}}}]},{"displayText":"Python + 3","value":"3","minorVersions":[{"displayText":"Python 3.13","value":"3.13","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.13","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.13"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2029-10-31T00:00:00Z"}}},{"displayText":"Python + 3.12","value":"3.12","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.12","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.12"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2028-10-31T00:00:00Z"}}},{"displayText":"Python + 3.11","value":"3.11","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.11","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.11"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2027-10-31T00:00:00Z","isHidden":false}}},{"displayText":"Python + 3.10","value":"3.10","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.10","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.10"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2026-10-31T00:00:00Z","isHidden":false,"isEarlyAccess":false}}},{"displayText":"Python + 3.9","value":"3.9","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.9","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.9"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2025-10-31T00:00:00Z","isHidden":false}}},{"displayText":"Python + 3.8","value":"3.8","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.8","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.8"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2024-10-07T00:00:00Z"}}},{"displayText":"Python + 3.7","value":"3.7","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.7","remoteDebuggingSupported":false,"isDeprecated":true,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.7"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2023-06-27T00:00:00Z"}}},{"displayText":"Python + 3.6","value":"3.6","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|3.6","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.6"},"endOfLifeDate":"2021-12-23T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"3.4.0","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"3.6"}}}}]},{"displayText":"Python 2","value":"2","minorVersions":[{"displayText":"Python 2.7","value":"2.7","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PYTHON|2.7","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"2.7"},"endOfLifeDate":"2020-02-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"2.7.3","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"2.7"},"endOfLifeDate":"2020-02-01T00:00:00Z"}}}]}]}},{"id":null,"name":"php","type":"Microsoft.Web/webAppStacks?stackOsType=All","properties":{"displayText":"PHP","value":"php","preferredOs":"linux","majorVersions":[{"displayText":"PHP - 8","value":"8","minorVersions":[{"displayText":"PHP 8.3","value":"8.3","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PHP|8.3","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8.3"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2026-11-23T00:00:00Z"}}},{"displayText":"PHP - 8.2","value":"8.2","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PHP|8.2","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8.2"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2025-12-08T00:00:00Z"}}},{"displayText":"PHP - 8.1","value":"8.1","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PHP|8.1","isHidden":false,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8.1"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2023-11-26T00:00:00Z"}}},{"displayText":"PHP + 8","value":"8","minorVersions":[{"displayText":"PHP 8.4","value":"8.4","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PHP|8.4","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8.4"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2028-12-31T00:00:00Z"}}},{"displayText":"PHP + 8.3","value":"8.3","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PHP|8.3","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8.3"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2027-12-31T00:00:00Z"}}},{"displayText":"PHP + 8.2","value":"8.2","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PHP|8.2","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8.2"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2026-12-31T00:00:00Z"}}},{"displayText":"PHP + 8.1","value":"8.1","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PHP|8.1","isHidden":false,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8.1"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2025-12-31T00:00:00Z"}}},{"displayText":"PHP 8.0","value":"8.0","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PHP|8.0","isHidden":false,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8.0"},"supportedFeatures":{"disableSsh":true},"endOfLifeDate":"2023-11-26T00:00:00Z"}}}]},{"displayText":"PHP 7","value":"7","minorVersions":[{"displayText":"PHP 7.4","value":"7.4","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"7.4","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"7.4","notSupportedInCreates":true},"isDeprecated":true,"endOfLifeDate":"2022-11-30T00:00:00Z"},"linuxRuntimeSettings":{"runtimeVersion":"PHP|7.4","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"7.4","notSupportedInCreates":true},"isDeprecated":true,"endOfLifeDate":"2022-11-30T00:00:00Z"}}},{"displayText":"PHP 7.3","value":"7.3","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"PHP|7.3","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"7.3","notSupportedInCreates":true},"endOfLifeDate":"2021-12-06T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"7.3","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"7.3","notSupportedInCreates":true},"endOfLifeDate":"2021-12-06T00:00:00Z"}}},{"displayText":"PHP @@ -1345,20 +1367,23 @@ interactions: 2.3.8","value":"2.3.8","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"RUBY|2.3.8","isDeprecated":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":false},"endOfLifeDate":"2019-03-31T00:00:00Z"}}},{"displayText":"Ruby 2.3.3","value":"2.3.3","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"RUBY|2.3.3","remoteDebuggingSupported":false,"isDeprecated":true,"appInsightsSettings":{"isSupported":false},"gitHubActionSettings":{"isSupported":false},"endOfLifeDate":"2019-03-31T00:00:00Z"}}}]}]}},{"id":null,"name":"java","type":"Microsoft.Web/webAppStacks?stackOsType=All","properties":{"displayText":"Java","value":"java","preferredOs":"linux","majorVersions":[{"displayText":"Java 21","value":"21","minorVersions":[{"displayText":"Java 21","value":"21.0","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","isAutoUpdate":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"21"},"endOfLifeDate":"2028-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"21","isAutoUpdate":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"21"},"endOfLifeDate":"2028-09-01T00:00:00Z"}}},{"displayText":"Java - 21.0.4","value":"21.0.4","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"21"},"endOfLifeDate":"2028-09-01T00:00:00Z"}}},{"displayText":"Java - 21.0.3","value":"21.0.3","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"21"},"endOfLifeDate":"2028-09-01T00:00:00Z"}}},{"displayText":"Java + 21.0.5","value":"21.0.5","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"21"},"endOfLifeDate":"2028-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"21.0.5","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"21"},"endOfLifeDate":"2028-09-01T00:00:00Z"}}},{"displayText":"Java + 21.0.4","value":"21.0.4","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"21"},"endOfLifeDate":"2028-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"21.0.4","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"21"},"endOfLifeDate":"2028-09-01T00:00:00Z"}}},{"displayText":"Java + 21.0.3","value":"21.0.3","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"21"},"endOfLifeDate":"2028-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"21.0.3","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"21"},"endOfLifeDate":"2028-09-01T00:00:00Z"}}},{"displayText":"Java 21.0.1","value":"21.0.1","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"21"},"endOfLifeDate":"2028-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"21.0.1","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"21"},"endOfLifeDate":"2028-09-01T00:00:00Z"}}}]},{"displayText":"Java 17","value":"17","minorVersions":[{"displayText":"Java 17","value":"17.0","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","isAutoUpdate":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"17","isAutoUpdate":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java - 17.0.12","value":"17.0.12","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java - 17.0.11","value":"17.0.11","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java + 17.0.13","value":"17.0.13","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"17.0.13","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java + 17.0.12","value":"17.0.12","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"17.0.12","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java + 17.0.11","value":"17.0.11","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"17.0.11","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java 17.0.9","value":"17.0.9","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"17.0.9","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java 17.0.4","value":"17.0.4","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"17.0.4","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java 17.0.3","value":"17.0.3","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"17.0.3","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java 17.0.2","value":"17.0.2","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"17.0.2","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java 17.0.1","value":"17.0.1","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"17.0.1","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"17"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}}]},{"displayText":"Java 11","value":"11","minorVersions":[{"displayText":"Java 11","value":"11.0","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","isAutoUpdate":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"11","isAutoUpdate":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java - 11.0.24","value":"11.0.21","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java - 11.0.23","value":"11.0.21","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java + 11.0.25","value":"11.0.21","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"11.0.25","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java + 11.0.24","value":"11.0.21","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"11.0.24","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java + 11.0.23","value":"11.0.21","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"11.0.23","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java 11.0.21","value":"11.0.21","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"11.0.21","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java 11.0.16","value":"11.0.16","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"11.0.16","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java 11.0.15","value":"11.0.15","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"11.0.15","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java @@ -1374,7 +1399,9 @@ interactions: 11.0.3","value":"11.0.3","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"11.0.3_ZULU","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}},{"displayText":"Java 11.0.2","value":"11.0.2","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"11.0.2_ZULU","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"11"},"endOfLifeDate":"2027-09-01T00:00:00Z"}}}]},{"displayText":"Java 8","value":"8","minorVersions":[{"displayText":"Java 8","value":"8.0","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","isAutoUpdate":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8"},"endOfLifeDate":"2026-11-30T00:00:00Z"},"windowsRuntimeSettings":{"runtimeVersion":"1.8","isAutoUpdate":true,"remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8"},"endOfLifeDate":"2026-11-30T00:00:00Z"}}},{"displayText":"Java - 1.8.0_422","value":"8.0.422","stackSettings":{"linuxRuntimeSettings":{"runtimeVersion":"","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8"},"endOfLifeDate":"2026-11-30T00:00:00Z"}}},{"displayText":"Java + 1.8.0_432","value":"8.0.432","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"1.8.0_432","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8"},"endOfLifeDate":"2026-11-30T00:00:00Z"}}},{"displayText":"Java + 1.8.0_422","value":"8.0.422","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"1.8.0_422","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8"},"endOfLifeDate":"2026-11-30T00:00:00Z"}}},{"displayText":"Java + 1.8.0_412","value":"8.0.412","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"1.8.0_412","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8"},"endOfLifeDate":"2026-11-30T00:00:00Z"}}},{"displayText":"Java 1.8.0_392","value":"8.0.392","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"1.8.0_392","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8"},"endOfLifeDate":"2026-11-30T00:00:00Z"}}},{"displayText":"Java 1.8.0_345","value":"8.0.345","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"1.8.0_345","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8"},"endOfLifeDate":"2026-11-30T00:00:00Z"}}},{"displayText":"Java 1.8.0_332","value":"8.0.332","stackSettings":{"windowsRuntimeSettings":{"runtimeVersion":"1.8.0_332","remoteDebuggingSupported":false,"appInsightsSettings":{"isSupported":true,"isDefaultOff":false},"gitHubActionSettings":{"isSupported":true,"supportedVersion":"8"},"endOfLifeDate":"2026-11-30T00:00:00Z"}}},{"displayText":"Java @@ -1415,9 +1442,11 @@ interactions: Containers","value":"javacontainers","majorVersions":[{"displayText":"Java SE (Embedded Web Server)","value":"javase","minorVersions":[{"displayText":"Java SE (Embedded Web Server)","value":"SE","stackSettings":{"windowsContainerSettings":{"javaContainer":"JAVA","javaContainerVersion":"SE","isAutoUpdate":true},"linuxContainerSettings":{"java21Runtime":"JAVA|21-java21","java17Runtime":"JAVA|17-java17","java11Runtime":"JAVA|11-java11","java8Runtime":"JAVA|8-jre8","isAutoUpdate":true}}},{"displayText":"Java + SE 21.0.5","value":"21.0.5","stackSettings":{"linuxContainerSettings":{"java21Runtime":"JAVA|21.0.5"}}},{"displayText":"Java SE 21.0.4","value":"21.0.4","stackSettings":{"linuxContainerSettings":{"java21Runtime":"JAVA|21.0.4"}}},{"displayText":"Java SE 21.0.3","value":"21.0.3","stackSettings":{"linuxContainerSettings":{"java21Runtime":"JAVA|21.0.3"}}},{"displayText":"Java SE 21.0.1","value":"21.0.1","stackSettings":{"linuxContainerSettings":{"java21Runtime":"JAVA|21.0.1"}}},{"displayText":"Java + SE 17.0.13","value":"17.0.13","stackSettings":{"linuxContainerSettings":{"java17Runtime":"JAVA|17.0.13"}}},{"displayText":"Java SE 17.0.12","value":"17.0.12","stackSettings":{"linuxContainerSettings":{"java17Runtime":"JAVA|17.0.12"}}},{"displayText":"Java SE 17.0.11","value":"17.0.11","stackSettings":{"linuxContainerSettings":{"java17Runtime":"JAVA|17.0.11"}}},{"displayText":"Java SE 17.0.9","value":"17.0.9","stackSettings":{"linuxContainerSettings":{"java17Runtime":"JAVA|17.0.9"}}},{"displayText":"Java @@ -1425,6 +1454,7 @@ interactions: SE 17.0.3","value":"17.0.3","stackSettings":{"linuxContainerSettings":{"java17Runtime":"JAVA|17.0.3"}}},{"displayText":"Java SE 17.0.2","value":"17.0.2","stackSettings":{"linuxContainerSettings":{"java17Runtime":"JAVA|17.0.2"}}},{"displayText":"Java SE 17.0.1","value":"17.0.1","stackSettings":{"linuxContainerSettings":{"java17Runtime":"JAVA|17.0.1"}}},{"displayText":"Java + SE 11.0.25","value":"11.0.25","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JAVA|11.0.25"}}},{"displayText":"Java SE 11.0.24","value":"11.0.24","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JAVA|11.0.24"}}},{"displayText":"Java SE 11.0.23","value":"11.0.23","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JAVA|11.0.23"}}},{"displayText":"Java SE 11.0.21","value":"11.0.21","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JAVA|11.0.21"}}},{"displayText":"Java @@ -1438,6 +1468,7 @@ interactions: SE 11.0.7","value":"11.0.7","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JAVA|11.0.7"}}},{"displayText":"Java SE 11.0.6","value":"11.0.6","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JAVA|11.0.6"}}},{"displayText":"Java SE 11.0.5","value":"11.0.5","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JAVA|11.0.5"}}},{"displayText":"Java + SE 8u432","value":"1.8.432","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JAVA|8u432"}}},{"displayText":"Java SE 8u422","value":"1.8.422","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JAVA|8u422"}}},{"displayText":"Java SE 8u412","value":"1.8.412","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JAVA|8u412"}}},{"displayText":"Java SE 8u392","value":"1.8.392","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JAVA|8u392"}}},{"displayText":"Java @@ -1453,14 +1484,19 @@ interactions: SE 8u232","value":"1.8.232","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JAVA|8u232"}}}]},{"displayText":"Red Hat JBoss EAP 8","value":"jbosseap8.0","minorVersions":[{"displayText":"Red Hat JBoss EAP 8","value":"8","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JBOSSEAP|8-java11","java17Runtime":"JBOSSEAP|8-java17","isAutoUpdate":true}}},{"displayText":"Red + Hat JBoss EAP 8.0 update 4.1","value":"8.0.4.1","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JBOSSEAP|8.0.4.1-java11","java17Runtime":"JBOSSEAP|8.0.4.1-java17"}}},{"displayText":"Red + Hat JBoss EAP 8.0 update 3","value":"8.0.3","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JBOSSEAP|8.0.3-java11","java17Runtime":"JBOSSEAP|8.0.3-java17"}}},{"displayText":"Red Hat JBoss EAP 8.0 update 2.1","value":"8.0.2.1","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JBOSSEAP|8.0.2.1-java11","java17Runtime":"JBOSSEAP|8.0.2.1-java17"}}},{"displayText":"Red Hat JBoss EAP 8.0 update 1","value":"8.0.1","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JBOSSEAP|8.0.1-java11","java17Runtime":"JBOSSEAP|8.0.1-java17"}}}]},{"displayText":"Red Hat JBoss EAP 8 BYO License","value":"jbosseap8.0_byol","minorVersions":[{"displayText":"Red Hat JBoss EAP 8 BYO License","value":"8","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JBOSSEAP|8-java11_byol","java17Runtime":"JBOSSEAP|8-java17_byol","isAutoUpdate":true}}},{"displayText":"Red - Hat JBoss EAP 8 update 1 BYO License","value":"8.0.1","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JBOSSEAP|8.0.1-java11_byol","java17Runtime":"JBOSSEAP|8.0.1-java17_byol"}}},{"displayText":"Red - Hat JBoss EAP 8.0 update 2.1 BYO License","value":"8.0.2","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JBOSSEAP|8.0.2-java11_byol","java17Runtime":"JBOSSEAP|8.0.2-java17_byol"}}}]},{"displayText":"Red + Hat JBoss EAP 8.0 update 4.1 BYO License","value":"8.0.4.1","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JBOSSEAP|8.0.4.1-java11_byol","java17Runtime":"JBOSSEAP|8.0.4.1-java17_byol"}}},{"displayText":"Red + Hat JBoss EAP 8 update 3 BYO License","value":"8.0.3","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JBOSSEAP|8.0.3-java11_byol","java17Runtime":"JBOSSEAP|8.0.3-java17_byol"}}},{"displayText":"Red + Hat JBoss EAP 8.0 update 2.1 BYO License","value":"8.0.2","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JBOSSEAP|8.0.2-java11_byol","java17Runtime":"JBOSSEAP|8.0.2-java17_byol"}}},{"displayText":"Red + Hat JBoss EAP 8 update 1 BYO License","value":"8.0.1","stackSettings":{"linuxContainerSettings":{"java11Runtime":"JBOSSEAP|8.0.1-java11_byol","java17Runtime":"JBOSSEAP|8.0.1-java17_byol"}}}]},{"displayText":"Red Hat JBoss EAP 7","value":"jbosseap","minorVersions":[{"displayText":"Red Hat JBoss EAP 7","value":"7","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7-java8","java11Runtime":"JBOSSEAP|7-java11","java17Runtime":"JBOSSEAP|7-java17","isAutoUpdate":true}}},{"displayText":"Red + Hat JBoss EAP 7.4.20","value":"7.4.20","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.4.20-java8","java11Runtime":"JBOSSEAP|7.4.20-java11","java17Runtime":"JBOSSEAP|7.4.20-java17"}}},{"displayText":"Red Hat JBoss EAP 7.4.18","value":"7.4.18","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.4.18-java8","java11Runtime":"JBOSSEAP|7.4.18-java11","java17Runtime":"JBOSSEAP|7.4.18-java17"}}},{"displayText":"Red Hat JBoss EAP 7.4.17","value":"7.4.17","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.4.17-java8","java11Runtime":"JBOSSEAP|7.4.17-java11","java17Runtime":"JBOSSEAP|7.4.17-java17"}}},{"displayText":"Red Hat JBoss EAP 7.4.16","value":"7.4.16","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.4.16-java8","java11Runtime":"JBOSSEAP|7.4.16-java11","java17Runtime":"JBOSSEAP|7.4.16-java17"}}},{"displayText":"Red @@ -1477,6 +1513,9 @@ interactions: EAP 7.2","value":"7.2.0","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.2-java8","isDeprecated":true}}}]},{"displayText":"Red Hat JBoss EAP 7 BYO License","value":"jbosseap7_byol","minorVersions":[{"displayText":"Red Hat JBoss EAP 7 BYO License","value":"7","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7-java8_byol","java11Runtime":"JBOSSEAP|7-java11_byol","java17Runtime":"JBOSSEAP|7-java17_byol","isAutoUpdate":true}}},{"displayText":"Red + Hat JBoss EAP 7.4.20 BYO License","value":"7.4.20","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.4.20-java8_byol","java11Runtime":"JBOSSEAP|7.4.20-java11_byol","java17Runtime":"JBOSSEAP|7.4.20-java17_byol"}}},{"displayText":"Red + Hat JBoss EAP 7.4.18 BYO License","value":"7.4.18","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.4.18-java8_byol","java11Runtime":"JBOSSEAP|7.4.18-java11_byol","java17Runtime":"JBOSSEAP|7.4.18-java17_byol"}}},{"displayText":"Red + Hat JBoss EAP 7.4.16 BYO License","value":"7.4.16","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.4.16-java8_byol","java11Runtime":"JBOSSEAP|7.4.16-java11_byol","java17Runtime":"JBOSSEAP|7.4.16-java17_byol"}}},{"displayText":"Red Hat JBoss EAP 7.4.13 BYO License","value":"7.4.13","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.4.13-java8_byol","java11Runtime":"JBOSSEAP|7.4.13-java11_byol","java17Runtime":"JBOSSEAP|7.4.13-java17_byol"}}},{"displayText":"Red Hat JBoss EAP 7.4.7 BYO License","value":"7.4.7","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.4.7-java8_byol","java11Runtime":"JBOSSEAP|7.4.7-java11_byol","java17Runtime":"JBOSSEAP|7.4.7-java17_byol"}}},{"displayText":"Red Hat JBoss EAP 7.4.5 BYO License","value":"7.4.5","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.4.5-java8_byol","java11Runtime":"JBOSSEAP|7.4.5-java11_byol","java17Runtime":"JBOSSEAP|7.4.5-java17_byol"}}},{"displayText":"Red @@ -1485,10 +1524,17 @@ interactions: Hat JBoss EAP 7.4.0 BYO License","value":"7.4.0","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.4.0-java8_byol","java11Runtime":"JBOSSEAP|7.4.0-java11_byol"}}},{"displayText":"Red Hat JBoss EAP 7.3.10 BYO License","value":"7.3.10","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.3.10-java8_byol","java11Runtime":"JBOSSEAP|7.3.10-java11_byol"}}},{"displayText":"Red Hat JBoss EAP 7.3.9 BYO License","value":"7.3.9","stackSettings":{"linuxContainerSettings":{"java8Runtime":"JBOSSEAP|7.3.9-java8_byol","java11Runtime":"JBOSSEAP|7.3.9-java11_byol"}}}]},{"displayText":"Apache + Tomcat 11.0","value":"tomcat11.0","minorVersions":[{"displayText":"Apache + Tomcat 11.0","value":"11.0","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"11.0","isAutoUpdate":true},"linuxContainerSettings":{"java21Runtime":"TOMCAT|11.0-java21","java17Runtime":"TOMCAT|11.0-java17","java11Runtime":"TOMCAT|11.0-java11","isAutoUpdate":true}}},{"displayText":"Apache + Tomcat 11.0.2","value":"11.0.2","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"11.0.2"},"linuxContainerSettings":{"java17Runtime":"TOMCAT|11.0.2-java17","java21Runtime":"TOMCAT|11.0.2-java21"}}},{"displayText":"Apache + Tomcat 11.0.1","value":"11.0.1","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"11.0.1","isHidden":true},"linuxContainerSettings":{"java17Runtime":"TOMCAT|11.0.1-java17","java21Runtime":"TOMCAT|11.0.1-java21"}}}]},{"displayText":"Apache Tomcat 10.1","value":"tomcat10.1","minorVersions":[{"displayText":"Apache Tomcat 10.1","value":"10.1","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"10.1","isAutoUpdate":true},"linuxContainerSettings":{"java21Runtime":"TOMCAT|10.1-java21","java17Runtime":"TOMCAT|10.1-java17","java11Runtime":"TOMCAT|10.1-java11","isAutoUpdate":true}}},{"displayText":"Apache + Tomcat 10.1.34","value":"10.1.34","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"10.1.34"},"linuxContainerSettings":{"java11Runtime":"TOMCAT|10.1.34-java11","java17Runtime":"TOMCAT|10.1.34-java17","java21Runtime":"TOMCAT|10.1.34-java21"}}},{"displayText":"Apache + Tomcat 10.1.33","value":"10.1.33","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"10.1.33","isHidden":true},"linuxContainerSettings":{"java11Runtime":"TOMCAT|10.1.33-java11","java17Runtime":"TOMCAT|10.1.33-java17","java21Runtime":"TOMCAT|10.1.33-java21"}}},{"displayText":"Apache + Tomcat 10.1.31","value":"10.1.31","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"10.1.31"},"linuxContainerSettings":{"java11Runtime":"TOMCAT|10.1.31-java11","java17Runtime":"TOMCAT|10.1.31-java17","java21Runtime":"TOMCAT|10.1.31-java21","isHidden":true}}},{"displayText":"Apache Tomcat 10.1.28","value":"10.1.28","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"10.1.28","isHidden":true},"linuxContainerSettings":{"java11Runtime":"TOMCAT|10.1.28-java11","java17Runtime":"TOMCAT|10.1.28-java17","java21Runtime":"TOMCAT|10.1.28-java21"}}},{"displayText":"Apache - Tomcat 10.1.25","value":"10.1.25","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"10.1.25","isHidden":true},"linuxContainerSettings":{"java11Runtime":"TOMCAT|10.1.25-java11","java17Runtime":"TOMCAT|10.1.25-java17","java21Runtime":"TOMCAT|10.1.25-java21"}}},{"displayText":"Apache + Tomcat 10.1.25","value":"10.1.25","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"10.1.25"},"linuxContainerSettings":{"java11Runtime":"TOMCAT|10.1.25-java11","java17Runtime":"TOMCAT|10.1.25-java17","java21Runtime":"TOMCAT|10.1.25-java21"}}},{"displayText":"Apache Tomcat 10.1.23","value":"10.1.23","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"10.1.23","isHidden":true},"linuxContainerSettings":{"java11Runtime":"TOMCAT|10.1.23-java11","java17Runtime":"TOMCAT|10.1.23-java17","java21Runtime":"TOMCAT|10.1.23-java21"}}},{"displayText":"Apache Tomcat 10.1.16","value":"10.1.16","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"10.1.16"},"linuxContainerSettings":{"java11Runtime":"TOMCAT|10.1.16-java11","java17Runtime":"TOMCAT|10.1.16-java17","java21Runtime":"TOMCAT|10.1.16-java21"}}}]},{"displayText":"Apache Tomcat 10.0","value":"tomcat10.0","minorVersions":[{"displayText":"Apache @@ -1500,7 +1546,11 @@ interactions: Tomcat 10.0.12","value":"10.0.12","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"10.0.12","endOfLifeDate":"2022-10-31T00:00:00Z"},"linuxContainerSettings":{"java8Runtime":"TOMCAT|10.0.12-java8","java11Runtime":"TOMCAT|10.0.12-java11","java17Runtime":"TOMCAT|10.0.12-java17","endOfLifeDate":"2022-10-31T00:00:00Z"}}}]},{"displayText":"Apache Tomcat 9.0","value":"tomcat9.0","minorVersions":[{"displayText":"Apache Tomcat 9.0","value":"9.0","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"9.0","isAutoUpdate":true},"linuxContainerSettings":{"java21Runtime":"TOMCAT|9.0-java21","java17Runtime":"TOMCAT|9.0-java17","java11Runtime":"TOMCAT|9.0-java11","java8Runtime":"TOMCAT|9.0-jre8","isAutoUpdate":true}}},{"displayText":"Apache + Tomcat 9.0.98","value":"9.0.98","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"9.0.98"},"linuxContainerSettings":{"java8Runtime":"TOMCAT|9.0.98-java8","java11Runtime":"TOMCAT|9.0.98-java11","java17Runtime":"TOMCAT|9.0.98-java17","java21Runtime":"TOMCAT|9.0.98-java21"}}},{"displayText":"Apache + Tomcat 9.0.97","value":"9.0.97","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"9.0.97","isHidden":true},"linuxContainerSettings":{"java8Runtime":"TOMCAT|9.0.97-java8","java11Runtime":"TOMCAT|9.0.97-java11","java17Runtime":"TOMCAT|9.0.97-java17","java21Runtime":"TOMCAT|9.0.97-java21"}}},{"displayText":"Apache + Tomcat 9.0.96","value":"9.0.97","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"9.0.96"},"linuxContainerSettings":{"java8Runtime":"TOMCAT|9.0.96-java8","java11Runtime":"TOMCAT|9.0.96-java11","java17Runtime":"TOMCAT|9.0.96-java17","java21Runtime":"TOMCAT|9.0.96-java21","isHidden":true}}},{"displayText":"Apache Tomcat 9.0.93","value":"9.0.93","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"9.0.93","isHidden":true},"linuxContainerSettings":{"java8Runtime":"TOMCAT|9.0.93-java8","java11Runtime":"TOMCAT|9.0.93-java11","java17Runtime":"TOMCAT|9.0.93-java17","java21Runtime":"TOMCAT|9.0.93-java21"}}},{"displayText":"Apache + Tomcat 9.0.91","value":"9.0.91","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"9.0.91"},"linuxContainerSettings":{"java8Runtime":"TOMCAT|9.0.91-java8","java11Runtime":"TOMCAT|9.0.91-java11","java17Runtime":"TOMCAT|9.0.91-java17","java21Runtime":"TOMCAT|9.0.91-java21","isHidden":true}}},{"displayText":"Apache Tomcat 9.0.90","value":"9.0.90","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"9.0.90","isHidden":true},"linuxContainerSettings":{"java8Runtime":"TOMCAT|9.0.90-java8","java11Runtime":"TOMCAT|9.0.90-java11","java17Runtime":"TOMCAT|9.0.90-java17","java21Runtime":"TOMCAT|9.0.90-java21"}}},{"displayText":"Apache Tomcat 9.0.88","value":"9.0.88","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"9.0.88","isHidden":true},"linuxContainerSettings":{"java8Runtime":"TOMCAT|9.0.88-java8","java11Runtime":"TOMCAT|9.0.88-java11","java17Runtime":"TOMCAT|9.0.88-java17","java21Runtime":"TOMCAT|9.0.88-java21"}}},{"displayText":"Apache Tomcat 9.0.83","value":"9.0.83","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"9.0.83"},"linuxContainerSettings":{"java8Runtime":"TOMCAT|9.0.83-java8","java11Runtime":"TOMCAT|9.0.83-java11","java17Runtime":"TOMCAT|9.0.83-java17","java21Runtime":"TOMCAT|9.0.83-java21"}}},{"displayText":"Apache @@ -1524,7 +1574,7 @@ interactions: Tomcat 9.0.0","value":"9.0.0","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"9.0.0"}}}]},{"displayText":"Apache Tomcat 8.5","value":"tomcat8.5","minorVersions":[{"displayText":"Apache Tomcat 8.5","value":"8.5","stackSettings":{"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"8.5","isAutoUpdate":true,"endOfLifeDate":"2024-03-31T00:00:00Z"},"linuxContainerSettings":{"java11Runtime":"TOMCAT|8.5-java11","java8Runtime":"TOMCAT|8.5-jre8","isAutoUpdate":true,"endOfLifeDate":"2024-03-31T00:00:00Z"}}},{"displayText":"Apache - Tomcat 8.5.100","value":"8.5.100","stackSettings":{"linuxContainerSettings":{"java8Runtime":"TOMCAT|8.5.100-java8","java11Runtime":"TOMCAT|8.5.100-java11","endOfLifeDate":"2024-03-31T00:00:00Z"},"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"8.5.100","endOfLifeDate":"2024-03-31T00:00:00Z","isHidden":true}}},{"displayText":"Apache + Tomcat 8.5.100","value":"8.5.100","stackSettings":{"linuxContainerSettings":{"java8Runtime":"TOMCAT|8.5.100-java8","java11Runtime":"TOMCAT|8.5.100-java11","endOfLifeDate":"2024-03-31T00:00:00Z"},"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"8.5.100","endOfLifeDate":"2024-03-31T00:00:00Z"}}},{"displayText":"Apache Tomcat 8.5.96","value":"8.5.96","stackSettings":{"linuxContainerSettings":{"java8Runtime":"TOMCAT|8.5.96-java8","java11Runtime":"TOMCAT|8.5.96-java11","endOfLifeDate":"2024-03-31T00:00:00Z"},"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"8.5.96","endOfLifeDate":"2024-03-31T00:00:00Z"}}},{"displayText":"Apache Tomcat 8.5.82","value":"8.5.82","stackSettings":{"linuxContainerSettings":{"java8Runtime":"TOMCAT|8.5.82-java8","java11Runtime":"TOMCAT|8.5.82-java11","endOfLifeDate":"2024-03-31T00:00:00Z"},"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"8.5.82","endOfLifeDate":"2024-03-31T00:00:00Z"}}},{"displayText":"Apache Tomcat 8.5.79","value":"8.5.79","stackSettings":{"linuxContainerSettings":{"java8Runtime":"TOMCAT|8.5.79-java8","java11Runtime":"TOMCAT|8.5.79-java11","endOfLifeDate":"2024-03-31T00:00:00Z"},"windowsContainerSettings":{"javaContainer":"TOMCAT","javaContainerVersion":"8.5.79","endOfLifeDate":"2024-03-31T00:00:00Z"}}},{"displayText":"Apache @@ -1572,11 +1622,11 @@ interactions: cache-control: - no-cache content-length: - - '98228' + - '109164' content-type: - application/json date: - - Mon, 24 Feb 2025 03:24:33 GMT + - Tue, 08 Apr 2025 02:28:57 GMT expires: - '-1' pragma: @@ -1589,8 +1639,10 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - '' x-msedge-ref: - - 'Ref A: F5E5F754C7204D4AB1E40AAC9EA6A774 Ref B: MAA201060515025 Ref C: 2025-02-24T03:24:33Z' + - 'Ref A: 52CFF63D716A4BFBB2AC94BD6DBA58EF Ref B: MAA201060513033 Ref C: 2025-04-08T02:28:56Z' x-powered-by: - ASP.NET status: @@ -1618,26 +1670,26 @@ interactions: ParameterSetName: - -g -n -p User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/sites/app000003?api-version=2023-01-01 response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/sites/app000003","name":"app000003","type":"Microsoft.Web/sites","kind":"app","location":"West - US","properties":{"name":"app000003","state":"Running","hostNames":["app000003.azurewebsites.net"],"webSpace":"cli_test_metric_alert_v2000001-WestUSwebspace","selfLink":"https://waws-prod-bay-043.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/cli_test_metric_alert_v2000001-WestUSwebspace/sites/app000003","repositorySiteName":"app000003","owner":null,"usageState":"Normal","enabled":true,"adminEnabled":true,"siteScopedCertificatesEnabled":false,"afdEnabled":false,"enabledHostNames":["app000003.azurewebsites.net","app000003.scm.azurewebsites.net"],"siteProperties":{"metadata":null,"properties":[{"name":"LinuxFxVersion","value":""},{"name":"WindowsFxVersion","value":null}],"appSettings":null},"availabilityState":"Normal","sslCertificates":null,"csrs":[],"cers":null,"siteMode":null,"hostNameSslStates":[{"name":"app000003.azurewebsites.net","sslState":"Disabled","ipBasedSslResult":null,"virtualIP":null,"virtualIPv6":null,"thumbprint":null,"certificateResourceId":null,"toUpdate":null,"toUpdateIpBasedSsl":null,"ipBasedSslState":"NotConfigured","hostType":"Standard"},{"name":"app000003.scm.azurewebsites.net","sslState":"Disabled","ipBasedSslResult":null,"virtualIP":null,"virtualIPv6":null,"thumbprint":null,"certificateResourceId":null,"toUpdate":null,"toUpdateIpBasedSsl":null,"ipBasedSslState":"NotConfigured","hostType":"Repository"}],"computeMode":null,"serverFarm":null,"serverFarmId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/serverfarms/plan1","reserved":false,"isXenon":false,"hyperV":false,"lastModifiedTimeUtc":"2025-02-24T03:24:40.233","storageRecoveryDefaultState":"Running","contentAvailabilityState":"Normal","runtimeAvailabilityState":"Normal","dnsConfiguration":{},"vnetRouteAllEnabled":false,"containerAllocationSubnet":null,"useContainerLocalhostBindings":null,"vnetImagePullEnabled":false,"vnetContentShareEnabled":false,"outboundVnetRouting":{"allTraffic":false,"applicationTraffic":false,"contentShareTraffic":false,"imagePullTraffic":false,"backupRestoreTraffic":false},"siteConfig":{"numberOfWorkers":1,"defaultDocuments":null,"netFrameworkVersion":null,"phpVersion":null,"pythonVersion":null,"nodeVersion":null,"powerShellVersion":null,"linuxFxVersion":"","windowsFxVersion":null,"windowsConfiguredStacks":null,"requestTracingEnabled":null,"remoteDebuggingEnabled":null,"remoteDebuggingVersion":null,"httpLoggingEnabled":null,"azureMonitorLogCategories":null,"acrUseManagedIdentityCreds":false,"acrUserManagedIdentityID":null,"logsDirectorySizeLimit":null,"detailedErrorLoggingEnabled":null,"publishingUsername":null,"publishingPassword":null,"appSettings":null,"metadata":null,"connectionStrings":null,"machineKey":null,"handlerMappings":null,"documentRoot":null,"scmType":null,"use32BitWorkerProcess":null,"webSocketsEnabled":null,"alwaysOn":false,"javaVersion":null,"javaContainer":null,"javaContainerVersion":null,"appCommandLine":null,"managedPipelineMode":null,"virtualApplications":null,"winAuthAdminState":null,"winAuthTenantState":null,"customAppPoolIdentityAdminState":null,"customAppPoolIdentityTenantState":null,"runtimeADUser":null,"runtimeADUserPassword":null,"loadBalancing":null,"routingRules":null,"experiments":null,"limits":null,"autoHealEnabled":null,"autoHealRules":null,"tracingOptions":null,"vnetName":null,"vnetRouteAllEnabled":null,"vnetPrivatePortsCount":null,"publicNetworkAccess":null,"cors":null,"push":null,"apiDefinition":null,"apiManagementConfig":null,"autoSwapSlotName":null,"localMySqlEnabled":null,"managedServiceIdentityId":null,"xManagedServiceIdentityId":null,"keyVaultReferenceIdentity":null,"ipSecurityRestrictions":[{"ipAddress":"Any","action":"Allow","priority":2147483647,"name":"Allow + US","properties":{"name":"app000003","state":"Running","hostNames":["app000003.azurewebsites.net"],"webSpace":"cli_test_metric_alert_v2000001-WestUSwebspace","selfLink":"https://waws-prod-bay-177.api.azurewebsites.windows.net:454/subscriptions/00000000-0000-0000-0000-000000000000/webspaces/cli_test_metric_alert_v2000001-WestUSwebspace/sites/app000003","repositorySiteName":"app000003","owner":null,"usageState":"Normal","enabled":true,"adminEnabled":true,"siteScopedCertificatesEnabled":false,"afdEnabled":false,"enabledHostNames":["app000003.azurewebsites.net","app000003.scm.azurewebsites.net"],"siteProperties":{"metadata":null,"properties":[{"name":"LinuxFxVersion","value":""},{"name":"WindowsFxVersion","value":null}],"appSettings":null},"availabilityState":"Normal","sslCertificates":null,"csrs":[],"cers":null,"siteMode":null,"hostNameSslStates":[{"name":"app000003.azurewebsites.net","sslState":"Disabled","ipBasedSslResult":null,"virtualIP":null,"virtualIPv6":null,"thumbprint":null,"certificateResourceId":null,"toUpdate":null,"toUpdateIpBasedSsl":null,"ipBasedSslState":"NotConfigured","hostType":"Standard"},{"name":"app000003.scm.azurewebsites.net","sslState":"Disabled","ipBasedSslResult":null,"virtualIP":null,"virtualIPv6":null,"thumbprint":null,"certificateResourceId":null,"toUpdate":null,"toUpdateIpBasedSsl":null,"ipBasedSslState":"NotConfigured","hostType":"Repository"}],"computeMode":null,"serverFarm":null,"serverFarmId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/serverfarms/plan1","reserved":false,"isXenon":false,"hyperV":false,"lastModifiedTimeUtc":"2025-04-08T02:29:03.12","storageRecoveryDefaultState":"Running","contentAvailabilityState":"Normal","runtimeAvailabilityState":"Normal","dnsConfiguration":{},"vnetRouteAllEnabled":false,"containerAllocationSubnet":null,"useContainerLocalhostBindings":null,"vnetImagePullEnabled":false,"vnetContentShareEnabled":false,"outboundVnetRouting":{"allTraffic":false,"applicationTraffic":false,"contentShareTraffic":false,"imagePullTraffic":false,"backupRestoreTraffic":false},"siteConfig":{"numberOfWorkers":1,"defaultDocuments":null,"netFrameworkVersion":null,"phpVersion":null,"pythonVersion":null,"nodeVersion":null,"powerShellVersion":null,"linuxFxVersion":"","windowsFxVersion":null,"windowsConfiguredStacks":null,"requestTracingEnabled":null,"remoteDebuggingEnabled":null,"remoteDebuggingVersion":null,"httpLoggingEnabled":null,"azureMonitorLogCategories":null,"acrUseManagedIdentityCreds":false,"acrUserManagedIdentityID":null,"logsDirectorySizeLimit":null,"detailedErrorLoggingEnabled":null,"publishingUsername":null,"publishingPassword":null,"appSettings":null,"metadata":null,"connectionStrings":null,"machineKey":null,"handlerMappings":null,"documentRoot":null,"scmType":null,"use32BitWorkerProcess":null,"webSocketsEnabled":null,"alwaysOn":false,"javaVersion":null,"javaContainer":null,"javaContainerVersion":null,"appCommandLine":null,"managedPipelineMode":null,"virtualApplications":null,"winAuthAdminState":null,"winAuthTenantState":null,"customAppPoolIdentityAdminState":null,"customAppPoolIdentityTenantState":null,"runtimeADUser":null,"runtimeADUserPassword":null,"loadBalancing":null,"routingRules":null,"experiments":null,"limits":null,"autoHealEnabled":null,"autoHealRules":null,"tracingOptions":null,"vnetName":null,"vnetRouteAllEnabled":null,"vnetPrivatePortsCount":null,"publicNetworkAccess":null,"cors":null,"push":null,"apiDefinition":null,"apiManagementConfig":null,"autoSwapSlotName":null,"localMySqlEnabled":null,"managedServiceIdentityId":null,"xManagedServiceIdentityId":null,"keyVaultReferenceIdentity":null,"ipSecurityRestrictions":[{"ipAddress":"Any","action":"Allow","priority":2147483647,"name":"Allow all","description":"Allow all access"}],"ipSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictions":[{"ipAddress":"Any","action":"Allow","priority":2147483647,"name":"Allow - all","description":"Allow all access"}],"scmIpSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictionsUseMain":null,"http20Enabled":false,"minTlsVersion":null,"minTlsCipherSuite":null,"scmMinTlsCipherSuite":null,"supportedTlsCipherSuites":null,"scmSupportedTlsCipherSuites":null,"scmMinTlsVersion":null,"ftpsState":null,"preWarmedInstanceCount":null,"functionAppScaleLimit":null,"elasticWebAppScaleLimit":0,"healthCheckPath":null,"fileChangeAuditEnabled":null,"functionsRuntimeScaleMonitoringEnabled":null,"websiteTimeZone":null,"minimumElasticInstanceCount":0,"azureStorageAccounts":null,"http20ProxyFlag":null,"sitePort":null,"antivirusScanEnabled":null,"storageType":null,"sitePrivateLinkHostEnabled":null,"clusteringEnabled":false},"functionAppConfig":null,"daprConfig":null,"deploymentId":"app000003","slotName":null,"trafficManagerHostNames":null,"sku":"Basic","scmSiteAlsoStopped":false,"targetSwapSlot":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"clientAffinityEnabled":true,"clientAffinityProxyEnabled":false,"blockPathTraversal":false,"clientCertEnabled":false,"clientCertMode":"Required","clientCertExclusionPaths":null,"hostNamesDisabled":false,"ipMode":"IPv4","vnetBackupRestoreEnabled":false,"domainVerificationIdentifiers":null,"customDomainVerificationId":"D3BA5386ECE3EF692436FA80D86862EA4BBB849B79C16196E232335AC62906B7","kind":"app","managedEnvironmentId":null,"workloadProfileName":null,"resourceConfig":null,"inboundIpAddress":"104.40.92.107","possibleInboundIpAddresses":"104.40.92.107,40.112.243.23","ftpUsername":"app000003\\$app000003","ftpsHostName":"ftps://waws-prod-bay-043.ftp.azurewebsites.windows.net/site/wwwroot","outboundIpAddresses":"104.40.88.152,104.40.87.132,104.40.95.34,104.40.88.78,104.40.92.107","possibleOutboundIpAddresses":"104.40.88.152,104.40.87.132,104.40.95.34,104.40.88.78,13.93.207.234,13.93.207.141,13.93.199.41,13.93.207.237,13.93.207.166,104.42.145.246,13.64.19.206,13.64.19.224,13.64.19.227,13.64.17.40,13.64.17.68,20.253.186.255,20.245.117.145,20.253.187.53,20.253.189.72,20.253.189.147,20.253.190.37,104.40.92.107","containerSize":0,"dailyMemoryTimeQuota":0,"suspendedTill":null,"siteDisabledReason":0,"functionExecutionUnitsCache":null,"maxNumberOfWorkers":null,"homeStamp":"waws-prod-bay-043","cloningInfo":null,"hostingEnvironmentId":null,"tags":null,"resourceGroup":"cli_test_metric_alert_v2000001","defaultHostName":"app000003.azurewebsites.net","slotSwapStatus":null,"httpsOnly":false,"endToEndEncryptionEnabled":false,"functionsRuntimeAdminIsolationEnabled":false,"redundancyMode":"None","inProgressOperationId":null,"geoDistributions":null,"privateEndpointConnections":null,"publicNetworkAccess":null,"buildVersion":null,"targetBuildVersion":null,"migrationState":null,"eligibleLogCategories":"AppServiceAppLogs,AppServiceAuditLogs,AppServiceConsoleLogs,AppServiceHTTPLogs,AppServiceIPSecAuditLogs,AppServicePlatformLogs,ScanLogs,AppServiceAuthenticationLogs","inFlightFeatures":null,"storageAccountRequired":false,"virtualNetworkSubnetId":null,"keyVaultReferenceIdentity":"SystemAssigned","autoGeneratedDomainNameLabelScope":null,"defaultHostNameScope":"Global","privateLinkIdentifiers":null,"sshEnabled":null}}' + all","description":"Allow all access"}],"scmIpSecurityRestrictionsDefaultAction":null,"scmIpSecurityRestrictionsUseMain":null,"http20Enabled":false,"minTlsVersion":null,"minTlsCipherSuite":null,"scmMinTlsCipherSuite":null,"supportedTlsCipherSuites":null,"scmSupportedTlsCipherSuites":null,"scmMinTlsVersion":null,"ftpsState":null,"preWarmedInstanceCount":null,"functionAppScaleLimit":null,"elasticWebAppScaleLimit":0,"healthCheckPath":null,"fileChangeAuditEnabled":null,"functionsRuntimeScaleMonitoringEnabled":null,"websiteTimeZone":null,"minimumElasticInstanceCount":0,"azureStorageAccounts":null,"http20ProxyFlag":null,"sitePort":null,"antivirusScanEnabled":null,"storageType":null,"sitePrivateLinkHostEnabled":null,"clusteringEnabled":false},"functionAppConfig":null,"daprConfig":null,"deploymentId":"app000003","slotName":null,"trafficManagerHostNames":null,"sku":"Basic","scmSiteAlsoStopped":false,"targetSwapSlot":null,"hostingEnvironment":null,"hostingEnvironmentProfile":null,"clientAffinityEnabled":true,"clientAffinityProxyEnabled":false,"blockPathTraversal":false,"clientCertEnabled":false,"clientCertMode":"Required","clientCertExclusionPaths":null,"hostNamesDisabled":false,"ipMode":"IPv4","vnetBackupRestoreEnabled":false,"domainVerificationIdentifiers":null,"customDomainVerificationId":"253001F2FCF5A7B1CD759EB861E9BB1596370BE27E47A991F72184277B3D12F2","kind":"app","managedEnvironmentId":null,"workloadProfileName":null,"resourceConfig":null,"inboundIpAddress":"40.112.243.56","possibleInboundIpAddresses":"40.112.243.56","ftpUsername":"app000003\\$app000003","ftpsHostName":"ftps://waws-prod-bay-177.ftp.azurewebsites.windows.net/site/wwwroot","outboundIpAddresses":"40.78.93.74,40.78.93.119,40.78.94.159,13.64.195.155,13.64.195.223,13.64.193.139,40.112.243.56","possibleOutboundIpAddresses":"40.78.93.74,40.78.93.119,40.78.94.159,13.64.195.155,13.64.195.223,13.64.193.139,13.93.218.251,13.64.193.199,13.64.49.75,13.64.62.100,13.64.196.69,13.64.196.89,40.85.153.50,13.64.196.174,13.64.197.23,13.64.199.205,13.83.47.153,13.83.46.13,13.64.62.232,13.83.46.112,13.83.46.127,13.83.46.158,13.83.46.19,13.83.40.163,40.78.49.97,13.83.47.99,13.83.40.63,13.83.49.71,13.83.49.249,13.83.54.97,13.64.56.149,40.112.243.56","containerSize":0,"dailyMemoryTimeQuota":0,"suspendedTill":null,"siteDisabledReason":0,"functionExecutionUnitsCache":null,"maxNumberOfWorkers":null,"homeStamp":"waws-prod-bay-177","cloningInfo":null,"hostingEnvironmentId":null,"tags":null,"resourceGroup":"cli_test_metric_alert_v2000001","defaultHostName":"app000003.azurewebsites.net","slotSwapStatus":null,"httpsOnly":false,"endToEndEncryptionEnabled":false,"functionsRuntimeAdminIsolationEnabled":false,"redundancyMode":"None","inProgressOperationId":null,"geoDistributions":null,"privateEndpointConnections":null,"publicNetworkAccess":null,"buildVersion":null,"targetBuildVersion":null,"migrationState":null,"eligibleLogCategories":"AppServiceAppLogs,AppServiceAuditLogs,AppServiceConsoleLogs,AppServiceHTTPLogs,AppServiceIPSecAuditLogs,AppServicePlatformLogs,ScanLogs,AppServiceAuthenticationLogs","inFlightFeatures":null,"storageAccountRequired":false,"virtualNetworkSubnetId":null,"keyVaultReferenceIdentity":"SystemAssigned","autoGeneratedDomainNameLabelScope":null,"defaultHostNameScope":"Global","privateLinkIdentifiers":null,"sshEnabled":null}}' headers: cache-control: - no-cache content-length: - - '7409' + - '7533' content-type: - application/json date: - - Mon, 24 Feb 2025 03:24:57 GMT + - Tue, 08 Apr 2025 02:29:24 GMT etag: - - '"1DB866BA3E6DBC0"' + - '"1DBA82DFEABE0B5"' expires: - '-1' pragma: @@ -1650,10 +1702,12 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/07ac5fd5-56dd-49a9-86b5-936105e64f57 x-ms-ratelimit-remaining-subscription-resource-requests: - '499' x-msedge-ref: - - 'Ref A: 657016CC7A1D46F58D1AAA470674DB27 Ref B: MAA201060516049 Ref C: 2025-02-24T03:24:34Z' + - 'Ref A: 65F19EC3322940BA9170C0E81E850B48 Ref B: MAA201060516047 Ref C: 2025-04-08T02:28:58Z' x-powered-by: - ASP.NET status: @@ -1677,7 +1731,7 @@ interactions: ParameterSetName: - -g -n -p User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Web/sites/app000003/publishxml?api-version=2023-01-01 response: @@ -1688,7 +1742,7 @@ interactions: SQLServerDBConnectionString="REDACTED" mySQLDBConnectionString="" hostingProviderForumLink="" controlPanelLink="https://portal.azure.com" webSystem="WebSites"> + webSystem="WebSites"> headers: cache-control: - no-cache content-length: - - '1790' + - '1325' content-type: - application/xml date: - - Mon, 24 Feb 2025 03:24:58 GMT + - Tue, 08 Apr 2025 02:29:25 GMT expires: - '-1' pragma: @@ -1723,10 +1772,12 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/1caa0f59-1a08-4887-a1ab-045b886b90e9 x-ms-ratelimit-remaining-subscription-resource-requests: - '11999' x-msedge-ref: - - 'Ref A: 3CC6AA918BF5492B8AB74F5E5BB8CA18 Ref B: MAA201060515027 Ref C: 2025-02-24T03:24:58Z' + - 'Ref A: 2178C71D3ED8447C935F54EEE5D04866 Ref B: MAA201060515027 Ref C: 2025-04-08T02:29:24Z' x-powered-by: - ASP.NET status: @@ -1757,7 +1808,7 @@ interactions: ParameterSetName: - -g -n --scopes --region --action --description --condition User-Agent: - - AZURECLI/2.68.0 azsdk-python-core/1.31.0 Python/3.12.9 (Windows-11-10.0.26100-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_v2000001/providers/Microsoft.Insights/metricAlerts/alert12?api-version=2018-03-01 response: @@ -1791,7 +1842,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 24 Feb 2025 03:25:14 GMT + - Tue, 08 Apr 2025 02:29:38 GMT expires: - '-1' pragma: @@ -1806,10 +1857,12 @@ interactions: - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/b4c94481-4a79-4701-a9fa-25825aa89d52 x-ms-ratelimit-remaining-subscription-resource-requests: - '299' x-msedge-ref: - - 'Ref A: C3FFB9EE4E434C03B877A73394D59500 Ref B: MAA201060516021 Ref C: 2025-02-24T03:24:59Z' + - 'Ref A: 2F60A72C9BC74DE3A4A006AC7820C256 Ref B: MAA201060515037 Ref C: 2025-04-08T02:29:26Z' x-powered-by: - ASP.NET status: diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_basic_scenario.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_basic_scenario.yaml index 764e8782fee..19039e547c6 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_basic_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_basic_scenario.yaml @@ -20,7 +20,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]},"identity":null}' @@ -76,7 +76,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups?api-version=2024-10-01-preview response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]},"identity":null}]}' @@ -136,7 +136,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]},"identity":null}' @@ -196,7 +196,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]},"identity":null}' @@ -264,7 +264,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]},"identity":null}' @@ -324,7 +324,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]},"identity":null}' @@ -407,7 +407,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"aaa@foo.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[{"name":"alice_web","serviceUri":"https://www.example.com/alert?name=alice","useCommonAlertSchema":true,"useAadAuth":false,"objectId":null,"identifierUri":null,"tenantId":null}],"eventHubReceivers":[{"name":"alice_eventhub","subscriptionId":"testEventHubNameSpace","eventHubNameSpace":"testEventHub","eventHubName":"187f412d-1758-44d9-b052-169e2564721d","useCommonAlertSchema":false,"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"}],"itsmReceivers":[],"azureAppPushReceivers":[{"name":"alice_apppush","emailAddress":"aaa@foo.com"}],"automationRunbookReceivers":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest","serviceUri":"http://example.com","useCommonAlertSchema":true,"automationAccountId":"alice_runbook","runbookName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084","webhookResourceId":"test_runbook","isGlobalRunbook":false}],"voiceReceivers":[],"logicAppReceivers":[{"name":"alice_logicapp","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp","callbackUrl":"http://callback","useCommonAlertSchema":false}],"azureFunctionReceivers":[{"name":"azfunc","functionAppResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp","functionName":"HttpTriggerCSharp1","httpTriggerUrl":"http://test.me","useCommonAlertSchema":true}],"armRoleReceivers":[{"name":"alicearmrole","roleId":"abcde","useCommonAlertSchema":true}]},"identity":null}' @@ -467,7 +467,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"aaa@foo.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[{"name":"alice_web","serviceUri":"https://www.example.com/alert?name=alice","useCommonAlertSchema":true,"useAadAuth":false,"objectId":null,"identifierUri":null,"tenantId":null}],"eventHubReceivers":[{"name":"alice_eventhub","subscriptionId":"testEventHubNameSpace","eventHubNameSpace":"testEventHub","eventHubName":"187f412d-1758-44d9-b052-169e2564721d","useCommonAlertSchema":false,"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"}],"itsmReceivers":[],"azureAppPushReceivers":[{"name":"alice_apppush","emailAddress":"aaa@foo.com"}],"automationRunbookReceivers":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest","serviceUri":"http://example.com","useCommonAlertSchema":true,"automationAccountId":"alice_runbook","runbookName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084","webhookResourceId":"test_runbook","isGlobalRunbook":false}],"voiceReceivers":[],"logicAppReceivers":[{"name":"alice_logicapp","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp","callbackUrl":"http://callback","useCommonAlertSchema":false}],"azureFunctionReceivers":[{"name":"azfunc","functionAppResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp","functionName":"HttpTriggerCSharp1","httpTriggerUrl":"http://test.me","useCommonAlertSchema":true}],"armRoleReceivers":[{"name":"alicearmrole","roleId":"abcde","useCommonAlertSchema":true}]},"identity":null}' @@ -551,7 +551,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"aaa@foo.com","useCommonAlertSchema":true,"status":"Enabled"},{"name":"alice_1","emailAddress":"aaa@foo.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[{"name":"alice_eventhub","subscriptionId":"testEventHubNameSpace","eventHubNameSpace":"testEventHub","eventHubName":"187f412d-1758-44d9-b052-169e2564721d","useCommonAlertSchema":false,"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"}],"itsmReceivers":[],"azureAppPushReceivers":[{"name":"alice_apppush","emailAddress":"aaa@foo.com"}],"automationRunbookReceivers":[{"name":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest","serviceUri":"http://example.com","useCommonAlertSchema":true,"automationAccountId":"alice_runbook","runbookName":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/runbookTest/providers/Microsoft.Automation/automationAccounts/runbooktest/webhooks/Alert1510184037084","webhookResourceId":"test_runbook","isGlobalRunbook":false}],"voiceReceivers":[],"logicAppReceivers":[{"name":"alice_logicapp","resourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/LogicApp/providers/Microsoft.Logic/workflows/testLogicApp","callbackUrl":"http://callback","useCommonAlertSchema":false}],"azureFunctionReceivers":[{"name":"azfunc","functionAppResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/aznsTest/providers/Microsoft.Web/sites/testFunctionApp","functionName":"HttpTriggerCSharp1","httpTriggerUrl":"http://test.me","useCommonAlertSchema":true}],"armRoleReceivers":[{"name":"alicearmrole","roleId":"abcde","useCommonAlertSchema":true}]},"identity":null}' @@ -615,7 +615,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002/subscribe?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002/subscribe?api-version=2024-10-01-preview response: body: string: '{"code":"ReceiverNotFound","message":"Could not find receiver with @@ -676,7 +676,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002/subscribe?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002/subscribe?api-version=2024-10-01-preview response: body: string: '{"code":"ReceiverAlreadyEnabled","message":"Receiver with name alice @@ -736,7 +736,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: string: '' @@ -790,7 +790,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_basic000001/providers/Microsoft.Insights/actionGroups?api-version=2024-10-01-preview response: body: string: '{"value":[]}' diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_notifications.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_notifications.yaml index 78695c2570c..0ec39eaa759 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_notifications.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_notifications.yaml @@ -20,7 +20,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_notifications000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_notifications000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_notifications000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]},"identity":null}' @@ -98,7 +98,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_notifications000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002/createNotifications?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_notifications000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002/createNotifications?api-version=2024-10-01-preview response: body: string: '' @@ -3745,7 +3745,7 @@ interactions: User-Agent: - AZURECLI/2.51.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-13.5-x86_64-i386-64bit) method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_notifications000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_notifications000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: string: '' diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_activity_log_alert_update_action.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_activity_log_alert_update_action.yaml index e54284c7ac5..8c9afd5fbac 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_activity_log_alert_update_action.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_activity_log_alert_update_action.yaml @@ -1,7 +1,7 @@ interactions: - request: body: '{"location": "Global", "properties": {"enabled": true, "groupShortName": - "cliactno7uh4"}}' + "cliactj35mdn"}}' headers: Accept: - application/json @@ -18,19 +18,19 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/actionGroups/cliact000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/actionGroups/cliact000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002","type":"Microsoft.Insights/ActionGroups","name":"cliact000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactno7uh4","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002","type":"Microsoft.Insights/ActionGroups","name":"cliact000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactj35mdn","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: @@ -38,31 +38,35 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:08 GMT + - Tue, 08 Apr 2025 02:22:27 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - a31ab9be-6d85-11ee-8015-acde48001122 + - 4d5f1ac8-1420-11f0-823d-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/28124e45-57cc-4144-979c-ded625a27bc7 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' + x-msedge-ref: + - 'Ref A: 06464998A9384161BA18613C89D861DB Ref B: MAA201060516027 Ref C: 2025-04-08T02:22:24Z' x-servedby: - - WUS2ONEIM000003 + - EUS2ONEIM000005 status: code: 201 message: Created - request: body: '{"location": "Global", "properties": {"enabled": true, "groupShortName": - "cliactmepkof"}}' + "cliactvti2ep"}}' headers: Accept: - application/json @@ -79,19 +83,19 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/actionGroups/cliact000003?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/actionGroups/cliact000003?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003","type":"Microsoft.Insights/ActionGroups","name":"cliact000003","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactmepkof","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003","type":"Microsoft.Insights/ActionGroups","name":"cliact000003","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactvti2ep","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: @@ -99,31 +103,35 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:15 GMT + - Tue, 08 Apr 2025 02:22:32 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - a6e96432-6d85-11ee-8015-acde48001122 + - 50f74977-1420-11f0-9de4-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/indonesiacentral/33e2bb53-7374-4bb4-bd8d-7017d2bce31c x-ms-ratelimit-remaining-subscription-resource-requests: - '24' + x-msedge-ref: + - 'Ref A: 1C61C308098C4D1D871C8F20193C46CD Ref B: MAA201060514045 Ref C: 2025-04-08T02:22:28Z' x-servedby: - - EUS2ONEIM000007 + - EUS2ONEIM000002 status: code: 201 message: Created - request: body: '{"location": "Global", "properties": {"enabled": true, "groupShortName": - "cliactf3kes4"}}' + "cliacto3nqcu"}}' headers: Accept: - application/json @@ -140,19 +148,19 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/actionGroups/cliact000004?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/actionGroups/cliact000004?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004","type":"Microsoft.Insights/ActionGroups","name":"cliact000004","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactf3kes4","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004","type":"Microsoft.Insights/ActionGroups","name":"cliact000004","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliacto3nqcu","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: @@ -160,25 +168,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:21 GMT + - Tue, 08 Apr 2025 02:22:37 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - ab500ff8-6d85-11ee-8015-acde48001122 + - 548b655c-1420-11f0-8abf-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/0964f9d0-28aa-4fc9-838d-2d8969c0cc4a x-ms-ratelimit-remaining-subscription-resource-requests: - - '23' + - '24' + x-msedge-ref: + - 'Ref A: 5E35F88B862D4FC1A4AB749409A9479E Ref B: MAA201060516021 Ref C: 2025-04-08T02:22:34Z' x-servedby: - - EUS2ONEIM000000 + - WUS2ONEIM000004 status: code: 201 message: Created @@ -196,12 +208,12 @@ interactions: ParameterSetName: - -n -o User-Agent: - - AZURECLI/2.53.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_activity_log_alert_update_action","date":"2023-10-18T07:11:58Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_activity_log_alert_update_action","date":"2025-04-08T02:22:12Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -210,17 +222,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:22 GMT + - Tue, 08 Apr 2025 02:22:38 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + x-msedge-ref: + - 'Ref A: 87FE13877DCE46ADAD1670E0DEB38021 Ref B: MAA201060513025 Ref C: 2025-04-08T02:22:37Z' status: code: 200 message: OK @@ -238,12 +254,12 @@ interactions: ParameterSetName: - -n -g -o User-Agent: - - AZURECLI/2.53.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_activity_log_alert_update_action","date":"2023-10-18T07:11:58Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_activity_log_alert_update_action","date":"2025-04-08T02:22:12Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -252,17 +268,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:22 GMT + - Tue, 08 Apr 2025 02:22:38 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 54AF25608D71434F9994372511416520 Ref B: MAA201060516019 Ref C: 2025-04-08T02:22:38Z' status: code: 200 message: OK @@ -280,7 +300,7 @@ interactions: ParameterSetName: - -n -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: @@ -296,17 +316,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:22 GMT + - Tue, 08 Apr 2025 02:22:39 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-failure-cause: - gateway + x-msedge-ref: + - 'Ref A: E9147691E76140419DFE901C6098D07E Ref B: MAA201060513037 Ref C: 2025-04-08T02:22:39Z' status: code: 404 message: Not Found @@ -330,19 +354,19 @@ interactions: ParameterSetName: - -n -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : []\r\n },\r\n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": []\r\n + \ },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -355,21 +379,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:30 GMT + - Tue, 08 Apr 2025 02:22:44 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/9d3d4927-4511-44c7-bdc4-69c9b2e079a9 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: 3077D5D23EC646D99FB3DC2DC07363F9 Ref B: MAA201060516009 Ref C: 2025-04-08T02:22:40Z' x-powered-by: - ASP.NET status: @@ -389,19 +419,19 @@ interactions: ParameterSetName: - -n -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : []\r\n },\r\n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": []\r\n + \ },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -414,23 +444,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:38 GMT + - Tue, 08 Apr 2025 02:22:51 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 6625250C75E94C85BAA0339A3A3784AB Ref B: MAA201060513039 Ref C: 2025-04-08T02:22:52Z' x-powered-by: - ASP.NET status: @@ -450,22 +484,24 @@ interactions: ParameterSetName: - -n -g -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : []\r\n },\r\n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": []\r\n + \ },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview + arr-disable-session-affinity: + - 'true' cache-control: - no-cache content-length: @@ -473,26 +509,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:39 GMT + - Tue, 08 Apr 2025 02:22:53 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 - set-cookie: - - ARRAffinity=73daf176017afd676c5d089e64bd813ec4d4c4ace2ae0b7c5bd95c05b35eb20a;Path=/;HttpOnly;Secure;Domain=ala-prod.alertsrp.trafficmanager.net - - ARRAffinitySameSite=73daf176017afd676c5d089e64bd813ec4d4c4ace2ae0b7c5bd95c05b35eb20a;Path=/;HttpOnly;SameSite=None;Secure;Domain=ala-prod.alertsrp.trafficmanager.net strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 6019156CA10D42968DA56DA99622DC95 Ref B: MAA201060515049 Ref C: 2025-04-08T02:22:53Z' + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -517,24 +556,26 @@ interactions: ParameterSetName: - -n -g -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview + arr-disable-session-affinity: + - 'true' cache-control: - no-cache content-length: @@ -542,28 +583,31 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:41 GMT + - Tue, 08 Apr 2025 02:22:55 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 - set-cookie: - - ARRAffinity=99639dc8ded799796858c6152de9b898dd67f59f3e6ba69aec76158687b7c137;Path=/;HttpOnly;Secure;Domain=ala-prod.alertsrp.trafficmanager.net - - ARRAffinitySameSite=99639dc8ded799796858c6152de9b898dd67f59f3e6ba69aec76158687b7c137;Path=/;HttpOnly;SameSite=None;Secure;Domain=ala-prod.alertsrp.trafficmanager.net strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/2bc13568-caa8-45a9-9aa9-24181cf7689b + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: 8209C1788BFF47B1AAA93921E92DC9FF Ref B: MAA201060515049 Ref C: 2025-04-08T02:22:53Z' + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -581,21 +625,21 @@ interactions: ParameterSetName: - -n -g -a --reset -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -608,23 +652,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:42 GMT + - Tue, 08 Apr 2025 02:22:56 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 7C29855F8B2E47F991807E9C3D45C3C9 Ref B: MAA201060515047 Ref C: 2025-04-08T02:22:57Z' x-powered-by: - ASP.NET status: @@ -651,21 +699,21 @@ interactions: ParameterSetName: - -n -g -a --reset -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -678,25 +726,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:45 GMT + - Tue, 08 Apr 2025 02:22:58 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/89f882ef-78f6-4cb7-bd39-4b623d5bcb92 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '199' + x-msedge-ref: + - 'Ref A: 0FBF90DCDA004A7F88491466CBC2F2B1 Ref B: MAA201060515047 Ref C: 2025-04-08T02:22:57Z' x-powered-by: - ASP.NET status: @@ -716,21 +768,21 @@ interactions: ParameterSetName: - -n -g -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -743,23 +795,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:47 GMT + - Tue, 08 Apr 2025 02:23:00 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 00F62BEB20714DBEA935D0B32650AFDF Ref B: MAA201060514047 Ref C: 2025-04-08T02:23:00Z' x-powered-by: - ASP.NET status: @@ -788,25 +844,25 @@ interactions: ParameterSetName: - -n -g -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -819,25 +875,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:52 GMT + - Tue, 08 Apr 2025 02:23:06 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/indonesiacentral/e09c39cb-8686-4b30-be7e-3636b19b676a + x-ms-ratelimit-remaining-subscription-global-writes: + - '2998' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '198' + x-msedge-ref: + - 'Ref A: 76FA9B133D5646ABA8F628E0801C7DB5 Ref B: MAA201060514047 Ref C: 2025-04-08T02:23:01Z' x-powered-by: - ASP.NET status: @@ -857,25 +917,25 @@ interactions: ParameterSetName: - -n -g -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -888,23 +948,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:52 GMT + - Tue, 08 Apr 2025 02:23:07 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 56D72095798343E495F07FA73F894196 Ref B: MAA201060514047 Ref C: 2025-04-08T02:23:07Z' x-powered-by: - ASP.NET status: @@ -933,25 +997,25 @@ interactions: ParameterSetName: - -n -g -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -964,25 +1028,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:57 GMT + - Tue, 08 Apr 2025 02:23:13 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/indonesiacentral/56c33484-bd36-45eb-ad7f-abf90a338f93 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2998' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '198' + x-msedge-ref: + - 'Ref A: 3511D7CEA5924DBAAECBA42B33C3F231 Ref B: MAA201060514047 Ref C: 2025-04-08T02:23:09Z' x-powered-by: - ASP.NET status: @@ -1002,25 +1070,25 @@ interactions: ParameterSetName: - -n -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1033,23 +1101,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:58 GMT + - Tue, 08 Apr 2025 02:23:14 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 6E9C243EC5294FE39EF8122043C0B6A7 Ref B: MAA201060515023 Ref C: 2025-04-08T02:23:14Z' x-powered-by: - ASP.NET status: @@ -1069,25 +1141,25 @@ interactions: ParameterSetName: - -n -g -a -w -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1100,23 +1172,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:12:59 GMT + - Tue, 08 Apr 2025 02:23:16 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 1087B2796D3D4145AA7A323DBC20FF60 Ref B: MAA201060516037 Ref C: 2025-04-08T02:23:15Z' x-powered-by: - ASP.NET status: @@ -1145,26 +1221,25 @@ interactions: ParameterSetName: - -n -g -a -w -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\"\ - ,\r\n \"webhookProperties\": {\r\n \"purpose\": \"test\"\ - \r\n }\r\n },\r\n {\r\n \"actionGroupId\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\",\r\n + \ \"webhookProperties\": {\r\n \"purpose\": \"test\"\r\n + \ }\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1177,25 +1252,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:13:03 GMT + - Tue, 08 Apr 2025 02:23:20 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/79dcc96b-06d0-4e81-914c-b8d41431f144 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: 502BACBCB06F4676931F4742534C7FC8 Ref B: MAA201060516037 Ref C: 2025-04-08T02:23:16Z' x-powered-by: - ASP.NET status: @@ -1215,26 +1294,25 @@ interactions: ParameterSetName: - -n -g -a -w --strict -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\"\ - ,\r\n \"webhookProperties\": {\r\n \"purpose\": \"test\"\ - \r\n }\r\n },\r\n {\r\n \"actionGroupId\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\",\r\n + \ \"webhookProperties\": {\r\n \"purpose\": \"test\"\r\n + \ }\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1247,23 +1325,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:13:03 GMT + - Tue, 08 Apr 2025 02:23:21 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4D47DE3711924A83BB8C47D429DDE488 Ref B: MAA201060515009 Ref C: 2025-04-08T02:23:21Z' x-powered-by: - ASP.NET status: @@ -1283,26 +1365,25 @@ interactions: ParameterSetName: - -n -g -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\"\ - ,\r\n \"webhookProperties\": {\r\n \"purpose\": \"test\"\ - \r\n }\r\n },\r\n {\r\n \"actionGroupId\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\",\r\n + \ \"webhookProperties\": {\r\n \"purpose\": \"test\"\r\n + \ }\r\n },\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1315,23 +1396,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:13:05 GMT + - Tue, 08 Apr 2025 02:23:23 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 70FE11632F7A49FABCAEB0787E910ACA Ref B: MAA201060513031 Ref C: 2025-04-08T02:23:23Z' x-powered-by: - ASP.NET status: @@ -1359,23 +1444,23 @@ interactions: ParameterSetName: - -n -g -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1388,25 +1473,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:13:08 GMT + - Tue, 08 Apr 2025 02:23:27 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/indonesiacentral/61a4660f-2cfb-45b2-b973-ab3f4c94763f + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: 61DF7BFE93A645038F9B5143FD31B153 Ref B: MAA201060513031 Ref C: 2025-04-08T02:23:23Z' x-powered-by: - ASP.NET status: @@ -1426,23 +1515,23 @@ interactions: ParameterSetName: - -n -g -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1455,23 +1544,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:13:10 GMT + - Tue, 08 Apr 2025 02:23:30 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: BEDEF65E5F49491AB1E00D8EEE7262F5 Ref B: MAA201060514027 Ref C: 2025-04-08T02:23:28Z' x-powered-by: - ASP.NET status: @@ -1499,23 +1592,23 @@ interactions: ParameterSetName: - -n -g -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1528,25 +1621,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:13:14 GMT + - Tue, 08 Apr 2025 02:23:33 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/ea678291-dea6-42c6-bb85-8c20c922807f + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: 0B519D06096C4C70BD5D1144D1E12AB5 Ref B: MAA201060514027 Ref C: 2025-04-08T02:23:31Z' x-powered-by: - ASP.NET status: @@ -1566,23 +1663,23 @@ interactions: ParameterSetName: - -n -g -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\"\ - ,\r\n \"webhookProperties\": {}\r\n },\r\n {\r\n \ - \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000003\",\r\n + \ \"webhookProperties\": {}\r\n },\r\n {\r\n \"actionGroupId\": + \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000004\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1595,23 +1692,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:13:15 GMT + - Tue, 08 Apr 2025 02:23:35 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 01A8E8946E4F4FF3BD8FAD43F4F084EF Ref B: MAA201060513037 Ref C: 2025-04-08T02:23:34Z' x-powered-by: - ASP.NET status: @@ -1637,19 +1738,19 @@ interactions: ParameterSetName: - -n -g -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\"\ - ,\r\n \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : []\r\n },\r\n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005\",\r\n + \ \"name\": \"clialert000005\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": []\r\n + \ },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1662,25 +1763,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:13:17 GMT + - Tue, 08 Apr 2025 02:23:37 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/78cc602b-77f4-4d4f-b0fb-074254ebd9ac + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: E57D17B37A404D059638E01383F8A9E9 Ref B: MAA201060513037 Ref C: 2025-04-08T02:23:35Z' x-powered-by: - ASP.NET status: @@ -1702,7 +1807,7 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: @@ -1718,21 +1823,27 @@ interactions: content-length: - '0' date: - - Wed, 18 Oct 2023 07:13:23 GMT + - Tue, 08 Apr 2025 02:23:41 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/28c93544-55d8-40b1-ba41-1fd980353eff x-ms-ratelimit-remaining-subscription-deletes: - - '14999' + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: CED9DF18A1DF44E682EA83F5B8EF20B9 Ref B: MAA201060515053 Ref C: 2025-04-08T02:23:37Z' x-powered-by: - ASP.NET status: @@ -1752,7 +1863,7 @@ interactions: ParameterSetName: - -n -g User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000005?api-version=2020-10-01 response: @@ -1768,17 +1879,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:13:24 GMT + - Tue, 08 Apr 2025 02:23:42 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-failure-cause: - gateway + x-msedge-ref: + - 'Ref A: 38CEB165D1B64A8A98C317382DB9A14A Ref B: MAA201060513045 Ref C: 2025-04-08T02:23:42Z' status: code: 404 message: Not Found diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_activity_log_alert_update_scope.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_activity_log_alert_update_scope.yaml index f9e9e36e270..32ec8d7c4af 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_activity_log_alert_update_scope.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_activity_log_alert_update_scope.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -n -o User-Agent: - - AZURECLI/2.53.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_activity_log_alert_update_scope","date":"2023-10-18T06:56:50Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_activity_log_alert_update_scope","date":"2025-04-08T02:23:47Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,17 +27,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:56:54 GMT + - Tue, 08 Apr 2025 02:23:51 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 2457560FABF84A939ACE05BA1F3F02A3 Ref B: MAA201060516027 Ref C: 2025-04-08T02:23:52Z' status: code: 200 message: OK @@ -55,12 +59,12 @@ interactions: ParameterSetName: - -n -g -o User-Agent: - - AZURECLI/2.53.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_activity_log_alert_update_scope","date":"2023-10-18T06:56:50Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_activity_log_alert_update_scope","date":"2025-04-08T02:23:47Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -69,17 +73,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:56:56 GMT + - Tue, 08 Apr 2025 02:23:53 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 786FC60F1D974FD9B1FDB2984BEDF075 Ref B: MAA201060514045 Ref C: 2025-04-08T02:23:53Z' status: code: 200 message: OK @@ -97,7 +105,7 @@ interactions: ParameterSetName: - -n -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: @@ -113,17 +121,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:56:57 GMT + - Tue, 08 Apr 2025 02:23:53 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-failure-cause: - gateway + x-msedge-ref: + - 'Ref A: ED3A87D23B284290B5E7DE3FACFE007A Ref B: MAA201060513037 Ref C: 2025-04-08T02:23:53Z' status: code: 404 message: Not Found @@ -147,19 +159,19 @@ interactions: ParameterSetName: - -n -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : []\r\n },\r\n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": []\r\n + \ },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -172,21 +184,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:05 GMT + - Tue, 08 Apr 2025 02:23:57 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/0378d207-e86d-4441-b49a-18b3777f56e4 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: E025C523E48545A4A782DE68779E8EA8 Ref B: MAA201060514035 Ref C: 2025-04-08T02:23:54Z' x-powered-by: - ASP.NET status: @@ -206,19 +224,19 @@ interactions: ParameterSetName: - -n -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : []\r\n },\r\n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": []\r\n + \ },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -231,23 +249,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:13 GMT + - Tue, 08 Apr 2025 02:24:06 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: BE36191C5346459995F128BA7B96E354 Ref B: MAA201060516021 Ref C: 2025-04-08T02:24:05Z' x-powered-by: - ASP.NET status: @@ -267,19 +289,19 @@ interactions: ParameterSetName: - -n -g -c User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"category\",\r\n \"equals\": \"ServiceHealth\"\ - \r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\"\ - : []\r\n },\r\n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"ServiceHealth\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": []\r\n + \ },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -292,23 +314,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:14 GMT + - Tue, 08 Apr 2025 02:24:10 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E0F271E893C9469AA4FCB14C985E8E25 Ref B: MAA201060515019 Ref C: 2025-04-08T02:24:08Z' x-powered-by: - ASP.NET status: @@ -334,20 +360,20 @@ interactions: ParameterSetName: - -n -g -c User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n \ - \ },\r\n {\r\n \"field\": \"category\",\r\n \"equals\"\ - : \"Security\"\r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n\ - \ \"actionGroups\": []\r\n },\r\n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n + \ \"field\": \"category\",\r\n \"equals\": \"Security\"\r\n + \ }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": + []\r\n },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -360,25 +386,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:15 GMT + - Tue, 08 Apr 2025 02:24:14 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/malaysiasouth/b23b42c3-32f2-4569-8d62-bcfcf27a7408 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1198' + - '199' + x-msedge-ref: + - 'Ref A: 623D2A089B1649AC8F82B6CE99A6B1B2 Ref B: MAA201060515019 Ref C: 2025-04-08T02:24:10Z' x-powered-by: - ASP.NET status: @@ -398,37 +428,41 @@ interactions: ParameterSetName: - -n --query -o User-Agent: - - AZURECLI/2.53.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_activity_log_alert_update_scope","date":"2023-10-18T06:56:50Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_activity_log_alert_update_scope","date":"2025-04-08T02:23:47Z","module":"monitor","DateCreated":"2025-04-08T02:23:53Z","Creator":"v-ruih@microsoft.com"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '391' + - '461' content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:16 GMT + - Tue, 08 Apr 2025 02:24:16 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 8B52EE42CA374F6394E02A56A5255231 Ref B: MAA201060515029 Ref C: 2025-04-08T02:24:15Z' status: code: 200 message: OK - request: body: '{"location": "Global", "properties": {"enabled": true, "groupShortName": - "clialertpejn"}}' + "clialertpwhs"}}' headers: Accept: - application/json @@ -445,19 +479,19 @@ interactions: ParameterSetName: - -n -g --query -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/actionGroups/clialert000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/actionGroups/clialert000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002","type":"Microsoft.Insights/ActionGroups","name":"clialert000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"clialertpejn","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002","type":"Microsoft.Insights/ActionGroups","name":"clialert000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"clialertpwhs","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: @@ -465,25 +499,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:22 GMT + - Tue, 08 Apr 2025 02:24:20 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 92b97224-6d83-11ee-a2b3-acde48001122 + - 91cb74a2-1420-11f0-83b6-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/22b92ffd-67e2-4e2f-b5df-2c701bfe49fa x-ms-ratelimit-remaining-subscription-resource-requests: - '24' + x-msedge-ref: + - 'Ref A: FB03221F2BAD47BD98EF68EE126B82FD Ref B: MAA201060515027 Ref C: 2025-04-08T02:24:17Z' x-servedby: - - EUS2ONEIM000005 + - WUS2ONEIM000008 status: code: 201 message: Created @@ -501,20 +539,20 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n \ - \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \ - \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n \ - \ },\r\n {\r\n \"field\": \"category\",\r\n \"equals\"\ - : \"Security\"\r\n }\r\n ]\r\n },\r\n \"actions\": {\r\n\ - \ \"actionGroups\": []\r\n },\r\n \"enabled\": true\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n + \ \"field\": \"category\",\r\n \"equals\": \"Security\"\r\n + \ }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": + []\r\n },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -527,23 +565,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:23 GMT + - Tue, 08 Apr 2025 02:24:21 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 82522F476D4B472C9D8CE019A06F662C Ref B: MAA201060513023 Ref C: 2025-04-08T02:24:21Z' x-powered-by: - ASP.NET status: @@ -552,8 +594,8 @@ interactions: - request: body: '{"location": "Global", "properties": {"actions": {"actionGroups": []}, "condition": {"allOf": [{"equals": "Error", "field": "level"}, {"equals": "Security", - "field": "category"}]}, "enabled": true, "scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001"]}}' + "field": "category"}]}, "enabled": true, "scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001", + "/subscriptions/00000000-0000-0000-0000-000000000000"]}}' headers: Accept: - application/json @@ -570,22 +612,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\",\r\n\ - \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\"\ - \r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n \ - \ },\r\n {\r\n \"field\": \"category\",\r\n \ - \ \"equals\": \"Security\"\r\n }\r\n ]\r\n },\r\n \"actions\"\ - : {\r\n \"actionGroups\": []\r\n },\r\n \"enabled\": true\r\n \ - \ }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\",\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n + \ \"field\": \"category\",\r\n \"equals\": \"Security\"\r\n + \ }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": + []\r\n },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -598,25 +639,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:24 GMT + - Tue, 08 Apr 2025 02:24:22 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/12283da2-979b-483a-8fae-db9045bae84a + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: A4FA40B0A3A944C7A4A491B6BA043874 Ref B: MAA201060513023 Ref C: 2025-04-08T02:24:21Z' x-powered-by: - ASP.NET status: @@ -636,22 +681,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\",\r\n\ - \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\"\ - \r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n \ - \ },\r\n {\r\n \"field\": \"category\",\r\n \ - \ \"equals\": \"Security\"\r\n }\r\n ]\r\n },\r\n \"actions\"\ - : {\r\n \"actionGroups\": []\r\n },\r\n \"enabled\": true\r\n \ - \ }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\",\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n + \ \"field\": \"category\",\r\n \"equals\": \"Security\"\r\n + \ }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": + []\r\n },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -664,23 +708,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:25 GMT + - Tue, 08 Apr 2025 02:24:25 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3B78C28724D14A95A9EB69BF0BEC2078 Ref B: MAA201060515051 Ref C: 2025-04-08T02:24:24Z' x-powered-by: - ASP.NET status: @@ -689,9 +737,9 @@ interactions: - request: body: '{"location": "Global", "properties": {"actions": {"actionGroups": []}, "condition": {"allOf": [{"equals": "Error", "field": "level"}, {"equals": "Security", - "field": "category"}]}, "enabled": true, "scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000", + "field": "category"}]}, "enabled": true, "scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002"]}}' + "/subscriptions/00000000-0000-0000-0000-000000000000"]}}' headers: Accept: - application/json @@ -708,23 +756,22 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\",\r\n\ - \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\"\ - ,\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\"\ - \r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n \ - \ },\r\n {\r\n \"field\": \"category\",\r\n \ - \ \"equals\": \"Security\"\r\n }\r\n ]\r\n },\r\n \"actions\"\ - : {\r\n \"actionGroups\": []\r\n },\r\n \"enabled\": true\r\n \ - \ }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\",\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\",\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n + \ \"field\": \"category\",\r\n \"equals\": \"Security\"\r\n + \ }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": + []\r\n },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -737,25 +784,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:26 GMT + - Tue, 08 Apr 2025 02:24:29 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/malaysiasouth/a79b742b-8ec8-423b-b5e2-02867c1c80f6 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: 7B2EDB962EA34A90BE17FF84ACB9B137 Ref B: MAA201060515051 Ref C: 2025-04-08T02:24:25Z' x-powered-by: - ASP.NET status: @@ -775,23 +826,22 @@ interactions: ParameterSetName: - -n -g -s --reset User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\",\r\n\ - \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\"\ - ,\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\"\ - \r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n \ - \ },\r\n {\r\n \"field\": \"category\",\r\n \ - \ \"equals\": \"Security\"\r\n }\r\n ]\r\n },\r\n \"actions\"\ - : {\r\n \"actionGroups\": []\r\n },\r\n \"enabled\": true\r\n \ - \ }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\",\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\",\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n + \ \"field\": \"category\",\r\n \"equals\": \"Security\"\r\n + \ }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": + []\r\n },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -804,23 +854,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:28 GMT + - Tue, 08 Apr 2025 02:24:29 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 5BFC85B049FF47D89820F091C91B5D73 Ref B: MAA201060513017 Ref C: 2025-04-08T02:24:29Z' x-powered-by: - ASP.NET status: @@ -846,21 +900,20 @@ interactions: ParameterSetName: - -n -g -s --reset User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\"\ - \r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n \ - \ },\r\n {\r\n \"field\": \"category\",\r\n \ - \ \"equals\": \"Security\"\r\n }\r\n ]\r\n },\r\n \"actions\"\ - : {\r\n \"actionGroups\": []\r\n },\r\n \"enabled\": true\r\n \ - \ }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\"\r\n + \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n + \ \"field\": \"category\",\r\n \"equals\": \"Security\"\r\n + \ }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": + []\r\n },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -873,25 +926,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:30 GMT + - Tue, 08 Apr 2025 02:24:32 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/3bab9d6d-f43c-44ea-bb17-a8bb7f98257c + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: 914468B035E64CA298E744A8F96B50C6 Ref B: MAA201060513017 Ref C: 2025-04-08T02:24:30Z' x-powered-by: - ASP.NET status: @@ -911,21 +968,20 @@ interactions: ParameterSetName: - -n -g -s --reset User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\"\ - \r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n \ - \ },\r\n {\r\n \"field\": \"category\",\r\n \ - \ \"equals\": \"Security\"\r\n }\r\n ]\r\n },\r\n \"actions\"\ - : {\r\n \"actionGroups\": []\r\n },\r\n \"enabled\": true\r\n \ - \ }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\"\r\n + \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n + \ \"field\": \"category\",\r\n \"equals\": \"Security\"\r\n + \ }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": + []\r\n },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -938,23 +994,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:32 GMT + - Tue, 08 Apr 2025 02:24:33 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 87B40068384545BFAD57F4B5A12207C4 Ref B: MAA201060516053 Ref C: 2025-04-08T02:24:33Z' x-powered-by: - ASP.NET status: @@ -963,9 +1023,9 @@ interactions: - request: body: '{"location": "Global", "properties": {"actions": {"actionGroups": []}, "condition": {"allOf": [{"equals": "Error", "field": "level"}, {"equals": "Security", - "field": "category"}]}, "enabled": true, "scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000", + "field": "category"}]}, "enabled": true, "scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002", "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002"]}}' + "/subscriptions/00000000-0000-0000-0000-000000000000"]}}' headers: Accept: - application/json @@ -982,23 +1042,22 @@ interactions: ParameterSetName: - -n -g -s --reset User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\",\r\n\ - \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\"\ - ,\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\"\ - \r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n \ - \ },\r\n {\r\n \"field\": \"category\",\r\n \ - \ \"equals\": \"Security\"\r\n }\r\n ]\r\n },\r\n \"actions\"\ - : {\r\n \"actionGroups\": []\r\n },\r\n \"enabled\": true\r\n \ - \ }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\",\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\",\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n + \ \"field\": \"category\",\r\n \"equals\": \"Security\"\r\n + \ }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": + []\r\n },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1011,25 +1070,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:33 GMT + - Tue, 08 Apr 2025 02:24:37 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/7af363f5-3739-40a9-a70e-9e4ed7359d9b + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: 33BDCA898F8C4B38BE5BB45AE055ACA1 Ref B: MAA201060516053 Ref C: 2025-04-08T02:24:34Z' x-powered-by: - ASP.NET status: @@ -1049,23 +1112,22 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000\",\r\n\ - \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\"\ - ,\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\"\ - \r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n \ - \ },\r\n {\r\n \"field\": \"category\",\r\n \ - \ \"equals\": \"Security\"\r\n }\r\n ]\r\n },\r\n \"actions\"\ - : {\r\n \"actionGroups\": []\r\n },\r\n \"enabled\": true\r\n \ - \ }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\",\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\",\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000\"\r\n ],\r\n + \ \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n + \ \"field\": \"category\",\r\n \"equals\": \"Security\"\r\n + \ }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": + []\r\n },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1078,23 +1140,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:35 GMT + - Tue, 08 Apr 2025 02:24:38 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2020-10-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 2AE1EDA6A5074C05BAF35F34736BB564 Ref B: MAA201060513031 Ref C: 2025-04-08T02:24:38Z' x-powered-by: - ASP.NET status: @@ -1103,8 +1169,8 @@ interactions: - request: body: '{"location": "Global", "properties": {"actions": {"actionGroups": []}, "condition": {"allOf": [{"equals": "Error", "field": "level"}, {"equals": "Security", - "field": "category"}]}, "enabled": true, "scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001", - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002"]}}' + "field": "category"}]}, "enabled": true, "scopes": ["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001"]}}' headers: Accept: - application/json @@ -1121,22 +1187,21 @@ interactions: ParameterSetName: - -n -g -s User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\"\ - ,\r\n \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\"\ - ,\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\"\ - \r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n \ - \ },\r\n {\r\n \"field\": \"category\",\r\n \ - \ \"equals\": \"Security\"\r\n }\r\n ]\r\n },\r\n \"actions\"\ - : {\r\n \"actionGroups\": []\r\n },\r\n \"enabled\": true\r\n \ - \ }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000002\",\r\n + \ \"name\": \"clialert000002\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/clialert000002\",\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\"\r\n + \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"level\",\r\n \"equals\": \"Error\"\r\n },\r\n {\r\n + \ \"field\": \"category\",\r\n \"equals\": \"Security\"\r\n + \ }\r\n ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": + []\r\n },\r\n \"enabled\": true\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -1149,25 +1214,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 06:57:36 GMT + - Tue, 08 Apr 2025 02:24:44 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/indonesiacentral/40508442-bff1-4ef6-8621-879ead2b3e5d + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: DDD882E99D7C43ACB54BF22A08D7B9B9 Ref B: MAA201060513031 Ref C: 2025-04-08T02:24:39Z' x-powered-by: - ASP.NET status: diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_public_ip_metric_alerts_scenario.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_public_ip_metric_alerts_scenario.yaml index e06ef09141e..d40047a60ef 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_public_ip_metric_alerts_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_public_ip_metric_alerts_scenario.yaml @@ -13,37 +13,41 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.53.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_metric_alert_clone000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001","name":"cli_test_metric_alert_clone000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_clone_public_ip_metric_alerts_scenario","date":"2023-10-20T09:15:02Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001","name":"cli_test_metric_alert_clone000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_clone_public_ip_metric_alerts_scenario","date":"2025-04-08T02:23:06Z","module":"monitor","DateCreated":"2025-04-08T02:23:10Z","Creator":"v-ruih@microsoft.com"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '424' + - '494' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:07 GMT + - Tue, 08 Apr 2025 02:23:10 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B870E10E2E3D43D6B1AB4398A5C5C04A Ref B: MAA201060514047 Ref C: 2025-04-08T02:23:10Z' status: code: 200 message: OK - request: body: '{"location": "westus", "properties": {"idleTimeoutInMinutes": 4, "publicIPAllocationMethod": - "Dynamic"}}' + "Static"}, "sku": {"name": "Standard"}}' headers: Accept: - application/json @@ -54,46 +58,51 @@ interactions: Connection: - keep-alive Content-Length: - - '104' + - '132' Content-Type: - application/json ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1?api-version=2022-11-01 response: body: - string: '{"name":"ip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1","etag":"W/\"c47dc0d5-24a4-4c40-8f13-9c6034c17c96\"","location":"westus","properties":{"provisioningState":"Updating","resourceGuid":"3778d8c3-7b59-4a6a-af1a-262cac745e28","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[]},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}}' + string: '{"name":"ip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1","etag":"W/\"b9f4efce-4514-48fc-a8fc-3a362cbfc498\"","location":"westus","properties":{"provisioningState":"Updating","resourceGuid":"42c64e85-9808-48a8-b36a-7d431d0067cf","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}' headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7284148f-aac9-4736-a23d-72e28d9232ca?api-version=2022-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51e70f07-c3f9-44f5-a81d-f67bb47d73e6?api-version=2022-11-01&t=638796757962522861&c=MIIHyTCCBrGgAwIBAgITfAbJ3Rxnl8AsbhoPLgAABsndHDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUwMjEwMTA1MzE0WhcNMjYwMjA1MTA1MzE0WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALkI00YZ9agKshzoSHPjM0gcMRHhtLt0-QmdKHbO-KVtVg6r0xbJg-o2Y6k9KwlEqaIhzV8Z5Yg5wJhXmQjNQED2LBYzFMNByQt7__1fAtWjmVYutb0686tkPJz-vG1v_Kdk7GlgWMAE_UdD5-2xHhbk7gutwmqp6ynCiFxak2T644LhD5wm_pC_-_jsydXq_58X6DvsG0_8kE2bRtUcWcO0eXlv4II_jU9LiIqNhKDIg0iPJTEvnWt-a4UuYAki_iQNBAcx4xyILHXxyOgtykR5Xq-A4CB3agsLau2x3m5i3o8E6_36YtfFGt_QhvFI1F1IdU7TEdIe4si-GyfBt9kCAwEAAaOCBLYwggSyMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBRu8LdKu7gyceGH1Ku55Xe1RLw3ODAOBgNVHQ8BAf8EBAMCBaAwQAYDVR0RBDkwN4I1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAH0qMfogjmdZ3y7E8ebYrKz0MOtbR2vzAedRsXl1oUxO3grAy4ciwaE7-KKO3JcLFp9hAQ59jExU9kW3XUQkdrSOU0udSMVrc-6L0JHRN8xcocMACiq4aLiJZx1NguWVpshDTmteDrVvRY6EQy6fQY9nC6W2pMya5xZ9ASxcSlDfiQd8IDwlsANELBW6rltNmC5yLrbtC_wjFx5NBJiQ8dqrIqdnl0fNPiucd-_qvqOdVGgkB8wEDrg9Ps_iJOof_Akt1Ld4B9GI_XumdT1CAl-4ZCiacgoS9V6WsPDhHW5pJHnOdiXHOLRfImwnSJBZ92ubghbYfh8Qf0ovzdAYvWw&s=V2bSsOhFtF2P_NM1Vy-xPzoqFxiXPSarQBRtSKnrLd9Xu1VFqmDChVHrNVZpOhCZjcjHT11pFRMRvj41XkfR8aCatSojt4nHhZOZEWik6nAawyDiOdE6NdkB4UtyEZUUJO73fxrUfZY34lyN8fbVnArWncGgOuHGoAQKdM021GCksSdlOigfagQ0xMp35O1jXH9Aj6Wtj1TvOdA62Stg3awluH14epwfmvLwTrVhASvrx0oAqRoy7aZnkPFl1_DmtsiPomxUMArN7ZJRWp6Dp7Lbi31nr9-QZJJNCTbufGgY723sMORgLcFp7Milq6HndyoGWk-2UGfvCXWkN4_1dw&h=DHnnNUzgvLABV1YG373nXfWsJXbeyi9qi7VSwc_tBWY cache-control: - no-cache content-length: - - '536' + - '598' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:14 GMT + - Tue, 08 Apr 2025 02:23:15 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-arm-service-request-id: - - d2d9aab0-4e8e-4057-b37c-fb6cfbf20e16 + - 8430736a-5e7e-4616-a916-63c92ef0326e + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/indonesiacentral/6cf6b63c-2249-4e16-bec0-ad61fed66441 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2998' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '198' + x-msedge-ref: + - 'Ref A: 9B99C54CEF0448859D3B2C0E859FB560 Ref B: MAA201060514009 Ref C: 2025-04-08T02:23:12Z' status: code: 201 message: Created @@ -111,9 +120,9 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/7284148f-aac9-4736-a23d-72e28d9232ca?api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/51e70f07-c3f9-44f5-a81d-f67bb47d73e6?api-version=2022-11-01&t=638796757962522861&c=MIIHyTCCBrGgAwIBAgITfAbJ3Rxnl8AsbhoPLgAABsndHDANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDUwHhcNMjUwMjEwMTA1MzE0WhcNMjYwMjA1MTA1MzE0WjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALkI00YZ9agKshzoSHPjM0gcMRHhtLt0-QmdKHbO-KVtVg6r0xbJg-o2Y6k9KwlEqaIhzV8Z5Yg5wJhXmQjNQED2LBYzFMNByQt7__1fAtWjmVYutb0686tkPJz-vG1v_Kdk7GlgWMAE_UdD5-2xHhbk7gutwmqp6ynCiFxak2T644LhD5wm_pC_-_jsydXq_58X6DvsG0_8kE2bRtUcWcO0eXlv4II_jU9LiIqNhKDIg0iPJTEvnWt-a4UuYAki_iQNBAcx4xyILHXxyOgtykR5Xq-A4CB3agsLau2x3m5i3o8E6_36YtfFGt_QhvFI1F1IdU7TEdIe4si-GyfBt9kCAwEAAaOCBLYwggSyMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFggvX2K4Py0SACAWQCAQowggHLBggrBgEFBQcBAQSCAb0wggG5MGMGCCsGAQUFBzAChldodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MFMGCCsGAQUFBzAChkdodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9DTzFQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDA1LmNydDBTBggrBgEFBQcwAoZHaHR0cDovL2NybDMuYW1lLmdibC9haWEvQ08xUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwNS5jcnQwUwYIKwYBBQUHMAKGR2h0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0NPMVBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3J0MB0GA1UdDgQWBBRu8LdKu7gyceGH1Ku55Xe1RLw3ODAOBgNVHQ8BAf8EBAMCBaAwQAYDVR0RBDkwN4I1YXN5bmNvcGVyYXRpb25zaWduaW5nY2VydGlmaWNhdGUubWFuYWdlbWVudC5henVyZS5jb20wggEmBgNVHR8EggEdMIIBGTCCARWgggERoIIBDYY_aHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JshjFodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDUuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBR61hmFKHlscXYeYPjzS--iBUIWHTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAH0qMfogjmdZ3y7E8ebYrKz0MOtbR2vzAedRsXl1oUxO3grAy4ciwaE7-KKO3JcLFp9hAQ59jExU9kW3XUQkdrSOU0udSMVrc-6L0JHRN8xcocMACiq4aLiJZx1NguWVpshDTmteDrVvRY6EQy6fQY9nC6W2pMya5xZ9ASxcSlDfiQd8IDwlsANELBW6rltNmC5yLrbtC_wjFx5NBJiQ8dqrIqdnl0fNPiucd-_qvqOdVGgkB8wEDrg9Ps_iJOof_Akt1Ld4B9GI_XumdT1CAl-4ZCiacgoS9V6WsPDhHW5pJHnOdiXHOLRfImwnSJBZ92ubghbYfh8Qf0ovzdAYvWw&s=V2bSsOhFtF2P_NM1Vy-xPzoqFxiXPSarQBRtSKnrLd9Xu1VFqmDChVHrNVZpOhCZjcjHT11pFRMRvj41XkfR8aCatSojt4nHhZOZEWik6nAawyDiOdE6NdkB4UtyEZUUJO73fxrUfZY34lyN8fbVnArWncGgOuHGoAQKdM021GCksSdlOigfagQ0xMp35O1jXH9Aj6Wtj1TvOdA62Stg3awluH14epwfmvLwTrVhASvrx0oAqRoy7aZnkPFl1_DmtsiPomxUMArN7ZJRWp6Dp7Lbi31nr9-QZJJNCTbufGgY723sMORgLcFp7Milq6HndyoGWk-2UGfvCXWkN4_1dw&h=DHnnNUzgvLABV1YG373nXfWsJXbeyi9qi7VSwc_tBWY response: body: string: '{"status":"Succeeded"}' @@ -125,24 +134,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:14 GMT + - Tue, 08 Apr 2025 02:23:16 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 1208b3e0-c9c3-49ee-b658-967e06a1a90f + - aaacebc7-20ad-4c52-b8b4-b4df09572a7d + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/indonesiacentral/a40064cf-97fd-4350-b91a-53da13019477 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 083F3B925EB84FA6805A148E61FC6321 Ref B: MAA201060514009 Ref C: 2025-04-08T02:23:16Z' status: code: 200 message: OK @@ -160,40 +170,39 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1?api-version=2022-11-01 response: body: - string: '{"name":"ip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1","etag":"W/\"faacab56-6743-486e-a3ee-abf64fb57c88\"","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"3778d8c3-7b59-4a6a-af1a-262cac745e28","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[]},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}}' + string: '{"name":"ip1","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1","etag":"W/\"e8e99c66-d090-473b-b9a7-25b6537230fe\"","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"42c64e85-9808-48a8-b36a-7d431d0067cf","ipAddress":"172.184.104.24","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}' headers: cache-control: - no-cache content-length: - - '537' + - '628' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:15 GMT + - Tue, 08 Apr 2025 02:23:17 GMT etag: - - W/"faacab56-6743-486e-a3ee-abf64fb57c88" + - W/"e8e99c66-d090-473b-b9a7-25b6537230fe" expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 4b91890a-3555-4a74-b2f2-a3423d81f842 + - 6e439e89-0c94-4eba-a421-fb1e768aed7f + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + x-msedge-ref: + - 'Ref A: 7887B821172144FBB450EAF0C4413D52 Ref B: MAA201060514009 Ref C: 2025-04-08T02:23:17Z' status: code: 200 message: OK @@ -211,37 +220,41 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.53.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_metric_alert_clone000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001","name":"cli_test_metric_alert_clone000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_clone_public_ip_metric_alerts_scenario","date":"2023-10-20T09:15:02Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001","name":"cli_test_metric_alert_clone000001","type":"Microsoft.Resources/resourceGroups","location":"westus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_clone_public_ip_metric_alerts_scenario","date":"2025-04-08T02:23:06Z","module":"monitor","DateCreated":"2025-04-08T02:23:10Z","Creator":"v-ruih@microsoft.com"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '424' + - '494' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:15 GMT + - Tue, 08 Apr 2025 02:23:18 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3748' + x-msedge-ref: + - 'Ref A: 51DD235D06644BFC81D76122152519F1 Ref B: MAA201060514023 Ref C: 2025-04-08T02:23:18Z' status: code: 200 message: OK - request: body: '{"location": "westus", "properties": {"idleTimeoutInMinutes": 4, "publicIPAllocationMethod": - "Dynamic"}}' + "Static"}, "sku": {"name": "Standard"}}' headers: Accept: - application/json @@ -252,46 +265,51 @@ interactions: Connection: - keep-alive Content-Length: - - '104' + - '132' Content-Type: - application/json ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2?api-version=2022-11-01 response: body: - string: '{"name":"ip2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2","etag":"W/\"85546e33-d73c-4e69-81ab-f2aa1efb7412\"","location":"westus","properties":{"provisioningState":"Updating","resourceGuid":"ad3dea1b-445c-4875-8672-c2f0f6921129","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[]},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}}' + string: '{"name":"ip2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2","etag":"W/\"fa561cba-dcf6-488c-96e9-2004e5a1a3fe\"","location":"westus","properties":{"provisioningState":"Updating","resourceGuid":"1553726b-fdb2-4a05-9a4b-514f07e6b901","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}' headers: azure-asyncnotification: - Enabled azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a6daeff4-f1b9-44a0-a435-84df2c40d0aa?api-version=2022-11-01 + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bae9447e-59cd-4612-a8b7-c6fc78a3fa5e?api-version=2022-11-01&t=638796758023908113&c=MIIHpTCCBo2gAwIBAgITfwTbn828Ducmmj24MgAEBNufzTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjUwMTI1MTI1MTUzWhcNMjUwNzI0MTI1MTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL20TJQJbhV5Jrwzn-fiGrag_COjmaTwDy9Ir0oe1CLIfiJ9ageBVfcEmW-k5bUVL3eg6B8mQTEYE-FJDVVZ4jbJ9Qw8REpm2kBASDRwoItVVD_HBpJf1VhdViEPJPMDvLg0mAmde0X2m3HVEO6Y7eggJ9iL31DDv9PF-Xvn6x9xlWvO3_OCJReOoV_HCTDyzds4Pq9OySlnAGAozKYzOumbcVPz_WEMc_vwW80fjQLmdihJgp6_15qlnMdx48MQhVGT3y4gdbknMQJghyzTFcsASVncSqtmz8nAx5qT9dZ63iaF6E7Fbx76fnF4lx5K72ANX5cjlfVOig5jzgf8RPkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBQp8DW_okjTMbIBWANCvQr_FrvzazAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAA5sOyKXcQwQQAVKz9J8GIjVymZkoHVSft4TqdgNxSdoIAYkk_tYdx_dEZChJfSvIfzhzAb8k57EHRKNwKtP752SSUr0Q0oB60Y3Fq7il1fMKFTbVk9ZMTyOoo3hJmRwJaisv9rK2UVHWvwD2iUKD0IK_tHwy3m6bqbGDVKaRn1K9UYM39wEvEdy-k8J2z3Olfn6yYpcrVBHWzDzSy7TVdgUzaa0IZ670aJGPrNVYMvsCepP2_T_FdHVk4LoK9K4_0-GkZbvBLZPQO6FYgttg78s6Nn34TUcXWeTeeXArlkf48rbeL5fDY_CJyKYXLv3arwG7gUdcU5T8MGHeLLzcyo&s=f74LVjECu6C7ZZ-Lull2yzQijr_Yo0rirMCPjCZx38IHKE8wOq58j-3V6aRXRahzHF9ZU8ikfU9BsaGPwXlL2owugRWdgb5_6JjG9R7iTEUeQFOEJYR4vQrtOcoRwV7NmuzqJLv9i2Jdzpw8FZhsRFWyA9tbJPtvQsPSfxY6sDyXQIyNOWdHtoawscBgkUlgZSyYP4kWmG7c_exee1bLyXkxiPbOC4MFo6iZj9KHYZpQfKbpqJHEW1mKHCuV73zTeGnctz8ussEJq_3eny4lbo-5vqPEs4S5b600cWFlhmCUSrD0AGO0yf8bTJ5OtxWy6NQwpoohnzLVPooM4K1hUg&h=77b4FYAfUNed57T2grHIPcd2INgvY6b8KOO7EQzBe8o cache-control: - no-cache content-length: - - '536' + - '598' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:21 GMT + - Tue, 08 Apr 2025 02:23:21 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 8b498965-32a0-4855-8da8-e0b5c77eba0b + - e0fb053e-50b9-4957-b3f6-d89a2d4afc11 + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/c4f14753-337c-4964-8fa0-07044b0ef480 + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: F8AE6FED7ADA439FB461A69EEAA0F157 Ref B: MAA201060516031 Ref C: 2025-04-08T02:23:19Z' status: code: 201 message: Created @@ -309,9 +327,9 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/a6daeff4-f1b9-44a0-a435-84df2c40d0aa?api-version=2022-11-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Network/locations/westus/operations/bae9447e-59cd-4612-a8b7-c6fc78a3fa5e?api-version=2022-11-01&t=638796758023908113&c=MIIHpTCCBo2gAwIBAgITfwTbn828Ducmmj24MgAEBNufzTANBgkqhkiG9w0BAQsFADBEMRMwEQYKCZImiZPyLGQBGRYDR0JMMRMwEQYKCZImiZPyLGQBGRYDQU1FMRgwFgYDVQQDEw9BTUUgSW5mcmEgQ0EgMDIwHhcNMjUwMTI1MTI1MTUzWhcNMjUwNzI0MTI1MTUzWjBAMT4wPAYDVQQDEzVhc3luY29wZXJhdGlvbnNpZ25pbmdjZXJ0aWZpY2F0ZS5tYW5hZ2VtZW50LmF6dXJlLmNvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL20TJQJbhV5Jrwzn-fiGrag_COjmaTwDy9Ir0oe1CLIfiJ9ageBVfcEmW-k5bUVL3eg6B8mQTEYE-FJDVVZ4jbJ9Qw8REpm2kBASDRwoItVVD_HBpJf1VhdViEPJPMDvLg0mAmde0X2m3HVEO6Y7eggJ9iL31DDv9PF-Xvn6x9xlWvO3_OCJReOoV_HCTDyzds4Pq9OySlnAGAozKYzOumbcVPz_WEMc_vwW80fjQLmdihJgp6_15qlnMdx48MQhVGT3y4gdbknMQJghyzTFcsASVncSqtmz8nAx5qT9dZ63iaF6E7Fbx76fnF4lx5K72ANX5cjlfVOig5jzgf8RPkCAwEAAaOCBJIwggSOMCcGCSsGAQQBgjcVCgQaMBgwCgYIKwYBBQUHAwEwCgYIKwYBBQUHAwIwPQYJKwYBBAGCNxUHBDAwLgYmKwYBBAGCNxUIhpDjDYTVtHiE8Ys-hZvdFs6dEoFghfmRS4WsmTQCAWQCAQcwggHaBggrBgEFBQcBAQSCAcwwggHIMGYGCCsGAQUFBzAChlpodHRwOi8vY3JsLm1pY3Jvc29mdC5jb20vcGtpaW5mcmEvQ2VydHMvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmwxLmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MFYGCCsGAQUFBzAChkpodHRwOi8vY3JsMi5hbWUuZ2JsL2FpYS9CTDJQS0lJTlRDQTAxLkFNRS5HQkxfQU1FJTIwSW5mcmElMjBDQSUyMDAyKDQpLmNydDBWBggrBgEFBQcwAoZKaHR0cDovL2NybDMuYW1lLmdibC9haWEvQkwyUEtJSU5UQ0EwMS5BTUUuR0JMX0FNRSUyMEluZnJhJTIwQ0ElMjAwMig0KS5jcnQwVgYIKwYBBQUHMAKGSmh0dHA6Ly9jcmw0LmFtZS5nYmwvYWlhL0JMMlBLSUlOVENBMDEuQU1FLkdCTF9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3J0MB0GA1UdDgQWBBQp8DW_okjTMbIBWANCvQr_FrvzazAOBgNVHQ8BAf8EBAMCBaAwggE1BgNVHR8EggEsMIIBKDCCASSgggEgoIIBHIZCaHR0cDovL2NybC5taWNyb3NvZnQuY29tL3BraWluZnJhL0NSTC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMS5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMi5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsMy5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JshjRodHRwOi8vY3JsNC5hbWUuZ2JsL2NybC9BTUUlMjBJbmZyYSUyMENBJTIwMDIoNCkuY3JsMIGdBgNVHSAEgZUwgZIwDAYKKwYBBAGCN3sBATBmBgorBgEEAYI3ewICMFgwVgYIKwYBBQUHAgIwSh5IADMAMwBlADAAMQA5ADIAMQAtADQAZAA2ADQALQA0AGYAOABjAC0AYQAwADUANQAtADUAYgBkAGEAZgBmAGQANQBlADMAMwBkMAwGCisGAQQBgjd7AwIwDAYKKwYBBAGCN3sEAjAfBgNVHSMEGDAWgBSuecJrXSWIEwb2BwnDl3x7l48dVTAdBgNVHSUEFjAUBggrBgEFBQcDAQYIKwYBBQUHAwIwDQYJKoZIhvcNAQELBQADggEBAA5sOyKXcQwQQAVKz9J8GIjVymZkoHVSft4TqdgNxSdoIAYkk_tYdx_dEZChJfSvIfzhzAb8k57EHRKNwKtP752SSUr0Q0oB60Y3Fq7il1fMKFTbVk9ZMTyOoo3hJmRwJaisv9rK2UVHWvwD2iUKD0IK_tHwy3m6bqbGDVKaRn1K9UYM39wEvEdy-k8J2z3Olfn6yYpcrVBHWzDzSy7TVdgUzaa0IZ670aJGPrNVYMvsCepP2_T_FdHVk4LoK9K4_0-GkZbvBLZPQO6FYgttg78s6Nn34TUcXWeTeeXArlkf48rbeL5fDY_CJyKYXLv3arwG7gUdcU5T8MGHeLLzcyo&s=f74LVjECu6C7ZZ-Lull2yzQijr_Yo0rirMCPjCZx38IHKE8wOq58j-3V6aRXRahzHF9ZU8ikfU9BsaGPwXlL2owugRWdgb5_6JjG9R7iTEUeQFOEJYR4vQrtOcoRwV7NmuzqJLv9i2Jdzpw8FZhsRFWyA9tbJPtvQsPSfxY6sDyXQIyNOWdHtoawscBgkUlgZSyYP4kWmG7c_exee1bLyXkxiPbOC4MFo6iZj9KHYZpQfKbpqJHEW1mKHCuV73zTeGnctz8ussEJq_3eny4lbo-5vqPEs4S5b600cWFlhmCUSrD0AGO0yf8bTJ5OtxWy6NQwpoohnzLVPooM4K1hUg&h=77b4FYAfUNed57T2grHIPcd2INgvY6b8KOO7EQzBe8o response: body: string: '{"status":"Succeeded"}' @@ -323,24 +341,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:21 GMT + - Tue, 08 Apr 2025 02:23:22 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-arm-service-request-id: - - c3090a3f-30ce-4b13-bd65-f55622bb18ba + - cb8281b8-3e94-4fef-8ea1-20db80b3a032 + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/ad5e6cfc-e422-4f80-b16b-e12e1884544e + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 4E31DA3FC0AC4898BA9A42D269E243AA Ref B: MAA201060516031 Ref C: 2025-04-08T02:23:22Z' status: code: 200 message: OK @@ -358,40 +377,39 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2?api-version=2022-11-01 response: body: - string: '{"name":"ip2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2","etag":"W/\"cba3fe3e-9f37-4ccb-8244-5c6effd87749\"","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"ad3dea1b-445c-4875-8672-c2f0f6921129","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Dynamic","idleTimeoutInMinutes":4,"ipTags":[]},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Basic","tier":"Regional"}}' + string: '{"name":"ip2","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2","etag":"W/\"76689714-674c-4b53-9349-b1f1eafd809b\"","location":"westus","properties":{"provisioningState":"Succeeded","resourceGuid":"1553726b-fdb2-4a05-9a4b-514f07e6b901","ipAddress":"172.184.176.98","publicIPAddressVersion":"IPv4","publicIPAllocationMethod":"Static","idleTimeoutInMinutes":4,"ipTags":[],"ddosSettings":{"protectionMode":"VirtualNetworkInherited"}},"type":"Microsoft.Network/publicIPAddresses","sku":{"name":"Standard","tier":"Regional"}}' headers: cache-control: - no-cache content-length: - - '537' + - '628' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:22 GMT + - Tue, 08 Apr 2025 02:23:23 GMT etag: - - W/"cba3fe3e-9f37-4ccb-8244-5c6effd87749" + - W/"76689714-674c-4b53-9349-b1f1eafd809b" expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-arm-service-request-id: - - 0a78485c-15bc-48d3-a3cd-a9e00e00b12a + - 4f1da5ae-4394-4e70-9d88-678dd58ac24f + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: A2C994F5755D46938D326B1788693328 Ref B: MAA201060516031 Ref C: 2025-04-08T02:23:23Z' status: code: 200 message: OK @@ -414,9 +432,9 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' @@ -426,7 +444,7 @@ interactions: api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: @@ -434,23 +452,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:27 GMT + - Tue, 08 Apr 2025 02:23:26 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 32fbd3de-6f29-11ee-ab62-c01803b31d8e + - 728159cd-1420-11f0-819c-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/1d38b459-b47b-43a6-8482-a1fbdee84672 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' + x-msedge-ref: + - 'Ref A: 6B7714DBED0D417DBFD51B79CB8A0279 Ref B: MAA201060515045 Ref C: 2025-04-08T02:23:24Z' x-servedby: - WUS2ONEIM000003 status: @@ -480,29 +502,28 @@ interactions: ParameterSetName: - -g -n --scopes --region --action --description --condition User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"description\"\ - : \"Test\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\"\ - : \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"threshold\": 5.0,\r\n \"name\": \"cond0\",\r\n \ - \ \"metricName\": \"TCPBytesForwardedDDoS\",\r\n \"operator\"\ - : \"GreaterThan\",\r\n \"timeAggregation\": \"Total\",\r\n \ - \ \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n \ - \ ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\",\r\n + \ \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"description\": + \"Test\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\": + [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1\"\r\n + \ ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\": \"PT5M\",\r\n + \ \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": + 5.0,\r\n \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\",\r\n + \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": + \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n + \ }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n + \ },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n + \ {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\r\n + \ }\r\n ]\r\n }\r\n}" headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -512,25 +533,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:40 GMT + - Tue, 08 Apr 2025 02:23:35 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/a514b520-b127-4ac3-b22b-4eddb9225c7f x-ms-ratelimit-remaining-subscription-resource-requests: - '299' + x-msedge-ref: + - 'Ref A: 976C1FA76D2442138CFF9275A71E4444 Ref B: MAA201060513027 Ref C: 2025-04-08T02:23:28Z' x-powered-by: - ASP.NET status: @@ -560,30 +583,29 @@ interactions: ParameterSetName: - -g -n --scopes --region --action --description --condition User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert2?api-version=2018-03-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert2\"\ - ,\r\n \"name\": \"alert2\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"description\"\ - : \"Test2\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\"\ - : \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"threshold\": 5.0,\r\n \"name\": \"cond0\",\r\n \ - \ \"metricName\": \"TCPBytesForwardedDDoS\",\r\n \"operator\"\ - : \"GreaterThan\",\r\n \"timeAggregation\": \"Maximum\",\r\n \ - \ \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n \ - \ ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"ag1value\"\ - \r\n }\r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert2\",\r\n + \ \"name\": \"alert2\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"description\": + \"Test2\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\": + [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1\"\r\n + \ ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\": \"PT5M\",\r\n + \ \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": + 5.0,\r\n \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\",\r\n + \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": + \"Maximum\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n + \ }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n + \ },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n + \ {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\",\r\n + \ \"webHookProperties\": {\r\n \"ag1key\": \"ag1value\"\r\n + \ }\r\n }\r\n ]\r\n }\r\n}" headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -593,25 +615,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:53 GMT + - Tue, 08 Apr 2025 02:23:43 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/9a097b5e-8ab2-4325-ada8-f87a860bd972 x-ms-ratelimit-remaining-subscription-resource-requests: - '299' + x-msedge-ref: + - 'Ref A: 712258EC747A4D84BA0DD7C35241D85D Ref B: MAA201060515037 Ref C: 2025-04-08T02:23:36Z' x-powered-by: - ASP.NET status: @@ -631,135 +655,46 @@ interactions: ParameterSetName: - --source-resource --target-resource User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01 response: body: - string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/Microsoft.Insights/metricAlerts/alert\"\ - ,\r\n \"name\": \"alert\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/Microsoft.Storage/storageAccounts/liwasg\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/Microsoft.Insights/metricAlerts/cloned-liwasg1-9fbbc17f-649d-4308-96eb-8e1090fa2ede\"\ - ,\r\n \"name\": \"cloned-liwasg1-9fbbc17f-649d-4308-96eb-8e1090fa2ede\"\ - ,\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\"\ - : \"global\",\r\n \"properties\": {\r\n \"description\": \"Test\"\ - ,\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"\ - scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/Microsoft.Storage/storageAccounts/liwasg1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/microsoft.insights/actionGroups/cloned-ag1-13869aa8-d83c-4228-b348-eda625febeeb\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\"\ - ,\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert2\"\ - ,\r\n \"name\": \"alert2\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test2\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\"\ - ,\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Maximum\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ }\r\n ]\r\n}" + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yishitest/providers/microsoft.insights/metricAlerts/Memory + Working Set Percentage - ystestk8s","name":"Memory Working Set Percentage + - ystestk8s","type":"Microsoft.Insights/metricAlerts","location":"Global","properties":{"severity":3,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yishitest/providers/Microsoft.ContainerService/managedClusters/ystestk8s"],"evaluationFrequency":"PT5M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":100.0,"name":"Metric1","metricNamespace":"Microsoft.ContainerService/managedClusters","metricName":"node_memory_working_set_percentage","operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"targetResourceType":"Microsoft.ContainerService/managedClusters","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.Insights/ActionGroups/RecommendedAlertRules-AG-1","webHookProperties":{}}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yishitest/providers/microsoft.insights/metricAlerts/CPU + Usage Percentage - ystestk8s","name":"CPU Usage Percentage - ystestk8s","type":"Microsoft.Insights/metricAlerts","location":"Global","properties":{"severity":3,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yishitest/providers/Microsoft.ContainerService/managedClusters/ystestk8s"],"evaluationFrequency":"PT5M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":95.0,"name":"Metric1","metricNamespace":"Microsoft.ContainerService/managedClusters","metricName":"node_cpu_usage_percentage","operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"targetResourceType":"Microsoft.ContainerService/managedClusters","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.Insights/ActionGroups/RecommendedAlertRules-AG-1","webHookProperties":{}}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone4qrevqotx2chfa4hbow732z2ll7jkcj3t4u3ov3vpg3hdu6e/providers/Microsoft.Insights/metricAlerts/alert1","name":"alert1","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone4qrevqotx2chfa4hbow732z2ll7jkcj3t4u3ov3vpg3hdu6e/providers/Microsoft.Storage/storageAccounts/clitestvlcxo4nkcy5vmdwbz"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"transactions","dimensions":[{"name":"ResponseType","operator":"Include","values":["Success"]},{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Total","criterionType":"StaticThresholdCriterion"},{"threshold":250.0,"name":"cond1","metricName":"SuccessE2ELatency","dimensions":[{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone4qrevqotx2chfa4hbow732z2ll7jkcj3t4u3ov3vpg3hdu6e/providers/microsoft.insights/actionGroups/ag1"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1","name":"alert1","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"TCPBytesForwardedDDoS","operator":"GreaterThan","timeAggregation":"Total","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert2","name":"alert2","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test2","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"TCPBytesForwardedDDoS","operator":"GreaterThan","timeAggregation":"Maximum","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","webHookProperties":{"ag1key":"ag1value"}}]}}]}' headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: - no-cache content-length: - - '7846' + - '5789' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:55 GMT - expires: - - '-1' + - Tue, 08 Apr 2025 02:23:45 GMT pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-original-request-ids: + - 54703b17-85bd-4b27-8ff2-6f7f6e9e5be3 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 6CFBD7C93E6746A5980629D8EBF79A36 Ref B: MAA201060514017 Ref C: 2025-04-08T02:23:44Z' x-powered-by: - ASP.NET status: @@ -779,29 +714,28 @@ interactions: ParameterSetName: - --source-resource --target-resource User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"description\"\ - : \"Test\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\"\ - : \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"threshold\": 5.0,\r\n \"name\": \"cond0\",\r\n \ - \ \"metricName\": \"TCPBytesForwardedDDoS\",\r\n \"operator\"\ - : \"GreaterThan\",\r\n \"timeAggregation\": \"Total\",\r\n \ - \ \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n \ - \ ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\",\r\n + \ \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"description\": + \"Test\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\": + [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1\"\r\n + \ ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\": \"PT5M\",\r\n + \ \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": + 5.0,\r\n \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\",\r\n + \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": + \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n + \ }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n + \ },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n + \ {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\r\n + \ }\r\n ]\r\n }\r\n}" headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -811,23 +745,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:57 GMT + - Tue, 08 Apr 2025 02:23:45 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2018-03-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 99199D2777F74DD08D02C0B0E21539F0 Ref B: MAA201060516047 Ref C: 2025-04-08T02:23:46Z' x-powered-by: - ASP.NET status: @@ -858,7 +796,7 @@ interactions: ParameterSetName: - --source-resource --target-resource User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: @@ -866,10 +804,10 @@ interactions: string: '{"code":"BadRequest","message":"Scopes property is invalid. Only single resource is allowed for criteria type SingleResourceMultipleMetricCriteria. If you want to create an alert on multiple resources, use MultipleResourceMultipleMetricCriteria - odata.type. Activity ID: f4c448d9-a31e-42b4-9854-ebbc302df04c."}' + odata.type. Activity ID: 013a2248-1d2e-4cd3-8dc6-3d464e5a5993."}' headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -879,21 +817,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:15:58 GMT + - Tue, 08 Apr 2025 02:23:48 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/2124254b-a535-4ba7-8f4b-97023bf03e72 x-ms-ratelimit-remaining-subscription-resource-requests: - '299' + x-msedge-ref: + - 'Ref A: E5FC5D6C8CC14DE6B776C42BD8FB5DAC Ref B: MAA201060516047 Ref C: 2025-04-08T02:23:46Z' x-powered-by: - ASP.NET status: @@ -923,29 +865,28 @@ interactions: ParameterSetName: - --source-resource --target-resource User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-ip2-88888888-0000-0000-0000-000000000001?api-version=2018-03-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-ip2-88888888-0000-0000-0000-000000000001\"\ - ,\r\n \"name\": \"cloned-ip2-88888888-0000-0000-0000-000000000001\",\r\n\ - \ \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\": \"global\"\ - ,\r\n \"properties\": {\r\n \"description\": \"Test\",\r\n \"severity\"\ - : 2,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\"\ - : \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"threshold\": 5.0,\r\n \"name\": \"cond0\",\r\n \ - \ \"metricName\": \"TCPBytesForwardedDDoS\",\r\n \"operator\"\ - : \"GreaterThan\",\r\n \"timeAggregation\": \"Total\",\r\n \ - \ \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n \ - \ ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-ip2-88888888-0000-0000-0000-000000000001\",\r\n + \ \"name\": \"cloned-ip2-88888888-0000-0000-0000-000000000001\",\r\n \"type\": + \"Microsoft.Insights/metricAlerts\",\r\n \"location\": \"global\",\r\n \"properties\": + {\r\n \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\": + true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2\"\r\n + \ ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\": \"PT5M\",\r\n + \ \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": + 5.0,\r\n \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\",\r\n + \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": + \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n + \ }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n + \ },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n + \ {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\r\n + \ }\r\n ]\r\n }\r\n}" headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -955,25 +896,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:13 GMT + - Tue, 08 Apr 2025 02:24:00 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/1e111221-fff2-47c8-8d92-a93fe2bcff9a x-ms-ratelimit-remaining-subscription-resource-requests: - '299' + x-msedge-ref: + - 'Ref A: DC0EBF6787E5471DAA3EA5F8ED3A8001 Ref B: MAA201060516009 Ref C: 2025-04-08T02:23:49Z' x-powered-by: - ASP.NET status: @@ -993,30 +936,29 @@ interactions: ParameterSetName: - --source-resource --target-resource User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert2?api-version=2018-03-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert2\"\ - ,\r\n \"name\": \"alert2\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"description\"\ - : \"Test2\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\"\ - : \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"threshold\": 5.0,\r\n \"name\": \"cond0\",\r\n \ - \ \"metricName\": \"TCPBytesForwardedDDoS\",\r\n \"operator\"\ - : \"GreaterThan\",\r\n \"timeAggregation\": \"Maximum\",\r\n \ - \ \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n \ - \ ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"ag1value\"\ - \r\n }\r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert2\",\r\n + \ \"name\": \"alert2\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"description\": + \"Test2\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\": + [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1\"\r\n + \ ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\": \"PT5M\",\r\n + \ \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": + 5.0,\r\n \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\",\r\n + \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": + \"Maximum\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n + \ }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n + \ },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n + \ {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\",\r\n + \ \"webHookProperties\": {\r\n \"ag1key\": \"ag1value\"\r\n + \ }\r\n }\r\n ]\r\n }\r\n}" headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -1026,23 +968,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:15 GMT + - Tue, 08 Apr 2025 02:24:01 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2018-03-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 8479C9AA58664950AA18FF7703791251 Ref B: MAA201060516049 Ref C: 2025-04-08T02:24:01Z' x-powered-by: - ASP.NET status: @@ -1073,7 +1019,7 @@ interactions: ParameterSetName: - --source-resource --target-resource User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert2?api-version=2018-03-01 response: @@ -1081,10 +1027,10 @@ interactions: string: '{"code":"BadRequest","message":"Scopes property is invalid. Only single resource is allowed for criteria type SingleResourceMultipleMetricCriteria. If you want to create an alert on multiple resources, use MultipleResourceMultipleMetricCriteria - odata.type. Activity ID: 927e0a8a-b3b1-42a9-bd91-4b211afc0431."}' + odata.type. Activity ID: e3d8885c-ab29-4709-8793-e2e61f9a7daf."}' headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -1094,21 +1040,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:16 GMT + - Tue, 08 Apr 2025 02:24:03 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/8d597637-7cdb-4f9a-abf8-506a6ac8a7f3 x-ms-ratelimit-remaining-subscription-resource-requests: - '299' + x-msedge-ref: + - 'Ref A: 8BAB689CD6874BB88624CCEF59274ADF Ref B: MAA201060516049 Ref C: 2025-04-08T02:24:01Z' x-powered-by: - ASP.NET status: @@ -1138,30 +1088,29 @@ interactions: ParameterSetName: - --source-resource --target-resource User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-ip2-88888888-0000-0000-0000-000000000002?api-version=2018-03-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-ip2-88888888-0000-0000-0000-000000000002\"\ - ,\r\n \"name\": \"cloned-ip2-88888888-0000-0000-0000-000000000002\",\r\n\ - \ \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\": \"global\"\ - ,\r\n \"properties\": {\r\n \"description\": \"Test2\",\r\n \"severity\"\ - : 2,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\"\ - : \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"threshold\": 5.0,\r\n \"name\": \"cond0\",\r\n \ - \ \"metricName\": \"TCPBytesForwardedDDoS\",\r\n \"operator\"\ - : \"GreaterThan\",\r\n \"timeAggregation\": \"Maximum\",\r\n \ - \ \"criterionType\": \"StaticThresholdCriterion\"\r\n }\r\n \ - \ ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"ag1value\"\ - \r\n }\r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-ip2-88888888-0000-0000-0000-000000000002\",\r\n + \ \"name\": \"cloned-ip2-88888888-0000-0000-0000-000000000002\",\r\n \"type\": + \"Microsoft.Insights/metricAlerts\",\r\n \"location\": \"global\",\r\n \"properties\": + {\r\n \"description\": \"Test2\",\r\n \"severity\": 2,\r\n \"enabled\": + true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2\"\r\n + \ ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\": \"PT5M\",\r\n + \ \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": + 5.0,\r\n \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\",\r\n + \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": + \"Maximum\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n + \ }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n + \ },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n + \ {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\",\r\n + \ \"webHookProperties\": {\r\n \"ag1key\": \"ag1value\"\r\n + \ }\r\n }\r\n ]\r\n }\r\n}" headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -1171,25 +1120,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:49 GMT + - Tue, 08 Apr 2025 02:24:12 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/ffcc34fd-243d-4029-bc7d-57d7b3babc60 x-ms-ratelimit-remaining-subscription-resource-requests: - - '298' + - '299' + x-msedge-ref: + - 'Ref A: 4A327C820F07472F8B9C4A9E2E71CEC8 Ref B: MAA201060513027 Ref C: 2025-04-08T02:24:04Z' x-powered-by: - ASP.NET status: @@ -1209,9 +1160,9 @@ interactions: ParameterSetName: - -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups?api-version=2024-10-01-preview response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}]}' @@ -1221,7 +1172,7 @@ interactions: api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: @@ -1229,29 +1180,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:52 GMT + - Tue, 08 Apr 2025 02:24:14 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-activityid: - - 673c9c05-6f29-11ee-99bf-c01803b31d8e + - 8f4a15cf-1420-11f0-8803-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-original-request-ids: + - '' x-ms-ratelimit-remaining-subscription-resource-requests: - '249' + x-msedge-ref: + - 'Ref A: 1B34BDECF4D7489DA63B30D3FCDCD4BC Ref B: MAA201060513045 Ref C: 2025-04-08T02:24:14Z' x-servedby: - - WUS2ONEIM000008 + - WUS2ONEIM000005 status: code: 200 message: OK @@ -1269,105 +1220,43 @@ interactions: ParameterSetName: - -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01 response: body: - string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\"\ - ,\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert2\"\ - ,\r\n \"name\": \"alert2\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test2\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\"\ - ,\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Maximum\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-ip2-88888888-0000-0000-0000-000000000001\"\ - ,\r\n \"name\": \"cloned-ip2-88888888-0000-0000-0000-000000000001\",\r\ - \n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\"\ - : \"global\",\r\n \"properties\": {\r\n \"description\": \"Test\"\ - ,\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"\ - scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\"\ - ,\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-ip2-88888888-0000-0000-0000-000000000002\"\ - ,\r\n \"name\": \"cloned-ip2-88888888-0000-0000-0000-000000000002\",\r\ - \n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\"\ - : \"global\",\r\n \"properties\": {\r\n \"description\": \"Test2\"\ - ,\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"\ - scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\"\ - ,\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Maximum\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ }\r\n ]\r\n}" + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1","name":"alert1","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"TCPBytesForwardedDDoS","operator":"GreaterThan","timeAggregation":"Total","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert2","name":"alert2","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test2","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip1"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"TCPBytesForwardedDDoS","operator":"GreaterThan","timeAggregation":"Maximum","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","webHookProperties":{"ag1key":"ag1value"}}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-ip2-88888888-0000-0000-0000-000000000001","name":"cloned-ip2-88888888-0000-0000-0000-000000000001","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"TCPBytesForwardedDDoS","operator":"GreaterThan","timeAggregation":"Total","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-ip2-88888888-0000-0000-0000-000000000002","name":"cloned-ip2-88888888-0000-0000-0000-000000000002","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test2","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Network/publicIPAddresses/ip2"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"TCPBytesForwardedDDoS","operator":"GreaterThan","timeAggregation":"Maximum","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","webHookProperties":{"ag1key":"ag1value"}}]}}]}' headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: - no-cache content-length: - - '5968' + - '4213' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:53 GMT - expires: - - '-1' + - Tue, 08 Apr 2025 02:24:15 GMT pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-original-request-ids: + - bcb4a3b7-ffa4-4d2a-9060-2e0fa27d304d + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 7A61DF3E95AD4720B1BF67F85E50ADB1 Ref B: MAA201060513035 Ref C: 2025-04-08T02:24:16Z' x-powered-by: - ASP.NET status: diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_storage_metric_alerts_always_scenario.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_storage_metric_alerts_always_scenario.yaml index 30239d65c9b..f1c66b98fd4 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_storage_metric_alerts_always_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_storage_metric_alerts_always_scenario.yaml @@ -18,9 +18,9 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' @@ -30,7 +30,7 @@ interactions: api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: @@ -38,25 +38,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:09 GMT + - Tue, 08 Apr 2025 02:25:00 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 4bd1f3c7-6f29-11ee-b347-c01803b31d8e + - a89bb9f6-1420-11f0-adaa-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/indonesiacentral/a4f739f1-c6ed-4e6f-ac2d-4eceacf2c40e x-ms-ratelimit-remaining-subscription-resource-requests: - '24' + x-msedge-ref: + - 'Ref A: E732C9E9F618423DB6FBDA00EAD18105 Ref B: MAA201060514045 Ref C: 2025-04-08T02:24:55Z' x-servedby: - - WUS2ONEIM000007 + - WUS2ONEIM000005 status: code: 201 message: Created @@ -74,9 +78,9 @@ interactions: ParameterSetName: - -n -g --short-name --tag -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' @@ -86,7 +90,7 @@ interactions: api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: @@ -94,39 +98,37 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:12 GMT + - Tue, 08 Apr 2025 02:25:01 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-activityid: - - 4f84fb76-6f29-11ee-b28c-c01803b31d8e + - ac4e2eda-1420-11f0-b840-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN x-ms-ratelimit-remaining-subscription-resource-requests: - '249' + x-msedge-ref: + - 'Ref A: 4BC9A4B147BF46CCB838F69DBC39097E Ref B: MAA201060513017 Ref C: 2025-04-08T02:25:01Z' x-servedby: - - EUS2ONEIM000005 + - EUS2ONEIM000001 status: code: 200 message: OK - request: body: '{"location": "Global", "properties": {"armRoleReceivers": [], "automationRunbookReceivers": [], "azureAppPushReceivers": [], "azureFunctionReceivers": [], "emailReceivers": - [{"emailAddress": "aaa@foo.com", "name": "alice", "useCommonAlertSchema": + [{"emailAddress": "alice@example.com", "name": "alice", "useCommonAlertSchema": true}], "enabled": true, "eventHubReceivers": [], "groupShortName": "new_name", - "itsmReceivers": [], "logicAppReceivers": [], "smsReceivers": [], "voiceReceivers": - [], "webhookReceivers": []}, "tags": {"owner": "alice"}}' + "incidentReceivers": [], "itsmReceivers": [], "logicAppReceivers": [], "smsReceivers": + [], "voiceReceivers": [], "webhookReceivers": []}, "tags": {"owner": "alice"}}' headers: Accept: - application/json @@ -137,55 +139,55 @@ interactions: Connection: - keep-alive Content-Length: - - '473' + - '498' Content-Type: - application/json ParameterSetName: - -n -g --short-name --tag -a -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"aaa@foo.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"alice@example.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[]}}' headers: access-control-expose-headers: - x-activityid api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: - - '676' + - '699' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:15 GMT + - Tue, 08 Apr 2025 02:25:05 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-activityid: - - 4f84fb76-6f29-11ee-b28c-c01803b31d8e + - ac4e2eda-1420-11f0-b840-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/66c1f979-b97e-40f6-a691-e4ef82943a42 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' + x-msedge-ref: + - 'Ref A: 818067869A4E4048A8A8EBFBE24B8DAC Ref B: MAA201060513017 Ref C: 2025-04-08T02:25:02Z' x-servedby: - - EUS2ONEIM000005 + - WUS2ONEIM000005 status: code: 200 message: OK @@ -218,43 +220,41 @@ interactions: ParameterSetName: - -g -n --scopes --region --action --description --condition --condition User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"description\"\ - : \"Test\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\"\ - : \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"threshold\": 5.0,\r\n \"name\": \"cond0\",\r\n \ - \ \"metricName\": \"transactions\",\r\n \"dimensions\": [\r\n\ - \ {\r\n \"name\": \"ResponseType\",\r\n \ - \ \"operator\": \"Include\",\r\n \"values\": [\r\n \ - \ \"Success\"\r\n ]\r\n },\r\n \ - \ {\r\n \"name\": \"ApiName\",\r\n \"operator\"\ - : \"Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \"operator\"\ - : \"GreaterThan\",\r\n \"timeAggregation\": \"Total\",\r\n \ - \ \"criterionType\": \"StaticThresholdCriterion\"\r\n },\r\n \ - \ {\r\n \"threshold\": 250.0,\r\n \"name\": \"cond1\"\ - ,\r\n \"metricName\": \"SuccessE2ELatency\",\r\n \"dimensions\"\ - : [\r\n {\r\n \"name\": \"ApiName\",\r\n \ - \ \"operator\": \"Include\",\r\n \"values\": [\r\n \ - \ \"GetBlob\"\r\n ]\r\n }\r\n ],\r\ - \n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"ag1value\"\ - \r\n }\r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\",\r\n + \ \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"description\": + \"Test\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\": + [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\r\n + \ ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\": \"PT5M\",\r\n + \ \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": + 5.0,\r\n \"name\": \"cond0\",\r\n \"metricName\": \"transactions\",\r\n + \ \"dimensions\": [\r\n {\r\n \"name\": \"ResponseType\",\r\n + \ \"operator\": \"Include\",\r\n \"values\": [\r\n + \ \"Success\"\r\n ]\r\n },\r\n {\r\n + \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\",\r\n + \ \"values\": [\r\n \"GetBlob\"\r\n ]\r\n + \ }\r\n ],\r\n \"operator\": \"GreaterThan\",\r\n + \ \"timeAggregation\": \"Total\",\r\n \"criterionType\": + \"StaticThresholdCriterion\"\r\n },\r\n {\r\n \"threshold\": + 250.0,\r\n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\",\r\n + \ \"dimensions\": [\r\n {\r\n \"name\": \"ApiName\",\r\n + \ \"operator\": \"Include\",\r\n \"values\": [\r\n + \ \"GetBlob\"\r\n ]\r\n }\r\n ],\r\n + \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": + \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n + \ }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n + \ },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n + \ {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\",\r\n + \ \"webHookProperties\": {\r\n \"ag1key\": \"ag1value\"\r\n + \ }\r\n }\r\n ]\r\n }\r\n}" headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -264,25 +264,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:25 GMT + - Tue, 08 Apr 2025 02:25:15 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/ad596089-ed36-4c13-90a2-95aee450f35e x-ms-ratelimit-remaining-subscription-resource-requests: - - '298' + - '299' + x-msedge-ref: + - 'Ref A: 168982B582584004A4B0CE2F853B9561 Ref B: MAA201060514051 Ref C: 2025-04-08T02:25:06Z' x-powered-by: - ASP.NET status: @@ -302,212 +304,46 @@ interactions: ParameterSetName: - --source-resource --target-resource --always-clone User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01 response: body: - string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/Microsoft.Insights/metricAlerts/alert\"\ - ,\r\n \"name\": \"alert\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/Microsoft.Storage/storageAccounts/liwasg\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/Microsoft.Insights/metricAlerts/cloned-liwasg1-9fbbc17f-649d-4308-96eb-8e1090fa2ede\"\ - ,\r\n \"name\": \"cloned-liwasg1-9fbbc17f-649d-4308-96eb-8e1090fa2ede\"\ - ,\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\"\ - : \"global\",\r\n \"properties\": {\r\n \"description\": \"Test\"\ - ,\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"\ - scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/Microsoft.Storage/storageAccounts/liwasg1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/microsoft.insights/actionGroups/cloned-ag1-13869aa8-d83c-4228-b348-eda625febeeb\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/Microsoft.Network/publicIPAddresses/ip1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\"\ - ,\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/Microsoft.Insights/metricAlerts/alert2\"\ - ,\r\n \"name\": \"alert2\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test2\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/Microsoft.Network/publicIPAddresses/ip1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\"\ - ,\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Maximum\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/Microsoft.Insights/metricAlerts/cloned-ip2-4d1b02a3-ff00-4703-9e60-69bbd2d7e585\"\ - ,\r\n \"name\": \"cloned-ip2-4d1b02a3-ff00-4703-9e60-69bbd2d7e585\",\r\ - \n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\"\ - : \"global\",\r\n \"properties\": {\r\n \"description\": \"Test\"\ - ,\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"\ - scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/Microsoft.Network/publicIPAddresses/ip2\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\"\ - ,\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clones4bxlzlt5i6jmx6vp7uz2xcngdemkf72klq52ob6pjt2ec2j/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clones4bxlzlt5i6jmx6vp7uz2xcngdemkf72klq52ob6pjt2ec2j/providers/Microsoft.Storage/storageAccounts/clitestjcu32cw4zidboafx7\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clones4bxlzlt5i6jmx6vp7uz2xcngdemkf72klq52ob6pjt2ec2j/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ }\r\n ]\r\n}" + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yishitest/providers/microsoft.insights/metricAlerts/Memory + Working Set Percentage - ystestk8s","name":"Memory Working Set Percentage + - ystestk8s","type":"Microsoft.Insights/metricAlerts","location":"Global","properties":{"severity":3,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yishitest/providers/Microsoft.ContainerService/managedClusters/ystestk8s"],"evaluationFrequency":"PT5M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":100.0,"name":"Metric1","metricNamespace":"Microsoft.ContainerService/managedClusters","metricName":"node_memory_working_set_percentage","operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"targetResourceType":"Microsoft.ContainerService/managedClusters","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.Insights/ActionGroups/RecommendedAlertRules-AG-1","webHookProperties":{}}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yishitest/providers/microsoft.insights/metricAlerts/CPU + Usage Percentage - ystestk8s","name":"CPU Usage Percentage - ystestk8s","type":"Microsoft.Insights/metricAlerts","location":"Global","properties":{"severity":3,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yishitest/providers/Microsoft.ContainerService/managedClusters/ystestk8s"],"evaluationFrequency":"PT5M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":95.0,"name":"Metric1","metricNamespace":"Microsoft.ContainerService/managedClusters","metricName":"node_cpu_usage_percentage","operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"targetResourceType":"Microsoft.ContainerService/managedClusters","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.Insights/ActionGroups/RecommendedAlertRules-AG-1","webHookProperties":{}}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1","name":"alert1","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"transactions","dimensions":[{"name":"ResponseType","operator":"Include","values":["Success"]},{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Total","criterionType":"StaticThresholdCriterion"},{"threshold":250.0,"name":"cond1","metricName":"SuccessE2ELatency","dimensions":[{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","webHookProperties":{"ag1key":"ag1value"}}]}}]}' headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: - no-cache content-length: - - '14731' + - '3675' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:25 GMT - expires: - - '-1' + - Tue, 08 Apr 2025 02:25:16 GMT pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-original-request-ids: + - 2bfe0018-ab51-4acc-92ad-9972263a0080 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 64B78118B373440A945019010DCC9214 Ref B: MAA201060515045 Ref C: 2025-04-08T02:25:15Z' x-powered-by: - ASP.NET status: @@ -527,59 +363,57 @@ interactions: ParameterSetName: - --source-resource --target-resource --always-clone User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"aaa@foo.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"alice@example.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[]}}' headers: access-control-expose-headers: - x-activityid api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: - - '676' + - '699' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:28 GMT + - Tue, 08 Apr 2025 02:25:18 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-activityid: - - 58600076-6f29-11ee-bb0f-c01803b31d8e + - b4cbbae1-1420-11f0-a30a-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN x-ms-ratelimit-remaining-subscription-resource-requests: - - '249' + - '248' + x-msedge-ref: + - 'Ref A: B4637EE60EE64771B65A591A25AC5CAD Ref B: MAA201060513025 Ref C: 2025-04-08T02:25:17Z' x-servedby: - - EUS2ONEIM000005 + - EUS2ONEIM000008 status: code: 200 message: OK - request: body: '{"location": "Global", "properties": {"armRoleReceivers": [], "automationRunbookReceivers": [], "azureAppPushReceivers": [], "azureFunctionReceivers": [], "emailReceivers": - [{"emailAddress": "aaa@foo.com", "name": "alice", "useCommonAlertSchema": + [{"emailAddress": "alice@example.com", "name": "alice", "useCommonAlertSchema": true}], "enabled": true, "eventHubReceivers": [], "groupShortName": "new_name", - "itsmReceivers": [], "logicAppReceivers": [], "smsReceivers": [], "voiceReceivers": - [], "webhookReceivers": []}, "tags": {"owner": "alice"}}' + "incidentReceivers": [], "itsmReceivers": [], "logicAppReceivers": [], "smsReceivers": + [], "voiceReceivers": [], "webhookReceivers": []}, "tags": {"owner": "alice"}}' headers: Accept: - application/json @@ -590,51 +424,55 @@ interactions: Connection: - keep-alive Content-Length: - - '473' + - '498' Content-Type: - application/json ParameterSetName: - --source-resource --target-resource --always-clone User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/cloned-ag1-88888888-0000-0000-0000-000000000001?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/cloned-ag1-88888888-0000-0000-0000-000000000001?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/cloned-ag1-88888888-0000-0000-0000-000000000001","type":"Microsoft.Insights/ActionGroups","name":"cloned-ag1-88888888-0000-0000-0000-000000000001","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"aaa@foo.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/cloned-ag1-88888888-0000-0000-0000-000000000001","type":"Microsoft.Insights/ActionGroups","name":"cloned-ag1-88888888-0000-0000-0000-000000000001","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"alice@example.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[]}}' headers: access-control-expose-headers: - x-activityid api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: - - '764' + - '787' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:36 GMT + - Tue, 08 Apr 2025 02:25:24 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 58600076-6f29-11ee-bb0f-c01803b31d8e + - b4cbbae1-1420-11f0-a30a-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/deaf7bfd-15fd-4694-9f54-8721300df92f x-ms-ratelimit-remaining-subscription-resource-requests: - '24' + x-msedge-ref: + - 'Ref A: DDB4A81C64994ABA8708561B9441568D Ref B: MAA201060516009 Ref C: 2025-04-08T02:25:19Z' x-servedby: - - EUS2ONEIM000008 + - EUS2ONEIM000005 status: code: 201 message: Created @@ -667,44 +505,41 @@ interactions: ParameterSetName: - --source-resource --target-resource --always-clone User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-clitest000003-88888888-0000-0000-0000-000000000002?api-version=2018-03-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-clitest000003-88888888-0000-0000-0000-000000000002\"\ - ,\r\n \"name\": \"cloned-clitest000003-88888888-0000-0000-0000-000000000002\"\ - ,\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\": \"\ - global\",\r\n \"properties\": {\r\n \"description\": \"Test\",\r\n \ - \ \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \ - \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\"\ - : \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"threshold\": 5.0,\r\n \"name\": \"cond0\",\r\n \ - \ \"metricName\": \"transactions\",\r\n \"dimensions\": [\r\n\ - \ {\r\n \"name\": \"ResponseType\",\r\n \ - \ \"operator\": \"Include\",\r\n \"values\": [\r\n \ - \ \"Success\"\r\n ]\r\n },\r\n \ - \ {\r\n \"name\": \"ApiName\",\r\n \"operator\"\ - : \"Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \"operator\"\ - : \"GreaterThan\",\r\n \"timeAggregation\": \"Total\",\r\n \ - \ \"criterionType\": \"StaticThresholdCriterion\"\r\n },\r\n \ - \ {\r\n \"threshold\": 250.0,\r\n \"name\": \"cond1\"\ - ,\r\n \"metricName\": \"SuccessE2ELatency\",\r\n \"dimensions\"\ - : [\r\n {\r\n \"name\": \"ApiName\",\r\n \ - \ \"operator\": \"Include\",\r\n \"values\": [\r\n \ - \ \"GetBlob\"\r\n ]\r\n }\r\n ],\r\ - \n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/cloned-ag1-88888888-0000-0000-0000-000000000001\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"ag1value\"\ - \r\n }\r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-clitest000003-88888888-0000-0000-0000-000000000002\",\r\n + \ \"name\": \"cloned-clitest000003-88888888-0000-0000-0000-000000000002\",\r\n + \ \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\": \"global\",\r\n + \ \"properties\": {\r\n \"description\": \"Test\",\r\n \"severity\": + 2,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\r\n + \ ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\": \"PT5M\",\r\n + \ \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": + 5.0,\r\n \"name\": \"cond0\",\r\n \"metricName\": \"transactions\",\r\n + \ \"dimensions\": [\r\n {\r\n \"name\": \"ResponseType\",\r\n + \ \"operator\": \"Include\",\r\n \"values\": [\r\n + \ \"Success\"\r\n ]\r\n },\r\n {\r\n + \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\",\r\n + \ \"values\": [\r\n \"GetBlob\"\r\n ]\r\n + \ }\r\n ],\r\n \"operator\": \"GreaterThan\",\r\n + \ \"timeAggregation\": \"Total\",\r\n \"criterionType\": + \"StaticThresholdCriterion\"\r\n },\r\n {\r\n \"threshold\": + 250.0,\r\n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\",\r\n + \ \"dimensions\": [\r\n {\r\n \"name\": \"ApiName\",\r\n + \ \"operator\": \"Include\",\r\n \"values\": [\r\n + \ \"GetBlob\"\r\n ]\r\n }\r\n ],\r\n + \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": + \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n + \ }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n + \ },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n + \ {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/cloned-ag1-88888888-0000-0000-0000-000000000001\",\r\n + \ \"webHookProperties\": {\r\n \"ag1key\": \"ag1value\"\r\n + \ }\r\n }\r\n ]\r\n }\r\n}" headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -714,25 +549,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:45 GMT + - Tue, 08 Apr 2025 02:25:34 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/c2382b7a-dde6-442d-9be5-42dc7eca9cbb x-ms-ratelimit-remaining-subscription-resource-requests: - - '297' + - '299' + x-msedge-ref: + - 'Ref A: 88C1E6C4BE5E4896AF559741C38118EF Ref B: MAA201060515027 Ref C: 2025-04-08T02:25:24Z' x-powered-by: - ASP.NET status: @@ -752,49 +589,49 @@ interactions: ParameterSetName: - -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups?api-version=2024-10-01-preview response: body: - string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"aaa@foo.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/cloned-ag1-88888888-0000-0000-0000-000000000001","type":"Microsoft.Insights/ActionGroups","name":"cloned-ag1-88888888-0000-0000-0000-000000000001","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"aaa@foo.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}]}' + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/cloned-ag1-88888888-0000-0000-0000-000000000001","type":"Microsoft.Insights/ActionGroups","name":"cloned-ag1-88888888-0000-0000-0000-000000000001","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"alice@example.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":{"owner":"alice"},"properties":{"groupShortName":"new_name","enabled":true,"emailReceivers":[{"name":"alice","emailAddress":"alice@example.com","useCommonAlertSchema":true,"status":"Enabled"}],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[]}}]}' headers: access-control-expose-headers: - x-activityid api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: - - '1453' + - '1499' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:47 GMT + - Tue, 08 Apr 2025 02:25:36 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-activityid: - - 646b9e71-6f29-11ee-86ea-c01803b31d8e + - c07afebc-1420-11f0-9ba6-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-original-request-ids: + - '' x-ms-ratelimit-remaining-subscription-resource-requests: - '249' + x-msedge-ref: + - 'Ref A: D44C5B0476634B348F18F204D1437867 Ref B: MAA201060514025 Ref C: 2025-04-08T02:25:35Z' x-servedby: - - EUS2ONEIM000008 + - EUS2ONEIM000003 status: code: 200 message: OK @@ -812,104 +649,43 @@ interactions: ParameterSetName: - -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01 response: body: - string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-clitest000003-88888888-0000-0000-0000-000000000002\"\ - ,\r\n \"name\": \"cloned-clitest000003-88888888-0000-0000-0000-000000000002\"\ - ,\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\"\ - : \"global\",\r\n \"properties\": {\r\n \"description\": \"Test\"\ - ,\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"\ - scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/cloned-ag1-88888888-0000-0000-0000-000000000001\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ }\r\n ]\r\n}" + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1","name":"alert1","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"transactions","dimensions":[{"name":"ResponseType","operator":"Include","values":["Success"]},{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Total","criterionType":"StaticThresholdCriterion"},{"threshold":250.0,"name":"cond1","metricName":"SuccessE2ELatency","dimensions":[{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","webHookProperties":{"ag1key":"ag1value"}}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-clitest000003-88888888-0000-0000-0000-000000000002","name":"cloned-clitest000003-88888888-0000-0000-0000-000000000002","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000003"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"transactions","dimensions":[{"name":"ResponseType","operator":"Include","values":["Success"]},{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Total","criterionType":"StaticThresholdCriterion"},{"threshold":250.0,"name":"cond1","metricName":"SuccessE2ELatency","dimensions":[{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/cloned-ag1-88888888-0000-0000-0000-000000000001","webHookProperties":{"ag1key":"ag1value"}}]}}]}' headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: - no-cache content-length: - - '5144' + - '2977' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:48 GMT - expires: - - '-1' + - Tue, 08 Apr 2025 02:25:38 GMT pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-original-request-ids: + - e92ae4f2-2984-45f9-a3db-3294a2875a4f + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 0C470443372D4490BB985B921A1B3B1A Ref B: MAA201060516049 Ref C: 2025-04-08T02:25:37Z' x-powered-by: - ASP.NET status: diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_storage_metric_alerts_scenario.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_storage_metric_alerts_scenario.yaml index d0fc173c04d..78521dbfca8 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_storage_metric_alerts_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_storage_metric_alerts_scenario.yaml @@ -18,9 +18,9 @@ interactions: ParameterSetName: - -g -n User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' @@ -30,7 +30,7 @@ interactions: api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: @@ -38,25 +38,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:10 GMT + - Tue, 08 Apr 2025 02:23:24 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 4bf29d7b-6f29-11ee-83e1-c01803b31d8e + - 6ffb6c32-1420-11f0-b892-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/indonesiacentral/f99efe2e-3d2f-40a5-bef7-5cc3a9bda5a8 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' + x-msedge-ref: + - 'Ref A: F89C552F5D764F618E8823D2B0D2F185 Ref B: MAA201060514021 Ref C: 2025-04-08T02:23:22Z' x-servedby: - - WUS2ONEIM000002 + - WUS2ONEIM000006 status: code: 201 message: Created @@ -89,42 +93,40 @@ interactions: ParameterSetName: - -g -n --scopes --region --action --description --condition --condition User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"description\"\ - : \"Test\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\"\ - : \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"threshold\": 5.0,\r\n \"name\": \"cond0\",\r\n \ - \ \"metricName\": \"transactions\",\r\n \"dimensions\": [\r\n\ - \ {\r\n \"name\": \"ResponseType\",\r\n \ - \ \"operator\": \"Include\",\r\n \"values\": [\r\n \ - \ \"Success\"\r\n ]\r\n },\r\n \ - \ {\r\n \"name\": \"ApiName\",\r\n \"operator\"\ - : \"Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \"operator\"\ - : \"GreaterThan\",\r\n \"timeAggregation\": \"Total\",\r\n \ - \ \"criterionType\": \"StaticThresholdCriterion\"\r\n },\r\n \ - \ {\r\n \"threshold\": 250.0,\r\n \"name\": \"cond1\"\ - ,\r\n \"metricName\": \"SuccessE2ELatency\",\r\n \"dimensions\"\ - : [\r\n {\r\n \"name\": \"ApiName\",\r\n \ - \ \"operator\": \"Include\",\r\n \"values\": [\r\n \ - \ \"GetBlob\"\r\n ]\r\n }\r\n ],\r\ - \n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\",\r\n + \ \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"description\": + \"Test\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\": + [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\r\n + \ ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\": \"PT5M\",\r\n + \ \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": + 5.0,\r\n \"name\": \"cond0\",\r\n \"metricName\": \"transactions\",\r\n + \ \"dimensions\": [\r\n {\r\n \"name\": \"ResponseType\",\r\n + \ \"operator\": \"Include\",\r\n \"values\": [\r\n + \ \"Success\"\r\n ]\r\n },\r\n {\r\n + \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\",\r\n + \ \"values\": [\r\n \"GetBlob\"\r\n ]\r\n + \ }\r\n ],\r\n \"operator\": \"GreaterThan\",\r\n + \ \"timeAggregation\": \"Total\",\r\n \"criterionType\": + \"StaticThresholdCriterion\"\r\n },\r\n {\r\n \"threshold\": + 250.0,\r\n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\",\r\n + \ \"dimensions\": [\r\n {\r\n \"name\": \"ApiName\",\r\n + \ \"operator\": \"Include\",\r\n \"values\": [\r\n + \ \"GetBlob\"\r\n ]\r\n }\r\n ],\r\n + \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": + \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n + \ }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n + \ },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n + \ {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\r\n + \ }\r\n ]\r\n }\r\n}" headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -134,25 +136,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:23 GMT + - Tue, 08 Apr 2025 02:23:30 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/19fb6044-0178-43c7-b535-87af2d265cf9 x-ms-ratelimit-remaining-subscription-resource-requests: - '299' + x-msedge-ref: + - 'Ref A: 9F47C67453A44DCAAB2B6667665F94B9 Ref B: MAA201060514017 Ref C: 2025-04-08T02:23:24Z' x-powered-by: - ASP.NET status: @@ -172,213 +176,48 @@ interactions: ParameterSetName: - --source-resource --target-resource User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01 response: body: - string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/Microsoft.Insights/metricAlerts/alert\"\ - ,\r\n \"name\": \"alert\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/Microsoft.Storage/storageAccounts/liwasg\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/Microsoft.Insights/metricAlerts/cloned-liwasg1-9fbbc17f-649d-4308-96eb-8e1090fa2ede\"\ - ,\r\n \"name\": \"cloned-liwasg1-9fbbc17f-649d-4308-96eb-8e1090fa2ede\"\ - ,\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\"\ - : \"global\",\r\n \"properties\": {\r\n \"description\": \"Test\"\ - ,\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"\ - scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/Microsoft.Storage/storageAccounts/liwasg1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/liwaRg/providers/microsoft.insights/actionGroups/cloned-ag1-13869aa8-d83c-4228-b348-eda625febeeb\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/Microsoft.Network/publicIPAddresses/ip1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\"\ - ,\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/Microsoft.Insights/metricAlerts/alert2\"\ - ,\r\n \"name\": \"alert2\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test2\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/Microsoft.Network/publicIPAddresses/ip1\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\"\ - ,\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Maximum\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ },\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/Microsoft.Insights/metricAlerts/cloned-ip2-4d1b02a3-ff00-4703-9e60-69bbd2d7e585\"\ - ,\r\n \"name\": \"cloned-ip2-4d1b02a3-ff00-4703-9e60-69bbd2d7e585\",\r\ - \n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\"\ - : \"global\",\r\n \"properties\": {\r\n \"description\": \"Test\"\ - ,\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"\ - scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/Microsoft.Network/publicIPAddresses/ip2\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"TCPBytesForwardedDDoS\"\ - ,\r\n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clonef4u2lml6lvrpjxwk6phzrs5jnpzau6co5bl2iv3ksv7c7pwu/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone4ngpqtua53uutf4omxkcrj2254u2rfjxrj2cu3odz5ikn4j6/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone4ngpqtua53uutf4omxkcrj2254u2rfjxrj2cu3odz5ikn4j6/providers/Microsoft.Storage/storageAccounts/clitesttbheqhzy7y4xl7qt6\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone4ngpqtua53uutf4omxkcrj2254u2rfjxrj2cu3odz5ikn4j6/providers/microsoft.insights/actionGroups/ag1\"\ - ,\r\n \"webHookProperties\": {\r\n \"ag1key\": \"\ - ag1value\"\r\n }\r\n }\r\n ]\r\n }\r\n \ - \ }\r\n ]\r\n}" + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yishitest/providers/microsoft.insights/metricAlerts/Memory + Working Set Percentage - ystestk8s","name":"Memory Working Set Percentage + - ystestk8s","type":"Microsoft.Insights/metricAlerts","location":"Global","properties":{"severity":3,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yishitest/providers/Microsoft.ContainerService/managedClusters/ystestk8s"],"evaluationFrequency":"PT5M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":100.0,"name":"Metric1","metricNamespace":"Microsoft.ContainerService/managedClusters","metricName":"node_memory_working_set_percentage","operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"targetResourceType":"Microsoft.ContainerService/managedClusters","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.Insights/ActionGroups/RecommendedAlertRules-AG-1","webHookProperties":{}}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yishitest/providers/microsoft.insights/metricAlerts/CPU + Usage Percentage - ystestk8s","name":"CPU Usage Percentage - ystestk8s","type":"Microsoft.Insights/metricAlerts","location":"Global","properties":{"severity":3,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/yishitest/providers/Microsoft.ContainerService/managedClusters/ystestk8s"],"evaluationFrequency":"PT5M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":95.0,"name":"Metric1","metricNamespace":"Microsoft.ContainerService/managedClusters","metricName":"node_cpu_usage_percentage","operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria"},"targetResourceType":"Microsoft.ContainerService/managedClusters","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/yishitest/providers/Microsoft.Insights/ActionGroups/RecommendedAlertRules-AG-1","webHookProperties":{}}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1","name":"alert1","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"transactions","dimensions":[{"name":"ResponseType","operator":"Include","values":["Success"]},{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Total","criterionType":"StaticThresholdCriterion"},{"threshold":250.0,"name":"cond1","metricName":"SuccessE2ELatency","dimensions":[{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1"}]}}]}' headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview + arr-disable-session-affinity: + - 'true' cache-control: - no-cache content-length: - - '14731' + - '3633' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:25 GMT - expires: - - '-1' + - Tue, 08 Apr 2025 02:23:32 GMT pragma: - no-cache - server: - - Microsoft-IIS/10.0 - set-cookie: - - ARRAffinity=8fcd000475fe479111137a373a9f8e549f93f66be292f7f2e59e214b0b7c60ca;Path=/;HttpOnly;Secure;Domain=ama-prod.alertsrp.trafficmanager.net - - ARRAffinitySameSite=8fcd000475fe479111137a373a9f8e549f93f66be292f7f2e59e214b0b7c60ca;Path=/;HttpOnly;SameSite=None;Secure;Domain=ama-prod.alertsrp.trafficmanager.net strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-original-request-ids: + - ed2bd651-9ed5-401e-832a-a3f1c8bb3911 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: F7C527CD29B24A308012944E5F0E965B Ref B: MAA201060514017 Ref C: 2025-04-08T02:23:32Z' + x-powered-by: + - ASP.NET status: code: 200 message: OK @@ -396,42 +235,40 @@ interactions: ParameterSetName: - --source-resource --target-resource User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \"description\"\ - : \"Test\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\"\ - : \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"threshold\": 5.0,\r\n \"name\": \"cond0\",\r\n \ - \ \"metricName\": \"transactions\",\r\n \"dimensions\": [\r\n\ - \ {\r\n \"name\": \"ResponseType\",\r\n \ - \ \"operator\": \"Include\",\r\n \"values\": [\r\n \ - \ \"Success\"\r\n ]\r\n },\r\n \ - \ {\r\n \"name\": \"ApiName\",\r\n \"operator\"\ - : \"Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \"operator\"\ - : \"GreaterThan\",\r\n \"timeAggregation\": \"Total\",\r\n \ - \ \"criterionType\": \"StaticThresholdCriterion\"\r\n },\r\n \ - \ {\r\n \"threshold\": 250.0,\r\n \"name\": \"cond1\"\ - ,\r\n \"metricName\": \"SuccessE2ELatency\",\r\n \"dimensions\"\ - : [\r\n {\r\n \"name\": \"ApiName\",\r\n \ - \ \"operator\": \"Include\",\r\n \"values\": [\r\n \ - \ \"GetBlob\"\r\n ]\r\n }\r\n ],\r\ - \n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\",\r\n + \ \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n + \ \"location\": \"global\",\r\n \"properties\": {\r\n \"description\": + \"Test\",\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\": + [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\r\n + \ ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\": \"PT5M\",\r\n + \ \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": + 5.0,\r\n \"name\": \"cond0\",\r\n \"metricName\": \"transactions\",\r\n + \ \"dimensions\": [\r\n {\r\n \"name\": \"ResponseType\",\r\n + \ \"operator\": \"Include\",\r\n \"values\": [\r\n + \ \"Success\"\r\n ]\r\n },\r\n {\r\n + \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\",\r\n + \ \"values\": [\r\n \"GetBlob\"\r\n ]\r\n + \ }\r\n ],\r\n \"operator\": \"GreaterThan\",\r\n + \ \"timeAggregation\": \"Total\",\r\n \"criterionType\": + \"StaticThresholdCriterion\"\r\n },\r\n {\r\n \"threshold\": + 250.0,\r\n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\",\r\n + \ \"dimensions\": [\r\n {\r\n \"name\": \"ApiName\",\r\n + \ \"operator\": \"Include\",\r\n \"values\": [\r\n + \ \"GetBlob\"\r\n ]\r\n }\r\n ],\r\n + \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": + \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n + \ }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n + \ },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n + \ {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\r\n + \ }\r\n ]\r\n }\r\n}" headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -441,23 +278,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:26 GMT + - Tue, 08 Apr 2025 02:23:33 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-orig-api-version: + - '2018-03-01' + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: FEA084FA69FF4D1CB50EFAC8F33C4D94 Ref B: MAA201060515049 Ref C: 2025-04-08T02:23:33Z' x-powered-by: - ASP.NET status: @@ -493,7 +334,7 @@ interactions: ParameterSetName: - --source-resource --target-resource User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1?api-version=2018-03-01 response: @@ -501,10 +342,10 @@ interactions: string: '{"code":"BadRequest","message":"Scopes property is invalid. Only single resource is allowed for criteria type SingleResourceMultipleMetricCriteria. If you want to create an alert on multiple resources, use MultipleResourceMultipleMetricCriteria - odata.type. Activity ID: 83979415-681a-448c-a202-5f02a1143071."}' + odata.type. Activity ID: 320ec402-052f-48d0-91c5-d36d88df60cf."}' headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -514,21 +355,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:27 GMT + - Tue, 08 Apr 2025 02:23:35 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/5b82ce30-c598-4970-aabf-8f525df5c7b4 x-ms-ratelimit-remaining-subscription-resource-requests: - '299' + x-msedge-ref: + - 'Ref A: 6D970C0D0D1B4A2980CCB1C0A8FF5AB6 Ref B: MAA201060515049 Ref C: 2025-04-08T02:23:34Z' x-powered-by: - ASP.NET status: @@ -563,43 +408,40 @@ interactions: ParameterSetName: - --source-resource --target-resource User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-clitest000003-88888888-0000-0000-0000-000000000001?api-version=2018-03-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-clitest000003-88888888-0000-0000-0000-000000000001\"\ - ,\r\n \"name\": \"cloned-clitest000003-88888888-0000-0000-0000-000000000001\"\ - ,\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\": \"\ - global\",\r\n \"properties\": {\r\n \"description\": \"Test\",\r\n \ - \ \"severity\": 2,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \ - \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\"\ - : \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"threshold\": 5.0,\r\n \"name\": \"cond0\",\r\n \ - \ \"metricName\": \"transactions\",\r\n \"dimensions\": [\r\n\ - \ {\r\n \"name\": \"ResponseType\",\r\n \ - \ \"operator\": \"Include\",\r\n \"values\": [\r\n \ - \ \"Success\"\r\n ]\r\n },\r\n \ - \ {\r\n \"name\": \"ApiName\",\r\n \"operator\"\ - : \"Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \"operator\"\ - : \"GreaterThan\",\r\n \"timeAggregation\": \"Total\",\r\n \ - \ \"criterionType\": \"StaticThresholdCriterion\"\r\n },\r\n \ - \ {\r\n \"threshold\": 250.0,\r\n \"name\": \"cond1\"\ - ,\r\n \"metricName\": \"SuccessE2ELatency\",\r\n \"dimensions\"\ - : [\r\n {\r\n \"name\": \"ApiName\",\r\n \ - \ \"operator\": \"Include\",\r\n \"values\": [\r\n \ - \ \"GetBlob\"\r\n ]\r\n }\r\n ],\r\ - \n \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\"\ - : [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-clitest000003-88888888-0000-0000-0000-000000000001\",\r\n + \ \"name\": \"cloned-clitest000003-88888888-0000-0000-0000-000000000001\",\r\n + \ \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\": \"global\",\r\n + \ \"properties\": {\r\n \"description\": \"Test\",\r\n \"severity\": + 2,\r\n \"enabled\": true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\r\n + \ ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"windowSize\": \"PT5M\",\r\n + \ \"criteria\": {\r\n \"allOf\": [\r\n {\r\n \"threshold\": + 5.0,\r\n \"name\": \"cond0\",\r\n \"metricName\": \"transactions\",\r\n + \ \"dimensions\": [\r\n {\r\n \"name\": \"ResponseType\",\r\n + \ \"operator\": \"Include\",\r\n \"values\": [\r\n + \ \"Success\"\r\n ]\r\n },\r\n {\r\n + \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\",\r\n + \ \"values\": [\r\n \"GetBlob\"\r\n ]\r\n + \ }\r\n ],\r\n \"operator\": \"GreaterThan\",\r\n + \ \"timeAggregation\": \"Total\",\r\n \"criterionType\": + \"StaticThresholdCriterion\"\r\n },\r\n {\r\n \"threshold\": + 250.0,\r\n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\",\r\n + \ \"dimensions\": [\r\n {\r\n \"name\": \"ApiName\",\r\n + \ \"operator\": \"Include\",\r\n \"values\": [\r\n + \ \"GetBlob\"\r\n ]\r\n }\r\n ],\r\n + \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\": + \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\r\n + \ }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\r\n + \ },\r\n \"targetResourceRegion\": \"westus\",\r\n \"actions\": [\r\n + \ {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\r\n + \ }\r\n ]\r\n }\r\n}" headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: @@ -609,25 +451,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:37 GMT + - Tue, 08 Apr 2025 02:23:47 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/d96040d0-c56a-4984-843b-87051d94239c x-ms-ratelimit-remaining-subscription-resource-requests: - - '298' + - '299' + x-msedge-ref: + - 'Ref A: E4DD50B48FC54F1288325B1480215D47 Ref B: MAA201060516023 Ref C: 2025-04-08T02:23:36Z' x-powered-by: - ASP.NET status: @@ -647,9 +491,9 @@ interactions: ParameterSetName: - -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/actionGroups?api-version=2024-10-01-preview response: body: string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}]}' @@ -659,7 +503,7 @@ interactions: api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: @@ -667,29 +511,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:39 GMT + - Tue, 08 Apr 2025 02:23:48 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding x-activityid: - - 5f688ac6-6f29-11ee-b1cc-c01803b31d8e + - 806a657a-1420-11f0-9124-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-original-request-ids: + - '' x-ms-ratelimit-remaining-subscription-resource-requests: - - '248' + - '249' + x-msedge-ref: + - 'Ref A: 0E849C72AB9D4BA6A09384099C44E668 Ref B: MAA201060514017 Ref C: 2025-04-08T02:23:48Z' x-servedby: - - EUS2ONEIM000002 + - WUS2ONEIM000002 status: code: 200 message: OK @@ -707,101 +551,43 @@ interactions: ParameterSetName: - -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.11 (Windows-10-10.0.22621-SP0) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts?api-version=2018-03-01 response: body: - string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1\"\ - ,\r\n \"name\": \"alert1\",\r\n \"type\": \"Microsoft.Insights/metricAlerts\"\ - ,\r\n \"location\": \"global\",\r\n \"properties\": {\r\n \ - \ \"description\": \"Test\",\r\n \"severity\": 2,\r\n \"enabled\"\ - : true,\r\n \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n },\r\n {\r\n \"id\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-clitest000003-88888888-0000-0000-0000-000000000001\"\ - ,\r\n \"name\": \"cloned-clitest000003-88888888-0000-0000-0000-000000000001\"\ - ,\r\n \"type\": \"Microsoft.Insights/metricAlerts\",\r\n \"location\"\ - : \"global\",\r\n \"properties\": {\r\n \"description\": \"Test\"\ - ,\r\n \"severity\": 2,\r\n \"enabled\": true,\r\n \"\ - scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000003\"\ - \r\n ],\r\n \"evaluationFrequency\": \"PT1M\",\r\n \"\ - windowSize\": \"PT5M\",\r\n \"criteria\": {\r\n \"allOf\"\ - : [\r\n {\r\n \"threshold\": 5.0,\r\n \ - \ \"name\": \"cond0\",\r\n \"metricName\": \"transactions\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ResponseType\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"Success\"\r\n\ - \ ]\r\n },\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"\ - Include\",\r\n \"values\": [\r\n \"GetBlob\"\ - \r\n ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Total\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n },\r\n {\r\n \"threshold\": 250.0,\r\ - \n \"name\": \"cond1\",\r\n \"metricName\": \"SuccessE2ELatency\"\ - ,\r\n \"dimensions\": [\r\n {\r\n \ - \ \"name\": \"ApiName\",\r\n \"operator\": \"Include\"\ - ,\r\n \"values\": [\r\n \"GetBlob\"\r\n\ - \ ]\r\n }\r\n ],\r\n \ - \ \"operator\": \"GreaterThan\",\r\n \"timeAggregation\"\ - : \"Average\",\r\n \"criterionType\": \"StaticThresholdCriterion\"\ - \r\n }\r\n ],\r\n \"odata.type\": \"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria\"\ - \r\n },\r\n \"targetResourceRegion\": \"westus\",\r\n \ - \ \"actions\": [\r\n {\r\n \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1\"\ - \r\n }\r\n ]\r\n }\r\n }\r\n ]\r\n}" + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/alert1","name":"alert1","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000002"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"transactions","dimensions":[{"name":"ResponseType","operator":"Include","values":["Success"]},{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Total","criterionType":"StaticThresholdCriterion"},{"threshold":250.0,"name":"cond1","metricName":"SuccessE2ELatency","dimensions":[{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1"}]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Insights/metricAlerts/cloned-clitest000003-88888888-0000-0000-0000-000000000001","name":"cloned-clitest000003-88888888-0000-0000-0000-000000000001","type":"Microsoft.Insights/metricAlerts","location":"global","properties":{"description":"Test","severity":2,"enabled":true,"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/Microsoft.Storage/storageAccounts/clitest000003"],"evaluationFrequency":"PT1M","windowSize":"PT5M","criteria":{"allOf":[{"threshold":5.0,"name":"cond0","metricName":"transactions","dimensions":[{"name":"ResponseType","operator":"Include","values":["Success"]},{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Total","criterionType":"StaticThresholdCriterion"},{"threshold":250.0,"name":"cond1","metricName":"SuccessE2ELatency","dimensions":[{"name":"ApiName","operator":"Include","values":["GetBlob"]}],"operator":"GreaterThan","timeAggregation":"Average","criterionType":"StaticThresholdCriterion"}],"odata.type":"Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria"},"targetResourceRegion":"westus","actions":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_metric_alert_clone000001/providers/microsoft.insights/actionGroups/ag1"}]}}]}' headers: api-supported-versions: - - 2017-09-01-preview, 2018-03-01 + - 2017-09-01-preview, 2018-03-01, 2024-01-01-preview arr-disable-session-affinity: - 'true' cache-control: - no-cache content-length: - - '4924' + - '2849' content-type: - application/json; charset=utf-8 date: - - Fri, 20 Oct 2023 09:16:40 GMT - expires: - - '-1' + - Tue, 08 Apr 2025 02:23:50 GMT pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-original-request-ids: + - ec000490-6885-4954-ae15-69a89016fd70 + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B616225F18944621B75A997FB99D30E3 Ref B: MAA201060515049 Ref C: 2025-04-08T02:23:49Z' x-powered-by: - ASP.NET status: diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_vm_metric_alerts_scenario.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_vm_metric_alerts_scenario.yaml index a81eb480821..44e15f7e898 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_vm_metric_alerts_scenario.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_clone_vm_metric_alerts_scenario.yaml @@ -3264,7 +3264,7 @@ interactions: User-Agent: - AZURECLI/2.63.0 azsdk-python-core/1.28.0 Python/3.10.11 (Windows-10-10.0.22631-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/actionGroups/ag1?api-version=2024-10-01-preview response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/ag1","type":"Microsoft.Insights/ActionGroups","name":"ag1","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"ag1","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_create_full_fledged_activity_log_alert.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_create_full_fledged_activity_log_alert.yaml index 35e75d12a4e..e136ffe12db 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_create_full_fledged_activity_log_alert.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_create_full_fledged_activity_log_alert.yaml @@ -13,12 +13,12 @@ interactions: ParameterSetName: - -n -o User-Agent: - - AZURECLI/2.53.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_create_full_fledged_activity_log_alert","date":"2023-10-18T07:10:30Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_create_full_fledged_activity_log_alert","date":"2025-04-08T02:22:12Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -27,23 +27,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:10:36 GMT + - Tue, 08 Apr 2025 02:22:25 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: 3B9FC985FF6746279F6EAB5D9119460A Ref B: MAA201060515025 Ref C: 2025-04-08T02:22:24Z' status: code: 200 message: OK - request: body: '{"location": "Global", "properties": {"enabled": true, "groupShortName": - "cliact47qe62"}}' + "cliactkrfr5i"}}' headers: Accept: - application/json @@ -60,19 +64,19 @@ interactions: ParameterSetName: - -n -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/actionGroups/cliact000002?api-version=2022-06-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/actionGroups/cliact000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002","type":"Microsoft.Insights/ActionGroups","name":"cliact000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliact47qe62","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002","type":"Microsoft.Insights/ActionGroups","name":"cliact000002","location":"Global","kind":null,"tags":null,"properties":{"groupShortName":"cliactkrfr5i","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid api-supported-versions: - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, - 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview cache-control: - no-cache content-length: @@ -80,25 +84,29 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:10:49 GMT + - Tue, 08 Apr 2025 02:22:32 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-HTTPAPI/2.0 strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 6fe8c4c8-6d85-11ee-a78e-acde48001122 + - 4f85f0b3-1420-11f0-b394-902e1671aeaf + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-frame-options: - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/04b1ce8f-3445-4299-bf34-2d0257f4db2e x-ms-ratelimit-remaining-subscription-resource-requests: - '24' + x-msedge-ref: + - 'Ref A: AB1104B1EE3B492D9944BD4BC58EAA0D Ref B: MAA201060515031 Ref C: 2025-04-08T02:22:27Z' x-servedby: - - EUS2ONEIM000004 + - EUS2ONEIM000005 status: code: 201 message: Created @@ -116,12 +124,12 @@ interactions: ParameterSetName: - -n -g -s --action --condition --disable -o User-Agent: - - AZURECLI/2.53.0 azsdk-python-azure-mgmt-resource/23.1.0b2 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/clitest.rg000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_create_full_fledged_activity_log_alert","date":"2023-10-18T07:10:30Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001","name":"clitest.rg000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_create_full_fledged_activity_log_alert","date":"2025-04-08T02:22:12Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -130,17 +138,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:10:50 GMT + - Tue, 08 Apr 2025 02:22:35 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains - vary: - - Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: E5304D14B5FF4956B011AF18E722FB69 Ref B: MAA201060513031 Ref C: 2025-04-08T02:22:33Z' status: code: 200 message: OK @@ -158,7 +170,7 @@ interactions: ParameterSetName: - -n -g -s --action --condition --disable -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000003?api-version=2020-10-01 response: @@ -174,17 +186,21 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:10:50 GMT + - Tue, 08 Apr 2025 02:22:36 GMT expires: - '-1' pragma: - no-cache strict-transport-security: - max-age=31536000; includeSubDomains + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff x-ms-failure-cause: - gateway + x-msedge-ref: + - 'Ref A: E998B46DA9524FA3824523121355118E Ref B: MAA201060516009 Ref C: 2025-04-08T02:22:36Z' status: code: 404 message: Not Found @@ -210,23 +226,22 @@ interactions: ParameterSetName: - -n -g -s --action --condition --disable -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000003?api-version=2020-10-01 response: body: - string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000003\"\ - ,\r\n \"name\": \"clialert000003\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\"\ - : [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\"\ - \r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n\ - \ \"field\": \"category\",\r\n \"equals\": \"Security\"\r\ - \n },\r\n {\r\n \"field\": \"level\",\r\n \ - \ \"equals\": \"Error\"\r\n }\r\n ]\r\n },\r\n \"actions\"\ - : {\r\n \"actionGroups\": [\r\n {\r\n \"actionGroupId\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\ - \n \"enabled\": false\r\n }\r\n}" + string: "{\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000003\",\r\n + \ \"name\": \"clialert000003\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\",\r\n + \ \"location\": \"Global\",\r\n \"properties\": {\r\n \"scopes\": [\r\n + \ \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\"\r\n + \ ],\r\n \"condition\": {\r\n \"allOf\": [\r\n {\r\n \"field\": + \"category\",\r\n \"equals\": \"Security\"\r\n },\r\n {\r\n + \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n }\r\n + \ ]\r\n },\r\n \"actions\": {\r\n \"actionGroups\": [\r\n {\r\n + \ \"actionGroupId\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\",\r\n + \ \"webhookProperties\": {}\r\n }\r\n ]\r\n },\r\n + \ \"enabled\": false\r\n }\r\n}" headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -239,21 +254,27 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:10:58 GMT + - Tue, 08 Apr 2025 02:22:46 GMT expires: - '-1' pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/indonesiacentral/9e472af9-2935-47d9-886c-bd29b456b63e + x-ms-ratelimit-remaining-subscription-global-writes: + - '2999' x-ms-ratelimit-remaining-subscription-writes: - - '1199' + - '199' + x-msedge-ref: + - 'Ref A: F1561893C99B40E994D7457FF16D8F2A Ref B: MAA201060513033 Ref C: 2025-04-08T02:22:37Z' x-powered-by: - ASP.NET status: @@ -273,25 +294,12 @@ interactions: ParameterSetName: - -g -o User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts?api-version=2020-10-01 response: body: - string: "{\r\n \"value\": [\r\n {\r\n \"id\": \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000003\"\ - ,\r\n \"name\": \"clialert000003\",\r\n \"type\": \"Microsoft.Insights/ActivityLogAlerts\"\ - ,\r\n \"location\": \"Global\",\r\n \"properties\": {\r\n \ - \ \"scopes\": [\r\n \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001\"\ - \r\n ],\r\n \"condition\": {\r\n \"allOf\": [\r\n \ - \ {\r\n \"field\": \"category\",\r\n \"\ - equals\": \"Security\"\r\n },\r\n {\r\n \ - \ \"field\": \"level\",\r\n \"equals\": \"Error\"\r\n \ - \ }\r\n ]\r\n },\r\n \"actions\": {\r\n \ - \ \"actionGroups\": [\r\n {\r\n \"actionGroupId\"\ - : \"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002\"\ - ,\r\n \"webhookProperties\": {}\r\n }\r\n \ - \ ]\r\n },\r\n \"enabled\": false\r\n }\r\n }\r\n \ - \ ]\r\n}" + string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/Microsoft.Insights/activityLogAlerts/clialert000003","name":"clialert000003","type":"Microsoft.Insights/ActivityLogAlerts","location":"Global","properties":{"scopes":["/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001"],"condition":{"allOf":[{"field":"category","equals":"Security"},{"field":"level","equals":"Error"}]},"actions":{"actionGroups":[{"actionGroupId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/clitest.rg000001/providers/microsoft.insights/actionGroups/cliact000002","webhookProperties":{}}]},"enabled":false}}]}' headers: api-supported-versions: - 2017-03-01-preview, 2017-04-01, 2020-10-01, 2023-01-01-preview @@ -300,27 +308,29 @@ interactions: cache-control: - no-cache content-length: - - '1093' + - '695' content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:11:00 GMT - expires: - - '-1' + - Tue, 08 Apr 2025 02:22:48 GMT pragma: - no-cache - server: - - Microsoft-IIS/10.0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked vary: - - Accept-Encoding,Accept-Encoding + - Accept-Encoding x-aspnet-version: - 4.0.30319 + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-original-request-ids: + - dfaa38dc-7f30-4231-9fda-bd83a1a0ce2c + x-ms-ratelimit-remaining-subscription-global-reads: + - '3749' + x-msedge-ref: + - 'Ref A: B2C3C79BC28D4CA5BC53649ED487E0FA Ref B: MAA201060514053 Ref C: 2025-04-08T02:22:47Z' x-powered-by: - ASP.NET status: @@ -338,7 +348,7 @@ interactions: Connection: - keep-alive User-Agent: - - AZURECLI/2.53.0 (AAZ) azsdk-python-core/1.26.0 Python/3.10.6 (macOS-14.0-x86_64-i386-64bit) + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) method: GET uri: https://management.azure.com/providers/Microsoft.Insights/eventcategories?api-version=2015-04-01 response: @@ -347,6 +357,10 @@ interactions: Health"},{"value":"Alert","localizedValue":"Alert"},{"value":"Recommendation","localizedValue":"Recommendation"},{"value":"Policy","localizedValue":"Policy"},{"value":"Autoscale","localizedValue":"Autoscale"},{"value":"ResourceHealth","localizedValue":"Resource Health"}]}' headers: + access-control-allow-origin: + - '*' + api-supported-versions: + - '2015-04-01' cache-control: - no-cache content-length: @@ -354,21 +368,25 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Wed, 18 Oct 2023 07:11:00 GMT + - Tue, 08 Apr 2025 02:22:48 GMT expires: - '-1' + mise-correlation-id: + - 107adda4-bdd7-4429-99a9-f711e0472a3f pragma: - no-cache - server: - - Microsoft-IIS/10.0 + request-context: + - appId=cid-v1:e9ce6014-b708-4056-a18d-21dc38a7abb0 strict-transport-security: - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding + x-cache: + - CONFIG_NOCACHE x-content-type-options: - nosniff + x-ms-operation-identifier: + - '' + x-msedge-ref: + - 'Ref A: A5E621B4D28749E480DB44F7F98529B0 Ref B: MAA201060515035 Ref C: 2025-04-08T02:22:49Z' status: code: 200 message: OK From 609c73e1bccfff439d0c28398a6d89f612d9f5dc Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Tue, 8 Apr 2025 11:50:20 +0800 Subject: [PATCH 4/9] skip pylint warning --- .../monitor/operations/action_groups_identity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py index 541ab1279c8..6842a2273fc 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py @@ -2,7 +2,7 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- -# pylint: disable=protected-access +# pylint: disable=protected-access, line-too-long, unused-argument from knack.log import get_logger from azure.cli.core.aaz import register_command, has_value, AAZBoolArg, AAZListArg, AAZResourceIdArg, AAZResourceIdArgFormat From 3411139634839536b305115d8f533d11130a2178 Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Mon, 14 Apr 2025 13:59:51 +0800 Subject: [PATCH 5/9] add receiver mi scenario test --- .../monitor/operations/action_groups.py | 24 - .../test_monitor_action_group_identity.yaml | 426 ++++++++++++++---- .../latest/test_monitor_action_groups.py | 15 +- 3 files changed, 355 insertions(+), 110 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py index 018c74be9be..f7bab9e1b48 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py @@ -129,18 +129,6 @@ class ActionGroupCreate(_ActionGroupCreate): @classmethod def _build_arguments_schema(cls, *args, **kwargs): args_schema = super()._build_arguments_schema(*args, **kwargs) - args_schema.arm_role_receivers._registered = False - args_schema.automation_runbook_receivers._registered = False - args_schema.azure_app_push_receivers._registered = False - args_schema.azure_function_receivers._registered = False - args_schema.email_receivers._registered = False - args_schema.enabled._registered = False - args_schema.event_hub_receivers._registered = False - args_schema.itsm_receivers._registered = False - args_schema.logic_app_receivers._registered = False - args_schema.sms_receivers._registered = False - args_schema.voice_receivers._registered = False - args_schema.webhook_receivers._registered = False args_schema.receiver_actions = AAZCustomListArg( options=["--actions"], singular_options=["--action", "-a"], @@ -211,18 +199,6 @@ class ActionGroupUpdate(_ActionGroupUpdate): @classmethod def _build_arguments_schema(cls, *args, **kwargs): args_schema = super()._build_arguments_schema(*args, **kwargs) - args_schema.arm_role_receivers._registered = False - args_schema.automation_runbook_receivers._registered = False - args_schema.azure_app_push_receivers._registered = False - args_schema.azure_function_receivers._registered = False - args_schema.email_receivers._registered = False - args_schema.enabled._registered = False - args_schema.event_hub_receivers._registered = False - args_schema.itsm_receivers._registered = False - args_schema.logic_app_receivers._registered = False - args_schema.sms_receivers._registered = False - args_schema.voice_receivers._registered = False - args_schema.webhook_receivers._registered = False args_schema.type._registered = False args_schema.user_assigned_identities._registered = False args_schema.receiver_actions = AAZCustomListArg( diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_identity.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_identity.yaml index 9a7eb84dd05..37f8655b4bc 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_identity.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_identity.yaml @@ -1,4 +1,260 @@ interactions: +- request: + body: '{"identity": {"type": "SystemAssigned"}, "location": "eastus2euap", "properties": + {"enabled": true, "groupShortName": "cliactiongro"}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group create + Connection: + - keep-alive + Content-Length: + - '134' + Content-Type: + - application/json + ParameterSetName: + - -n -g -l --system-assigned + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"eastus2euap","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"e59a98cf-7608-4f4d-86a8-ddfc9c3c4cb5","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '757' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Apr 2025 05:48:02 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 01af0796-18f4-11f0-bcac-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/7d6a6c53-4477-46bc-bf13-77a70c706cdd + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' + x-msedge-ref: + - 'Ref A: EA2F4E84C70548F3B89FA0050E112A8D Ref B: TYO201151001062 Ref C: 2025-04-14T05:47:55Z' + x-servedby: + - cbn2azns00000D + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group update + Connection: + - keep-alive + ParameterSetName: + - -n -g --event-hub-receiver + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"eastus2euap","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"e59a98cf-7608-4f4d-86a8-ddfc9c3c4cb5","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '757' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Apr 2025 05:48:04 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 08223413-18f4-11f0-b3ef-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-ratelimit-remaining-subscription-resource-requests: + - '249' + x-msedge-ref: + - 'Ref A: 7210F3DABA1F42269560445CE2427683 Ref B: TYO201151005062 Ref C: 2025-04-14T05:48:04Z' + x-servedby: + - cbn2azns000000 + status: + code: 200 + message: OK +- request: + body: '{"identity": {"type": "SystemAssigned"}, "location": "eastus2euap", "properties": + {"armRoleReceivers": [], "automationRunbookReceivers": [], "azureAppPushReceivers": + [], "azureFunctionReceivers": [], "emailReceivers": [], "enabled": true, "eventHubReceivers": + [{"eventHubName": "testEventHub", "eventHubNameSpace": "testEventHubNameSpace", + "managedIdentity": "e59a98cf-7608-4f4d-86a8-ddfc9c3c4cb5", "name": "test_eventhub", + "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d"}], "groupShortName": + "cliactiongro", "incidentReceivers": [], "itsmReceivers": [], "logicAppReceivers": + [], "smsReceivers": [], "voiceReceivers": [], "webhookReceivers": []}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group update + Connection: + - keep-alive + Content-Length: + - '655' + Content-Type: + - application/json + ParameterSetName: + - -n -g --event-hub-receiver + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"eastus2euap","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"e59a98cf-7608-4f4d-86a8-ddfc9c3c4cb5","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[{"name":"test_eventhub","subscriptionId":"187f412d-1758-44d9-b052-169e2564721d","eventHubNameSpace":"testEventHubNameSpace","eventHubName":"testEventHub","useCommonAlertSchema":false,"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","managedIdentity":"e59a98cf-7608-4f4d-86a8-ddfc9c3c4cb5"}],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[]}}' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '1070' + content-type: + - application/json; charset=utf-8 + date: + - Mon, 14 Apr 2025 05:48:11 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 08223413-18f4-11f0-b3ef-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/0d9b63be-a784-4ce3-a914-dd81f6d88f39 + x-ms-ratelimit-remaining-subscription-resource-requests: + - '24' + x-msedge-ref: + - 'Ref A: 010D2E8D136B410986E788548C8E122D Ref B: TYO201151005062 Ref C: 2025-04-14T05:48:05Z' + x-servedby: + - CBN1AZNS00000D + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + CommandName: + - monitor action-group delete + Connection: + - keep-alive + Content-Length: + - '0' + ParameterSetName: + - -n -g + User-Agent: + - AZURECLI/2.71.0 azsdk-python-core/1.31.0 Python/3.11.9 (Windows-10-10.0.26100-SP0) + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview + response: + body: + string: '' + headers: + access-control-expose-headers: + - x-activityid + api-supported-versions: + - 2016-09-01-preview, 2017-03-01-preview, 2017-04-01, 2018-03-01, 2018-09-01, + 2019-03-01, 2019-06-01, 2021-09-01, 2022-04-01, 2022-06-01, 2023-01-01, 2023-03-01-preview, + 2023-05-01-preview, 2023-05-01, 2023-08-01-preview, 2023-09-01-preview, 2024-10-01-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Mon, 14 Apr 2025 05:48:14 GMT + expires: + - '-1' + pragma: + - no-cache + strict-transport-security: + - max-age=31536000; includeSubDomains + x-activityid: + - 0d2928c0-18f4-11f0-9e92-902e1671aeaf + x-cache: + - CONFIG_NOCACHE + x-content-type-options: + - nosniff + x-frame-options: + - SAMEORIGIN + x-ms-operation-identifier: + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/bc157f0d-783b-466d-9e15-70d7bf2aeedb + x-ms-ratelimit-remaining-subscription-deletes: + - '199' + x-ms-ratelimit-remaining-subscription-global-deletes: + - '2999' + x-msedge-ref: + - 'Ref A: 3092B5FFFA324CCA84521DBF7723A1B6 Ref B: TYO201100113027 Ref C: 2025-04-14T05:48:12Z' + x-servedby: + - cbn1azns000001 + status: + code: 200 + message: OK - request: body: null headers: @@ -18,16 +274,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001","name":"cli_test_monitor_ag_identity000001","type":"Microsoft.Resources/resourceGroups","location":"southcentralus","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_action_group_identity","date":"2025-04-07T07:01:41Z","module":"monitor"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001","name":"cli_test_monitor_ag_identity000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_action_group_identity","date":"2025-04-14T05:47:49Z","module":"monitor","Creator":"v-ruih@microsoft.com","DateCreated":"2025-04-14T05:47:54Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache content-length: - - '417' + - '484' content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:01:51 GMT + - Mon, 14 Apr 2025 05:48:15 GMT expires: - '-1' pragma: @@ -41,12 +297,12 @@ interactions: x-ms-ratelimit-remaining-subscription-global-reads: - '3749' x-msedge-ref: - - 'Ref A: B2EE5C41C4D54EB3B6B582AE8DAC1B18 Ref B: MAA201060513037 Ref C: 2025-04-07T07:01:51Z' + - 'Ref A: 79E950C615744D9F980565FD7E4A44E0 Ref B: TYO201100113029 Ref C: 2025-04-14T05:48:15Z' status: code: 200 message: OK - request: - body: '{"location": "southcentralus"}' + body: '{"location": "eastus2euap"}' headers: Accept: - application/json @@ -57,7 +313,7 @@ interactions: Connection: - keep-alive Content-Length: - - '30' + - '27' Content-Type: - application/json ParameterSetName: @@ -68,16 +324,16 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003?api-version=2023-01-31 response: body: - string: '{"location":"southcentralus","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003","name":"agid000003","type":"Microsoft.ManagedIdentity/userAssignedIdentities","properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"3d9c4d26-a895-4458-9d42-0b706e03ae0e","clientId":"6bb58a7c-af1b-406c-805a-bd76ceaeb028"}}' + string: '{"location":"eastus2euap","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003","name":"agid000003","type":"Microsoft.ManagedIdentity/userAssignedIdentities","properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"db1f6937-9c9d-438c-af0b-d3e32fd72382","clientId":"af88c341-5b4a-4d13-b22e-1c9e67ee7af1"}}' headers: cache-control: - no-cache content-length: - - '464' + - '461' content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:01:57 GMT + - Mon, 14 Apr 2025 05:48:22 GMT expires: - '-1' location: @@ -91,13 +347,13 @@ interactions: x-content-type-options: - nosniff x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/5c854d7b-789f-4b09-89c4-cff066527f9c + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/60993229-598f-4663-9131-89e9f656df1c x-ms-ratelimit-remaining-subscription-global-writes: - '2999' x-ms-ratelimit-remaining-subscription-writes: - '199' x-msedge-ref: - - 'Ref A: 6B0FC70D46974D2F9044D57B17349C47 Ref B: MAA201060515025 Ref C: 2025-04-07T07:01:52Z' + - 'Ref A: CE59FCFCCA524E0EA5A5E6173260C229 Ref B: TYO201151005025 Ref C: 2025-04-14T05:48:16Z' status: code: 201 message: Created @@ -126,7 +382,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"6bb58a7c-af1b-406c-805a-bd76ceaeb028","principalId":"3d9c4d26-a895-4458-9d42-0b706e03ae0e"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"af88c341-5b4a-4d13-b22e-1c9e67ee7af1","principalId":"db1f6937-9c9d-438c-af0b-d3e32fd72382"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -141,7 +397,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:06 GMT + - Mon, 14 Apr 2025 05:48:29 GMT expires: - '-1' pragma: @@ -149,7 +405,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 322d4fc5-137e-11f0-af0e-902e1671aeaf + - 137674da-18f4-11f0-adb3-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -157,13 +413,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/aba202ec-3272-4368-8d38-a4fee8a9b155 + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/a0fb492e-b2cd-4aa7-bf34-5009fc644f4b x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: 1D82A05DBD18440F9501385B6B33A4DD Ref B: MAA201060516045 Ref C: 2025-04-07T07:02:01Z' + - 'Ref A: 64A09592BB2543CE828F351C1BA0472C Ref B: TYO201100116045 Ref C: 2025-04-14T05:48:23Z' x-servedby: - - EUS2ONEIM000001 + - WUS2ONEIM000007 status: code: 201 message: Created @@ -186,7 +442,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"6bb58a7c-af1b-406c-805a-bd76ceaeb028","principalId":"3d9c4d26-a895-4458-9d42-0b706e03ae0e"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"af88c341-5b4a-4d13-b22e-1c9e67ee7af1","principalId":"db1f6937-9c9d-438c-af0b-d3e32fd72382"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -201,7 +457,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:06 GMT + - Mon, 14 Apr 2025 05:48:30 GMT expires: - '-1' pragma: @@ -209,7 +465,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 378236ac-137e-11f0-8334-902e1671aeaf + - 18010981-18f4-11f0-9bef-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -219,9 +475,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: 626E4376203641A78589AA3BD8BE7D4C Ref B: MAA201060516025 Ref C: 2025-04-07T07:02:07Z' + - 'Ref A: 8F88FDC2A1EF4B6F81CB7C037930407F Ref B: TYO201151003062 Ref C: 2025-04-14T05:48:30Z' x-servedby: - - EUS2ONEIM000008 + - EUS2ONEIM000003 status: code: 200 message: OK @@ -244,7 +500,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"6bb58a7c-af1b-406c-805a-bd76ceaeb028","principalId":"3d9c4d26-a895-4458-9d42-0b706e03ae0e"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"af88c341-5b4a-4d13-b22e-1c9e67ee7af1","principalId":"db1f6937-9c9d-438c-af0b-d3e32fd72382"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -259,7 +515,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:08 GMT + - Mon, 14 Apr 2025 05:48:32 GMT expires: - '-1' pragma: @@ -267,7 +523,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 383d93d1-137e-11f0-9160-902e1671aeaf + - 18980aad-18f4-11f0-82d1-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -277,9 +533,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: 408E1AF85DBF4588AC36E1010560E854 Ref B: MAA201060514033 Ref C: 2025-04-07T07:02:08Z' + - 'Ref A: 3165979905474F5398465061FCBD709C Ref B: TYO201100116023 Ref C: 2025-04-14T05:48:31Z' x-servedby: - - WUS2ONEIM000002 + - WUS2ONEIM000005 status: code: 200 message: OK @@ -325,7 +581,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:14 GMT + - Mon, 14 Apr 2025 05:48:36 GMT expires: - '-1' pragma: @@ -333,7 +589,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 383d93d1-137e-11f0-9160-902e1671aeaf + - 18980aad-18f4-11f0-82d1-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -341,13 +597,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/72358dd8-8412-4778-b63e-d89738043c58 + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/3b8c2a18-ecc8-43ce-b226-ed64c8125378 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: 11EBAE5647D9414680EFF74436B97A56 Ref B: MAA201060514033 Ref C: 2025-04-07T07:02:09Z' + - 'Ref A: AA353037E2934E978984D4DDC9EDE7EF Ref B: TYO201100116023 Ref C: 2025-04-14T05:48:32Z' x-servedby: - - WUS2ONEIM000006 + - EUS2ONEIM000005 status: code: 200 message: OK @@ -385,7 +641,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:16 GMT + - Mon, 14 Apr 2025 05:48:36 GMT expires: - '-1' pragma: @@ -393,7 +649,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 3ce1203f-137e-11f0-9f0e-902e1671aeaf + - 1bc77193-18f4-11f0-b113-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -401,11 +657,11 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-ratelimit-remaining-subscription-resource-requests: - - '249' + - '248' x-msedge-ref: - - 'Ref A: 726E32C7F2F14816A564E3096DE254A6 Ref B: MAA201060514037 Ref C: 2025-04-07T07:02:16Z' + - 'Ref A: 23C89635A988495B9D1D502FA2CE1395 Ref B: TYO201100113031 Ref C: 2025-04-14T05:48:37Z' x-servedby: - - WUS2ONEIM000002 + - WUS2ONEIM000004 status: code: 200 message: OK @@ -443,7 +699,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:18 GMT + - Mon, 14 Apr 2025 05:48:38 GMT expires: - '-1' pragma: @@ -451,7 +707,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 3dacc437-137e-11f0-892f-902e1671aeaf + - 1c53037b-18f4-11f0-9656-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -461,9 +717,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: F4AFA8D1EF4A47E2AD1204E2D31D3822 Ref B: MAA201060516047 Ref C: 2025-04-07T07:02:17Z' + - 'Ref A: 449D25E823BB4583823CE171DF7A719E Ref B: TYO201151001036 Ref C: 2025-04-14T05:48:38Z' x-servedby: - - EUS2ONEIM000006 + - EUS2ONEIM000005 status: code: 200 message: OK @@ -494,7 +750,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"f3c3beae-486b-4821-99a9-40d92fb271b2","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"05cbfb51-958a-4fbc-a338-5c71415711a3","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -509,7 +765,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:26 GMT + - Mon, 14 Apr 2025 05:48:45 GMT expires: - '-1' pragma: @@ -517,7 +773,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 3dacc437-137e-11f0-892f-902e1671aeaf + - 1c53037b-18f4-11f0-9656-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -525,13 +781,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/20568ac5-1ec8-4f26-a525-1c40f1ade495 + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/b9b30da4-929d-4e56-ba35-b6a17c474c06 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: 51396266764049AEBEC0349C116877AA Ref B: MAA201060516047 Ref C: 2025-04-07T07:02:19Z' + - 'Ref A: 5FE95396F4174F878A18A2346389FBFE Ref B: TYO201151001036 Ref C: 2025-04-14T05:48:38Z' x-servedby: - - WUS2ONEIM000005 + - EUS2ONEIM000000 status: code: 200 message: OK @@ -554,7 +810,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"f3c3beae-486b-4821-99a9-40d92fb271b2","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"05cbfb51-958a-4fbc-a338-5c71415711a3","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -569,7 +825,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:27 GMT + - Mon, 14 Apr 2025 05:48:46 GMT expires: - '-1' pragma: @@ -577,7 +833,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 436ac293-137e-11f0-ba78-902e1671aeaf + - 21735321-18f4-11f0-8af4-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -587,9 +843,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: 6C14992E90674FE2A2B0AF85FA0364D4 Ref B: MAA201060514027 Ref C: 2025-04-07T07:02:27Z' + - 'Ref A: F7E266FB4DE14E4B925717C392FDD19E Ref B: TYO201100116021 Ref C: 2025-04-14T05:48:46Z' x-servedby: - - EUS2ONEIM000004 + - WUS2ONEIM000008 status: code: 200 message: OK @@ -623,7 +879,7 @@ interactions: response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned, - UserAssigned","principalId":"f3c3beae-486b-4821-99a9-40d92fb271b2","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/microsoft.managedidentity/userassignedidentities/agid000003":{"clientId":"6bb58a7c-af1b-406c-805a-bd76ceaeb028","principalId":"3d9c4d26-a895-4458-9d42-0b706e03ae0e"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + UserAssigned","principalId":"05cbfb51-958a-4fbc-a338-5c71415711a3","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/microsoft.managedidentity/userassignedidentities/agid000003":{"clientId":"af88c341-5b4a-4d13-b22e-1c9e67ee7af1","principalId":"db1f6937-9c9d-438c-af0b-d3e32fd72382"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -638,7 +894,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:37 GMT + - Mon, 14 Apr 2025 05:48:51 GMT expires: - '-1' pragma: @@ -646,7 +902,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 436ac293-137e-11f0-ba78-902e1671aeaf + - 21735321-18f4-11f0-8af4-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -654,13 +910,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/b0c646e2-6bc8-4a79-a242-0040c0594a36 + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/b969e917-366a-4d49-9135-a5b10e241ac2 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: AC891739F0524D78AE46FAB6E62EBA71 Ref B: MAA201060514027 Ref C: 2025-04-07T07:02:28Z' + - 'Ref A: 591950BA88FD4C14B29913805CD62553 Ref B: TYO201100116021 Ref C: 2025-04-14T05:48:47Z' x-servedby: - - WUS2ONEIM000002 + - WUS2ONEIM000004 status: code: 200 message: OK @@ -684,7 +940,7 @@ interactions: response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned, - UserAssigned","principalId":"f3c3beae-486b-4821-99a9-40d92fb271b2","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/microsoft.managedidentity/userassignedidentities/agid000003":{"clientId":"6bb58a7c-af1b-406c-805a-bd76ceaeb028","principalId":"3d9c4d26-a895-4458-9d42-0b706e03ae0e"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + UserAssigned","principalId":"05cbfb51-958a-4fbc-a338-5c71415711a3","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/microsoft.managedidentity/userassignedidentities/agid000003":{"clientId":"af88c341-5b4a-4d13-b22e-1c9e67ee7af1","principalId":"db1f6937-9c9d-438c-af0b-d3e32fd72382"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -699,7 +955,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:38 GMT + - Mon, 14 Apr 2025 05:48:52 GMT expires: - '-1' pragma: @@ -707,7 +963,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 4a3f4df0-137e-11f0-bc12-902e1671aeaf + - 25218947-18f4-11f0-b76b-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -717,9 +973,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: 9E723DACF1054495B7B66F478283D17B Ref B: SIN221080715019 Ref C: 2025-04-07T07:02:38Z' + - 'Ref A: C0945270BFD44584999C8AAAE818F2E4 Ref B: TYO201151001060 Ref C: 2025-04-14T05:48:52Z' x-servedby: - - EUS2ONEIM000000 + - EUS2ONEIM000007 status: code: 200 message: OK @@ -750,7 +1006,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"f3c3beae-486b-4821-99a9-40d92fb271b2","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"05cbfb51-958a-4fbc-a338-5c71415711a3","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -765,7 +1021,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:43 GMT + - Mon, 14 Apr 2025 05:49:00 GMT expires: - '-1' pragma: @@ -773,7 +1029,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 4a3f4df0-137e-11f0-bc12-902e1671aeaf + - 25218947-18f4-11f0-b76b-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -781,13 +1037,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/5d76752d-c38c-4fee-804e-30af205401a7 + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/b774e4bd-ef6c-4af0-8398-825d87eda6cd x-ms-ratelimit-remaining-subscription-resource-requests: - - '24' + - '23' x-msedge-ref: - - 'Ref A: CA40858C80CE40A8861436D544B3D456 Ref B: SIN221080715019 Ref C: 2025-04-07T07:02:39Z' + - 'Ref A: DB499D91026C4250B0927184F273C59B Ref B: TYO201151001060 Ref C: 2025-04-14T05:48:53Z' x-servedby: - - EUS2ONEIM000000 + - EUS2ONEIM000005 status: code: 200 message: OK @@ -810,7 +1066,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"f3c3beae-486b-4821-99a9-40d92fb271b2","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"05cbfb51-958a-4fbc-a338-5c71415711a3","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -825,7 +1081,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:45 GMT + - Mon, 14 Apr 2025 05:49:02 GMT expires: - '-1' pragma: @@ -833,7 +1089,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 4e201b72-137e-11f0-93df-902e1671aeaf + - 2a975dbb-18f4-11f0-96e5-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -843,9 +1099,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: 459D24941FE04136A5F26AF114C69AA4 Ref B: SIN221080711007 Ref C: 2025-04-07T07:02:45Z' + - 'Ref A: 03EDCE3256FE4F3F8A1EB00161B7010D Ref B: TYO201151002054 Ref C: 2025-04-14T05:49:01Z' x-servedby: - - WUS2ONEIM000003 + - EUS2ONEIM000000 status: code: 200 message: OK @@ -891,7 +1147,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:50 GMT + - Mon, 14 Apr 2025 05:49:09 GMT expires: - '-1' pragma: @@ -899,7 +1155,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 4e201b72-137e-11f0-93df-902e1671aeaf + - 2a975dbb-18f4-11f0-96e5-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -907,13 +1163,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/southeastasia/96866e4c-0d1d-4888-b6b9-091a8d2b13aa + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/b8c8ca4c-63fb-4c8a-b54b-2ce38f4575e6 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: 219EE4B087BF4ADF8E31F49C3B3337EB Ref B: SIN221080711007 Ref C: 2025-04-07T07:02:46Z' + - 'Ref A: A774BDB24460420BA52511B266ADFEC3 Ref B: TYO201151002054 Ref C: 2025-04-14T05:49:03Z' x-servedby: - - WUS2ONEIM000002 + - WUS2ONEIM000003 status: code: 200 message: OK @@ -951,7 +1207,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 07 Apr 2025 07:02:52 GMT + - Mon, 14 Apr 2025 05:49:11 GMT expires: - '-1' pragma: @@ -959,7 +1215,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 51ffbb61-137e-11f0-b702-902e1671aeaf + - 2fff8a26-18f4-11f0-8a4f-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -967,11 +1223,11 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-ratelimit-remaining-subscription-resource-requests: - - '248' + - '249' x-msedge-ref: - - 'Ref A: 7F01A2C6D4EC4EDA83FD3CA7252CE0BA Ref B: SIN221080711045 Ref C: 2025-04-07T07:02:52Z' + - 'Ref A: CBB05C0216034AA68A5817AC36F33251 Ref B: TYO201100113027 Ref C: 2025-04-14T05:49:11Z' x-servedby: - - WUS2ONEIM000003 + - WUS2ONEIM000008 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_action_groups.py b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_action_groups.py index 1923e1af578..b08fb4b5cf8 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_action_groups.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_action_groups.py @@ -105,7 +105,7 @@ def test_monitor_action_group_incident_receivers(self, resource_group): self.check('length(incidentReceivers)', 1), self.check('incidentReceivers[0].name', 'testag')]) - @ResourceGroupPreparer(name_prefix='cli_test_monitor_ag_identity', location='southcentralus') + @ResourceGroupPreparer(name_prefix='cli_test_monitor_ag_identity', location='eastus2euap') def test_monitor_action_group_identity(self, resource_group): action_group_name = self.create_random_name('cliactiongrouptest', 32) self.kwargs.update({ @@ -114,6 +114,19 @@ def test_monitor_action_group_identity(self, resource_group): 'id_name': self.create_random_name('agid', 10) }) + self.kwargs['system_mi'] = self.cmd('monitor action-group create -n {ag} -g {rg} -l eastus2euap --system-assigned').get_output_in_json()['identity']['principalId'] + + self.cmd('monitor action-group update -n {ag} -g {rg} --event-hub-receiver ' + '[0].name=test_eventhub [0].subscription_id=187f412d-1758-44d9-b052-169e2564721d ' + '[0].event_hub_name_space=testEventHubNameSpace [0].event_hub_name=testEventHub ' + '[0].managed_identity={system_mi}', + checks=[ + self.check('length(eventHubReceivers)', 1), + self.check('eventHubReceivers[0].name', 'test_eventhub'), + self.check('eventHubReceivers[0].managedIdentity', '{system_mi}')]) + + self.cmd('monitor action-group delete -n {ag} -g {rg}') + identity = self.cmd('identity create -n {id_name} -g {rg}').get_output_in_json() self.kwargs['identity'] = identity['id'] self.cmd('monitor action-group create -n {ag} -g {rg} --user-assigned {identity}') From 124164312437cad82346add13b12589218a6c766 Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Mon, 14 Apr 2025 14:37:25 +0800 Subject: [PATCH 6/9] use generated identity command --- .../action_group/identity/__cmd_group.py | 23 + .../monitor/action_group/identity/__init__.py | 14 + .../monitor/action_group/identity/_assign.py | 718 +++++++++++++++++ .../monitor/action_group/identity/_remove.py | 719 ++++++++++++++++++ .../monitor/action_group/identity/_show.py | 566 ++++++++++++++ .../cli/command_modules/monitor/commands.py | 8 +- .../operations/action_groups_identity.py | 222 ------ .../test_monitor_action_group_identity.yaml | 221 +++--- .../latest/test_monitor_action_groups.py | 2 +- 9 files changed, 2155 insertions(+), 338 deletions(-) create mode 100644 src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/__cmd_group.py create mode 100644 src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/__init__.py create mode 100644 src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/_assign.py create mode 100644 src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/_remove.py create mode 100644 src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/_show.py delete mode 100644 src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/__cmd_group.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/__cmd_group.py new file mode 100644 index 00000000000..6d0f6b9d2ca --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/__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( + "monitor action-group identity", +) +class __CMDGroup(AAZCommandGroup): + """Manage identities of the action-group. + """ + pass + + +__all__ = ["__CMDGroup"] diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/__init__.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/__init__.py new file mode 100644 index 00000000000..6e361c3c498 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/__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 ._assign import * +from ._remove import * +from ._show import * diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/_assign.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/_assign.py new file mode 100644 index 00000000000..5457f7361d9 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/_assign.py @@ -0,0 +1,718 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "monitor action-group identity assign", +) +class Assign(AAZCommand): + """Assign the user or system managed identities. + + :example: Add a system assigned managed identity to an existing action group. + az monitor action-group identity assign --name ag --resource-group rg --system-assigned + + :example: Add a user assigned managed identity to an existing action group. + az monitor action-group identity assign --name ag --resource-group rg --user-assigned MyAssignedId + + :example: Add system assigned identity and a user assigned managed identity to an existing action group. + az monitor action-group identity assign --name ag --resource-group rg --system-assigned --user-assigned MyAssignedId + """ + + _aaz_info = { + "version": "2024-10-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}", "2024-10-01-preview", "identity"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self.SubresourceSelector(ctx=self.ctx, name="subresource") + 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.action_group_name = AAZStrArg( + options=["-n", "--name", "--action-group-name"], + help="The name of the action group.", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "ActionGroup.identity" + + _args_schema = cls._args_schema + _args_schema.mi_system_assigned = AAZStrArg( + options=["--system-assigned", "--mi-system-assigned"], + arg_group="ActionGroup.identity", + help="Set the system managed identity.", + blank="True", + ) + _args_schema.mi_user_assigned = AAZListArg( + options=["--user-assigned", "--mi-user-assigned"], + arg_group="ActionGroup.identity", + help="Set the user managed identities.", + blank=[], + ) + + mi_user_assigned = cls._args_schema.mi_user_assigned + mi_user_assigned.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ActionGroupsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.selectors.subresource.required()) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.post_instance_update(self.ctx.selectors.subresource.required()) + self.ActionGroupsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.selectors.subresource.required(), client_flatten=True) + return result + + class SubresourceSelector(AAZJsonSelector): + + def _get(self): + result = self.ctx.vars.instance + return result.identity + + def _set(self, value): + result = self.ctx.vars.instance + result.identity = value + return + + class ActionGroupsGet(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/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "actionGroupName", self.ctx.args.action_group_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", 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", "2024-10-01-preview", + 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() + _AssignHelper._build_schema_action_group_resource_read(cls._schema_on_200) + + return cls._schema_on_200 + + class ActionGroupsCreateOrUpdate(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, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "actionGroupName", self.ctx.args.action_group_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", 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", "2024-10-01-preview", + 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, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _AssignHelper._build_schema_action_group_resource_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.selectors.subresource.required()) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZIdentityObjectType + ) + _builder.set_prop("userAssigned", AAZListType, ".mi_user_assigned", typ_kwargs={"flags": {"action": "assign"}}) + _builder.set_prop("systemAssigned", AAZStrType, ".mi_system_assigned", typ_kwargs={"flags": {"action": "assign"}}) + + user_assigned = _builder.get(".userAssigned") + if user_assigned is not None: + user_assigned.set_elements(AAZStrType, ".") + + return _instance_value + + +class _AssignHelper: + """Helper class for Assign""" + + _schema_action_group_resource_read = None + + @classmethod + def _build_schema_action_group_resource_read(cls, _schema): + if cls._schema_action_group_resource_read is not None: + _schema.id = cls._schema_action_group_resource_read.id + _schema.identity = cls._schema_action_group_resource_read.identity + _schema.location = cls._schema_action_group_resource_read.location + _schema.name = cls._schema_action_group_resource_read.name + _schema.properties = cls._schema_action_group_resource_read.properties + _schema.tags = cls._schema_action_group_resource_read.tags + _schema.type = cls._schema_action_group_resource_read.type + return + + cls._schema_action_group_resource_read = _schema_action_group_resource_read = AAZObjectType() + + action_group_resource_read = _schema_action_group_resource_read + action_group_resource_read.id = AAZStrType( + flags={"read_only": True}, + ) + action_group_resource_read.identity = AAZIdentityObjectType() + action_group_resource_read.location = AAZStrType( + flags={"required": True}, + ) + action_group_resource_read.name = AAZStrType( + flags={"read_only": True}, + ) + action_group_resource_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + action_group_resource_read.tags = AAZDictType() + action_group_resource_read.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = _schema_action_group_resource_read.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( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_action_group_resource_read.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType( + nullable=True, + ) + + _element = _schema_action_group_resource_read.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 = _schema_action_group_resource_read.properties + properties.arm_role_receivers = AAZListType( + serialized_name="armRoleReceivers", + ) + properties.automation_runbook_receivers = AAZListType( + serialized_name="automationRunbookReceivers", + ) + properties.azure_app_push_receivers = AAZListType( + serialized_name="azureAppPushReceivers", + ) + properties.azure_function_receivers = AAZListType( + serialized_name="azureFunctionReceivers", + ) + properties.email_receivers = AAZListType( + serialized_name="emailReceivers", + ) + properties.enabled = AAZBoolType( + flags={"required": True}, + ) + properties.event_hub_receivers = AAZListType( + serialized_name="eventHubReceivers", + ) + properties.group_short_name = AAZStrType( + serialized_name="groupShortName", + flags={"required": True}, + ) + properties.incident_receivers = AAZListType( + serialized_name="incidentReceivers", + ) + properties.itsm_receivers = AAZListType( + serialized_name="itsmReceivers", + ) + properties.logic_app_receivers = AAZListType( + serialized_name="logicAppReceivers", + ) + properties.sms_receivers = AAZListType( + serialized_name="smsReceivers", + ) + properties.voice_receivers = AAZListType( + serialized_name="voiceReceivers", + ) + properties.webhook_receivers = AAZListType( + serialized_name="webhookReceivers", + ) + + arm_role_receivers = _schema_action_group_resource_read.properties.arm_role_receivers + arm_role_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.arm_role_receivers.Element + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.role_id = AAZStrType( + serialized_name="roleId", + flags={"required": True}, + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + automation_runbook_receivers = _schema_action_group_resource_read.properties.automation_runbook_receivers + automation_runbook_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.automation_runbook_receivers.Element + _element.automation_account_id = AAZStrType( + serialized_name="automationAccountId", + flags={"required": True}, + ) + _element.is_global_runbook = AAZBoolType( + serialized_name="isGlobalRunbook", + flags={"required": True}, + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType() + _element.runbook_name = AAZStrType( + serialized_name="runbookName", + flags={"required": True}, + ) + _element.service_uri = AAZStrType( + serialized_name="serviceUri", + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + _element.webhook_resource_id = AAZStrType( + serialized_name="webhookResourceId", + flags={"required": True}, + ) + + azure_app_push_receivers = _schema_action_group_resource_read.properties.azure_app_push_receivers + azure_app_push_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.azure_app_push_receivers.Element + _element.email_address = AAZStrType( + serialized_name="emailAddress", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + + azure_function_receivers = _schema_action_group_resource_read.properties.azure_function_receivers + azure_function_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.azure_function_receivers.Element + _element.function_app_resource_id = AAZStrType( + serialized_name="functionAppResourceId", + flags={"required": True}, + ) + _element.function_name = AAZStrType( + serialized_name="functionName", + flags={"required": True}, + ) + _element.http_trigger_url = AAZStrType( + serialized_name="httpTriggerUrl", + flags={"required": True}, + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + email_receivers = _schema_action_group_resource_read.properties.email_receivers + email_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.email_receivers.Element + _element.email_address = AAZStrType( + serialized_name="emailAddress", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + event_hub_receivers = _schema_action_group_resource_read.properties.event_hub_receivers + event_hub_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.event_hub_receivers.Element + _element.event_hub_name = AAZStrType( + serialized_name="eventHubName", + flags={"required": True}, + ) + _element.event_hub_name_space = AAZStrType( + serialized_name="eventHubNameSpace", + flags={"required": True}, + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + flags={"required": True}, + ) + _element.tenant_id = AAZStrType( + serialized_name="tenantId", + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + incident_receivers = _schema_action_group_resource_read.properties.incident_receivers + incident_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.incident_receivers.Element + _element.connection = AAZObjectType( + flags={"required": True}, + ) + _element.incident_management_service = AAZStrType( + serialized_name="incidentManagementService", + flags={"required": True}, + ) + _element.mappings = AAZDictType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + + connection = _schema_action_group_resource_read.properties.incident_receivers.Element.connection + connection.id = AAZStrType( + flags={"required": True}, + ) + connection.name = AAZStrType( + flags={"required": True}, + ) + + mappings = _schema_action_group_resource_read.properties.incident_receivers.Element.mappings + mappings.Element = AAZStrType() + + itsm_receivers = _schema_action_group_resource_read.properties.itsm_receivers + itsm_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.itsm_receivers.Element + _element.connection_id = AAZStrType( + serialized_name="connectionId", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.region = AAZStrType( + flags={"required": True}, + ) + _element.ticket_configuration = AAZStrType( + serialized_name="ticketConfiguration", + flags={"required": True}, + ) + _element.workspace_id = AAZStrType( + serialized_name="workspaceId", + flags={"required": True}, + ) + + logic_app_receivers = _schema_action_group_resource_read.properties.logic_app_receivers + logic_app_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.logic_app_receivers.Element + _element.callback_url = AAZStrType( + serialized_name="callbackUrl", + flags={"required": True}, + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.resource_id = AAZStrType( + serialized_name="resourceId", + flags={"required": True}, + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + sms_receivers = _schema_action_group_resource_read.properties.sms_receivers + sms_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.sms_receivers.Element + _element.country_code = AAZStrType( + serialized_name="countryCode", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.phone_number = AAZStrType( + serialized_name="phoneNumber", + flags={"required": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + + voice_receivers = _schema_action_group_resource_read.properties.voice_receivers + voice_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.voice_receivers.Element + _element.country_code = AAZStrType( + serialized_name="countryCode", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.phone_number = AAZStrType( + serialized_name="phoneNumber", + flags={"required": True}, + ) + + webhook_receivers = _schema_action_group_resource_read.properties.webhook_receivers + webhook_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.webhook_receivers.Element + _element.identifier_uri = AAZStrType( + serialized_name="identifierUri", + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.object_id = AAZStrType( + serialized_name="objectId", + ) + _element.service_uri = AAZStrType( + serialized_name="serviceUri", + flags={"required": True}, + ) + _element.tenant_id = AAZStrType( + serialized_name="tenantId", + ) + _element.use_aad_auth = AAZBoolType( + serialized_name="useAadAuth", + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + tags = _schema_action_group_resource_read.tags + tags.Element = AAZStrType() + + _schema.id = cls._schema_action_group_resource_read.id + _schema.identity = cls._schema_action_group_resource_read.identity + _schema.location = cls._schema_action_group_resource_read.location + _schema.name = cls._schema_action_group_resource_read.name + _schema.properties = cls._schema_action_group_resource_read.properties + _schema.tags = cls._schema_action_group_resource_read.tags + _schema.type = cls._schema_action_group_resource_read.type + + +__all__ = ["Assign"] diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/_remove.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/_remove.py new file mode 100644 index 00000000000..30456e529b9 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/_remove.py @@ -0,0 +1,719 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "monitor action-group identity remove", + confirmation="Are you sure you want to perform this operation?", +) +class Remove(AAZCommand): + """Remove the user or system managed identities. + + :example: Remove a system assigned managed identity from an existing action group. + az monitor action-group identity remove --name ag --resource-group rg --system-assigned + + :example: Remove a user assigned managed identity from an existing action group. + az monitor action-group identity remove --name ag --resource-group rg --user-assigned MyAssignedId + + :example: Remove all user assigned managed identities from an existing action group. + az monitor action-group identity remove --name ag --resource-group rg --user-assigned + """ + + _aaz_info = { + "version": "2024-10-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}", "2024-10-01-preview", "identity"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self.SubresourceSelector(ctx=self.ctx, name="subresource") + 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.action_group_name = AAZStrArg( + options=["-n", "--name", "--action-group-name"], + help="The name of the action group.", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + + # define Arg Group "ActionGroup.identity" + + _args_schema = cls._args_schema + _args_schema.mi_system_assigned = AAZStrArg( + options=["--system-assigned", "--mi-system-assigned"], + arg_group="ActionGroup.identity", + help="Set the system managed identity.", + blank="True", + ) + _args_schema.mi_user_assigned = AAZListArg( + options=["--user-assigned", "--mi-user-assigned"], + arg_group="ActionGroup.identity", + help="Set the user managed identities.", + blank=[], + ) + + mi_user_assigned = cls._args_schema.mi_user_assigned + mi_user_assigned.Element = AAZStrArg() + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ActionGroupsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.selectors.subresource.required()) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.post_instance_update(self.ctx.selectors.subresource.required()) + self.ActionGroupsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + @register_callback + def pre_instance_update(self, instance): + pass + + @register_callback + def post_instance_update(self, instance): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.selectors.subresource.required(), client_flatten=True) + return result + + class SubresourceSelector(AAZJsonSelector): + + def _get(self): + result = self.ctx.vars.instance + return result.identity + + def _set(self, value): + result = self.ctx.vars.instance + result.identity = value + return + + class ActionGroupsGet(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/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "actionGroupName", self.ctx.args.action_group_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", 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", "2024-10-01-preview", + 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() + _RemoveHelper._build_schema_action_group_resource_read(cls._schema_on_200) + + return cls._schema_on_200 + + class ActionGroupsCreateOrUpdate(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, 201]: + return self.on_200_201(session) + + return self.on_error(session.http_response) + + @property + def url(self): + return self.client.format_url( + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "PUT" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "actionGroupName", self.ctx.args.action_group_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", 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", "2024-10-01-preview", + 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, + value=self.ctx.vars.instance, + ) + + return self.serialize_content(_content_value) + + def on_200_201(self, session): + data = self.deserialize_http_content(session) + self.ctx.set_var( + "instance", + data, + schema_builder=self._build_schema_on_200_201 + ) + + _schema_on_200_201 = None + + @classmethod + def _build_schema_on_200_201(cls): + if cls._schema_on_200_201 is not None: + return cls._schema_on_200_201 + + cls._schema_on_200_201 = AAZObjectType() + _RemoveHelper._build_schema_action_group_resource_read(cls._schema_on_200_201) + + return cls._schema_on_200_201 + + class InstanceUpdateByJson(AAZJsonInstanceUpdateOperation): + + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.selectors.subresource.required()) + + def _update_instance(self, instance): + _instance_value, _builder = self.new_content_builder( + self.ctx.args, + value=instance, + typ=AAZIdentityObjectType + ) + _builder.set_prop("userAssigned", AAZListType, ".mi_user_assigned", typ_kwargs={"flags": {"action": "remove"}}) + _builder.set_prop("systemAssigned", AAZStrType, ".mi_system_assigned", typ_kwargs={"flags": {"action": "remove"}}) + + user_assigned = _builder.get(".userAssigned") + if user_assigned is not None: + user_assigned.set_elements(AAZStrType, ".") + + return _instance_value + + +class _RemoveHelper: + """Helper class for Remove""" + + _schema_action_group_resource_read = None + + @classmethod + def _build_schema_action_group_resource_read(cls, _schema): + if cls._schema_action_group_resource_read is not None: + _schema.id = cls._schema_action_group_resource_read.id + _schema.identity = cls._schema_action_group_resource_read.identity + _schema.location = cls._schema_action_group_resource_read.location + _schema.name = cls._schema_action_group_resource_read.name + _schema.properties = cls._schema_action_group_resource_read.properties + _schema.tags = cls._schema_action_group_resource_read.tags + _schema.type = cls._schema_action_group_resource_read.type + return + + cls._schema_action_group_resource_read = _schema_action_group_resource_read = AAZObjectType() + + action_group_resource_read = _schema_action_group_resource_read + action_group_resource_read.id = AAZStrType( + flags={"read_only": True}, + ) + action_group_resource_read.identity = AAZIdentityObjectType() + action_group_resource_read.location = AAZStrType( + flags={"required": True}, + ) + action_group_resource_read.name = AAZStrType( + flags={"read_only": True}, + ) + action_group_resource_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + action_group_resource_read.tags = AAZDictType() + action_group_resource_read.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = _schema_action_group_resource_read.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( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_action_group_resource_read.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType( + nullable=True, + ) + + _element = _schema_action_group_resource_read.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 = _schema_action_group_resource_read.properties + properties.arm_role_receivers = AAZListType( + serialized_name="armRoleReceivers", + ) + properties.automation_runbook_receivers = AAZListType( + serialized_name="automationRunbookReceivers", + ) + properties.azure_app_push_receivers = AAZListType( + serialized_name="azureAppPushReceivers", + ) + properties.azure_function_receivers = AAZListType( + serialized_name="azureFunctionReceivers", + ) + properties.email_receivers = AAZListType( + serialized_name="emailReceivers", + ) + properties.enabled = AAZBoolType( + flags={"required": True}, + ) + properties.event_hub_receivers = AAZListType( + serialized_name="eventHubReceivers", + ) + properties.group_short_name = AAZStrType( + serialized_name="groupShortName", + flags={"required": True}, + ) + properties.incident_receivers = AAZListType( + serialized_name="incidentReceivers", + ) + properties.itsm_receivers = AAZListType( + serialized_name="itsmReceivers", + ) + properties.logic_app_receivers = AAZListType( + serialized_name="logicAppReceivers", + ) + properties.sms_receivers = AAZListType( + serialized_name="smsReceivers", + ) + properties.voice_receivers = AAZListType( + serialized_name="voiceReceivers", + ) + properties.webhook_receivers = AAZListType( + serialized_name="webhookReceivers", + ) + + arm_role_receivers = _schema_action_group_resource_read.properties.arm_role_receivers + arm_role_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.arm_role_receivers.Element + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.role_id = AAZStrType( + serialized_name="roleId", + flags={"required": True}, + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + automation_runbook_receivers = _schema_action_group_resource_read.properties.automation_runbook_receivers + automation_runbook_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.automation_runbook_receivers.Element + _element.automation_account_id = AAZStrType( + serialized_name="automationAccountId", + flags={"required": True}, + ) + _element.is_global_runbook = AAZBoolType( + serialized_name="isGlobalRunbook", + flags={"required": True}, + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType() + _element.runbook_name = AAZStrType( + serialized_name="runbookName", + flags={"required": True}, + ) + _element.service_uri = AAZStrType( + serialized_name="serviceUri", + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + _element.webhook_resource_id = AAZStrType( + serialized_name="webhookResourceId", + flags={"required": True}, + ) + + azure_app_push_receivers = _schema_action_group_resource_read.properties.azure_app_push_receivers + azure_app_push_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.azure_app_push_receivers.Element + _element.email_address = AAZStrType( + serialized_name="emailAddress", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + + azure_function_receivers = _schema_action_group_resource_read.properties.azure_function_receivers + azure_function_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.azure_function_receivers.Element + _element.function_app_resource_id = AAZStrType( + serialized_name="functionAppResourceId", + flags={"required": True}, + ) + _element.function_name = AAZStrType( + serialized_name="functionName", + flags={"required": True}, + ) + _element.http_trigger_url = AAZStrType( + serialized_name="httpTriggerUrl", + flags={"required": True}, + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + email_receivers = _schema_action_group_resource_read.properties.email_receivers + email_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.email_receivers.Element + _element.email_address = AAZStrType( + serialized_name="emailAddress", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + event_hub_receivers = _schema_action_group_resource_read.properties.event_hub_receivers + event_hub_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.event_hub_receivers.Element + _element.event_hub_name = AAZStrType( + serialized_name="eventHubName", + flags={"required": True}, + ) + _element.event_hub_name_space = AAZStrType( + serialized_name="eventHubNameSpace", + flags={"required": True}, + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + flags={"required": True}, + ) + _element.tenant_id = AAZStrType( + serialized_name="tenantId", + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + incident_receivers = _schema_action_group_resource_read.properties.incident_receivers + incident_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.incident_receivers.Element + _element.connection = AAZObjectType( + flags={"required": True}, + ) + _element.incident_management_service = AAZStrType( + serialized_name="incidentManagementService", + flags={"required": True}, + ) + _element.mappings = AAZDictType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + + connection = _schema_action_group_resource_read.properties.incident_receivers.Element.connection + connection.id = AAZStrType( + flags={"required": True}, + ) + connection.name = AAZStrType( + flags={"required": True}, + ) + + mappings = _schema_action_group_resource_read.properties.incident_receivers.Element.mappings + mappings.Element = AAZStrType() + + itsm_receivers = _schema_action_group_resource_read.properties.itsm_receivers + itsm_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.itsm_receivers.Element + _element.connection_id = AAZStrType( + serialized_name="connectionId", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.region = AAZStrType( + flags={"required": True}, + ) + _element.ticket_configuration = AAZStrType( + serialized_name="ticketConfiguration", + flags={"required": True}, + ) + _element.workspace_id = AAZStrType( + serialized_name="workspaceId", + flags={"required": True}, + ) + + logic_app_receivers = _schema_action_group_resource_read.properties.logic_app_receivers + logic_app_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.logic_app_receivers.Element + _element.callback_url = AAZStrType( + serialized_name="callbackUrl", + flags={"required": True}, + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.resource_id = AAZStrType( + serialized_name="resourceId", + flags={"required": True}, + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + sms_receivers = _schema_action_group_resource_read.properties.sms_receivers + sms_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.sms_receivers.Element + _element.country_code = AAZStrType( + serialized_name="countryCode", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.phone_number = AAZStrType( + serialized_name="phoneNumber", + flags={"required": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + + voice_receivers = _schema_action_group_resource_read.properties.voice_receivers + voice_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.voice_receivers.Element + _element.country_code = AAZStrType( + serialized_name="countryCode", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.phone_number = AAZStrType( + serialized_name="phoneNumber", + flags={"required": True}, + ) + + webhook_receivers = _schema_action_group_resource_read.properties.webhook_receivers + webhook_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.webhook_receivers.Element + _element.identifier_uri = AAZStrType( + serialized_name="identifierUri", + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.object_id = AAZStrType( + serialized_name="objectId", + ) + _element.service_uri = AAZStrType( + serialized_name="serviceUri", + flags={"required": True}, + ) + _element.tenant_id = AAZStrType( + serialized_name="tenantId", + ) + _element.use_aad_auth = AAZBoolType( + serialized_name="useAadAuth", + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + tags = _schema_action_group_resource_read.tags + tags.Element = AAZStrType() + + _schema.id = cls._schema_action_group_resource_read.id + _schema.identity = cls._schema_action_group_resource_read.identity + _schema.location = cls._schema_action_group_resource_read.location + _schema.name = cls._schema_action_group_resource_read.name + _schema.properties = cls._schema_action_group_resource_read.properties + _schema.tags = cls._schema_action_group_resource_read.tags + _schema.type = cls._schema_action_group_resource_read.type + + +__all__ = ["Remove"] diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/_show.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/_show.py new file mode 100644 index 00000000000..eb9bc28c749 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/identity/_show.py @@ -0,0 +1,566 @@ +# -------------------------------------------------------------------------------------------- +# 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( + "monitor action-group identity show", +) +class Show(AAZCommand): + """Show the details of managed identities. + + :example: Show the managed identities of an existing action group. + az monitor action-group identity show --name ag --resource-group rg + """ + + _aaz_info = { + "version": "2024-10-01-preview", + "resources": [ + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/microsoft.insights/actiongroups/{}", "2024-10-01-preview", "identity"], + ] + } + + def _handler(self, command_args): + super()._handler(command_args) + self.SubresourceSelector(ctx=self.ctx, name="subresource") + 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.action_group_name = AAZStrArg( + options=["-n", "--name", "--action-group-name"], + help="The name of the action group.", + required=True, + ) + _args_schema.resource_group = AAZResourceGroupNameArg( + required=True, + ) + return cls._args_schema + + def _execute_operations(self): + self.pre_operations() + self.ActionGroupsGet(ctx=self.ctx)() + self.post_operations() + + @register_callback + def pre_operations(self): + pass + + @register_callback + def post_operations(self): + pass + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.selectors.subresource.required(), client_flatten=True) + return result + + class SubresourceSelector(AAZJsonSelector): + + def _get(self): + result = self.ctx.vars.instance + return result.identity + + def _set(self, value): + result = self.ctx.vars.instance + result.identity = value + return + + class ActionGroupsGet(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/{resourceGroupName}/providers/Microsoft.Insights/actionGroups/{actionGroupName}", + **self.url_parameters + ) + + @property + def method(self): + return "GET" + + @property + def error_format(self): + return "ODataV4Format" + + @property + def url_parameters(self): + parameters = { + **self.serialize_url_param( + "actionGroupName", self.ctx.args.action_group_name, + required=True, + ), + **self.serialize_url_param( + "resourceGroupName", 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", "2024-10-01-preview", + 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() + _ShowHelper._build_schema_action_group_resource_read(cls._schema_on_200) + + return cls._schema_on_200 + + +class _ShowHelper: + """Helper class for Show""" + + _schema_action_group_resource_read = None + + @classmethod + def _build_schema_action_group_resource_read(cls, _schema): + if cls._schema_action_group_resource_read is not None: + _schema.id = cls._schema_action_group_resource_read.id + _schema.identity = cls._schema_action_group_resource_read.identity + _schema.location = cls._schema_action_group_resource_read.location + _schema.name = cls._schema_action_group_resource_read.name + _schema.properties = cls._schema_action_group_resource_read.properties + _schema.tags = cls._schema_action_group_resource_read.tags + _schema.type = cls._schema_action_group_resource_read.type + return + + cls._schema_action_group_resource_read = _schema_action_group_resource_read = AAZObjectType() + + action_group_resource_read = _schema_action_group_resource_read + action_group_resource_read.id = AAZStrType( + flags={"read_only": True}, + ) + action_group_resource_read.identity = AAZIdentityObjectType() + action_group_resource_read.location = AAZStrType( + flags={"required": True}, + ) + action_group_resource_read.name = AAZStrType( + flags={"read_only": True}, + ) + action_group_resource_read.properties = AAZObjectType( + flags={"client_flatten": True}, + ) + action_group_resource_read.tags = AAZDictType() + action_group_resource_read.type = AAZStrType( + flags={"read_only": True}, + ) + + identity = _schema_action_group_resource_read.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( + flags={"required": True}, + ) + identity.user_assigned_identities = AAZDictType( + serialized_name="userAssignedIdentities", + ) + + user_assigned_identities = _schema_action_group_resource_read.identity.user_assigned_identities + user_assigned_identities.Element = AAZObjectType( + nullable=True, + ) + + _element = _schema_action_group_resource_read.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 = _schema_action_group_resource_read.properties + properties.arm_role_receivers = AAZListType( + serialized_name="armRoleReceivers", + ) + properties.automation_runbook_receivers = AAZListType( + serialized_name="automationRunbookReceivers", + ) + properties.azure_app_push_receivers = AAZListType( + serialized_name="azureAppPushReceivers", + ) + properties.azure_function_receivers = AAZListType( + serialized_name="azureFunctionReceivers", + ) + properties.email_receivers = AAZListType( + serialized_name="emailReceivers", + ) + properties.enabled = AAZBoolType( + flags={"required": True}, + ) + properties.event_hub_receivers = AAZListType( + serialized_name="eventHubReceivers", + ) + properties.group_short_name = AAZStrType( + serialized_name="groupShortName", + flags={"required": True}, + ) + properties.incident_receivers = AAZListType( + serialized_name="incidentReceivers", + ) + properties.itsm_receivers = AAZListType( + serialized_name="itsmReceivers", + ) + properties.logic_app_receivers = AAZListType( + serialized_name="logicAppReceivers", + ) + properties.sms_receivers = AAZListType( + serialized_name="smsReceivers", + ) + properties.voice_receivers = AAZListType( + serialized_name="voiceReceivers", + ) + properties.webhook_receivers = AAZListType( + serialized_name="webhookReceivers", + ) + + arm_role_receivers = _schema_action_group_resource_read.properties.arm_role_receivers + arm_role_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.arm_role_receivers.Element + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.role_id = AAZStrType( + serialized_name="roleId", + flags={"required": True}, + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + automation_runbook_receivers = _schema_action_group_resource_read.properties.automation_runbook_receivers + automation_runbook_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.automation_runbook_receivers.Element + _element.automation_account_id = AAZStrType( + serialized_name="automationAccountId", + flags={"required": True}, + ) + _element.is_global_runbook = AAZBoolType( + serialized_name="isGlobalRunbook", + flags={"required": True}, + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType() + _element.runbook_name = AAZStrType( + serialized_name="runbookName", + flags={"required": True}, + ) + _element.service_uri = AAZStrType( + serialized_name="serviceUri", + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + _element.webhook_resource_id = AAZStrType( + serialized_name="webhookResourceId", + flags={"required": True}, + ) + + azure_app_push_receivers = _schema_action_group_resource_read.properties.azure_app_push_receivers + azure_app_push_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.azure_app_push_receivers.Element + _element.email_address = AAZStrType( + serialized_name="emailAddress", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + + azure_function_receivers = _schema_action_group_resource_read.properties.azure_function_receivers + azure_function_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.azure_function_receivers.Element + _element.function_app_resource_id = AAZStrType( + serialized_name="functionAppResourceId", + flags={"required": True}, + ) + _element.function_name = AAZStrType( + serialized_name="functionName", + flags={"required": True}, + ) + _element.http_trigger_url = AAZStrType( + serialized_name="httpTriggerUrl", + flags={"required": True}, + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + email_receivers = _schema_action_group_resource_read.properties.email_receivers + email_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.email_receivers.Element + _element.email_address = AAZStrType( + serialized_name="emailAddress", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + event_hub_receivers = _schema_action_group_resource_read.properties.event_hub_receivers + event_hub_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.event_hub_receivers.Element + _element.event_hub_name = AAZStrType( + serialized_name="eventHubName", + flags={"required": True}, + ) + _element.event_hub_name_space = AAZStrType( + serialized_name="eventHubNameSpace", + flags={"required": True}, + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.subscription_id = AAZStrType( + serialized_name="subscriptionId", + flags={"required": True}, + ) + _element.tenant_id = AAZStrType( + serialized_name="tenantId", + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + incident_receivers = _schema_action_group_resource_read.properties.incident_receivers + incident_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.incident_receivers.Element + _element.connection = AAZObjectType( + flags={"required": True}, + ) + _element.incident_management_service = AAZStrType( + serialized_name="incidentManagementService", + flags={"required": True}, + ) + _element.mappings = AAZDictType( + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + + connection = _schema_action_group_resource_read.properties.incident_receivers.Element.connection + connection.id = AAZStrType( + flags={"required": True}, + ) + connection.name = AAZStrType( + flags={"required": True}, + ) + + mappings = _schema_action_group_resource_read.properties.incident_receivers.Element.mappings + mappings.Element = AAZStrType() + + itsm_receivers = _schema_action_group_resource_read.properties.itsm_receivers + itsm_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.itsm_receivers.Element + _element.connection_id = AAZStrType( + serialized_name="connectionId", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.region = AAZStrType( + flags={"required": True}, + ) + _element.ticket_configuration = AAZStrType( + serialized_name="ticketConfiguration", + flags={"required": True}, + ) + _element.workspace_id = AAZStrType( + serialized_name="workspaceId", + flags={"required": True}, + ) + + logic_app_receivers = _schema_action_group_resource_read.properties.logic_app_receivers + logic_app_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.logic_app_receivers.Element + _element.callback_url = AAZStrType( + serialized_name="callbackUrl", + flags={"required": True}, + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.resource_id = AAZStrType( + serialized_name="resourceId", + flags={"required": True}, + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + sms_receivers = _schema_action_group_resource_read.properties.sms_receivers + sms_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.sms_receivers.Element + _element.country_code = AAZStrType( + serialized_name="countryCode", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.phone_number = AAZStrType( + serialized_name="phoneNumber", + flags={"required": True}, + ) + _element.status = AAZStrType( + flags={"read_only": True}, + ) + + voice_receivers = _schema_action_group_resource_read.properties.voice_receivers + voice_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.voice_receivers.Element + _element.country_code = AAZStrType( + serialized_name="countryCode", + flags={"required": True}, + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.phone_number = AAZStrType( + serialized_name="phoneNumber", + flags={"required": True}, + ) + + webhook_receivers = _schema_action_group_resource_read.properties.webhook_receivers + webhook_receivers.Element = AAZObjectType() + + _element = _schema_action_group_resource_read.properties.webhook_receivers.Element + _element.identifier_uri = AAZStrType( + serialized_name="identifierUri", + ) + _element.managed_identity = AAZStrType( + serialized_name="managedIdentity", + ) + _element.name = AAZStrType( + flags={"required": True}, + ) + _element.object_id = AAZStrType( + serialized_name="objectId", + ) + _element.service_uri = AAZStrType( + serialized_name="serviceUri", + flags={"required": True}, + ) + _element.tenant_id = AAZStrType( + serialized_name="tenantId", + ) + _element.use_aad_auth = AAZBoolType( + serialized_name="useAadAuth", + ) + _element.use_common_alert_schema = AAZBoolType( + serialized_name="useCommonAlertSchema", + ) + + tags = _schema_action_group_resource_read.tags + tags.Element = AAZStrType() + + _schema.id = cls._schema_action_group_resource_read.id + _schema.identity = cls._schema_action_group_resource_read.identity + _schema.location = cls._schema_action_group_resource_read.location + _schema.name = cls._schema_action_group_resource_read.name + _schema.properties = cls._schema_action_group_resource_read.properties + _schema.tags = cls._schema_action_group_resource_read.tags + _schema.type = cls._schema_action_group_resource_read.type + + +__all__ = ["Show"] diff --git a/src/azure-cli/azure/cli/command_modules/monitor/commands.py b/src/azure-cli/azure/cli/command_modules/monitor/commands.py index 399bd8e435f..c7cc4f73107 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/commands.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/commands.py @@ -94,10 +94,10 @@ def load_command_table(self, _): self.command_table['monitor action-group test-notifications create'] = \ ActionGroupTestNotificationCreate(loader=self, table_transformer=action_group_list_table) - from .operations.action_groups_identity import ActionGroupIdentityRemove, ActionGroupIdentityShow, ActionGroupIdentityAssign - self.command_table['monitor action-group identity assign'] = ActionGroupIdentityAssign(loader=self) - self.command_table['monitor action-group identity remove'] = ActionGroupIdentityRemove(loader=self) - self.command_table['monitor action-group identity show'] = ActionGroupIdentityShow(loader=self) + from .aaz.latest.monitor.action_group.identity import Assign as AGIdentityAssign, Remove as AGIdentityRemove, Show as AGIdentityShow + self.command_table['monitor action-group identity assign'] = AGIdentityAssign(loader=self) + self.command_table['monitor action-group identity remove'] = AGIdentityRemove(loader=self) + self.command_table['monitor action-group identity show'] = AGIdentityShow(loader=self) with self.command_group('monitor activity-log', activity_log_sdk) as g: g.custom_command('list', 'list_activity_log') diff --git a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py deleted file mode 100644 index 6842a2273fc..00000000000 --- a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py +++ /dev/null @@ -1,222 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- -# pylint: disable=protected-access, line-too-long, unused-argument -from knack.log import get_logger - -from azure.cli.core.aaz import register_command, has_value, AAZBoolArg, AAZListArg, AAZResourceIdArg, AAZResourceIdArgFormat -from ..aaz.latest.monitor.action_group import Update as _ActionGroupUpdate, Show as _ActionGroupShow - -logger = get_logger(__name__) - - -@register_command( - "monitor action-group identity assign", -) -class ActionGroupIdentityAssign(_ActionGroupUpdate): - """Add managed identities to an existing action group. - - :example: Add a system assigned managed identity to an existing action group. - az monitor action-group identity assign --name ag --resource-group rg --system-assigned - - :example: Add a user assigned managed identity to an existing action group. - az monitor action-group identity assign --name ag --resource-group rg --user-assigned MyAssignedId - - :example: Add system assigned identity and a user assigned managed identity to an existing action group. - az monitor action-group identity assign --name ag --resource-group rg --system-assigned --user-assigned MyAssignedId - """ - - AZ_SUPPORT_GENERIC_UPDATE = False - - @classmethod - def _build_arguments_schema(cls, *args, **kwargs): - args_schema = super()._build_arguments_schema(*args, **kwargs) - args_schema.system_assigned = AAZBoolArg( - options=["--system-assigned"], - help="Provide this flag to use system assigned identity.", - arg_group="Managed Identity", - blank=True - ) - args_schema.user_assigned = AAZListArg( - options=["--user-assigned"], - help="User Assigned Identity ids to be used for disk encryption set. Accepts using the argument without any value.", - arg_group="Managed Identity", - blank=[] - ) - args_schema.user_assigned.Element = AAZResourceIdArg( - fmt=AAZResourceIdArgFormat(template="/subscriptions/{subscription}/resourceGroups/{resource_group}" - "/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{}") - ) - args_schema.arm_role_receivers._registered = False - args_schema.automation_runbook_receivers._registered = False - args_schema.azure_app_push_receivers._registered = False - args_schema.azure_function_receivers._registered = False - args_schema.email_receivers._registered = False - args_schema.enabled._registered = False - args_schema.event_hub_receivers._registered = False - args_schema.itsm_receivers._registered = False - args_schema.logic_app_receivers._registered = False - args_schema.sms_receivers._registered = False - args_schema.voice_receivers._registered = False - args_schema.webhook_receivers._registered = False - args_schema.incident_receivers._registered = False - args_schema.group_short_name._registered = False - args_schema.tags._registered = False - args_schema.type._registered = False - args_schema.user_assigned_identities._registered = False - return args_schema - - def pre_instance_update(self, instance): - existing_system_identity = False - existing_user_identity = set() - if instance.to_serialized_data().get('identity', None): - existing_system_identity = instance.identity.type in ['SystemAssigned', 'SystemAssigned, UserAssigned'] - existing_user_identity = {x.lower() for x in list(getattr(instance.identity, 'user_assigned_identities', {}).keys())} - - add_system_assigned = self.ctx.args.system_assigned.to_serialized_data() - add_user_assigned = {x.lower() for x in self.ctx.args.user_assigned.to_serialized_data() or []} - - updated_system_assigned = existing_system_identity or add_system_assigned - updated_user_assigned = list(existing_user_identity.union(add_user_assigned)) - - instance.identity.type = 'SystemAssigned' - if updated_user_assigned: - instance.identity.type = 'SystemAssigned, UserAssigned' if updated_system_assigned else 'UserAssigned' - instance.identity.user_assigned_identities = dict.fromkeys(updated_user_assigned, {}) - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result.get('identity', None) - - -@register_command( - "monitor action-group identity remove", - confirmation="Are you sure you want to perform this operation?" -) -class ActionGroupIdentityRemove(_ActionGroupUpdate): - """Remove managed identities from an existing action group. - - :example: Remove a system assigned managed identity from an existing action group. - az monitor action-group identity remove --name ag --resource-group rg --system-assigned - - :example: Remove a user assigned managed identity from an existing action group. - az monitor action-group identity remove --name ag --resource-group rg --user-assigned MyAssignedId - - :example: Remove all user assigned managed identities from an existing action group. - az monitor action-group identity remove --name ag --resource-group rg --user-assigned - """ - - AZ_SUPPORT_GENERIC_UPDATE = False - - @classmethod - def _build_arguments_schema(cls, *args, **kwargs): - args_schema = super()._build_arguments_schema(*args, **kwargs) - args_schema.system_assigned = AAZBoolArg( - options=["--system-assigned"], - help="Provide this flag to use system assigned identity.", - arg_group="Managed Identity", - blank=True - ) - args_schema.user_assigned = AAZListArg( - options=["--user-assigned"], - help="User Assigned Identity ids to be used for disk encryption set. Accepts using the argument without any value.", - arg_group="Managed Identity", - blank=[] - ) - args_schema.user_assigned.Element = AAZResourceIdArg( - fmt=AAZResourceIdArgFormat(template="/subscriptions/{subscription}/resourceGroups/{resource_group}" - "/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{}") - ) - args_schema.arm_role_receivers._registered = False - args_schema.automation_runbook_receivers._registered = False - args_schema.azure_app_push_receivers._registered = False - args_schema.azure_function_receivers._registered = False - args_schema.email_receivers._registered = False - args_schema.enabled._registered = False - args_schema.event_hub_receivers._registered = False - args_schema.itsm_receivers._registered = False - args_schema.logic_app_receivers._registered = False - args_schema.sms_receivers._registered = False - args_schema.voice_receivers._registered = False - args_schema.webhook_receivers._registered = False - args_schema.incident_receivers._registered = False - args_schema.group_short_name._registered = False - args_schema.tags._registered = False - args_schema.type._registered = False - args_schema.user_assigned_identities._registered = False - return args_schema - - def _execute_operations(self): - self.pre_operations() - self.ActionGroupsGet(ctx=self.ctx)() - if self.pre_instance_update(self.ctx.vars.instance): - return - self.InstanceUpdateByJson(ctx=self.ctx)() - self.InstanceUpdateByGeneric(ctx=self.ctx)() - self.post_instance_update(self.ctx.vars.instance) - self.ActionGroupsCreateOrUpdate(ctx=self.ctx)() - self.post_operations() - - def pre_instance_update(self, instance): - identity = instance.to_serialized_data().get('identity', None) - if identity is None: - from types import MethodType - - def _output(self, *args, **kwargs): - return None - self._output = MethodType(_output, self) - - # skip the update operation if the identity is not present - return True - - user_identities_to_remove = [] - if has_value(self.ctx.args.user_assigned): - existing_user_identities = {x.lower() for x in list(getattr(instance.identity, 'user_assigned_identities', {}).keys())} - - # all user assigned identities will be removed if the length of mi_user_assigned is 0, - # otherwise the specified identity - for x in self.ctx.args.user_assigned: - pass - user_identities_to_remove = {str(x).lower() for x in self.ctx.args.user_assigned} \ - if len(self.ctx.args.user_assigned) > 0 else existing_user_identities - non_existing = user_identities_to_remove.difference(existing_user_identities) - if non_existing: - from azure.cli.core.azclierror import InvalidArgumentValueError - raise InvalidArgumentValueError("'{}' are not associated with '{}', please provide existing user managed " - "identities".format(','.join(non_existing), instance.name)) - if not list(existing_user_identities - user_identities_to_remove): - if hasattr(instance.identity, 'user_assigned_identities'): - del instance.identity.user_assigned_identities - if instance.identity.type == 'UserAssigned': - instance.identity.type = 'None' - elif instance.identity.type == 'SystemAssigned, UserAssigned': - instance.identity.type = 'SystemAssigned' - - if self.ctx.args.system_assigned: - instance.identity.type = 'None' if instance.identity.type == 'SystemAssigned' else 'UserAssigned' - - if user_identities_to_remove: - if instance.identity.type not in ['None', 'SystemAssigned']: - for _id in user_identities_to_remove: - if hasattr(instance.identity.user_assigned_identities, _id): - del instance.identity.user_assigned_identities[_id] - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result.get('identity', None) - - -@register_command( - "monitor action-group identity show" -) -class ActionGroupIdentityShow(_ActionGroupShow): - """Show the managed identities of an existing action group. - - :example: Show the managed identities of an existing action group. - az monitor action-group identity show --name ag --resource-group rg - """ - - def _output(self, *args, **kwargs): - result = self.deserialize_output(self.ctx.vars.instance, client_flatten=True) - return result.get('identity', {}) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_identity.yaml b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_identity.yaml index 37f8655b4bc..9141786c202 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_identity.yaml +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/recordings/test_monitor_action_group_identity.yaml @@ -23,7 +23,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"eastus2euap","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"e59a98cf-7608-4f4d-86a8-ddfc9c3c4cb5","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"eastus2euap","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"3277151d-1e1b-48cc-9922-b0c6af984d65","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -38,7 +38,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:02 GMT + - Mon, 14 Apr 2025 06:30:24 GMT expires: - '-1' pragma: @@ -46,7 +46,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 01af0796-18f4-11f0-bcac-902e1671aeaf + - ee955ffc-18f9-11f0-bf59-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -54,13 +54,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/7d6a6c53-4477-46bc-bf13-77a70c706cdd + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/1798a99a-55aa-40fd-bfde-319e882e8505 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: EA2F4E84C70548F3B89FA0050E112A8D Ref B: TYO201151001062 Ref C: 2025-04-14T05:47:55Z' + - 'Ref A: 68634066671B473689D46EAF3D483716 Ref B: TYO201100116053 Ref C: 2025-04-14T06:30:19Z' x-servedby: - - cbn2azns00000D + - cbn1azns00000E status: code: 201 message: Created @@ -83,7 +83,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"eastus2euap","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"e59a98cf-7608-4f4d-86a8-ddfc9c3c4cb5","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"eastus2euap","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"3277151d-1e1b-48cc-9922-b0c6af984d65","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -98,7 +98,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:04 GMT + - Mon, 14 Apr 2025 06:30:26 GMT expires: - '-1' pragma: @@ -106,7 +106,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 08223413-18f4-11f0-b3ef-902e1671aeaf + - f300b46f-18f9-11f0-bb28-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -116,9 +116,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: 7210F3DABA1F42269560445CE2427683 Ref B: TYO201151005062 Ref C: 2025-04-14T05:48:04Z' + - 'Ref A: 9D7D17013E274E28AF53765BBBA929AB Ref B: TYO201151006036 Ref C: 2025-04-14T06:30:25Z' x-servedby: - - cbn2azns000000 + - cbn1azns00000C status: code: 200 message: OK @@ -127,7 +127,7 @@ interactions: {"armRoleReceivers": [], "automationRunbookReceivers": [], "azureAppPushReceivers": [], "azureFunctionReceivers": [], "emailReceivers": [], "enabled": true, "eventHubReceivers": [{"eventHubName": "testEventHub", "eventHubNameSpace": "testEventHubNameSpace", - "managedIdentity": "e59a98cf-7608-4f4d-86a8-ddfc9c3c4cb5", "name": "test_eventhub", + "managedIdentity": "3277151d-1e1b-48cc-9922-b0c6af984d65", "name": "test_eventhub", "subscriptionId": "187f412d-1758-44d9-b052-169e2564721d"}], "groupShortName": "cliactiongro", "incidentReceivers": [], "itsmReceivers": [], "logicAppReceivers": [], "smsReceivers": [], "voiceReceivers": [], "webhookReceivers": []}}' @@ -152,7 +152,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"eastus2euap","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"e59a98cf-7608-4f4d-86a8-ddfc9c3c4cb5","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[{"name":"test_eventhub","subscriptionId":"187f412d-1758-44d9-b052-169e2564721d","eventHubNameSpace":"testEventHubNameSpace","eventHubName":"testEventHub","useCommonAlertSchema":false,"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","managedIdentity":"e59a98cf-7608-4f4d-86a8-ddfc9c3c4cb5"}],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"eastus2euap","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"3277151d-1e1b-48cc-9922-b0c6af984d65","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[{"name":"test_eventhub","subscriptionId":"187f412d-1758-44d9-b052-169e2564721d","eventHubNameSpace":"testEventHubNameSpace","eventHubName":"testEventHub","useCommonAlertSchema":false,"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","managedIdentity":"3277151d-1e1b-48cc-9922-b0c6af984d65"}],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[],"incidentReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -167,7 +167,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:11 GMT + - Mon, 14 Apr 2025 06:30:32 GMT expires: - '-1' pragma: @@ -175,7 +175,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 08223413-18f4-11f0-b3ef-902e1671aeaf + - f300b46f-18f9-11f0-bb28-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -183,13 +183,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/0d9b63be-a784-4ce3-a914-dd81f6d88f39 + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/80d91277-302e-4af0-93c9-a7cd248257a9 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: 010D2E8D136B410986E788548C8E122D Ref B: TYO201151005062 Ref C: 2025-04-14T05:48:05Z' + - 'Ref A: EFBE68635CF041D6BACFF763B7DF9547 Ref B: TYO201151006036 Ref C: 2025-04-14T06:30:26Z' x-servedby: - - CBN1AZNS00000D + - cbn1azns00000A status: code: 200 message: OK @@ -227,7 +227,7 @@ interactions: content-length: - '0' date: - - Mon, 14 Apr 2025 05:48:14 GMT + - Mon, 14 Apr 2025 06:30:36 GMT expires: - '-1' pragma: @@ -235,7 +235,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 0d2928c0-18f4-11f0-9e92-902e1671aeaf + - f77aef51-18f9-11f0-ade3-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -243,15 +243,15 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/bc157f0d-783b-466d-9e15-70d7bf2aeedb + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japanwest/9cf69c43-8045-4ecf-aac9-f0f4e972d92b x-ms-ratelimit-remaining-subscription-deletes: - '199' x-ms-ratelimit-remaining-subscription-global-deletes: - '2999' x-msedge-ref: - - 'Ref A: 3092B5FFFA324CCA84521DBF7723A1B6 Ref B: TYO201100113027 Ref C: 2025-04-14T05:48:12Z' + - 'Ref A: A043E9B69ED04534AD612EC7DCB98629 Ref B: TYO201100114021 Ref C: 2025-04-14T06:30:33Z' x-servedby: - - cbn1azns000001 + - cbn1azns000005 status: code: 200 message: OK @@ -274,7 +274,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001?api-version=2022-09-01 response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001","name":"cli_test_monitor_ag_identity000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_action_group_identity","date":"2025-04-14T05:47:49Z","module":"monitor","Creator":"v-ruih@microsoft.com","DateCreated":"2025-04-14T05:47:54Z"},"properties":{"provisioningState":"Succeeded"}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001","name":"cli_test_monitor_ag_identity000001","type":"Microsoft.Resources/resourceGroups","location":"eastus2euap","tags":{"product":"azurecli","cause":"automation","test":"test_monitor_action_group_identity","date":"2025-04-14T06:30:13Z","module":"monitor","Creator":"v-ruih@microsoft.com","DateCreated":"2025-04-14T06:30:19Z"},"properties":{"provisioningState":"Succeeded"}}' headers: cache-control: - no-cache @@ -283,7 +283,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:15 GMT + - Mon, 14 Apr 2025 06:30:37 GMT expires: - '-1' pragma: @@ -297,7 +297,7 @@ interactions: x-ms-ratelimit-remaining-subscription-global-reads: - '3749' x-msedge-ref: - - 'Ref A: 79E950C615744D9F980565FD7E4A44E0 Ref B: TYO201100113029 Ref C: 2025-04-14T05:48:15Z' + - 'Ref A: 10BB22BAB4AE42AA910B7891CC21EA41 Ref B: TYO201100116023 Ref C: 2025-04-14T06:30:37Z' status: code: 200 message: OK @@ -324,7 +324,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003?api-version=2023-01-31 response: body: - string: '{"location":"eastus2euap","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003","name":"agid000003","type":"Microsoft.ManagedIdentity/userAssignedIdentities","properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"db1f6937-9c9d-438c-af0b-d3e32fd72382","clientId":"af88c341-5b4a-4d13-b22e-1c9e67ee7af1"}}' + string: '{"location":"eastus2euap","tags":{},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003","name":"agid000003","type":"Microsoft.ManagedIdentity/userAssignedIdentities","properties":{"tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","principalId":"2c3a2983-695a-49b7-b015-c4dede4b73ec","clientId":"6ae45df9-4b31-430e-a3be-79f8f35f71a9"}}' headers: cache-control: - no-cache @@ -333,7 +333,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:22 GMT + - Mon, 14 Apr 2025 06:30:44 GMT expires: - '-1' location: @@ -347,13 +347,13 @@ interactions: x-content-type-options: - nosniff x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/60993229-598f-4663-9131-89e9f656df1c + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/e81225a7-fb47-421f-86ca-5d6957a61cb4 x-ms-ratelimit-remaining-subscription-global-writes: - '2999' x-ms-ratelimit-remaining-subscription-writes: - '199' x-msedge-ref: - - 'Ref A: CE59FCFCCA524E0EA5A5E6173260C229 Ref B: TYO201151005025 Ref C: 2025-04-14T05:48:16Z' + - 'Ref A: F433403872CF4277A741773251A89B92 Ref B: TYO201100117023 Ref C: 2025-04-14T06:30:38Z' status: code: 201 message: Created @@ -382,7 +382,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"af88c341-5b4a-4d13-b22e-1c9e67ee7af1","principalId":"db1f6937-9c9d-438c-af0b-d3e32fd72382"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"6ae45df9-4b31-430e-a3be-79f8f35f71a9","principalId":"2c3a2983-695a-49b7-b015-c4dede4b73ec"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -397,7 +397,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:29 GMT + - Mon, 14 Apr 2025 06:30:51 GMT expires: - '-1' pragma: @@ -405,7 +405,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 137674da-18f4-11f0-adb3-902e1671aeaf + - fec920cb-18f9-11f0-ba5d-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -413,13 +413,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/a0fb492e-b2cd-4aa7-bf34-5009fc644f4b + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/fcfa2787-a877-40d4-b6a8-1a63b4ea2912 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: 64A09592BB2543CE828F351C1BA0472C Ref B: TYO201100116045 Ref C: 2025-04-14T05:48:23Z' + - 'Ref A: F49576EBA33D4648846C680F5E81090E Ref B: TYO201100115049 Ref C: 2025-04-14T06:30:45Z' x-servedby: - - WUS2ONEIM000007 + - WUS2ONEIM000006 status: code: 201 message: Created @@ -442,7 +442,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"af88c341-5b4a-4d13-b22e-1c9e67ee7af1","principalId":"db1f6937-9c9d-438c-af0b-d3e32fd72382"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"6ae45df9-4b31-430e-a3be-79f8f35f71a9","principalId":"2c3a2983-695a-49b7-b015-c4dede4b73ec"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -457,7 +457,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:30 GMT + - Mon, 14 Apr 2025 06:30:52 GMT expires: - '-1' pragma: @@ -465,7 +465,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 18010981-18f4-11f0-9bef-902e1671aeaf + - 0310548b-18fa-11f0-8622-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -475,9 +475,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: 8F88FDC2A1EF4B6F81CB7C037930407F Ref B: TYO201151003062 Ref C: 2025-04-14T05:48:30Z' + - 'Ref A: D4C244C1FFCC4452AE559ECB9DA7FE99 Ref B: TYO201151004040 Ref C: 2025-04-14T06:30:52Z' x-servedby: - - EUS2ONEIM000003 + - EUS2ONEIM000005 status: code: 200 message: OK @@ -500,7 +500,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"af88c341-5b4a-4d13-b22e-1c9e67ee7af1","principalId":"db1f6937-9c9d-438c-af0b-d3e32fd72382"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"UserAssigned","principalId":null,"tenantId":null,"userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"6ae45df9-4b31-430e-a3be-79f8f35f71a9","principalId":"2c3a2983-695a-49b7-b015-c4dede4b73ec"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -515,7 +515,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:32 GMT + - Mon, 14 Apr 2025 06:30:53 GMT expires: - '-1' pragma: @@ -523,7 +523,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 18980aad-18f4-11f0-82d1-902e1671aeaf + - 03a640a1-18fa-11f0-828b-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -533,9 +533,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: 3165979905474F5398465061FCBD709C Ref B: TYO201100116023 Ref C: 2025-04-14T05:48:31Z' + - 'Ref A: B639D39B722C45BB99318C8B67162C44 Ref B: TYO201100114027 Ref C: 2025-04-14T06:30:53Z' x-servedby: - - WUS2ONEIM000005 + - EUS2ONEIM000007 status: code: 200 message: OK @@ -581,7 +581,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:36 GMT + - Mon, 14 Apr 2025 06:30:57 GMT expires: - '-1' pragma: @@ -589,7 +589,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 18980aad-18f4-11f0-82d1-902e1671aeaf + - 03a640a1-18fa-11f0-828b-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -597,13 +597,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/3b8c2a18-ecc8-43ce-b226-ed64c8125378 + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japanwest/e764cff4-df85-4e4f-ad05-402af663da20 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: AA353037E2934E978984D4DDC9EDE7EF Ref B: TYO201100116023 Ref C: 2025-04-14T05:48:32Z' + - 'Ref A: 887AFDE624A848408526897763393988 Ref B: TYO201100114027 Ref C: 2025-04-14T06:30:54Z' x-servedby: - - EUS2ONEIM000005 + - EUS2ONEIM000001 status: code: 200 message: OK @@ -641,7 +641,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:36 GMT + - Mon, 14 Apr 2025 06:30:58 GMT expires: - '-1' pragma: @@ -649,7 +649,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 1bc77193-18f4-11f0-b113-902e1671aeaf + - 06e2c170-18fa-11f0-bdec-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -659,9 +659,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '248' x-msedge-ref: - - 'Ref A: 23C89635A988495B9D1D502FA2CE1395 Ref B: TYO201100113031 Ref C: 2025-04-14T05:48:37Z' + - 'Ref A: 6C47B6816E5E4F18816E7AE1E18EEC29 Ref B: TYO201100116037 Ref C: 2025-04-14T06:30:58Z' x-servedby: - - WUS2ONEIM000004 + - EUS2ONEIM000004 status: code: 200 message: OK @@ -699,7 +699,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:38 GMT + - Mon, 14 Apr 2025 06:30:59 GMT expires: - '-1' pragma: @@ -707,7 +707,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 1c53037b-18f4-11f0-9656-902e1671aeaf + - 07640f61-18fa-11f0-a9c7-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -717,9 +717,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: 449D25E823BB4583823CE171DF7A719E Ref B: TYO201151001036 Ref C: 2025-04-14T05:48:38Z' + - 'Ref A: D314A72BB72B4433A17534E529B37E17 Ref B: TYO201151001060 Ref C: 2025-04-14T06:30:59Z' x-servedby: - - EUS2ONEIM000005 + - WUS2ONEIM000002 status: code: 200 message: OK @@ -750,7 +750,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"05cbfb51-958a-4fbc-a338-5c71415711a3","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"fcea8bc6-c50f-49e3-9a74-412bbc56fc95","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -765,7 +765,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:45 GMT + - Mon, 14 Apr 2025 06:31:04 GMT expires: - '-1' pragma: @@ -773,7 +773,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 1c53037b-18f4-11f0-9656-902e1671aeaf + - 07640f61-18fa-11f0-a9c7-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -781,13 +781,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/b9b30da4-929d-4e56-ba35-b6a17c474c06 + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/15aaf351-1f98-47ec-8905-c4ac9fe45c87 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: 5FE95396F4174F878A18A2346389FBFE Ref B: TYO201151001036 Ref C: 2025-04-14T05:48:38Z' + - 'Ref A: 684F7CF8926C4EAE96F50E6743CD8B07 Ref B: TYO201151001060 Ref C: 2025-04-14T06:31:00Z' x-servedby: - - EUS2ONEIM000000 + - WUS2ONEIM000002 status: code: 200 message: OK @@ -810,7 +810,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"05cbfb51-958a-4fbc-a338-5c71415711a3","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"fcea8bc6-c50f-49e3-9a74-412bbc56fc95","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -825,7 +825,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:46 GMT + - Mon, 14 Apr 2025 06:31:05 GMT expires: - '-1' pragma: @@ -833,7 +833,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 21735321-18f4-11f0-8af4-902e1671aeaf + - 0affba37-18fa-11f0-8747-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -841,22 +841,21 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-ratelimit-remaining-subscription-resource-requests: - - '249' + - '248' x-msedge-ref: - - 'Ref A: F7E266FB4DE14E4B925717C392FDD19E Ref B: TYO201100116021 Ref C: 2025-04-14T05:48:46Z' + - 'Ref A: B91B16E3F3DB4808A90CE414E0D74476 Ref B: TYO201100115023 Ref C: 2025-04-14T06:31:05Z' x-servedby: - - WUS2ONEIM000008 + - EUS2ONEIM000005 status: code: 200 message: OK - request: - body: '{"identity": {"type": "SystemAssigned, UserAssigned", "userAssignedIdentities": - {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/microsoft.managedidentity/userassignedidentities/agid000003": - {}}}, "location": "Global", "properties": {"armRoleReceivers": [], "automationRunbookReceivers": - [], "azureAppPushReceivers": [], "azureFunctionReceivers": [], "emailReceivers": - [], "enabled": true, "eventHubReceivers": [], "groupShortName": "cliactiongro", - "itsmReceivers": [], "logicAppReceivers": [], "smsReceivers": [], "voiceReceivers": - [], "webhookReceivers": []}}' + body: '{"identity": {"userAssignedIdentities": {"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003": + {}}, "type": "SystemAssigned,UserAssigned"}, "location": "Global", "properties": + {"armRoleReceivers": [], "automationRunbookReceivers": [], "azureAppPushReceivers": + [], "azureFunctionReceivers": [], "emailReceivers": [], "enabled": true, "eventHubReceivers": + [], "groupShortName": "cliactiongro", "itsmReceivers": [], "logicAppReceivers": + [], "smsReceivers": [], "voiceReceivers": [], "webhookReceivers": []}}' headers: Accept: - application/json @@ -867,7 +866,7 @@ interactions: Connection: - keep-alive Content-Length: - - '626' + - '625' Content-Type: - application/json ParameterSetName: @@ -879,7 +878,7 @@ interactions: response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned, - UserAssigned","principalId":"05cbfb51-958a-4fbc-a338-5c71415711a3","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/microsoft.managedidentity/userassignedidentities/agid000003":{"clientId":"af88c341-5b4a-4d13-b22e-1c9e67ee7af1","principalId":"db1f6937-9c9d-438c-af0b-d3e32fd72382"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + UserAssigned","principalId":"fcea8bc6-c50f-49e3-9a74-412bbc56fc95","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"6ae45df9-4b31-430e-a3be-79f8f35f71a9","principalId":"2c3a2983-695a-49b7-b015-c4dede4b73ec"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -894,7 +893,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:51 GMT + - Mon, 14 Apr 2025 06:31:11 GMT expires: - '-1' pragma: @@ -902,7 +901,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 21735321-18f4-11f0-8af4-902e1671aeaf + - 0affba37-18fa-11f0-8747-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -910,13 +909,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/b969e917-366a-4d49-9135-a5b10e241ac2 + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/bd312ac7-0ff8-4961-a58e-5f08392f721c x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: 591950BA88FD4C14B29913805CD62553 Ref B: TYO201100116021 Ref C: 2025-04-14T05:48:47Z' + - 'Ref A: A9C75E62D8A949B9BC90CAAE55A8AE6B Ref B: TYO201100115023 Ref C: 2025-04-14T06:31:06Z' x-servedby: - - WUS2ONEIM000004 + - WUS2ONEIM000000 status: code: 200 message: OK @@ -940,7 +939,7 @@ interactions: response: body: string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned, - UserAssigned","principalId":"05cbfb51-958a-4fbc-a338-5c71415711a3","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/microsoft.managedidentity/userassignedidentities/agid000003":{"clientId":"af88c341-5b4a-4d13-b22e-1c9e67ee7af1","principalId":"db1f6937-9c9d-438c-af0b-d3e32fd72382"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + UserAssigned","principalId":"fcea8bc6-c50f-49e3-9a74-412bbc56fc95","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a","userAssignedIdentities":{"/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_monitor_ag_identity000001/providers/Microsoft.ManagedIdentity/userAssignedIdentities/agid000003":{"clientId":"6ae45df9-4b31-430e-a3be-79f8f35f71a9","principalId":"2c3a2983-695a-49b7-b015-c4dede4b73ec"}}},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -955,7 +954,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:48:52 GMT + - Mon, 14 Apr 2025 06:31:11 GMT expires: - '-1' pragma: @@ -963,7 +962,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 25218947-18f4-11f0-b76b-902e1671aeaf + - 0ea34c8a-18fa-11f0-843b-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -973,9 +972,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: C0945270BFD44584999C8AAAE818F2E4 Ref B: TYO201151001060 Ref C: 2025-04-14T05:48:52Z' + - 'Ref A: 17D3B597E43246F796CA47A7041B572B Ref B: TYO201100116049 Ref C: 2025-04-14T06:31:11Z' x-servedby: - - EUS2ONEIM000007 + - WUS2ONEIM000007 status: code: 200 message: OK @@ -1006,7 +1005,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"05cbfb51-958a-4fbc-a338-5c71415711a3","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"fcea8bc6-c50f-49e3-9a74-412bbc56fc95","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -1021,7 +1020,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:49:00 GMT + - Mon, 14 Apr 2025 06:31:18 GMT expires: - '-1' pragma: @@ -1029,7 +1028,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 25218947-18f4-11f0-b76b-902e1671aeaf + - 0ea34c8a-18fa-11f0-843b-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -1037,13 +1036,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/b774e4bd-ef6c-4af0-8398-825d87eda6cd + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/300bdcfc-a9c4-458d-b881-5585b0d262b3 x-ms-ratelimit-remaining-subscription-resource-requests: - - '23' + - '24' x-msedge-ref: - - 'Ref A: DB499D91026C4250B0927184F273C59B Ref B: TYO201151001060 Ref C: 2025-04-14T05:48:53Z' + - 'Ref A: 98C3BB271B864792AD3B278ED5D2F874 Ref B: TYO201100116049 Ref C: 2025-04-14T06:31:12Z' x-servedby: - - EUS2ONEIM000005 + - EUS2ONEIM000007 status: code: 200 message: OK @@ -1066,7 +1065,7 @@ interactions: uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/Microsoft.Insights/actionGroups/cliactiongrouptest000002?api-version=2024-10-01-preview response: body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"05cbfb51-958a-4fbc-a338-5c71415711a3","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_monitor_ag_identity000001/providers/microsoft.insights/actionGroups/cliactiongrouptest000002","type":"Microsoft.Insights/ActionGroups","name":"cliactiongrouptest000002","location":"Global","kind":null,"tags":null,"identity":{"type":"SystemAssigned","principalId":"fcea8bc6-c50f-49e3-9a74-412bbc56fc95","tenantId":"54826b22-38d6-4fb2-bad9-b7b93a3e9c5a"},"properties":{"groupShortName":"cliactiongro","enabled":true,"emailReceivers":[],"smsReceivers":[],"webhookReceivers":[],"eventHubReceivers":[],"itsmReceivers":[],"azureAppPushReceivers":[],"automationRunbookReceivers":[],"voiceReceivers":[],"logicAppReceivers":[],"azureFunctionReceivers":[],"armRoleReceivers":[]}}' headers: access-control-expose-headers: - x-activityid @@ -1081,7 +1080,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:49:02 GMT + - Mon, 14 Apr 2025 06:31:20 GMT expires: - '-1' pragma: @@ -1089,7 +1088,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 2a975dbb-18f4-11f0-96e5-902e1671aeaf + - 1330c630-18fa-11f0-8426-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -1099,9 +1098,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: 03EDCE3256FE4F3F8A1EB00161B7010D Ref B: TYO201151002054 Ref C: 2025-04-14T05:49:01Z' + - 'Ref A: 3C1017A3D9AB4640B6696E0334E42A14 Ref B: TYO201100116023 Ref C: 2025-04-14T06:31:19Z' x-servedby: - - EUS2ONEIM000000 + - EUS2ONEIM000004 status: code: 200 message: OK @@ -1147,7 +1146,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:49:09 GMT + - Mon, 14 Apr 2025 06:31:26 GMT expires: - '-1' pragma: @@ -1155,7 +1154,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 2a975dbb-18f4-11f0-96e5-902e1671aeaf + - 1330c630-18fa-11f0-8426-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -1163,13 +1162,13 @@ interactions: x-frame-options: - SAMEORIGIN x-ms-operation-identifier: - - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/b8c8ca4c-63fb-4c8a-b54b-2ce38f4575e6 + - tenantId=54826b22-38d6-4fb2-bad9-b7b93a3e9c5a,objectId=52a2fda8-c59f-4bde-8c4d-48ffa466fefc/japaneast/975e90c6-805b-4dc5-beb8-8864bd708a60 x-ms-ratelimit-remaining-subscription-resource-requests: - '24' x-msedge-ref: - - 'Ref A: A774BDB24460420BA52511B266ADFEC3 Ref B: TYO201151002054 Ref C: 2025-04-14T05:49:03Z' + - 'Ref A: FCA6B0B32E634D27907479258BB02EB6 Ref B: TYO201100116023 Ref C: 2025-04-14T06:31:20Z' x-servedby: - - WUS2ONEIM000003 + - WUS2ONEIM000008 status: code: 200 message: OK @@ -1207,7 +1206,7 @@ interactions: content-type: - application/json; charset=utf-8 date: - - Mon, 14 Apr 2025 05:49:11 GMT + - Mon, 14 Apr 2025 06:31:27 GMT expires: - '-1' pragma: @@ -1215,7 +1214,7 @@ interactions: strict-transport-security: - max-age=31536000; includeSubDomains x-activityid: - - 2fff8a26-18f4-11f0-8a4f-902e1671aeaf + - 17eae62a-18fa-11f0-b30d-902e1671aeaf x-cache: - CONFIG_NOCACHE x-content-type-options: @@ -1225,9 +1224,9 @@ interactions: x-ms-ratelimit-remaining-subscription-resource-requests: - '249' x-msedge-ref: - - 'Ref A: CBB05C0216034AA68A5817AC36F33251 Ref B: TYO201100113027 Ref C: 2025-04-14T05:49:11Z' + - 'Ref A: EA9FCE00452F4AC29F0CF5AA7E1C8688 Ref B: TYO201151002029 Ref C: 2025-04-14T06:31:27Z' x-servedby: - - WUS2ONEIM000008 + - WUS2ONEIM000006 status: code: 200 message: OK diff --git a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_action_groups.py b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_action_groups.py index b08fb4b5cf8..8459bd8bff6 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_action_groups.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/tests/latest/test_monitor_action_groups.py @@ -135,7 +135,7 @@ def test_monitor_action_group_identity(self, resource_group): self.check('length(userAssignedIdentities)', 1), ]) - self.cmd('monitor action-group identity remove -n {ag} -g {rg} --user-assigned -y') + self.cmd('monitor action-group identity remove -n {ag} -g {rg} --user-assigned {identity} -y') self.cmd('monitor action-group identity show -n {ag} -g {rg}', checks=[ self.check('type', 'None') ]) From 6a16427613c6b110f5cd5c94a0fa556ef9183e6b Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Mon, 14 Apr 2025 16:51:21 +0800 Subject: [PATCH 7/9] exclude param linter --- .../monitor/linter_exclusions.yml | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/linter_exclusions.yml b/src/azure-cli/azure/cli/command_modules/monitor/linter_exclusions.yml index 0e7140db9a8..32987c1ce93 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/linter_exclusions.yml +++ b/src/azure-cli/azure/cli/command_modules/monitor/linter_exclusions.yml @@ -9,4 +9,26 @@ monitor alert update: enabled: rule_exclusions: - missing_parameter_help +monitor action-group create: + parameters: + automation_runbook_receivers: + rule_exclusions: + - option_length_too_long + azure_app_push_receivers: + rule_exclusions: + - option_length_too_long + azure_function_receivers: + rule_exclusions: + - option_length_too_long +monitor action-group update: + parameters: + automation_runbook_receivers: + rule_exclusions: + - option_length_too_long + azure_app_push_receivers: + rule_exclusions: + - option_length_too_long + azure_function_receivers: + rule_exclusions: + - option_length_too_long ... \ No newline at end of file From ac3a0374556c6d14b4eaf58c7081b5712ab050a1 Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Tue, 15 Apr 2025 19:41:05 +0800 Subject: [PATCH 8/9] resolve response with no mi --- .../cli/command_modules/monitor/commands.py | 2 +- .../operations/action_groups_identity.py | 51 +++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py diff --git a/src/azure-cli/azure/cli/command_modules/monitor/commands.py b/src/azure-cli/azure/cli/command_modules/monitor/commands.py index c7cc4f73107..9e34e4f4f32 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/commands.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/commands.py @@ -94,7 +94,7 @@ def load_command_table(self, _): self.command_table['monitor action-group test-notifications create'] = \ ActionGroupTestNotificationCreate(loader=self, table_transformer=action_group_list_table) - from .aaz.latest.monitor.action_group.identity import Assign as AGIdentityAssign, Remove as AGIdentityRemove, Show as AGIdentityShow + from .operations.action_groups_identity import AGIdentityAssign, AGIdentityRemove, AGIdentityShow self.command_table['monitor action-group identity assign'] = AGIdentityAssign(loader=self) self.command_table['monitor action-group identity remove'] = AGIdentityRemove(loader=self) self.command_table['monitor action-group identity show'] = AGIdentityShow(loader=self) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py new file mode 100644 index 00000000000..e60acadc440 --- /dev/null +++ b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups_identity.py @@ -0,0 +1,51 @@ +# -------------------------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for license information. +# -------------------------------------------------------------------------------------------- +# pylint: disable=protected-access +from ..aaz.latest.monitor.action_group.identity import Assign as _AGIdentityAssign, \ + Remove as _AGIdentityRemove, Show as _AGIdentityShow + + +class AGIdentityAssign(_AGIdentityAssign): + def _execute_operations(self): + self.pre_operations() + self.ActionGroupsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.selectors.subresource.get()) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.post_instance_update(self.ctx.selectors.subresource.get()) + self.ActionGroupsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.selectors.subresource.get(), client_flatten=True) + return result + + class InstanceUpdateByJson(_AGIdentityAssign.InstanceUpdateByJson): + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.selectors.subresource.get()) + + +class AGIdentityRemove(_AGIdentityRemove): + def _execute_operations(self): + self.pre_operations() + self.ActionGroupsGet(ctx=self.ctx)() + self.pre_instance_update(self.ctx.selectors.subresource.get()) + self.InstanceUpdateByJson(ctx=self.ctx)() + self.post_instance_update(self.ctx.selectors.subresource.get()) + self.ActionGroupsCreateOrUpdate(ctx=self.ctx)() + self.post_operations() + + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.selectors.subresource.get(), client_flatten=True) + return result + + class InstanceUpdateByJson(_AGIdentityRemove.InstanceUpdateByJson): + def __call__(self, *args, **kwargs): + self._update_instance(self.ctx.selectors.subresource.get()) + + +class AGIdentityShow(_AGIdentityShow): + def _output(self, *args, **kwargs): + result = self.deserialize_output(self.ctx.selectors.subresource.get(), client_flatten=True) + return result From c0e02b4819e58ccfac963af79ac5e8e1bf73da30 Mon Sep 17 00:00:00 2001 From: "RuiJun Hu (MSFT)" Date: Wed, 16 Apr 2025 17:23:20 +0800 Subject: [PATCH 9/9] hide identity args in Update --- .../latest/monitor/action_group/_update.py | 29 --- .../monitor/operations/action_groups.py | 224 +++++++++--------- 2 files changed, 111 insertions(+), 142 deletions(-) diff --git a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_update.py b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_update.py index d1039b7b866..2569dad55a2 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_update.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/aaz/latest/monitor/action_group/_update.py @@ -75,26 +75,6 @@ def _build_arguments_schema(cls, *args, **kwargs): # define Arg Group "Identity" - _args_schema = cls._args_schema - _args_schema.type = AAZStrArg( - options=["--type"], - arg_group="Identity", - help="Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).", - enum={"None": "None", "SystemAssigned": "SystemAssigned", "SystemAssigned,UserAssigned": "SystemAssigned,UserAssigned", "UserAssigned": "UserAssigned"}, - ) - _args_schema.user_assigned_identities = AAZDictArg( - options=["--user-assigned-identities"], - arg_group="Identity", - help="The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", - nullable=True, - ) - - user_assigned_identities = cls._args_schema.user_assigned_identities - user_assigned_identities.Element = AAZObjectArg( - nullable=True, - blank={}, - ) - # define Arg Group "Properties" _args_schema = cls._args_schema @@ -747,15 +727,6 @@ def _update_instance(self, instance): _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", typ_kwargs={"flags": {"required": True}}) - 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, ".", typ_kwargs={"nullable": True}) - properties = _builder.get(".properties") if properties is not None: properties.set_prop("armRoleReceivers", AAZListType, ".arm_role_receivers") diff --git a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py index f7bab9e1b48..f25bcaa605f 100644 --- a/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py +++ b/src/azure-cli/azure/cli/command_modules/monitor/operations/action_groups.py @@ -133,43 +133,43 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--actions"], singular_options=["--action", "-a"], help=''' - Add receivers to the action group during the creation. - Usage: --action TYPE NAME [ARG ...] - Email: - Format: --action email NAME EMAIL_ADDRESS [usecommonalertschema] - Example: --action email bob bob@contoso.com - SMS: - Format: --action sms NAME COUNTRY_CODE PHONE_NUMBER - Example: --action sms charli 1 5551234567 - Webhook: - Format: --action webhook NAME URI [useaadauth OBJECT_ID IDENTIFIER URI] [usecommonalertschema] - Example: --action webhook alert_hook https://www.contoso.com/alert useaadauth testobj http://identifier usecommonalertschema - Arm Role: - Format: --action armrole NAME ROLE_ID [usecommonalertschema] - Example: --action armole owner_role 8e3af657-a8ff-443c-a75c-2fe8c4bcb635 - Azure App Push: - Format: --action azureapppush NAME EMAIL_ADDRESS - Example: --action azureapppush test_apppush bob@contoso.com - ITSM: - Format: --action itsm NAME WORKSPACE_ID CONNECTION_ID TICKET_CONFIGURATION REGION - Example: --action itsm test_itsm test_workspace test_conn ticket_blob useast - Automation runbook: - Format: --action automationrunbook NAME AUTOMATION_ACCOUNT_ID RUNBOOK_NAME WEBHOOK_RESOURCE_ID SERVICE_URI [isglobalrunbook] [usecommonalertschema] - Example: --action automationrunbook test_runbook test_acc test_book test_webhook test_rsrc http://example.com isglobalrunbook usecommonalertschema - Voice: - Format: --action voice NAME COUNTRY_CODE PHONE_NUMBER - Example: --action voice charli 1 4441234567 - Logic App: - Format: --action logicapp NAME RESOURCE_ID CALLBACK_URL [usecommonalertschema] - Example: --action logicapp test_logicapp test_rsrc http://callback - Azure Function: - Format: --action azurefunction NAME FUNCTION_APP_RESOURCE_ID FUNCTION_NAME HTTP_TRIGGER_URL [usecommonalertschema] - Example: --action azurefunction test_function test_rsrc test_func http://trigger usecommonalertschema - Event Hub: - Format: --action eventhub NAME SUBSCRIPTION_ID EVENT_HUB_NAME_SPACE EVENT_HUB_NAME [usecommonalertschema] - Example: --action eventhub test_eventhub 5def922a-3ed4-49c1-b9fd-05ec533819a3 eventhubNameSpace testEventHubName usecommonalertschema - Multiple actions can be specified by using more than one `--add-action` argument. - 'useaadauth', 'isglobalrunbook' and 'usecommonalertschema' are optional arguements that only need to be passed to set the respective parameter to True. + Add receivers to the action group during the creation.\n\n + Usage: --action TYPE NAME [ARG ...]\n\n + Email:\n\n + Format: --action email NAME EMAIL_ADDRESS [usecommonalertschema]\n\n + Example: --action email bob bob@contoso.com\n\n + SMS:\n\n + Format: --action sms NAME COUNTRY_CODE PHONE_NUMBER\n\n + Example: --action sms charli 1 5551234567\n\n + Webhook:\n\n + Format: --action webhook NAME URI [useaadauth OBJECT_ID IDENTIFIER URI] [usecommonalertschema]\n\n + Example: --action webhook alert_hook https://www.contoso.com/alert useaadauth testobj http://identifier usecommonalertschema\n\n + Arm Role:\n\n + Format: --action armrole NAME ROLE_ID [usecommonalertschema]\n\n + Example: --action armole owner_role 8e3af657-a8ff-443c-a75c-2fe8c4bcb635\n\n + Azure App Push:\n\n + Format: --action azureapppush NAME EMAIL_ADDRESS\n\n + Example: --action azureapppush test_apppush bob@contoso.com\n\n + ITSM:\n\n + Format: --action itsm NAME WORKSPACE_ID CONNECTION_ID TICKET_CONFIGURATION REGION\n\n + Example: --action itsm test_itsm test_workspace test_conn ticket_blob useast\n\n + Automation runbook:\n\n + Format: --action automationrunbook NAME AUTOMATION_ACCOUNT_ID RUNBOOK_NAME WEBHOOK_RESOURCE_ID SERVICE_URI [isglobalrunbook] [usecommonalertschema]\n\n + Example: --action automationrunbook test_runbook test_acc test_book test_webhook test_rsrc http://example.com isglobalrunbook usecommonalertschema\n\n + Voice:\n\n + Format: --action voice NAME COUNTRY_CODE PHONE_NUMBER\n\n + Example: --action voice charli 1 4441234567\n\n + Logic App:\n\n + Format: --action logicapp NAME RESOURCE_ID CALLBACK_URL [usecommonalertschema]\n\n + Example: --action logicapp test_logicapp test_rsrc http://callback\n\n + Azure Function:\n\n + Format: --action azurefunction NAME FUNCTION_APP_RESOURCE_ID FUNCTION_NAME HTTP_TRIGGER_URL [usecommonalertschema]\n\n + Example: --action azurefunction test_function test_rsrc test_func http://trigger usecommonalertschema\n\n + Event Hub:\n\n + Format: --action eventhub NAME SUBSCRIPTION_ID EVENT_HUB_NAME_SPACE EVENT_HUB_NAME [usecommonalertschema]\n\n + Example: --action eventhub test_eventhub 5def922a-3ed4-49c1-b9fd-05ec533819a3 eventhubNameSpace testEventHubName usecommonalertschema\n\n + Multiple actions can be specified by using more than one `--add-action` argument.\n\n + 'useaadauth', 'isglobalrunbook' and 'usecommonalertschema' are optional arguements that only need to be passed to set the respective parameter to True.\n\n If the 'useaadauth' argument is passed, then the OBJECT_ID and IDENTIFIER_URI values are required as well. ''', arg_group="Actions", @@ -199,49 +199,47 @@ class ActionGroupUpdate(_ActionGroupUpdate): @classmethod def _build_arguments_schema(cls, *args, **kwargs): args_schema = super()._build_arguments_schema(*args, **kwargs) - args_schema.type._registered = False - args_schema.user_assigned_identities._registered = False args_schema.receiver_actions = AAZCustomListArg( options=["--add-actions"], singular_options=["--add-action", "-a"], help=''' - Add receivers to the action group. - Usage: --add-action TYPE NAME [ARG ...] - Email: - Format: --add-action email NAME EMAIL_ADDRESS [usecommonalertschema] - Example: --add-action email bob bob@contoso.com - SMS: - Format: --add-action sms NAME COUNTRY_CODE PHONE_NUMBER - Example: --add-action sms charli 1 5551234567 - Webhook: - Format: --add-action webhook NAME URI [useaadauth OBJECT_ID IDENTIFIER URI] [usecommonalertschema] - Example: --add-action https://www.contoso.com/alert useaadauth testobj http://identifier usecommonalertschema - Arm Role: - Format: --add-action armrole NAME ROLE_ID [usecommonalertschema] - Example: --add-action armole owner_role 8e3af657-a8ff-443c-a75c-2fe8c4bcb635 - Azure App Push: - Format: --add-action azureapppush NAME EMAIL_ADDRESS - Example: --add-action azureapppush test_apppush bob@contoso.com - ITSM: - Format: --add-action itsm NAME WORKSPACE_ID CONNECTION_ID TICKET_CONFIGURATION REGION - Example: --add-action itsm test_itsm test_workspace test_conn ticket_blob useast - Automation runbook: - Format: --add-action automationrunbook NAME AUTOMATION_ACCOUNT_ID RUNBOOK_NAME WEBHOOK_RESOURCE_ID SERVICE_URI [isglobalrunbook] [usecommonalertschema] - Example: --add-action automationrunbook test_runbook test_acc test_book test_webhook test_rsrc http://example.com isglobalrunbook usecommonalertschema - Voice: - Format: --add-action voice NAME COUNTRY_CODE PHONE_NUMBER - Example: --add-action voice charli 1 4441234567 - Logic App: - Format: --add-action logicapp NAME RESOURCE_ID CALLBACK_URL [usecommonalertschema] - Example: --add-action logicapp test_logicapp test_rsrc http://callback - Azure Function: - Format: --add-action azurefunction NAME FUNCTION_APP_RESOURCE_ID FUNCTION_NAME HTTP_TRIGGER_URL [usecommonalertschema] - Example: --add-action azurefunction test_function test_rsrc test_func http://trigger usecommonalertschema - Event Hub: - Format: --action eventhub NAME SUBSCRIPTION_ID EVENT_HUB_NAME_SPACE EVENT_HUB_NAME [usecommonalertschema] - Example: --action eventhub test_eventhub 5def922a-3ed4-49c1-b9fd-05ec533819a3 eventhubNameSpace testEventHubName usecommonalertschema - Multiple actions can be specified by using more than one `--add-action` argument. - 'useaadauth', 'isglobalrunbook' and 'usecommonalertschema' are optional arguements that only need to be passed to set the respective parameter to True. + Add receivers to the action group.\n\n + Usage: --add-action TYPE NAME [ARG ...]\n\n + Email:\n\n + Format: --add-action email NAME EMAIL_ADDRESS [usecommonalertschema]\n\n + Example: --add-action email bob bob@contoso.com\n\n + SMS:\n\n + Format: --add-action sms NAME COUNTRY_CODE PHONE_NUMBER\n\n + Example: --add-action sms charli 1 5551234567\n\n + Webhook:\n\n + Format: --add-action webhook NAME URI [useaadauth OBJECT_ID IDENTIFIER URI] [usecommonalertschema]\n\n + Example: --add-action https://www.contoso.com/alert useaadauth testobj http://identifier usecommonalertschema\n\n + Arm Role:\n\n + Format: --add-action armrole NAME ROLE_ID [usecommonalertschema]\n\n + Example: --add-action armole owner_role 8e3af657-a8ff-443c-a75c-2fe8c4bcb635\n\n + Azure App Push:\n\n + Format: --add-action azureapppush NAME EMAIL_ADDRESS\n\n + Example: --add-action azureapppush test_apppush bob@contoso.com\n\n + ITSM:\n\n + Format: --add-action itsm NAME WORKSPACE_ID CONNECTION_ID TICKET_CONFIGURATION REGION\n\n + Example: --add-action itsm test_itsm test_workspace test_conn ticket_blob useast\n\n + Automation runbook:\n\n + Format: --add-action automationrunbook NAME AUTOMATION_ACCOUNT_ID RUNBOOK_NAME WEBHOOK_RESOURCE_ID SERVICE_URI [isglobalrunbook] [usecommonalertschema]\n\n + Example: --add-action automationrunbook test_runbook test_acc test_book test_webhook test_rsrc http://example.com isglobalrunbook usecommonalertschema\n\n + Voice:\n\n + Format: --add-action voice NAME COUNTRY_CODE PHONE_NUMBER\n\n + Example: --add-action voice charli 1 4441234567\n\n + Logic App:\n\n + Format: --add-action logicapp NAME RESOURCE_ID CALLBACK_URL [usecommonalertschema]\n\n + Example: --add-action logicapp test_logicapp test_rsrc http://callback\n\n + Azure Function:\n\n + Format: --add-action azurefunction NAME FUNCTION_APP_RESOURCE_ID FUNCTION_NAME HTTP_TRIGGER_URL [usecommonalertschema]\n\n + Example: --add-action azurefunction test_function test_rsrc test_func http://trigger usecommonalertschema\n\n + Event Hub:\n\n + Format: --action eventhub NAME SUBSCRIPTION_ID EVENT_HUB_NAME_SPACE EVENT_HUB_NAME [usecommonalertschema]\n\n + Example: --action eventhub test_eventhub 5def922a-3ed4-49c1-b9fd-05ec533819a3 eventhubNameSpace testEventHubName usecommonalertschema\n\n + Multiple actions can be specified by using more than one `--add-action` argument.\n\n + 'useaadauth', 'isglobalrunbook' and 'usecommonalertschema' are optional arguements that only need to be passed to set the respective parameter to True.\n\n If the 'useaadauth' argument is passed, then the OBJECT_ID and IDENTIFIER_URI values are required as well.''', arg_group="Actions", ) @@ -341,43 +339,43 @@ def _build_arguments_schema(cls, *args, **kwargs): options=["--add-actions"], singular_options=["--add-action", "-a"], help=''' - Add receivers to the action group. - Usage: --add-action TYPE NAME [ARG ...] - Email: - Format: --add-action email NAME EMAIL_ADDRESS [usecommonalertschema] - Example: --add-action email bob bob@contoso.com - SMS: - Format: --add-action sms NAME COUNTRY_CODE PHONE_NUMBER - Example: --add-action sms charli 1 5551234567 - Webhook: - Format: --add-action webhook NAME URI [useaadauth OBJECT_ID IDENTIFIER URI] [usecommonalertschema] - Example: --add-action https://www.contoso.com/alert useaadauth testobj http://identifier usecommonalertschema - Arm Role: - Format: --add-action armrole NAME ROLE_ID [usecommonalertschema] - Example: --add-action armole owner_role 8e3af657-a8ff-443c-a75c-2fe8c4bcb635 - Azure App Push: - Format: --add-action azureapppush NAME EMAIL_ADDRESS - Example: --add-action azureapppush test_apppush bob@contoso.com - ITSM: - Format: --add-action itsm NAME WORKSPACE_ID CONNECTION_ID TICKET_CONFIGURATION REGION - Example: --add-action itsm test_itsm test_workspace test_conn ticket_blob useast - Automation runbook: - Format: --add-action automationrunbook NAME AUTOMATION_ACCOUNT_ID RUNBOOK_NAME WEBHOOK_RESOURCE_ID SERVICE_URI [isglobalrunbook] [usecommonalertschema] - Example: --add-action automationrunbook test_runbook test_acc test_book test_webhook test_rsrc http://example.com isglobalrunbook usecommonalertschema - Voice: - Format: --add-action voice NAME COUNTRY_CODE PHONE_NUMBER - Example: --add-action voice charli 1 4441234567 - Logic App: - Format: --add-action logicapp NAME RESOURCE_ID CALLBACK_URL [usecommonalertschema] - Example: --add-action logicapp test_logicapp test_rsrc http://callback - Azure Function: - Format: --add-action azurefunction NAME FUNCTION_APP_RESOURCE_ID FUNCTION_NAME HTTP_TRIGGER_URL [usecommonalertschema] - Example: --add-action azurefunction test_function test_rsrc test_func http://trigger usecommonalertschema - Event Hub: - Format: --action eventhub NAME SUBSCRIPTION_ID EVENT_HUB_NAME_SPACE EVENT_HUB_NAME [usecommonalertschema] - Example: --action eventhub test_eventhub 5def922a-3ed4-49c1-b9fd-05ec533819a3 eventhubNameSpace testEventHubName usecommonalertschema - Multiple actions can be specified by using more than one `--add-action` argument. - 'useaadauth', 'isglobalrunbook' and 'usecommonalertschema' are optional arguements that only need to be passed to set the respective parameter to True. + Add receivers to the action group.\n\n + Usage: --add-action TYPE NAME [ARG ...]\n\n + Email:\n\n + Format: --add-action email NAME EMAIL_ADDRESS [usecommonalertschema]\n\n + Example: --add-action email bob bob@contoso.com\n\n + SMS:\n\n + Format: --add-action sms NAME COUNTRY_CODE PHONE_NUMBER\n\n + Example: --add-action sms charli 1 5551234567\n\n + Webhook:\n\n + Format: --add-action webhook NAME URI [useaadauth OBJECT_ID IDENTIFIER URI] [usecommonalertschema]\n\n + Example: --add-action https://www.contoso.com/alert useaadauth testobj http://identifier usecommonalertschema\n\n + Arm Role:\n\n + Format: --add-action armrole NAME ROLE_ID [usecommonalertschema]\n\n + Example: --add-action armole owner_role 8e3af657-a8ff-443c-a75c-2fe8c4bcb635\n\n + Azure App Push:\n\n + Format: --add-action azureapppush NAME EMAIL_ADDRESS\n\n + Example: --add-action azureapppush test_apppush bob@contoso.com\n\n + ITSM:\n\n + Format: --add-action itsm NAME WORKSPACE_ID CONNECTION_ID TICKET_CONFIGURATION REGION\n\n + Example: --add-action itsm test_itsm test_workspace test_conn ticket_blob useast\n\n + Automation runbook:\n\n + Format: --add-action automationrunbook NAME AUTOMATION_ACCOUNT_ID RUNBOOK_NAME WEBHOOK_RESOURCE_ID SERVICE_URI [isglobalrunbook] [usecommonalertschema]\n\n + Example: --add-action automationrunbook test_runbook test_acc test_book test_webhook test_rsrc http://example.com isglobalrunbook usecommonalertschema\n\n + Voice:\n\n + Format: --add-action voice NAME COUNTRY_CODE PHONE_NUMBER\n\n + Example: --add-action voice charli 1 4441234567\n\n + Logic App:\n\n + Format: --add-action logicapp NAME RESOURCE_ID CALLBACK_URL [usecommonalertschema]\n\n + Example: --add-action logicapp test_logicapp test_rsrc http://callback\n\n + Azure Function:\n\n + Format: --add-action azurefunction NAME FUNCTION_APP_RESOURCE_ID FUNCTION_NAME HTTP_TRIGGER_URL [usecommonalertschema]\n\n + Example: --add-action azurefunction test_function test_rsrc test_func http://trigger usecommonalertschema\n\n + Event Hub:\n\n + Format: --action eventhub NAME SUBSCRIPTION_ID EVENT_HUB_NAME_SPACE EVENT_HUB_NAME [usecommonalertschema]\n\n + Example: --action eventhub test_eventhub 5def922a-3ed4-49c1-b9fd-05ec533819a3 eventhubNameSpace testEventHubName usecommonalertschema\n\n + Multiple actions can be specified by using more than one `--add-action` argument.\n\n + 'useaadauth', 'isglobalrunbook' and 'usecommonalertschema' are optional arguements that only need to be passed to set the respective parameter to True.\n\n If the 'useaadauth' argument is passed, then the OBJECT_ID and IDENTIFIER_URI values are required as well.''', ) args_schema.receiver_actions.Element = AAZListArg()