How to disable TLS 1.0 and 1.1 on Service Fabric cluster

Published Oct 25 2021 09:50 PM 1,052 Views
Microsoft

It’s a usual requirement to make our Service Fabric cluster safer to match business requirement. For example, by disabling TLS 1.0 and 1.1.

 

Since the TLS setting is not so related to Service Fabric cluster, but more related to the underlying VMSS, this blog will focus more on how we can easily modify the configuration of the underlying VMSS and what we need to pay attention to make sure everything is running smoothly.

 

The aim of this blog is to change the value of the registry table which is related to TLS 1.0, 1.1 and 1.2 setting. If you prefer, you can also RDP into every node to modify these values manually. But please check the Important points to explain before starting part at first for some very important notification.

The registry tables which need to be modified are:

  • HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Server with Enabled as 0 and 
    DisabledByDefault as 1
  • HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.0\Client with Enabled as 0 and 
    DisabledByDefault as 1
  • HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Server with Enabled as 0 and 
    DisabledByDefault as 1
  • HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.1\Client with Enabled as 0 and 
    DisabledByDefault as 1
  • HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Server with Enabled as 0xffffffff and DisabledByDefault as 0
  • HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client with Enabled as 0xffffffff and DisabledByDefault as 0
     

Pre-requirements:

Before starting, you must setup the environment at first.

To set up a local development environment, you need to have:

  • A running Service Fabric cluster with HTTPS enabled. If you don’t have one, please follow this tutorial.

 

Important points to explain before starting:

This process will cause some downtime of the whole cluster because we need to modify the registry table value on all the VMSS instances, and a restart operation is required. How long that the downtime will be, depends on multiple factors, such as the VM size of our VMSS, how many services we run on the same node etc. Please expect this downtime before using this way on a production environment. For the way without downtime but more complicated(manually), I’ll mention it at the end of this article.

 

Since this process is a little bit complicated and there are some points which may cause problem, if you have any difficulty or the process got blocked or unexpected, please kindly reach support team for help.

 

Before implementation:

Once you are done with the preparation, you can use online tool https://www.ssllabs.com/ssltest to scan the status of TLS 1.0, 1.1 and 1.2. Please feel free to use other tools which you prefer.

 

Original status:  TLS 1.0 disabled and TLS 1.1, 1.2 enabled.

 

Original TLS setting before implmentationOriginal TLS setting before implmentation

 

 

