Regex validation for IP address fields in Azure workbooks

Ashwin Venkatesha 230 Reputation points
2024-03-26T19:12:10.42+00:00

I am using Azure workbooks to define parameters like src_ip and dst_ip, which are IP address fields. What is the regex validation required for these fields?

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,037 questions
{count} votes

Accepted answer
  1. Q&A Assist
    2024-03-26T19:12:10.44+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The regex validation required for IP address fields in Azure workbooks depends on the specific validation rules you want to apply. For standard and password text parameters, you can add validation rules that are applied to the text field using a valid regex with an error message. If the match is selected, the field is valid if the value matches the regex. If the match isn't selected, the field is valid if it doesn't match the regex.

    To validate IP addresses specifically, you can use regex patterns such as \b\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\b or \b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b. These patterns will match IP addresses in the format of xxx.xxx.xxx.xxx, where each xxx is a number between 0 and 255.

    However, it's important to note that Microsoft Customer Service & Support can't assist with creating custom classifications or regular expression patterns. Support engineers can provide limited support for the feature, such as providing sample regular expression patterns for testing the feature, or assisting with troubleshooting an existing regular expression pattern that's not triggering as expected. However, support engineers can't assure you that any custom content-matching development fulfills your requirements or obligations.


    References:

    0 comments No comments

0 additional answers

Sort by: Most helpful