azure-dev-center-demos's Issues
Unable to assign custom role by role name
The script that creates the azure image builder identity and role seems to have an error when running, where if assigning the role by custom role name errors out (can not find role definition - e.g. "Azure Image Builder Service Image Creation Role
").
However if using the uuid of the created custom role, this command succeeds as expected.
Suggested fix:
- use role uuid in the
--role
parameter flag inaz role assignment create
instead of the display name for role?
Ensure user has graph api permissions
On certain commands, the azure cli will leverage the Microsoft Graph API to check if an entity (app/user) exists in the Entra (Artist formerly known as Azure Active Directory/AAD) tenant.
As such a user/spn must have graph API permissions to do so via the cli. Otherwise there must be steps to manually add the entity with the required permission on the correct resource scope.
This line using the --assignee
parameter would require Microsoft Graph API access to query for the assignee resource object and then assign the role. You will see/receive an error like this:
Failed to query xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx by invoking Graph API. If you don't have permission to query Graph API, please specify --assignee-object-id and --assignee-principal-type.
Workaround:
- In a workshop scenario you can manually add the permission/role assignment on the resource group via the Azure Portal if a user receives Graph API permission error in the CLI.
Potential Fixes:
- Add/enable Graph API permission for the user/spn
- use the
--assignee-object-id
and--assignee-principal-type ServicePrincipal
flags instead of--assignee
only flag to bypass Msft Graph API calls
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.