APIM set-variable error

Wael Horchani-TEN 40 Reputation points
2025-06-02T10:12:16.84+00:00

Hello team,

I'm trying to add a member to a security group using microsoft graph, I'm calling it from APIM.

Below used code in APIM and it throw an error in line 14 (the set variable syntax)

The syntax is generated by Copilot, I totally new to this field. Please help.

User's image


Microsoft Security | Microsoft Entra | Microsoft Entra ID

2 answers

Sort by: Newest
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    1 deleted comment

    Comments have been turned off. Learn more

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.