MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

IsLengthRange method - Allowed Values #113142

Closed vg-manoj-phaneendra closed 1 year ago

vg-manoj-phaneendra commented 1 year ago

Documentation says, we need to enter minimum and maximum values. But doesn't specify the allowed values. Can minimum value be 1 and maximum value be 1000? [Enter feedback here]


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

Naveenommi-MSFT commented 1 year ago

@manoj-phaneendra Thanks for your feedback! We will investigate and update as appropriate.

ManoharLakkoju-MSFT commented 1 year ago

Hi @manoj-phaneendra Yes, you can set the minimum and maximum values to any integer value you want. The IsLengthRange method checks whether the length of a string claim value is within the range of minimum and maximum parameters specified. So, if you set the minimum value to 1 and the maximum value to 1000, it will check whether the length of the string is between 1 and 1000 characters.

vg-manoj-phaneendra commented 1 year ago

Thanks @ManoharLakkoju-MSFT. Negative numbers, zero are all integers and practically, we wouldn't set those values. However, I still believe there has to be some range of allowed values as there would be some constraints in the database.

ManoharLakkoju-MSFT commented 1 year ago

@manoj-phaneendra I'd recommend working closer with our support team via an [Azure support request] (https://docs.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request). Or you can leverage our Q&A forum by posting your issue there so our community, and MVPs can further assist you in troubleshooting this issue or finding potential workarounds.

[Teams Q&A forum] (https://docs.microsoft.com/en-us/answers/topics/46488/office-teams-windows-itpro.html) for technical questions about the configuration and administration of Microsoft Teams on Windows. [Microsoft Teams Community forum] (https://answers.microsoft.com/en-us/msteams/forum?sort=LastReplyDate&dir=Desc&tab=All&status=all&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&isFilterExpanded=false&page=1) Thank you for your time and patience throughout this issue.