Add Azure user to resource group with nodejs -


using node.js sdk, i've created user , resource group. how can assign user resource group owner?

you refer example.

authzclient.roleassignments.create(scope, assignmentguid, rolecreateparams, function (err, roleassignment, req, res) {   if (err) {     console.log('\nerror occured while creating roleassignment: \n' + util.inspect(err, { depth: null }));     return;   } 

according need, need example.

owner role id 8e3af657-a8ff-443c-a75c-2fe8c4bcb635.

scope should /subscriptions/{subscription-id}/resourcegroups/myresourcegroup1.

replace application id user object id.

also, use azure rest api this, please refer link.


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -