public async Task Update() { //This test doesn't create a new afd custom domain bucause the update actoin needs to manualy add dns txt record and validate. SubscriptionResource subscription = await Client.GetDefaultSubscriptionAsync(); ResourceGroupResource rg = await subscription.GetResourceGroups().GetAsync("CdnTest"); ProfileResource afdProfile = await rg.GetProfiles().GetAsync("testAFDProfile"); AfdCustomDomainResource afdCustomDomain = await afdProfile.GetAfdCustomDomains().GetAsync("customdomain4afd-azuretest-net"); PatchableAfdCustomDomainData updateOptions = new PatchableAfdCustomDomainData { TlsSettings = new AfdCustomDomainHttpsParameters(AfdCertificateType.ManagedCertificate) { MinimumTlsVersion = AfdMinimumTlsVersion.Tls10 }, }; var lro = await afdCustomDomain.UpdateAsync(WaitUntil.Completed, updateOptions); ; AfdCustomDomainResource updatedAfdCustomDomain = lro.Value; ResourceDataHelper.AssertAfdDomainUpdate(updatedAfdCustomDomain, updateOptions); }