From 581b1be82df496fdd64b1a405dafef377bfcc28c Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 6 Feb 2023 06:07:53 +0000 Subject: [PATCH] CodeGen from PR 22328 in Azure/azure-rest-api-specs Merge 77830b8ddb133200a2464ae42c966f1af492de93 into e217fd77475710b4a48542f433e3b9782f26f229 --- schemas/2021-06-03-preview/Microsoft.Monitor.json | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/schemas/2021-06-03-preview/Microsoft.Monitor.json b/schemas/2021-06-03-preview/Microsoft.Monitor.json index 8a6ac7201d..ac1e54227f 100644 --- a/schemas/2021-06-03-preview/Microsoft.Monitor.json +++ b/schemas/2021-06-03-preview/Microsoft.Monitor.json @@ -18,13 +18,21 @@ "description": "The geo-location where the resource lives" }, "name": { - "type": "string", + "oneOf": [ + { + "type": "string", + "pattern": "^(?!-)[a-zA-Z0-9-]+[^-]$" + }, + { + "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" + } + ], "description": "The name of the Azure Monitor workspace. The name is case insensitive" }, "properties": { "oneOf": [ { - "$ref": "#/definitions/MonitoringAccountResourceProperties" + "$ref": "#/definitions/AzureMonitorWorkspaceResourceProperties" }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -65,7 +73,7 @@ } }, "definitions": { - "MonitoringAccountResourceProperties": { + "AzureMonitorWorkspaceResourceProperties": { "type": "object", "properties": {}, "description": "Resource properties"