From 52d55e5d1c528ecb40946ef9f461b70213e1022d Mon Sep 17 00:00:00 2001 From: Francisco Gamino Date: Wed, 31 Jul 2024 02:15:02 -0700 Subject: [PATCH] Microsft.Web 2023-12-01: Add int32 format to all number types in the scaleAndConcurrency section of the functionAppConfig (#29907) * Set format to int32 for all number types in the functionAppConfig * Update types to integer. * Set format to int32 for all number types in the functionAppConfig * Update types to integer. * Add functionAppConfig types --------- Co-authored-by: Naveed Aziz --- .../stable/2023-12-01/CommonDefinitions.json | 12 ++++++++---- .../web/resource-manager/sdk-suppressions.yaml | 6 +++++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/CommonDefinitions.json b/specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/CommonDefinitions.json index b5b40169df97..8cfe5e38eb1a 100644 --- a/specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/CommonDefinitions.json +++ b/specification/web/resource-manager/Microsoft.Web/stable/2023-12-01/CommonDefinitions.json @@ -3673,7 +3673,8 @@ "description": "Either a function group or a function name is required. For additional information see https://aka.ms/flexconsumption/alwaysready." }, "instanceCount": { - "type": "number", + "type": "integer", + "format": "int32", "description": "Sets the number of 'Always Ready' instances for a given function group or a specific function. For additional information see https://aka.ms/flexconsumption/alwaysready." } } @@ -3691,11 +3692,13 @@ }, "maximumInstanceCount": { "description": "The maximum number of instances for the function app.", - "type": "number" + "type": "integer", + "format": "int32" }, "instanceMemoryMB": { "description": "Set the amount of memory allocated to each instance of the function app in MB. CPU and network bandwidth are allocated proportionally.", - "type": "number" + "type": "integer", + "format": "int32" }, "triggers": { "type": "object", @@ -3706,7 +3709,8 @@ "description": "Scale and concurrency settings for the HTTP trigger.", "properties": { "perInstanceConcurrency": { - "type": "number", + "type": "integer", + "format": "int32", "description": "The maximum number of concurrent HTTP trigger invocations per instance." } } diff --git a/specification/web/resource-manager/sdk-suppressions.yaml b/specification/web/resource-manager/sdk-suppressions.yaml index b317ddacd8e9..b9b75d0640bd 100644 --- a/specification/web/resource-manager/sdk-suppressions.yaml +++ b/specification/web/resource-manager/sdk-suppressions.yaml @@ -16,4 +16,8 @@ suppressions: - Function `*EnvironmentsClient.BeginApproveOrRejectPrivateEndpointConnection` parameter(s) have been changed from `(context.Context, string, string, string, PrivateLinkConnectionApprovalRequestResource, *EnvironmentsClientBeginApproveOrRejectPrivateEndpointConnectionOptions)` to `(context.Context, string, string, string, RemotePrivateEndpointConnectionARMResource, *EnvironmentsClientBeginApproveOrRejectPrivateEndpointConnectionOptions)` - Function `*StaticSitesClient.BeginApproveOrRejectPrivateEndpointConnection` parameter(s) have been changed from `(context.Context, string, string, string, PrivateLinkConnectionApprovalRequestResource, *StaticSitesClientBeginApproveOrRejectPrivateEndpointConnectionOptions)` to `(context.Context, string, string, string, RemotePrivateEndpointConnectionARMResource, *StaticSitesClientBeginApproveOrRejectPrivateEndpointConnectionOptions)` - Function `*WebAppsClient.BeginApproveOrRejectPrivateEndpointConnectionSlot` parameter(s) have been changed from `(context.Context, string, string, string, string, PrivateLinkConnectionApprovalRequestResource, *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionSlotOptions)` to `(context.Context, string, string, string, string, RemotePrivateEndpointConnectionARMResource, *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionSlotOptions)` - - Function `*WebAppsClient.BeginApproveOrRejectPrivateEndpointConnection` parameter(s) have been changed from `(context.Context, string, string, string, PrivateLinkConnectionApprovalRequestResource, *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions)` to `(context.Context, string, string, string, RemotePrivateEndpointConnectionARMResource, *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions)` \ No newline at end of file + - Function `*WebAppsClient.BeginApproveOrRejectPrivateEndpointConnection` parameter(s) have been changed from `(context.Context, string, string, string, PrivateLinkConnectionApprovalRequestResource, *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions)` to `(context.Context, string, string, string, RemotePrivateEndpointConnectionARMResource, *WebAppsClientBeginApproveOrRejectPrivateEndpointConnectionOptions)` + - Type of `FunctionsAlwaysReadyConfig.InstanceCount` has been changed from `*float32` to `*int32` + - Type of `FunctionsScaleAndConcurrency.InstanceMemoryMB` has been changed from `*float32` to `*int32` + - Type of `FunctionsScaleAndConcurrency.MaximumInstanceCount` has been changed from `*float32` to `*int32` + - Type of `FunctionsScaleAndConcurrencyTriggersHTTP.PerInstanceConcurrency` has been changed from `*float32` to `*int32` \ No newline at end of file