Steps to implement:

  1. Download the script and save it with a name such as EnableTLS12.ps1. This script is to disable/enable the necessary registry table value for TLS setting.
  2. Upload script into storage. In this step, we need to create a new or use existing storage account, create a new container, set the container access level, upload the script file into storage and save the URL.
    • Create a new storage account if you don’t have one. Please follow this tutorial.
    • Create a new container. Create container in Storage accountCreate container in Storage account
    • Enter the created container and change the access level to Container.Container access level configurationContainer access level configuration
    • Upload the script file into the new container.Upload script into containerUpload script into container
    • Check the property of the uploaded script and save the URL somewhere. We’ll use it later. In my example, it’s https://storagecsjerry.blob.core.windows.net/powershellscript/EnableTLS12.ps1The property menu of blobThe property menu of blobStorage URL of the scriptStorage URL of the script
    • Please visit the URL in previous step in your web browser and make sure the script file can be downloaded directly without any other action.
  3. We need to add a new extension into the underlying VMSS. We can use multiple ways to do this such as deploying ARM template, using CLI command etc. But the resource explorer is the clearest way to see how we modify the configuration.
    • Visit Resource Explorer https://resources.azure.com/ and login.
    • On the left side, look for the correct subscription, resource group, resource type, then resource name of our underlying VMSS of Service Fabric cluster.VMSS path in resource explorerVMSS path in resource explorer
    • Switch to Edit modeEdit mode of resource explorerEdit mode of resource explorer
    • According to our official document, we can use the same way to add a new VMSS extension to run our PowerShell script. Scroll down the JSON format file and at almost the end, we’ll be able to find the setting of the extension. (Your last extension may not be called MicrosoftMonitoringAgent but it doesn’t matter)Original VMSS extensionsOriginal VMSS extensions
    • Add one more new extension like following: (Do not forget the comma at the end of original last extension to make sure it’s a valid JSON file, in the example, the comma is at line 208)VMSS JSON file after adding new extensionVMSS JSON file after adding new extension
    • The text version of the new extension configuration: (Remember to replace the storage URL by the one from step 2 and the script name at line 10 and 12.)
      {
          "name": "EnableTLS12",
          "properties": {
              "autoUpgradeMinorVersion": true,
              "publisher": "Microsoft.Compute",
              "type": "CustomScriptExtension",
              "typeHandlerVersion": "1.7",
              "settings": {
                  "fileUris": [
                      "https://storagecsjerry.blob.core.windows.net/powershellscript/EnableTLS12.ps1"
                  ],
                  "commandToExecute": "powershell.exe -ExecutionPolicy Unrestricted -File EnableTLS12.ps1"
              }
          }
      }
    • After adding the extension configuration into JSON file, scroll up to the top of page and send the request out by clicking on PUT. Then please keep monitoring the window. If everything is OK, you’ll see a green icon and the mode will be switched back to GET automatically.
    • PUT request buttonPUT request buttonPUT request resultPUT request result
  4. Keep monitoring to see whether the VMSS can be updated successfully. If we check through the JSON result, we will find one item called ProvisioningState (normally at the end of the JSON file). Once we click on PUT button, the ProvisioningState will be Updating. Please periodically click on GET and check the ProvisioningState until it becomes Succeeded.VMSS in updating statusVMSS in updating statusVMSS successfully updatedVMSS successfully updated
  5. Keep monitoring the status of the cluster from Service Fabric Explorer. It can be accessed from the Service Fabric cluster Azure Portal page. The URL will be like https://{clustername}.{region}.cloudapp.azure.com:19080Service Fabric Explorer in Azure PortalService Fabric Explorer in Azure PortalOnce the new VMSS extension is provisioned successfully, we should see all the nodes of this VMSS is down. Please wait until all the nodes come back to green/healthy status.Service Fabric Explorer with healthy statusService Fabric Explorer with healthy status

After implementation:

If you aren’t blocked by any step, congratulations, you’ve done everything needed. You can use the same tool or whichever tool you want to scan again, and we’ll find that the TLS 1.1 is disabled.

TLS setting after implementationTLS setting after implementation

 

 

The tips about the way without downtime:

As mentioned in the first part, this way of using VMSS extension will cause some downtime since the installing of the extension is proceeded at same time and the PowerShell will require a restart operation to make the registry table value change take effect.

 

The way without downtime is with the same idea but doing this manually instead of using VMSS extension.

 

To summarize the steps simply, it will be:

  1. Open the Service Fabric Explorer and keep it open
  2. RDP into one instance of your VMSS
  3. Run the same PowerShell script manually in RDP window
  4. Restart the instance as required by the PowerShell script
  5. Monitor the Service Fabric Explorer and wait until everything is coming back to green/healthy status
  6. Repeat step 2 to 5 for every instance.

 

Attention! Please remember that we must wait until the status of node in Service Fabric Explorer is green/healthy, including the System Services in the last part. The status of the node in Azure Portal will only show that the node is healthy but not containing the System Service.

