コード例 #1
0
        public void AddAndAssignCertificate()
        {
            var helper    = new AuthenticationHelper(clientId1, returnUri);
            var ar        = helper.SimpleLogin("*****@*****.**", "Pass@word1");
            var azmHelper = new AzureManagementHelper(ar);
            var bytes     = File.ReadAllBytes(@"E:\gitrepos\JetDotCom\src\AzureResourceManagerDemo\wildcard.cicoriadevnet.pfx");
            var b64       = Convert.ToBase64String(bytes);

            azmHelper.AddCertificate(
                mySubscription,
                "Default-Web-EastUS",
                "East US",
                "Wildcard1",
                "pass@word1",
                b64);


            azmHelper.AssignCertificate(
                mySubscription,
                "Default-Web-EastUS",
                "East US",
                "scicoriacustom",
                "azw.cicoriadev.net",
                "DEA5DED6142EDECCDF952F4D431ED772F01D22D1");
        }
コード例 #2
0
        public void AddCert()
        {
            var azmHelper = new AzureManagementHelper(_authResultResourceManager);

            var bytes = File.ReadAllBytes(@"E:\gitrepos\JetDotCom\src\AzureResourceManagerDemo\wildcard.cicoriadevnet.pfx");

            var b64 = Convert.ToBase64String(bytes);


            azmHelper.AddCertificate(
                mySubscription,
                "Default-Web-EastUS",
                "East US",
                "Wildcard1",
                "pass@word1",
                b64);
        }