public async Task Update() { SubscriptionResource subscription = await Client.GetDefaultSubscriptionAsync(); ResourceGroupResource rg = await CreateResourceGroup(subscription, "testRg-"); string accountName = Recording.GenerateAssetName("Account-"); DeviceUpdateAccountResource account = await CreateAccount(rg, accountName); DeviceUpdateAccountPatch updateOptions = new DeviceUpdateAccountPatch() { Location = AzureLocation.WestUS2, Identity = new ManagedServiceIdentity(ResourceManager.Models.ManagedServiceIdentityType.None) }; var lro = await account.UpdateAsync(WaitUntil.Completed, updateOptions); DeviceUpdateAccountResource updatedAccount = lro.Value; ResourceDataHelper.AssertAccountUpdate(updatedAccount, updateOptions); }