We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ab03a6 commit ef82835Copy full SHA for ef82835
examples/resource-management/04-RoleAssignments.sh
@@ -21,7 +21,7 @@ azure role assignment create --ObjectId "$userId" --RoleDefinitionId "$roleDefin
21
22
printf "\n3. Delete last created Role Assignment.\n"
23
assignments=$(azure role assignment get)
24
-assignmentId=$(echo $assignments | cat | jq '.[-1].ObjectId' -s --raw-output)
+assignmentId=$(echo $assignments | cat | jq '.[-1:][0].ObjectId' -s --raw-output)
25
echo "Deleting assignment: $assignmentId"
26
azure role assignment remove --ObjectId "$assignmentId" --Scope "$scope" --RoleDefinitionId "$roleDefinitionId" -f
27
export MSYS_NO_PATHCONV=
0 commit comments