templates/AWSQuickstart-MSSQL.yml [771:812]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      commandLine: "./Reconfigure-SQL-DSC.ps1 -DomainNetBIOSName {{DomainNetBIOSName}} -AdminSecret {{AdminSecrets}} -SQLSecret {{SQLSecrets}}"
- name: CreateAGBranch
  action: aws:branch
  inputs:
    Choices:
    - And:
      - Not:
          Variable: "{{ManagedAD}}"
          StringEquals: "yes"
      - Not:
          Variable: "{{ThirdAZ}}"
          StringEquals: "full"
      NextStep: 2NodeNoMadPrimaryCreateAG
    - And:
      - Variable: "{{ManagedAD}}"
        StringEquals: "yes"
      - Not:
          Variable: "{{ThirdAZ}}"
          StringEquals: "full"
      NextStep: 2NodeMadPrimaryCreateAG
    - And:
      - Not:
          Variable: "{{ManagedAD}}"
          StringEquals: "yes"
      - Variable: "{{ThirdAZ}}"
        StringEquals: "full"
      NextStep: 3NodeNoMadPrimaryCreateAG
    - And:
      - Variable: "{{ManagedAD}}"
        StringEquals: "yes"
      - Variable: "{{ThirdAZ}}"
        StringEquals: "full"
      NextStep: 3NodeMadPrimaryCreateAG
- name: "2NodeNoMadPrimaryCreateAG"
  action: "aws:runCommand"
  onFailure: "step:signalfailure"
  inputs:
    DocumentName: "AWS-RunRemoteScript"
    InstanceIds:
      - "{{wsfcNode1InstanceId.InstanceId}}"
    CloudWatchOutputConfig:
      CloudWatchOutputEnabled: "true"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



templates/sql.template.yaml [1918:1959]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
              commandLine: "./Reconfigure-SQL-DSC.ps1 -DomainNetBIOSName {{DomainNetBIOSName}} -AdminSecret {{AdminSecrets}} -SQLSecret {{SQLSecrets}}"
        - name: CreateAGBranch
          action: aws:branch
          inputs:
            Choices:
            - And:
              - Not:
                  Variable: "{{ManagedAD}}"
                  StringEquals: "yes"
              - Not:
                  Variable: "{{ThirdAZ}}"
                  StringEquals: "full"
              NextStep: 2NodeNoMadPrimaryCreateAG
            - And:
              - Variable: "{{ManagedAD}}"
                StringEquals: "yes"
              - Not:
                  Variable: "{{ThirdAZ}}"
                  StringEquals: "full"
              NextStep: 2NodeMadPrimaryCreateAG
            - And:
              - Not:
                  Variable: "{{ManagedAD}}"
                  StringEquals: "yes"
              - Variable: "{{ThirdAZ}}"
                StringEquals: "full"
              NextStep: 3NodeNoMadPrimaryCreateAG
            - And:
              - Variable: "{{ManagedAD}}"
                StringEquals: "yes"
              - Variable: "{{ThirdAZ}}"
                StringEquals: "full"
              NextStep: 3NodeMadPrimaryCreateAG
        - name: "2NodeNoMadPrimaryCreateAG"
          action: "aws:runCommand"
          onFailure: "step:signalfailure"
          inputs:
            DocumentName: "AWS-RunRemoteScript"
            InstanceIds:
              - "{{wsfcNode1InstanceId.InstanceId}}"
            CloudWatchOutputConfig:
              CloudWatchOutputEnabled: "true"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



