src/Common/Internal/ServiceManagementSettings.php
public static function createFromConnectionString($connectionString)
    {
        $tokenizedSettings = self::parseAndValidateKeys($connectionString);

        $matchedSpecs = self::matchedSpecification(
            $tokenizedSettings,
            self::allRequired(
                self::$_subscriptionIdSetting,
                self::$_certificatePathSetting
            ),
            self::optional(
                self::$_endpointSetting
            )
        );
        if ($matchedSpecs) {
            $endpointUri = Utilities::tryGetValueInsensitive(
                Resources::SERVICE_MANAGEMENT_ENDPOINT_NAME,
                $tokenizedSettings,
                Resources::SERVICE_MANAGEMENT_URL
            );
            $subscriptionId = Utilities::tryGetValueInsensitive(
                Resources::SUBSCRIPTION_ID_NAME,
                $tokenizedSettings
            );
            $certificatePath = Utilities::tryGetValueInsensitive(
                Resources::CERTIFICATE_PATH_NAME,
                $tokenizedSettings
            );

            return new self(
                $subscriptionId,
                $endpointUri,
                $certificatePath
            );
        }

        self::noMatch($connectionString);
        return null;
    }
public static function createFromConnectionString($connectionString)
    {
        $tokenizedSettings = self::parseAndValidateKeys($connectionString);

        $matchedSpecs = self::matchedSpecification(
            $tokenizedSettings,
            self::allRequired(
                self::$_subscriptionIdSetting,
                self::$_certificatePathSetting
            ),
            self::optional(
                self::$_endpointSetting
            )
        );
        if ($matchedSpecs) {
            $endpointUri = Utilities::tryGetValueInsensitive(
                Resources::SERVICE_MANAGEMENT_ENDPOINT_NAME,
                $tokenizedSettings,
                Resources::SERVICE_MANAGEMENT_URL
            );
            $subscriptionId = Utilities::tryGetValueInsensitive(
                Resources::SUBSCRIPTION_ID_NAME,
                $tokenizedSettings
            );
            $certificatePath = Utilities::tryGetValueInsensitive(
                Resources::CERTIFICATE_PATH_NAME,
                $tokenizedSettings
            );

            return new self(
                $subscriptionId,
                $endpointUri,
                $certificatePath
            );
        }

        self::noMatch($connectionString);
        return null;
    }
public static function createFromConnectionString ( $ connectionString ) { $ tokenizedSettings = self :: parseAndValidateKeys ( $ connectionString ) ; $ matchedSpecs = self :: matchedSpecification ( $ tokenizedSettings , self :: allRequired ( self :: $ _subscriptionIdSetting , self :: $ _certificatePathSetting ) , self :: optional ( self :: $ _endpointSetting ) ) ; if ( $ matchedSpecs ) { $ endpointUri = Utilities :: tryGetValueInsensitive ( Resources :: SERVICE_MANAGEMENT_ENDPOINT_NAME , $ tokenizedSettings , Resources :: SERVICE_MANAGEMENT_URL ) ; $ subscriptionId = Utilities :: tryGetValueInsensitive ( Resources :: SUBSCRIPTION_ID_NAME , $ tokenizedSettings ) ; $ certificatePath = Utilities :: tryGetValueInsensitive ( Resources :: CERTIFICATE_PATH_NAME , $ tokenizedSettings ) ; return new self ( $ subscriptionId , $ endpointUri , $ certificatePath ) ; } self :: noMatch ( $ connectionString ) ; return null ; }
Creates a ServiceManagementSettings object from the given connection string.

@param string $connectionString The storage settings connection string

@return ServiceManagementSettings|void
Creates a ServiceManagementSettings object from the given connection string .