public async Task Update() { Subscription subscription = await Client.GetDefaultSubscriptionAsync(); ResourceGroup rg = await CreateResourceGroup(subscription, "testRg-"); string cdnProfileName = Recording.GenerateAssetName("profile-"); Profile cdnProfile = await CreateCdnProfile(rg, cdnProfileName, CdnSkuName.StandardAkamai); var lro = await cdnProfile.AddTagAsync("newTag", "newValue"); Profile updatedCdnProfile = lro.Value; ResourceDataHelper.AssertProfileUpdate(updatedCdnProfile, "newTag", "newValue"); }
public async Task Update() { Subscription subscription = await Client.GetDefaultSubscriptionAsync(); ResourceGroup rg = await CreateResourceGroup(subscription, "testRg-"); string afdProfileName = Recording.GenerateAssetName("AFDProfile-"); Profile afdProfile = await CreateAfdProfile(rg, afdProfileName, SkuName.StandardAzureFrontDoor); var lro = await afdProfile.AddTagAsync("newTag", "newValue"); Profile updatedAfdProfile = lro.Value; ResourceDataHelper.AssertProfileUpdate(updatedAfdProfile, "newTag", "newValue"); }
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); }