Esempio n. 1
0
        private void UpdateClusterOperatorSettings(ConfigurationSettings settings)
        {
            KeyedCollection <string, ConfigurationProperty> clusterConfigParameters = settings.Sections["AzureSubscriptionSettings"].Parameters;

            // These settings are encrypted in Settings.xml using the PowerShell command:
            // Invoke-ServiceFabricEncryptText using a certificate
            this.settings = new ArmClusterOperatorSettings(
                clusterConfigParameters["Region"].Value,
                clusterConfigParameters["ClientID"].DecryptValue(),
                clusterConfigParameters["ClientSecret"].DecryptValue(),
                clusterConfigParameters["Authority"].DecryptValue(),
                clusterConfigParameters["SubscriptionID"].DecryptValue(),
                clusterConfigParameters["Username"].DecryptValue(),
                clusterConfigParameters["Password"].DecryptValue());
        }
        private void UpdateClusterOperatorSettings(ConfigurationSettings settings)
        {
            KeyedCollection<string, ConfigurationProperty> clusterConfigParameters = settings.Sections["AzureSubscriptionSettings"].Parameters;

            // These settings are encrypted in Settings.xml using the PowerShell command:
            // Invoke-ServiceFabricEncryptText using a certificate 
            this.settings = new ArmClusterOperatorSettings(
                clusterConfigParameters["Region"].Value,
                clusterConfigParameters["ClientID"].DecryptValue(),
                clusterConfigParameters["ClientSecret"].DecryptValue(),
                clusterConfigParameters["Authority"].DecryptValue(),
                clusterConfigParameters["SubscriptionID"].DecryptValue(),
                clusterConfigParameters["Username"].DecryptValue(),
                clusterConfigParameters["Password"].DecryptValue());
        }