Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to replicate the armclient token generation in REST? #66

Open
pradeepvairamani opened this issue Aug 13, 2022 · 0 comments
Open

How to replicate the armclient token generation in REST? #66

pradeepvairamani opened this issue Aug 13, 2022 · 0 comments

Comments

@pradeepvairamani
Copy link

This is more of a question than an issue.

We recently added a new property to a resource and we see that all the new resources are being created with this property. For the older resources, if we run a patch with an empty payload using amrclient.exe, the resources are getting updated and is returning the new property from that point (I believe that this is because ARM has its own cosmos db where the resource would be updated when we run the Patch request).

However, when I try to do a batch update of all the old resources programmatically, I see that the resources are not getting updated (the call is succeeding but it returning the resource without the updated property). The problem seems to be with the token that I am generating programmatically because using the token generated via armclient.exe and running the same code is updating the resource.

This is how I am generating the token. Am I missing something here?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant