From c34a6317140ac2c0a788725b7ad7ae27b38c226a Mon Sep 17 00:00:00 2001 From: Julia Welborn Date: Fri, 2 Dec 2022 08:35:57 -0800 Subject: [PATCH 01/19] Start updating paths --- .../preview/2022-08-01-preview/RoleManagementAlerts.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json index fe96424d78f7..166ed2147014 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json @@ -34,7 +34,7 @@ } }, "paths": { - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}": { "get": { "tags": [ "Alerts" From 5b309b7ab94cc3214531d5ef7f3630635e1cb4e0 Mon Sep 17 00:00:00 2001 From: Julia Welborn Date: Fri, 2 Dec 2022 08:47:15 -0800 Subject: [PATCH 02/19] update all paths and examples --- .../RoleManagementAlerts.json | 20 ++++++------- .../examples/GetAlertById.json | 14 +++++----- .../examples/GetAlertConfigurationById.json | 4 +-- .../examples/GetAlertConfigurations.json | 16 +++++------ .../examples/GetAlertDefinitionById.json | 4 +-- .../examples/GetAlertDefinitions.json | 16 +++++------ .../examples/GetAlertIncidentById.json | 2 +- .../examples/GetAlertIncidents.json | 2 +- .../examples/GetAlerts.json | 28 +++++++++---------- .../examples/UpdateAlert.json | 14 +++++----- .../examples/UpdateAlertConfiguration.json | 4 +-- 11 files changed, 62 insertions(+), 62 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json index 166ed2147014..8cb9ea9566cb 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json @@ -139,7 +139,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts": { "get": { "tags": [ "Alerts" @@ -183,7 +183,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/refresh": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/refresh": { "post": { "tags": [ "Alerts" @@ -241,7 +241,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/refresh": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/refresh": { "post": { "tags": [ "Alerts" @@ -291,7 +291,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/{alertId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations/{alertId}": { "get": { "tags": [ "AlertConfigurations" @@ -396,7 +396,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertConfigurations": { "get": { "tags": [ "AlertConfigurations" @@ -440,7 +440,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/{alertDefinitionId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions/{alertDefinitionId}": { "get": { "tags": [ "AlertDefinitions" @@ -489,7 +489,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertDefinitions": { "get": { "tags": [ "AlertDefinitions" @@ -533,7 +533,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents/{alertIncidentId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}": { "get": { "tags": [ "AlertIncidents" @@ -590,7 +590,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents": { "get": { "tags": [ "AlertIncidents" @@ -642,7 +642,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/alerts/{alertId}/alertIncidents/{alertIncidentId}/remediate": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/{alertId}/alertIncidents/{alertIncidentId}/remediate": { "post": { "tags": [ "AlertIncidents" diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertById.json index c039b8799fd9..cfd18ee1ccad 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertById.json @@ -26,8 +26,8 @@ "isConfigurable": true }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, "alertIncidents": [ { @@ -38,7 +38,7 @@ }, "name": "a9f38501-74ec-43ea-8663-6c538602150d", "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" } ], "alertConfiguration": { @@ -51,13 +51,13 @@ "thresholdPercentageOfOwnersOutOfAllRoleMembers": 3 }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alerts" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlerts" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurationById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurationById.json index 7059ce6b9cdb..ea7ecb4fbbea 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurationById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurationById.json @@ -16,8 +16,8 @@ "thresholdPercentageOfOwnersOutOfAllRoleMembers": 40 }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurations.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurations.json index aca0d8403ae7..c34d499db59a 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurations.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertConfigurations.json @@ -15,8 +15,8 @@ "isEnabled": true }, "name": "DuplicateRoleCreated", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/DuplicateRoleCreated", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/DuplicateRoleCreated", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" }, { "properties": { @@ -28,8 +28,8 @@ "thresholdPercentageOfOwnersOutOfAllRoleMembers": 3 }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" }, { "properties": { @@ -41,8 +41,8 @@ "thresholdPercentageOfPermanentOwnersOutOfAllOwners": 10 }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" }, { "properties": { @@ -52,8 +52,8 @@ "isEnabled": true }, "name": "AzureRolesAssignedOutsidePimAlert", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/AzureRolesAssignedOutsidePimAlert", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/AzureRolesAssignedOutsidePimAlert", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } ] } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitionById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitionById.json index ab9a7dc9beb4..e9857a01c790 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitionById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitionById.json @@ -19,8 +19,8 @@ "isConfigurable": true }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitions.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitions.json index de858b4cea61..0f09581cf849 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitions.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertDefinitions.json @@ -20,8 +20,8 @@ "isConfigurable": true }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, { "properties": { @@ -36,8 +36,8 @@ "isConfigurable": true }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, { "properties": { @@ -52,8 +52,8 @@ "isConfigurable": false }, "name": "DuplicateRoleCreated", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/DuplicateRoleCreated", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/DuplicateRoleCreated", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, { "properties": { @@ -68,8 +68,8 @@ "isConfigurable": false }, "name": "AzureRolesAssignedOutsidePimAlert", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/AzureRolesAssignedOutsidePimAlert", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/AzureRolesAssignedOutsidePimAlert", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" } ] } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidentById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidentById.json index 2fa50d25cf39..e3cc22437122 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidentById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidentById.json @@ -14,7 +14,7 @@ "assigneeType": "User" }, "name": "5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource/alertIncidents/5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc", + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource/alertIncidents/5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc", "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents" } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidents.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidents.json index 8ed06d75a624..aaa265e35af4 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidents.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertIncidents.json @@ -15,7 +15,7 @@ "assigneeType": "User" }, "name": "5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource/alertIncidents/5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc", + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource/alertIncidents/5cf9ee65-d22e-4784-8b17-3de1c3b7bdcc", "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents" } ] diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlerts.json index 7d6ae2add74d..3fcc5233cb2a 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlerts.json @@ -27,8 +27,8 @@ "isConfigurable": true }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, "alertIncidents": [ { @@ -39,7 +39,7 @@ }, "name": "a9f38501-74ec-43ea-8663-6c538602150d", "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyPermanentOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" } ], "alertConfiguration": { @@ -52,13 +52,13 @@ "thresholdPercentageOfPermanentOwnersOutOfAllOwners": 10 }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alerts" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlerts" }, { "properties": { @@ -80,8 +80,8 @@ "isConfigurable": true }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, "alertIncidents": [ { @@ -92,7 +92,7 @@ }, "name": "a9f38501-74ec-43ea-8663-6c538602150d", "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" } ], "alertConfiguration": { @@ -105,13 +105,13 @@ "thresholdPercentageOfOwnersOutOfAllRoleMembers": 3 }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alerts" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlerts" } ] } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json index c146529e8837..84eead67ac88 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json @@ -31,8 +31,8 @@ "isConfigurable": true }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertDefinitions/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertDefinitions" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertDefinitions" }, "alertIncidents": [ { @@ -43,7 +43,7 @@ }, "name": "a9f38501-74ec-43ea-8663-6c538602150d", "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyPermanentOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" } ], "alertConfiguration": { @@ -56,13 +56,13 @@ "thresholdPercentageOfPermanentOwnersOutOfAllOwners": 10 }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } }, "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alerts/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alerts" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlerts" } } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json index d736f8ba8a26..65ec55021833 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json @@ -23,8 +23,8 @@ "thresholdPercentageOfOwnersOutOfAllRoleMembers": 3 }, "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/alertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts/alertConfigurations" + "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource", + "type": "Microsoft.Authorization/roleManagementAlertConfigurations" } } } From f48e3a685bceddb5a38c917735f7a454c28eb8e7 Mon Sep 17 00:00:00 2001 From: Julia Welborn Date: Fri, 2 Dec 2022 08:54:06 -0800 Subject: [PATCH 03/19] Change patch operations to 204 instead of 200 --- .../RoleManagementAlerts.json | 14 ++--- .../examples/UpdateAlert.json | 56 +------------------ .../examples/UpdateAlertConfiguration.json | 16 +----- 3 files changed, 6 insertions(+), 80 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json index 8cb9ea9566cb..0e846d6c93ef 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json @@ -119,11 +119,8 @@ } ], "responses": { - "200": { - "description": "OK - Returns information about the updated alert.", - "schema": { - "$ref": "#/definitions/Alert" - } + "204": { + "description": "NoContent - Successfully updated the alert." }, "default": { "description": "Error response describing why the operation failed.", @@ -376,11 +373,8 @@ } ], "responses": { - "200": { - "description": "OK - Returns information about the updated alert configuration.", - "schema": { - "$ref": "#/definitions/AlertConfiguration" - } + "204": { + "description": "NoContent - Successfully updated the alert." }, "default": { "description": "Error response describing why the operation failed.", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json index 84eead67ac88..4f32d78ff079 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlert.json @@ -10,60 +10,6 @@ } }, "responses": { - "200": { - "body": { - "properties": { - "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f", - "incidentCount": 1, - "lastModifiedDateTime": "2022-04-05T03:04:06.467+00:00", - "lastScannedDateTime": "2022-04-06T18:25:00.38+00:00", - "isActive": false, - "alertDefinition": { - "properties": { - "displayName": "Too many permanent owners assigned to a resource", - "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f", - "description": "The number of users set to never expire is too high. To enhance the security of your resources, we recommend requiring activation for role use. Take a moment to review the list of users, and suggested changes here.", - "severityLevel": "Medium", - "securityImpact": "Providing users permanent access in a role may leave resources vulnerable to accidental or malicious activity.", - "mitigationSteps": "To mitigate this issue, require the user to activate the role before use.", - "howToPrevent": "Enable “Activation Required” in the role settings menu. This will ensure newly added users must activate their role.", - "isRemediatable": true, - "isConfigurable": true - }, - "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertDefinitions/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlertDefinitions" - }, - "alertIncidents": [ - { - "properties": { - "alertIncidentType": "TooManyPermanentOwnersAssignedToResourceAlertIncident", - "assigneeName": "testUser", - "assigneeType": "User" - }, - "name": "a9f38501-74ec-43ea-8663-6c538602150d", - "type": "Microsoft.Authorization/roleManagementAlerts/alertIncidents", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource/alertIncidents/a9f38501-74ec-43ea-8663-6c538602150d" - } - ], - "alertConfiguration": { - "properties": { - "alertConfigurationType": "TooManyPermanentOwnersAssignedToResourceAlertConfiguration", - "alertDefinitionId": "TooManyPermanentOwnersAssignedToResource", - "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f", - "isEnabled": true, - "thresholdNumberOfPermanentOwners": 10, - "thresholdPercentageOfPermanentOwnersOutOfAllOwners": 10 - }, - "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlertConfigurations" - } - }, - "name": "TooManyPermanentOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/TooManyPermanentOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlerts" - } - } + "204": {} } } diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json index 65ec55021833..7e40bdf61266 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/UpdateAlertConfiguration.json @@ -12,20 +12,6 @@ } }, "responses": { - "200": { - "body": { - "properties": { - "alertConfigurationType": "TooManyOwnersAssignedToResourceAlertConfiguration", - "alertDefinitionId": "TooManyOwnersAssignedToResource", - "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f", - "isEnabled": true, - "thresholdNumberOfOwners": 2, - "thresholdPercentageOfOwnersOutOfAllRoleMembers": 3 - }, - "name": "TooManyOwnersAssignedToResource", - "id": "/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertConfigurations/TooManyOwnersAssignedToResource", - "type": "Microsoft.Authorization/roleManagementAlertConfigurations" - } - } + "204": {} } } From e0f40fd9932274282af34643aaf64d1e6f8d0cc5 Mon Sep 17 00:00:00 2001 From: Julia Welborn Date: Fri, 2 Dec 2022 09:03:29 -0800 Subject: [PATCH 04/19] Update operations paths --- .../preview/2022-08-01-preview/RoleManagementAlerts.json | 4 ++-- .../preview/2022-08-01-preview/examples/RefreshAlert.json | 2 +- .../preview/2022-08-01-preview/examples/RefreshAllAlerts.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json index 0e846d6c93ef..fc5f10405394 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json @@ -690,7 +690,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/operations/{operationId}": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations/{operationId}": { "get": { "tags": [ "AlertOperations" @@ -739,7 +739,7 @@ } } }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlerts/operations": { + "/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations": { "get": { "tags": [ "AlertOperations" diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json index 78243c6886ac..f05718a689d8 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json @@ -7,7 +7,7 @@ "responses": { "202": { "headers": { - "Location": "https://management.azure.com/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/operations/{operationId}?api-version=2022-04-01-preview" + "Location": "https://management.azure.com/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertOperations/{operationId}?api-version=2022-04-01-preview" }, "body": { "id": "{operationId}", diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json index c8d55d2349d6..b4308eae67e0 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json @@ -6,7 +6,7 @@ "responses": { "202": { "headers": { - "Location": "https://management.azure.com/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/operations/{operationId}?api-version=2022-04-01-preview" + "Location": "https://management.azure.com/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlertOperations/{operationId}?api-version=2022-04-01-preview" }, "body": { "id": "{operationId}", From 9009b73e82967f8539caf70d63dd35b928e6876f Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Mon, 13 Feb 2023 06:04:14 -0800 Subject: [PATCH 05/19] Add new properties to operation --- .../RoleManagementAlerts.json | 60 ++++++------------- 1 file changed, 18 insertions(+), 42 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json index fc5f10405394..ba66a184451e 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json @@ -738,47 +738,6 @@ } } } - }, - "/{scope}/providers/Microsoft.Authorization/roleManagementAlertOperations": { - "get": { - "tags": [ - "AlertOperations" - ], - "operationId": "AlertOperation_ListForScope", - "description": "Gets alert operations for a resource scope.", - "parameters": [ - { - "name": "scope", - "in": "path", - "required": true, - "type": "string", - "description": "The scope of the alert operation.", - "x-ms-skip-url-encoding": true - }, - { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns an array of the operations.", - "schema": { - "$ref": "#/definitions/AlertOperationListResult" - } - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - }, - "x-ms-examples": { - "GetAlertOperations": { - "$ref": "./examples/GetAlertOperations.json" - } - } - } } }, "definitions": { @@ -1328,7 +1287,24 @@ "type": "string", "readOnly": true, "description": "The status of the alert operation." - } + }, + "statusDetail": { + "type": "string", + "readOnly": true, + "description": "The status detail of the alert operation." + }, + "createdDateTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The created date of the alert operation." + }, + "lastActionDateTime": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The last action date of the alert operation." + }, }, "type": "object", "description": "Alert operation result" From 1db63d1763d403c0292a8962d716f823c2c1b75a Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 11:27:21 -0800 Subject: [PATCH 06/19] Update RoleManagementAlerts.json --- .../preview/2022-08-01-preview/RoleManagementAlerts.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json index ba66a184451e..d3ad7bc1c7a0 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json @@ -537,7 +537,7 @@ "parameters": [ { "name": "scope", - "in": "path", + "in": "path" "required": true, "type": "string", "description": "The scope of the alert incident. The scope can be any REST resource instance. For example, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription, '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.", @@ -1304,7 +1304,12 @@ "format": "date-time", "readOnly": true, "description": "The last action date of the alert operation." - }, + }, + "resourceLocation": { + "type": "string", + "readOnly": true, + "description": "The location of the alert associated with the operation." + } }, "type": "object", "description": "Alert operation result" From 0479041602457ccd1bb8a465e993a4c1edc9f66d Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 11:27:42 -0800 Subject: [PATCH 07/19] Delete GetAlertOperations.json --- .../examples/GetAlertOperations.json | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperations.json diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperations.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperations.json deleted file mode 100644 index 2ab7f27e7e97..000000000000 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperations.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "parameters": { - "scope": "subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f", - "api-version": "2022-08-01-preview" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "{operationId}", - "status": "Running" - }, - { - "id": "{operationId}", - "status": "NotStarted" - }, - { - "id": "{operationId}", - "status": "NotStarted" - }, - { - "id": "{operationId}", - "status": "Succeeded" - } - ] - } - } - } -} From 02d04147abada7621166648af4619da71092de10 Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 11:34:33 -0800 Subject: [PATCH 08/19] Update GetAlertOperationById.json --- .../2022-08-01-preview/examples/GetAlertOperationById.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperationById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperationById.json index 05ff8cc1e935..c3c2713fb3ef 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperationById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperationById.json @@ -8,7 +8,11 @@ "200": { "body": { "id": "{operationId}", - "status": "Running" + "status": "Running", + "statusDetail": "{\"result\":[{\"name\":\"DuplicateRoleCreated\",\"statusDetail\":\"Alert scan is not yet started.\"}]}", + "lastActionDateTime": "2022-06-19T12-01-03.45Z", + "lastActionDateTime": "2022-06-19T12-01-03.45Z", + "resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/DuplicateRoleCreated?api-version=2022-08-01-preview" } } } From 59543cd34ad8d6305e619095bf30d62c00a5e34b Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 11:51:22 -0800 Subject: [PATCH 09/19] Fix accidental comma deletion --- .../preview/2022-08-01-preview/RoleManagementAlerts.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json index d3ad7bc1c7a0..1c0a344446de 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json @@ -537,7 +537,7 @@ "parameters": [ { "name": "scope", - "in": "path" + "in": "path", "required": true, "type": "string", "description": "The scope of the alert incident. The scope can be any REST resource instance. For example, use '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription, '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}' for a resource group, and '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}' for a resource.", From 392320ea360742873596ba2ba988441ef93eaf99 Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 12:41:15 -0800 Subject: [PATCH 10/19] Update GetAlertOperationById.json --- .../2022-08-01-preview/examples/GetAlertOperationById.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperationById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperationById.json index c3c2713fb3ef..99b0b75b45bd 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperationById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperationById.json @@ -11,7 +11,7 @@ "status": "Running", "statusDetail": "{\"result\":[{\"name\":\"DuplicateRoleCreated\",\"statusDetail\":\"Alert scan is not yet started.\"}]}", "lastActionDateTime": "2022-06-19T12-01-03.45Z", - "lastActionDateTime": "2022-06-19T12-01-03.45Z", + "createdDateTime": "2022-06-19T12-01-03.45Z", "resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/DuplicateRoleCreated?api-version=2022-08-01-preview" } } From 1d8afb748aa7bda7741f9aa5954b9f32bd11ea18 Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 12:42:46 -0800 Subject: [PATCH 11/19] Update RefreshAlert.json --- .../preview/2022-08-01-preview/examples/RefreshAlert.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json index f05718a689d8..96955496fd9f 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json @@ -11,7 +11,11 @@ }, "body": { "id": "{operationId}", - "status": "NotStarted" + "status": "Running", + "statusDetail": "{\"result\":[{\"name\":\"AzureRolesAssignedOutsidePimAlert\",\"statusDetail\":\"Alert scan is not yet started.\"}]}", + "lastActionDateTime": "2022-06-19T12-01-03.45Z", + "createdDateTime": "2022-06-19T12-01-03.45Z", + "resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/AzureRolesAssignedOutsidePimAlert?api-version=2022-08-01-preview" } } } From 77039cb9f72c5b99e8f020127e2296f60748319e Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 12:46:44 -0800 Subject: [PATCH 12/19] Update RefreshAllAlerts.json --- .../2022-08-01-preview/examples/RefreshAllAlerts.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json index b4308eae67e0..302811f83f4b 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json @@ -10,7 +10,11 @@ }, "body": { "id": "{operationId}", - "status": "NotStarted" + "status": "notStarted", + "statusDetail": "{\"result\":[{\"name\":\"AzureRolesAssignedOutsidePimAlert\",\"statusDetail\":\"Alert scan is not yet started.\"}, {\"name\":\"DuplicateRoleCreated\",\"statusDetail\":\"Alert scan is not yet started.\"}]}", + "lastActionDateTime": "2022-06-19T12-01-03.45Z", + "createdDateTime": "2022-06-19T12-01-03.45Z", + "resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts?api-version=2022-08-01-preview" } } } From b557e8c6f81f16e1dfdb89870f692d3898671ab8 Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 12:49:43 -0800 Subject: [PATCH 13/19] Update RefreshAlert.json --- .../preview/2022-08-01-preview/examples/RefreshAlert.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json index 96955496fd9f..bb651a7f6409 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json @@ -12,7 +12,7 @@ "body": { "id": "{operationId}", "status": "Running", - "statusDetail": "{\"result\":[{\"name\":\"AzureRolesAssignedOutsidePimAlert\",\"statusDetail\":\"Alert scan is not yet started.\"}]}", + "statusDetail": "{\"result\":[{\"name\":\"AzureRolesAssignedOutsidePimAlert\",\"statusDetail\":\"Alert scan is running.\"}]}", "lastActionDateTime": "2022-06-19T12-01-03.45Z", "createdDateTime": "2022-06-19T12-01-03.45Z", "resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/AzureRolesAssignedOutsidePimAlert?api-version=2022-08-01-preview" From 2c4d910bb847ba54ea135acfe2bf815276b5daf6 Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 13:00:33 -0800 Subject: [PATCH 14/19] Fix date formatting --- .../2022-08-01-preview/examples/GetAlertOperationById.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperationById.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperationById.json index 99b0b75b45bd..950a30516fba 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperationById.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/GetAlertOperationById.json @@ -10,8 +10,8 @@ "id": "{operationId}", "status": "Running", "statusDetail": "{\"result\":[{\"name\":\"DuplicateRoleCreated\",\"statusDetail\":\"Alert scan is not yet started.\"}]}", - "lastActionDateTime": "2022-06-19T12-01-03.45Z", - "createdDateTime": "2022-06-19T12-01-03.45Z", + "lastActionDateTime": "2022-04-05T03:04:06.467+00:00", + "createdDateTime": "2022-04-05T03:04:06.467+00:00", "resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/DuplicateRoleCreated?api-version=2022-08-01-preview" } } From c5a9dde7575016b00d5270fa2b070814ad3e0522 Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 13:01:54 -0800 Subject: [PATCH 15/19] Fix date format --- .../preview/2022-08-01-preview/examples/RefreshAlert.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json index bb651a7f6409..aea1a21d6239 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json @@ -13,7 +13,7 @@ "id": "{operationId}", "status": "Running", "statusDetail": "{\"result\":[{\"name\":\"AzureRolesAssignedOutsidePimAlert\",\"statusDetail\":\"Alert scan is running.\"}]}", - "lastActionDateTime": "2022-06-19T12-01-03.45Z", + "lastActionDateTime": "2022-04-05T03:04:06.467+00:00", "createdDateTime": "2022-06-19T12-01-03.45Z", "resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/AzureRolesAssignedOutsidePimAlert?api-version=2022-08-01-preview" } From 1fe61925b2ed4ea5060d188e105897226ba5ab7f Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 13:02:15 -0800 Subject: [PATCH 16/19] Fix date format --- .../preview/2022-08-01-preview/examples/RefreshAllAlerts.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json index 302811f83f4b..dc3bd2acdfa2 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAllAlerts.json @@ -12,8 +12,8 @@ "id": "{operationId}", "status": "notStarted", "statusDetail": "{\"result\":[{\"name\":\"AzureRolesAssignedOutsidePimAlert\",\"statusDetail\":\"Alert scan is not yet started.\"}, {\"name\":\"DuplicateRoleCreated\",\"statusDetail\":\"Alert scan is not yet started.\"}]}", - "lastActionDateTime": "2022-06-19T12-01-03.45Z", - "createdDateTime": "2022-06-19T12-01-03.45Z", + "lastActionDateTime": "2022-04-05T03:04:06.467+00:00", + "createdDateTime": "2022-04-05T03:04:06.467+00:00", "resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts?api-version=2022-08-01-preview" } } From 7df1024a7f3c0394309f192499b8705b5c826ca5 Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 13:18:50 -0800 Subject: [PATCH 17/19] Update RefreshAlert.json --- .../preview/2022-08-01-preview/examples/RefreshAlert.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json index aea1a21d6239..6078716bec60 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/examples/RefreshAlert.json @@ -14,7 +14,7 @@ "status": "Running", "statusDetail": "{\"result\":[{\"name\":\"AzureRolesAssignedOutsidePimAlert\",\"statusDetail\":\"Alert scan is running.\"}]}", "lastActionDateTime": "2022-04-05T03:04:06.467+00:00", - "createdDateTime": "2022-06-19T12-01-03.45Z", + "createdDateTime": "2022-04-05T03:04:06.467+00:00", "resourceLocation": "https://management.azure.com/providers/Microsoft.Subscription/subscriptions/afa2a084-766f-4003-8ae1-c4aeb893a99f/providers/Microsoft.Authorization/roleManagementAlerts/AzureRolesAssignedOutsidePimAlert?api-version=2022-08-01-preview" } } From 882dd5b4cf751a3939603e76cf350940c92c5cef Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Wed, 15 Feb 2023 13:34:50 -0800 Subject: [PATCH 18/19] Remove unused type --- .../RoleManagementAlerts.json | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json index 1c0a344446de..d54c295875cf 100644 --- a/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json +++ b/specification/authorization/resource-manager/Microsoft.Authorization/preview/2022-08-01-preview/RoleManagementAlerts.json @@ -1324,23 +1324,6 @@ "type": "object", "description": "An error response from the service." }, - "AlertOperationListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/AlertOperationResult" - }, - "description": "Alert operation list" - }, - "nextLink": { - "type": "string", - "description": "The URL to use for getting the next set of results." - } - }, - "type": "object", - "description": "Alert operation list operation result." - }, "CloudErrorBody": { "x-ms-external": true, "properties": { From 1dfbc16cd0844aeb91cd1cbb274bd94455711fce Mon Sep 17 00:00:00 2001 From: juliawelborn <104529855+juliawelborn@users.noreply.github.com> Date: Thu, 16 Feb 2023 06:10:31 -0800 Subject: [PATCH 19/19] Add remediatable to custom words --- custom-words.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/custom-words.txt b/custom-words.txt index e8330b543ff0..86b526b493db 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -2713,3 +2713,4 @@ Mebibytes UTURN Isochrone Ochestrator +remediatable