%3CLINGO-SUB%20id%3D%22lingo-sub-2872504%22%20slang%3D%22en-US%22%3EHow%20to%20disable%20TLS%201.0%20and%201.1%20on%20Service%20Fabric%20cluster%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2872504%22%20slang%3D%22en-US%22%3E%3CP%3EIt%E2%80%99s%20a%20usual%20requirement%20to%20make%20our%20Service%20Fabric%20cluster%20safer%20to%20match%20business%20requirement.%20For%20example%2C%20by%20disabling%20TLS%201.0%20and%201.1.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESince%20the%20TLS%20setting%20is%20not%20so%20related%20to%20Service%20Fabric%20cluster%2C%20but%20more%20related%20to%20the%20underlying%20VMSS%2C%20this%20blog%20will%20focus%20more%20on%20how%20we%20can%20easily%20modify%20the%20configuration%20of%20the%20underlying%20VMSS%20and%20what%20we%20need%20to%20pay%20attention%20to%20make%20sure%20everything%20is%20running%20smoothly.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20aim%20of%20this%20blog%20is%20to%20change%20the%20value%20of%20the%20registry%20table%20which%20is%20related%20to%20TLS%201.0%2C%201.1%20and%201.2%20setting.%20If%20you%20prefer%2C%20you%20can%20also%20RDP%20into%20every%20node%20to%20modify%20these%20values%20manually.%20But%20please%20check%20the%20%3CSTRONG%3EImportant%20points%20to%20explain%20before%20starting%3C%2FSTRONG%3E%20part%20at%20first%20for%20some%20very%20important%20notification.%3C%2FP%3E%0A%3CP%3EThe%20registry%20tables%20which%20need%20to%20be%20modified%20are%3A%3C%2FP%3E%0A%3CDIV%3E%0A%3CUL%3E%0A%3CLI%3E%3CSPAN%3EHKLM%3A%5CSYSTEM%5CCurrentControlSet%5CControl%5CSecurityProviders%5CSCHANNEL%5CProtocols%5CTLS%201.0%5CServer%20with%20Enabled%20as%200%20and%26nbsp%3B%3C%2FSPAN%3E%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EDisabledByDefault%20as%201%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EHKLM%3A%5CSYSTEM%5CCurrentControlSet%5CControl%5CSecurityProviders%5CSCHANNEL%5CProtocols%5CTLS%201.0%5CClient%20with%20Enabled%20as%200%20and%26nbsp%3B%3C%2FSPAN%3E%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EDisabledByDefault%20as%201%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EHKLM%3A%5CSYSTEM%5CCurrentControlSet%5CControl%5CSecurityProviders%5CSCHANNEL%5CProtocols%5CTLS%201.1%5CServer%20with%20Enabled%20as%200%20and%26nbsp%3B%3C%2FSPAN%3E%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EDisabledByDefault%20as%201%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EHKLM%3A%5CSYSTEM%5CCurrentControlSet%5CControl%5CSecurityProviders%5CSCHANNEL%5CProtocols%5CTLS%201.1%5CClient%20with%20Enabled%20as%200%20and%26nbsp%3B%3C%2FSPAN%3E%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EDisabledByDefault%20as%201%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CDIV%3E%0A%3CDIV%3E%3CSPAN%3EHKLM%3A%5CSYSTEM%5CCurrentControlSet%5CControl%5CSecurityProviders%5CSCHANNEL%5CProtocols%5CTLS%201.2%5CServer%20with%20Enabled%20as%200xffffffff%20and%20DisabledByDefault%20as%200%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%3EHKLM%3A%5CSYSTEM%5CCurrentControlSet%5CControl%5CSecurityProviders%5CSCHANNEL%5CProtocols%5CTLS%201.2%5CClient%20with%20Enabled%20as%200xffffffff%20and%20DisabledByDefault%20as%200%3C%2FSPAN%3E%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%0A%3CDIV%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FDIV%3E%0A%3CH3%20id%3D%22toc-hId--2118980967%22%20id%3D%22toc-hId--2117997679%22%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3EPre-requirements%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EBefore%20starting%2C%20you%20must%20setup%20the%20environment%20at%20first.%3C%2FP%3E%0A%3CP%3ETo%20set%20up%20a%20local%20development%20environment%2C%20you%20need%20to%20have%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EA%20running%20Service%20Fabric%20cluster%20with%20HTTPS%20enabled.%20If%20you%20don%E2%80%99t%20have%20one%2C%20please%20follow%20this%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fservice-fabric%2Fservice-fabric-tutorial-dotnet-app-enable-https-endpoint%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Etutorial%3C%2FA%3E.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-368531866%22%20id%3D%22toc-hId-369515154%22%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3EImportant%20points%20to%20explain%20before%20starting%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EThis%20process%20will%20cause%20some%20downtime%20of%20the%20whole%20cluster%20because%20we%20need%20to%20modify%20the%20registry%20table%20value%20on%20all%20the%20VMSS%20instances%2C%20and%20a%20restart%20operation%20is%20required.%20How%20long%20that%20the%20downtime%20will%20be%2C%20depends%20on%20multiple%20factors%2C%20such%20as%20the%20VM%20size%20of%20our%20VMSS%2C%20how%20many%20services%20we%20run%20on%20the%20same%20node%20etc.%20%3CSTRONG%3EPlease%20expect%20this%20downtime%20before%20using%20this%20way%20on%20a%20production%20environment.%3C%2FSTRONG%3E%20For%20the%20way%20without%20downtime%20but%20more%20complicated(manually)%2C%20I%E2%80%99ll%20mention%20it%20at%20the%20end%20of%20this%20article.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESince%20this%20process%20is%20a%20little%20bit%20complicated%20and%20there%20are%20some%20points%20which%20may%20cause%20problem%2C%20if%20you%20have%20any%20difficulty%20or%20the%20process%20got%20blocked%20or%20unexpected%2C%20please%20kindly%20reach%20support%20team%20for%20help.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId--1438922597%22%20id%3D%22toc-hId--1437939309%22%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3EBefore%20implementation%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EOnce%20you%20are%20done%20with%20the%20preparation%2C%20you%20can%20use%20online%20tool%20%3CA%20href%3D%22https%3A%2F%2Fwww.ssllabs.com%2Fssltest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fwww.ssllabs.com%2Fssltest%3C%2FA%3E%20to%20scan%20the%20status%20of%20TLS%201.0%2C%201.1%20and%201.2.%20Please%20feel%20free%20to%20use%20other%20tools%20which%20you%20prefer.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EOriginal%20status%3A%26nbsp%3B%20TLS%201.0%20disabled%20and%20TLS%201.1%2C%201.2%20enabled.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.001.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319158i7825452F2CB4393A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.001.png%22%20alt%3D%22Original%20TLS%20setting%20before%20implmentation%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EOriginal%20TLS%20setting%20before%20implmentation%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1048590236%22%20id%3D%22toc-hId-1049573524%22%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3ESteps%20to%20implement%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH3%3E%0A%3COL%3E%0A%3CLI%3EDownload%20the%20%3CA%20href%3D%22https%3A%2F%2Fgist.github.com%2Fwuping2004%2Fbd32e6e9d51a94158583c65ae27de3b4%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Escript%3C%2FA%3E%20and%20save%20it%20with%20a%20name%20such%20as%20EnableTLS12.ps1.%20This%20script%20is%20to%20disable%2Fenable%20the%20necessary%20registry%20table%20value%20for%20TLS%20setting.%3C%2FLI%3E%0A%3CLI%3EUpload%20script%20into%20storage.%20In%20this%20step%2C%20we%20need%20to%20create%20a%20new%20or%20use%20existing%20storage%20account%2C%20create%20a%20new%20container%2C%20set%20the%20container%20access%20level%2C%20upload%20the%20script%20file%20into%20storage%20and%20save%20the%20URL.%3CUL%3E%0A%3CLI%3ECreate%20a%20new%20storage%20account%20if%20you%20don%E2%80%99t%20have%20one.%20Please%20follow%20this%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstorage%2Fcommon%2Fstorage-account-create%3Ftabs%3Dazure-portal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Etutorial%3C%2FA%3E.%3C%2FLI%3E%0A%3CLI%3ECreate%20a%20new%20container.%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.002.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319159iFC293EE97B486D0D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.002.png%22%20alt%3D%22Create%20container%20in%20Storage%20account%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ECreate%20container%20in%20Storage%20account%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EEnter%20the%20created%20container%20and%20change%20the%20access%20level%20to%20Container.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.003.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319161iF066B820FF501CF0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.003.png%22%20alt%3D%22Container%20access%20level%20configuration%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EContainer%20access%20level%20configuration%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EUpload%20the%20script%20file%20into%20the%20new%20container.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.004.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319162i3E5CD911E18769E0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.004.png%22%20alt%3D%22Upload%20script%20into%20container%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EUpload%20script%20into%20container%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3ECheck%20the%20property%20of%20the%20uploaded%20script%20and%20save%20the%20URL%20somewhere.%20We%E2%80%99ll%20use%20it%20later.%20In%20my%20example%2C%20it%E2%80%99s%20%3CA%20href%3D%22https%3A%2F%2Fstoragecsjerry.blob.core.windows.net%2Fpowershellscript%2FEnableTLS12.ps1%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fstoragecsjerry.blob.core.windows.net%2Fpowershellscript%2FEnableTLS12.ps1%3C%2FA%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.005.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319163i7DB769C3DEA83E3F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.005.png%22%20alt%3D%22The%20property%20menu%20of%20blob%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EThe%20property%20menu%20of%20blob%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.006.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319164i9B961F85F1785D37%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.006.png%22%20alt%3D%22Storage%20URL%20of%20the%20script%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EStorage%20URL%20of%20the%20script%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EPlease%20visit%20the%20URL%20in%20previous%20step%20in%20your%20web%20browser%20and%20make%20sure%20the%20script%20file%20can%20be%20downloaded%20directly%20without%20any%20other%20action.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EWe%20need%20to%20add%20a%20new%20extension%20into%20the%20underlying%20VMSS.%20We%20can%20use%20multiple%20ways%20to%20do%20this%20such%20as%20deploying%20ARM%20template%2C%20using%20CLI%20command%20etc.%20But%20the%20resource%20explorer%20is%20the%20clearest%20way%20to%20see%20how%20we%20modify%20the%20configuration.%3CUL%3E%0A%3CLI%3EVisit%20Resource%20Explorer%20%3CA%20href%3D%22https%3A%2F%2Fresources.azure.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fresources.azure.com%2F%3C%2FA%3E%20and%20login.%3C%2FLI%3E%0A%3CLI%3EOn%20the%20left%20side%2C%20look%20for%20the%20correct%20subscription%2C%20resource%20group%2C%20resource%20type%2C%20then%20resource%20name%20of%20our%20underlying%20VMSS%20of%20Service%20Fabric%20cluster.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.007.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319165iF8E0E921BAE50B76%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.007.png%22%20alt%3D%22VMSS%20path%20in%20resource%20explorer%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EVMSS%20path%20in%20resource%20explorer%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3ESwitch%20to%20Edit%20mode%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.008.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319166i3B37315AD444D07E%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.008.png%22%20alt%3D%22Edit%20mode%20of%20resource%20explorer%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EEdit%20mode%20of%20resource%20explorer%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EAccording%20to%20our%20official%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fazure-resource-manager%2Ftemplates%2Ftemplate-tutorial-deploy-vm-extensions%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Edocument%3C%2FA%3E%2C%20we%20can%20use%20the%20same%20way%20to%20add%20a%20new%20VMSS%20extension%20to%20run%20our%20PowerShell%20script.%20Scroll%20down%20the%20JSON%20format%20file%20and%20at%20almost%20the%20end%2C%20we%E2%80%99ll%20be%20able%20to%20find%20the%20setting%20of%20the%20extension.%20(Your%20last%20extension%20may%20not%20be%20called%20MicrosoftMonitoringAgent%20but%20it%20doesn%E2%80%99t%20matter)%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.009.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319167i396B47994CC4D8E7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.009.png%22%20alt%3D%22Original%20VMSS%20extensions%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EOriginal%20VMSS%20extensions%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EAdd%20one%20more%20new%20extension%20like%20following%3A%20(Do%20not%20forget%20the%20comma%20at%20the%20end%20of%20original%20last%20extension%20to%20make%20sure%20it%E2%80%99s%20a%20valid%20JSON%20file%2C%20in%20the%20example%2C%20the%20comma%20is%20at%20line%20208)%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.010.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319168iC7FF80E52D2CEC03%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.010.png%22%20alt%3D%22VMSS%20JSON%20file%20after%20adding%20new%20extension%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EVMSS%20JSON%20file%20after%20adding%20new%20extension%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EThe%20text%20version%20of%20the%20new%20extension%20configuration%3A%20(Remember%20to%20replace%20the%20storage%20URL%20by%20the%20one%20from%20step%202%20and%20the%20script%20name%20at%20line%2010%20and%2012.)%3CPRE%20class%3D%22lia-code-sample%20language-json%22%3E%3CCODE%3E%7B%0A%20%20%20%20%22name%22%3A%20%22EnableTLS12%22%2C%0A%20%20%20%20%22properties%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%22autoUpgradeMinorVersion%22%3A%20true%2C%0A%20%20%20%20%20%20%20%20%22publisher%22%3A%20%22Microsoft.Compute%22%2C%0A%20%20%20%20%20%20%20%20%22type%22%3A%20%22CustomScriptExtension%22%2C%0A%20%20%20%20%20%20%20%20%22typeHandlerVersion%22%3A%20%221.7%22%2C%0A%20%20%20%20%20%20%20%20%22settings%22%3A%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%22fileUris%22%3A%20%5B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22https%3A%2F%2Fstoragecsjerry.blob.core.windows.net%2Fpowershellscript%2FEnableTLS12.ps1%22%0A%20%20%20%20%20%20%20%20%20%20%20%20%5D%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20%22commandToExecute%22%3A%20%22powershell.exe%20-ExecutionPolicy%20Unrestricted%20-File%20EnableTLS12.ps1%22%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3CLI%3EAfter%20adding%20the%20extension%20configuration%20into%20JSON%20file%2C%20scroll%20up%20to%20the%20top%20of%20page%20and%20send%20the%20request%20out%20by%20clicking%20on%20PUT.%20Then%20please%20keep%20monitoring%20the%20window.%20If%20everything%20is%20OK%2C%20you%E2%80%99ll%20see%20a%20green%20icon%20and%20the%20mode%20will%20be%20switched%20back%20to%20GET%20automatically.%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.011.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319170iB005E1C42B22057B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.011.png%22%20alt%3D%22PUT%20request%20button%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPUT%20request%20button%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.012.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319177i528A55C516606AD0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.012.png%22%20alt%3D%22PUT%20request%20result%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EPUT%20request%20result%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EKeep%20monitoring%20to%20see%20whether%20the%20VMSS%20can%20be%20updated%20successfully.%20If%20we%20check%20through%20the%20JSON%20result%2C%20we%20will%20find%20one%20item%20called%20ProvisioningState%20(normally%20at%20the%20end%20of%20the%20JSON%20file).%20Once%20we%20click%20on%20PUT%20button%2C%20the%20ProvisioningState%20will%20be%20%3CSTRONG%3EUpdating%3C%2FSTRONG%3E.%20Please%20periodically%20click%20on%20GET%20and%20check%20the%20ProvisioningState%20until%20it%20becomes%20%3CSTRONG%3ESucceeded%3C%2FSTRONG%3E.%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.013.png%22%20style%3D%22width%3A%20787px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319178i248B4FBE3CFA2C60%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.013.png%22%20alt%3D%22VMSS%20in%20updating%20status%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EVMSS%20in%20updating%20status%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.014.png%22%20style%3D%22width%3A%20718px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319179iB70C5C26CEAC0D1A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.014.png%22%20alt%3D%22VMSS%20successfully%20updated%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EVMSS%20successfully%20updated%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3EKeep%20monitoring%20the%20status%20of%20the%20cluster%20from%20%3CSTRONG%3EService%20Fabric%20Explorer%3C%2FSTRONG%3E.%20It%20can%20be%20accessed%20from%20the%20Service%20Fabric%20cluster%20Azure%20Portal%20page.%20The%20URL%20will%20be%20like%20%3CSPAN%3E%3CA%20href%3D%22https%3A%2F%2F%7Bclustername%7D.%7Bregion%7D.cloudapp.azure.com%3A19080%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2F%7Bclustername%7D.%7Bregion%7D.cloudapp.azure.com%3A19080%3C%2FA%3E%3C%2FSPAN%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.015.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319180iA53EECC83059BAAE%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.015.png%22%20alt%3D%22Service%20Fabric%20Explorer%20in%20Azure%20Portal%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EService%20Fabric%20Explorer%20in%20Azure%20Portal%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%3EOnce%20the%20new%20VMSS%20extension%20is%20provisioned%20successfully%2C%20we%20should%20see%20all%20the%20nodes%20of%20this%20VMSS%20is%20down.%20Please%20wait%20until%20all%20the%20nodes%20come%20back%20to%20green%2Fhealthy%20status.%3C%2FSPAN%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.016.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319181iAAB48EBBAE1C0F48%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.016.png%22%20alt%3D%22Service%20Fabric%20Explorer%20with%20healthy%20status%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EService%20Fabric%20Explorer%20with%20healthy%20status%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH3%20id%3D%22toc-hId--758864227%22%20id%3D%22toc-hId--757880939%22%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3EAfter%20implementation%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EIf%20you%20aren%E2%80%99t%20blocked%20by%20any%20step%2C%20congratulations%2C%20you%E2%80%99ve%20done%20everything%20needed.%20You%20can%20use%20the%20same%20tool%20or%20whichever%20tool%20you%20want%20to%20scan%20again%2C%20and%20we%E2%80%99ll%20find%20that%20the%20TLS%201.1%20is%20disabled.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22DisableTLS1011.017.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F319183iDB44209509EEF4D2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22DisableTLS1011.017.png%22%20alt%3D%22TLS%20setting%20after%20implementation%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ETLS%20setting%20after%20implementation%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH3%20id%3D%22toc-hId-1728648606%22%20id%3D%22toc-hId-1729631894%22%3E%3CFONT%20size%3D%225%22%3E%3CSTRONG%3EThe%20tips%20about%20the%20way%20without%20downtime%3A%3C%2FSTRONG%3E%3C%2FFONT%3E%3C%2FH3%3E%0A%3CP%3EAs%20mentioned%20in%20the%20first%20part%2C%20this%20way%20of%20using%20VMSS%20extension%20will%20cause%20some%20downtime%20since%20the%20installing%20of%20the%20extension%20is%20proceeded%20at%20same%20time%20and%20the%20PowerShell%20will%20require%20a%20restart%20operation%20to%20make%20the%20registry%20table%20value%20change%20take%20effect.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20way%20without%20downtime%20is%20with%20the%20same%20idea%20but%20doing%20this%20manually%20instead%20of%20using%20VMSS%20extension.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20summarize%20the%20steps%20simply%2C%20it%20will%20be%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3EOpen%20the%20Service%20Fabric%20Explorer%20and%20keep%20it%20open%3C%2FLI%3E%0A%3CLI%3ERDP%20into%20one%20instance%20of%20your%20VMSS%3C%2FLI%3E%0A%3CLI%3ERun%20the%20same%20PowerShell%20script%20manually%20in%20RDP%20window%3C%2FLI%3E%0A%3CLI%3ERestart%20the%20instance%20as%20required%20by%20the%20PowerShell%20script%3C%2FLI%3E%0A%3CLI%3EMonitor%20the%20Service%20Fabric%20Explorer%20and%20wait%20until%20everything%20is%20coming%20back%20to%20green%2Fhealthy%20status%3C%2FLI%3E%0A%3CLI%3ERepeat%20step%202%20to%205%20for%20every%20instance.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAttention!%20%3CSTRONG%3EPlease%20remember%20that%20we%20must%20wait%20until%20the%20status%20of%20node%20in%20Service%20Fabric%20Explorer%20is%20green%2Fhealthy%2C%20including%20the%20System%20Services%20in%20the%20last%20part.%20%3C%2FSTRONG%3EThe%20status%20of%20the%20node%20in%20Azure%20Portal%20will%20only%20show%20that%20the%20node%20is%20healthy%20but%20not%20containing%20the%20System%20Service.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2872504%22%20slang%3D%22en-US%22%3E%3CP%3EA%20blog%20about%20how%20to%20enforce%20TLS%201.2%20and%20disable%20TLS%201.0%2C%201.1%20on%20Service%20Fabric%20cluster.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2872504%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Service%20Fabric%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Oct 21 2021 10:24 PM
Updated by: