IIS - Configure
Comparing configurations with live IIS instances
You can use the live comparison feature of the IIS Configure plug-in to compare the properties from previously discovered IIS configurations against the current live configuration. A live comparison shows the specific properties that changed, which can help you investigate problems with the current configuration. Differences in the stored configuration versus the live configuration are sometimes known as configuration drift.
Before you begin
- Discover an existing IIS configuration and store the configuration as component version in IBM UrbanCode Deploy. For more information, see Discovering and applying configurations.
- Change several properties in either the live IIS configuration or in the component version so that the changes can be detected during a comparison.
Running the live comparison
Map the relevant component to your application environment’s resource tree, as shown in Figure 1. The comparison process skips the request if you do not have a component that is mapped to the resource tree. The application process iterates through each component in the resource tree. For each component in the resource tree, the version that you select is compared to the live configuration.
In IBM UrbanCode Deploy, go to the Applications page. Click the example IISApp application. Click the deployment push button on the environment where you want to run the live comparison. From the Process list, select Live Compare. Select the version or versions from multiple components to compare against the live configuration. If you select multiple component versions, they are compared sequentially. Ensure that Only Changed Versions is cleared. For an example of the Run Process window, see Figure 2. Click Submit. The live comparison process runs. Typically, it can take several seconds to run the comparison, depending on how much configuration data is stored.
After the live comparison process completes, you can review and analyze the results. Click the History tab in the IISApp application to return to the process request window. Click View Request in the Actions column to return to the last request that you made.
To view the configuration drift, expanding the child objects of the process request until the IIS Configuration Live Comparison plug-in step is displayed. When you hover your mouse pointer over this row, a compare icon is displayed at the right side of the Step column. Click the compare icon. Any changes between the version that you selected and the current live configuration are displayed here, highlighted in yellow and orange. To view the full comparison tree that includes unchanged assets, clear Only Show Changes at the upper left. See Figures 3-5 for visual reference.
You compared a previously discovered configuration to the live configuration. You can use this feature to detect unexpected changes to your live configuration, and to detect changes that were made since your previous component version. After you determine exactly which properties changed, you can fix any problems that occurred because of those changes.