Exemple #1
0
        public override void ExecuteCmdlet()
        {
            if (Uri != null && Uri.Port <= 0)
            {
                WriteWarning(string.Format(Resources.NoPortSpecified, Uri));
            }

            var toUse = Uri ?? new Uri(string.Format("https://{0}:{1}", DatabaseHost, Port));

            WriteObject(DataLakeAnalyticsClient.CreateSecret(Account, DatabaseName, Secret.UserName,
                                                             Secret.GetNetworkCredential().Password, toUse.AbsoluteUri));
        }