---
sourceDocument: 호주 IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/ko-KR/it-operations-management

 Release :

    - australia

ft:locale :

    - ko-KR

ft:publication_title :

    - 호주 IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# AllowedPattern 속성으로 매개변수 값의 유효성을 검사합니다.

# AllowedPattern 속성으로 매개변수 값의 유효성을 검사합니다. {#ariaid-title1}

* 릴리스 버전: Australia
* 
* 업데이트 날짜 2026년 08월 07일
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 소요 시간: 3분

AllowedPattern Azure Resource Manager(ARM) 및 CloudFormation(CF) 템플릿의 속성은 프로비저닝 요청을 보내기 전에 입력 유효성 검사를 수행합니다.

## 시작하기 전에

필요한 역할: sn.cmp.cloud_service_designer

## 이 태스크 정보

프로비저닝 요청을 클라우드로 보내기 전에 매개변수 값의 유효성을 검사하는 규칙을 제공할 수 있습니다. 확인에 실패할 경우 오류 메시지를 표시하려면 템플릿에 속성을 지정합니다 ConstraintDescription . 속성의 ConstraintDescription 오류 메시지를 사용자 지정하여 메시지를 명확하고 명시적으로 만들 수 있습니다. 일반적으로 CF 템플릿에는 이미 AllowedPattern and ConstraintDescription 속성이 있습니다. 이러한 속성이 없으면 다음 절차에서 설명하는 대로 추가할 수 있습니다.

## 프로시저

1. 클라우드 관리자 포털에서 다음으로 이동합니다. 디자인클라우드 템플릿.
2. 템플릿을 선택하거나 새로 만들기 를 클릭하여 새 클라우드 템플릿을 만듭니다.  
   기존 템플릿을 선택하는 경우 템플릿의 이름을 바꿉니다.
3. 본문 텍스트 상자에서 ARM 및 CF 템플릿을 다음과 같이 변경합니다.
   1. ARM 템플릿에서 다음과 같이 변경합니다.  
      * 매개변수 메타데이터 섹션에 을 입력합니다 SNC::Parameter::Metadata.
      * 키를 추가 AllowedPattern 하고 유효한 값 범위를 입력합니다.
      * 키를 추가 ConstraintDescription 하고 오류 메시지를 입력합니다.

      {#validate-param-allowedpattern__ul_w2m_rvb_tbb}

          "parameters": {
                   "newStorageAccountName": {
                       "type": "string",
                        "metadata": {
                            "description": "Unique DNS Name for the Storage Account where the Virtual Machine's disks will be placed.",
                             "SNC::Parameter::Metadata": {
                                 "allowedPattern": "[0-9a-z]{1,11}",
                                  "ConstraintDescription": "must be an alphanumeric "
                                                        
                                     }}} 
                 
              
   2. CF 템플릿에서 다음을 변경합니다.  
      * 키를 추가 AllowedPattern 하고 유효한 값 범위를 입력합니다.
      * 키를 추가 ConstraintDescription 하고 오류 메시지를 입력합니다.

      {#validate-param-allowedpattern__ul_cnn_xvb_tbb}

          "Parameters" : {
                          "SSHLocation" : {
                          "Description" : "The IP address range that can be used to SSH to the EC2 instances",
                          "Type": "String",
                          "MinLength": "9",
                          "MaxLength": "18",
                          "Default": "0.0.0.0/0",
                           "AllowedPattern": "(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})/(\\d{1,2})",
                           "ConstraintDescription": "must be a valid IP CIDR range of the form x.x.x.x/x."

              } 
            }

   {#validate-param-allowedpattern__substeps_cd5_kvb_tbb}
4. 제출을 클릭합니다.

