var handler = new System.Net.Http.HttpClientHandler
{
    UseProxy = true,
    Proxy = new System.Net.WebProxy(
        "http://proxy.example.net:8080")
};

var transport = new Azure.Core.Pipeline.HttpClientTransport(handler);

var credential = new Azure.Identity.ClientSecretCredential(
    tenantId, clientId, clientSecret,
    new Azure.Identity.ClientSecretCredentialOptions
    {
        Transport = transport
    });

var vault = new Azure.Security.KeyVault.Secrets.SecretClient(
    new Uri(vaultUrl),
    credential,
    new Azure.Security.KeyVault.Secrets.SecretClientOptions
    {
        Transport = transport
    });

Cleachd fìor-vaultUrl, tenantId, clientId agus clientSecret na h-aplacaid. Tha an dà shònrachadh Transport = transport a dh'aona ghnothaich: tha aon a' stiùireadh togail tòcain agus am fear eile a' stiùireadh iarrtasan dìomhaireachd Key Vault.

Cùm vaultUrl mar fhìor-cheann-àite a' chlàir. Tha WebProxy a' ghlacadair a' cumail an eadar-mheadhanaiche; tha tagraichean HTTP poblach rim faighinn ann an liosta proxy HTTP nuair a cheadaicheas poileasaidh lìonra a' chlàir an t-slighe sin; rèitich a Credentials mus cruthaich thu na clianta ma tha feum aig an lìonra orra.

Ath-chleachd an giùlan airson eallach-obrach nan clianta agus leig às goireasan seilbhe aig dùnadh. Stèidhichidh ceangal proxy soirbheachail slighe, ach tha poileasaidhean lìonra is ruigsinneachd Key Vault fhathast a' co-dhùnadh am faod an aplacaid an dìomhaireachd a leughadh.

Artaigilean co-cheangailte