From 8997a6be9bdff7dd6d000f3a48c117a73a146737 Mon Sep 17 00:00:00 2001 From: Matthew Christopher Date: Fri, 18 Mar 2022 13:49:07 -0700 Subject: [PATCH] ARM ID annotations for EventGrid --- .../stable/2020-06-01/EventGrid.json | 56 ++++++++++++++++--- .../stable/2021-12-01/EventGrid.json | 56 ++++++++++++++++--- .../stable/2022-06-15/EventGrid.json | 56 ++++++++++++++++--- 3 files changed, 147 insertions(+), 21 deletions(-) diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json index 360ed782dbd8..f89a3d1772f0 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2020-06-01/EventGrid.json @@ -3415,7 +3415,15 @@ "properties": { "resourceId": { "description": "The Azure Resource ID of the storage account that is the destination of the deadletter events", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Storage/storageAccounts" + } + ] + } }, "blobContainerName": { "description": "The name of the Storage blob container that is the destination of the deadletter events", @@ -3739,7 +3747,8 @@ "properties": { "resourceId": { "description": "The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id" } } }, @@ -3766,7 +3775,15 @@ "properties": { "resourceId": { "description": "The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Storage/storageAccounts/queues" + } + ] + } }, "queueName": { "description": "The name of the Storage queue under a storage account that is the destination of an event subscription.", @@ -3797,7 +3814,8 @@ "properties": { "resourceId": { "description": "The Azure Resource ID of an hybrid connection that is the destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id" } } }, @@ -3824,7 +3842,15 @@ "properties": { "resourceId": { "description": "The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ServiceBus/namespaces/queues" + } + ] + } } } }, @@ -3851,7 +3877,15 @@ "properties": { "resourceId": { "description": "The Azure Resource Id that represents the endpoint of the Service Bus Topic destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ServiceBus/namespaces/topics" + } + ] + } } } }, @@ -3878,7 +3912,15 @@ "properties": { "resourceId": { "description": "The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Web/sites/functions" + } + ] + } }, "maxEventsPerBatch": { "format": "int32", diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2021-12-01/EventGrid.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2021-12-01/EventGrid.json index a98b2c91f45f..3c90e3718890 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2021-12-01/EventGrid.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2021-12-01/EventGrid.json @@ -4492,7 +4492,15 @@ "properties": { "resourceId": { "description": "The Azure Resource ID of the storage account that is the destination of the deadletter events", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Storage/storageAccounts" + } + ] + } }, "blobContainerName": { "description": "The name of the Storage blob container that is the destination of the deadletter events", @@ -4998,7 +5006,8 @@ "properties": { "resourceId": { "description": "The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id" }, "deliveryAttributeMappings": { "description": "Delivery attribute details.", @@ -5032,7 +5041,15 @@ "properties": { "resourceId": { "description": "The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Storage/storageAccounts" + } + ] + } }, "queueName": { "description": "The name of the Storage queue under a storage account that is the destination of an event subscription.", @@ -5068,7 +5085,8 @@ "properties": { "resourceId": { "description": "The Azure Resource ID of an hybrid connection that is the destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id" }, "deliveryAttributeMappings": { "description": "Delivery attribute details.", @@ -5102,7 +5120,15 @@ "properties": { "resourceId": { "description": "The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ServiceBus/namespaces/queues" + } + ] + } }, "deliveryAttributeMappings": { "description": "Delivery attribute details.", @@ -5136,7 +5162,15 @@ "properties": { "resourceId": { "description": "The Azure Resource Id that represents the endpoint of the Service Bus Topic destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ServiceBus/namespaces/topics" + } + ] + } }, "deliveryAttributeMappings": { "description": "Delivery attribute details.", @@ -5170,7 +5204,15 @@ "properties": { "resourceId": { "description": "The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Web/sites/functions" + } + ] + } }, "maxEventsPerBatch": { "format": "int32", diff --git a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2022-06-15/EventGrid.json b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2022-06-15/EventGrid.json index f51fd43fbec9..cb0bcb355007 100644 --- a/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2022-06-15/EventGrid.json +++ b/specification/eventgrid/resource-manager/Microsoft.EventGrid/stable/2022-06-15/EventGrid.json @@ -8723,7 +8723,15 @@ "properties": { "resourceId": { "description": "The Azure Resource ID of the storage account that is the destination of the deadletter events", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Storage/storageAccounts" + } + ] + } }, "blobContainerName": { "description": "The name of the Storage blob container that is the destination of the deadletter events", @@ -9229,7 +9237,8 @@ "properties": { "resourceId": { "description": "The Azure Resource Id that represents the endpoint of an Event Hub destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id" }, "deliveryAttributeMappings": { "description": "Delivery attribute details.", @@ -9263,7 +9272,15 @@ "properties": { "resourceId": { "description": "The Azure Resource ID of the storage account that contains the queue that is the destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Storage/storageAccounts" + } + ] + } }, "queueName": { "description": "The name of the Storage queue under a storage account that is the destination of an event subscription.", @@ -9299,7 +9316,8 @@ "properties": { "resourceId": { "description": "The Azure Resource ID of an hybrid connection that is the destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id" }, "deliveryAttributeMappings": { "description": "Delivery attribute details.", @@ -9333,7 +9351,15 @@ "properties": { "resourceId": { "description": "The Azure Resource Id that represents the endpoint of the Service Bus destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ServiceBus/namespaces/queues" + } + ] + } }, "deliveryAttributeMappings": { "description": "Delivery attribute details.", @@ -9367,7 +9393,15 @@ "properties": { "resourceId": { "description": "The Azure Resource Id that represents the endpoint of the Service Bus Topic destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.ServiceBus/namespaces/topics" + } + ] + } }, "deliveryAttributeMappings": { "description": "Delivery attribute details.", @@ -9401,7 +9435,15 @@ "properties": { "resourceId": { "description": "The Azure Resource Id that represents the endpoint of the Azure Function destination of an event subscription.", - "type": "string" + "type": "string", + "format": "arm-id", + "x-ms-arm-id-details": { + "allowedResources": [ + { + "type": "Microsoft.Web/sites/functions" + } + ] + } }, "maxEventsPerBatch": { "format": "int32",