Resource Type Validation failed #198
Replies: 5 comments
-
|
Hi @epfaffinger, The Admin Log will write any .NET error it gets, so that is the message you are seeing. From the text, it appears as if it didn't properly parse the regex value. Can you share what the regex is for the resource type? Have you modified this value at all? |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the quick reply Bryan,
We have not modified any of the resource types, and we have "Resource Type Editing" disabled. The regex for the resource type: DocumentDB/databaseAccounts/sqlDatabases (cosmos) appears to be undefined along with most of the parameters for the resource type? Here's the default config for that resource type:
{
"Id": 160,
"Resource": "DocumentDB/databaseAccounts/sqlDatabases",
"Optional": ",function,instance,projappsvc",
"Exclude": "",
"Property": "",
"ShortName": "cosmos",
"Description": "",
"Scope": "",
"LengthMin": "",
"LengthMax": "",
"ValidText": "",
"InvalidText": "",
"InvalidCharacters": "",
"InvalidCharactersStart": "",
"InvalidCharactersEnd": "",
"InvalidCharactersConsecutive": "",
"Regx": "",
"StaticValues": "",
"Enabled": true,
"ApplyDelimiter": true
}
Cheers,
Eric
From: Bryan Soltis ***@***.***>
Sent: Monday, February 23, 2026 4:35 PM
To: mspnp/AzureNamingTool ***@***.***>
Cc: Eric Pfaffinger ***@***.***>; Mention ***@***.***>
Subject: Re: [mspnp/AzureNamingTool] Resource Type Validation failed (Discussion #198)
CAUTION: This email originated from outside of Equitable Life. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hi @epfaffinger<https://github.com/epfaffinger>,
The Admin Log will write any .NET error it gets, so that is the message you are seeing. From the text, it appears as if it didn't properly parse the regex value. Can you share what the regex is for the resource type? Have you modified this value at all?
-
Reply to this email directly, view it on GitHub<#198 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQNY6HTVOXDNOIS6MKVQNZD4NNW7HAVCNFSM6AAAAACV5G22DGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKOJQGIYDKOA>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
This email is confidential and may be subject to privilege. If you are not the intended recipient, please notify the sender and delete this email immediately.
Ce courriel est confidentiel et pourrait ?tre prot?g? par le secret professionnel. Si vous n'?tes pas la ou le destinataire ? qui ce message est destin?, veuillez en informer l'exp?ditrice ou l'exp?diteur et supprimer ce courriel imm?diatement.
|
Beta Was this translation helpful? Give feedback.
-
|
Ah OK, the values are blank in the source, as well. We likely didn't update this yet. You can try these values (either esdit your JSON or use the UI). It may not be exactly the right settings, but should help you resolve the error. We will add this to list of resource type updates. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you Bryan, that did the trick!
From: Bryan Soltis ***@***.***>
Sent: Tuesday, February 24, 2026 8:14 AM
To: mspnp/AzureNamingTool ***@***.***>
Cc: Eric Pfaffinger ***@***.***>; Mention ***@***.***>
Subject: Re: [mspnp/AzureNamingTool] Resource Type Validation failed (Discussion #198)
CAUTION: This email originated from outside of Equitable Life. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Ah OK, the values are blank in the source, as well. We likely didn't update this yet. You can try these values (either esdit your JSON or use the UI). It may not be exactly the right settings, but should help you resolve the error.
We will add this to list of resource type updates.
"resource": "DocumentDB/databaseAccounts/sqlDatabases",
"optional": "UnitDept",
"exclude": "Org,Function",
"property": "",
"ShortName": "cosmos",
"scope": "global",
"lengthMin": "3",
"lengthMax": "50",
"validText": "Alphanumerics, hyphens, underscores, and periods.",
"invalidText": "Database names must not be empty.",
"invalidCharacters": "",
"invalidCharactersStart": "",
"invalidCharactersEnd": "",
"invalidCharactersConsecutive": "",
"regx": "^[a-zA-Z0-9][a-zA-Z0-9._-]{0,254}$",
"staticValues": ""
-
Reply to this email directly, view it on GitHub<#198 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AQNY6HUU555AHET45TN7P5L4NRFBHAVCNFSM6AAAAACV5G22DGVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKOJRGA3DSMY>.
You are receiving this because you were mentioned.Message ID: ***@***.******@***.***>>
This email is confidential and may be subject to privilege. If you are not the intended recipient, please notify the sender and delete this email immediately.
Ce courriel est confidentiel et pourrait ?tre prot?g? par le secret professionnel. Si vous n'?tes pas la ou le destinataire ? qui ce message est destin?, veuillez en informer l'exp?ditrice ou l'exp?diteur et supprimer ce courriel imm?diatement.
|
Beta Was this translation helpful? Give feedback.
-
|
Hi Bryan, I have noticed missing regex values for a few different resource types such as private links. The fix to enable resource type editing and then manually adding a regex value does fix the issue, but must be done for each resource type with a missing regex value. Is this something that is likely to be updated near term? Would it be pushed with an update? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
We have been using this tool for a long time and it's been very helpful, thank you for developing it. Recently we used it to try and generate a name for a cosmos DB account but receive the error below and I'm at a loss as to why. Has anyone seen this before and have any suggestions?

Beta Was this translation helpful? Give feedback.
All reactions