public async Task Update() { SubscriptionResource subscription = await Client.GetDefaultSubscriptionAsync(); ResourceGroupResource rg = await CreateResourceGroup(subscription, "testRg-"); string afdProfileName = Recording.GenerateAssetName("AFDProfile-"); ProfileResource afdProfile = await CreateAfdProfile(rg, afdProfileName, CdnSkuName.StandardAzureFrontDoor); ProfilePatch updateOptions = new ProfilePatch(); updateOptions.Tags.Add("newTag", "newValue"); var lro = await afdProfile.UpdateAsync(WaitUntil.Completed, updateOptions); ProfileResource updatedAfdProfile = lro.Value; ResourceDataHelper.AssertProfileUpdate(updatedAfdProfile, updateOptions); }