I have over 50 Azure subscriptions under same tenant. I have created a service-principal under Azure active directory and provided the service principal 'reader' role to each subscriptions. When I make an API call from Postman I get all subscription ids but my concern is I am giving 'READ' access to all my resources on different subscriptions. I want to limit this service-principal will ONLY be able to list the subscription ids and nothing else.
Grant Read access to service principal to get ONLY subscription ids on Azure
583 views Asked by cloudify At
1
There are 1 answers
Related Questions in AZURE
- Why does Azure Auto-Scale scale go lower then minimum amount of instances?
- Data execution plan ended with error on DB restore
- Why does Azure CloudConfigurationManager.GetSetting return null
- Do I need other roles than Worker Role for a web site and service layer in Azure?
- Azure Web App PATH Variable Modification
- Azure Data Factory: LinkedService for AzureSql in failed state
- How To Update a Web Application In Azure and Keep The App Up the whole time
- Using Azure MobileServices library with my own LAN WebApi
- ionCube loader error on Azure IIS
- App crash (if closed) after click on notification
Related Questions in API
- SuiteCRM how to retrieve all account related contacts
- how do i submit a pastebin or pastee from an android app and get the url back
- BigCommerce PHP API delete Category which contains products
- Interact with chrome bookmarks outside of extensions
- purchase individual items and subscriptions in the same PayPal REST API transaction
- youtube api v3 insert comments
- Youtube api v3 duration
- Responding to an Office 365 event invite via REST
- Convert youtube video to mp3 using Quick MP3 API
- How to real-time monitor the emails?
Related Questions in RBAC
- Automated tools for applying formal methods to verify security policy in existing software
- Cannot insert the value NULL into column 'user_id', table 'dbo.role_user'; column does not allow nulls
- How to updateOwnPost on function in yii2-admin
- I am using laravel to display the item in view page
- Access control of a Module in Yii2
- Yii2 RBAC: which checks should be put into rules
- Can you use RBAC to set individual permissions for each group?
- How to create users/groups restricted to namespace in Kubernetes using RBAC API?
- How to pass parameters to the rbac rule when using a permission name in yii\filter\AccesControl?
- Yii2 RBAC DbManager error Call to a member function getRole() on null
Related Questions in AZURE-SERVICE-PRINCIPAL
- Create service principle before creating the resource
- Azure AD: Grant an appRoleAssignment for a service principal is failing with "code": "Request_ResourceNotFound"
- Azure service principal: Grant an appRoleAssignment for a service principal does update the original permission's status
- Obtain OAuth token using Service Connection
- Insufficient privileges to complete the operation with listing service principals using az ad sp list
- Multitenant API - Admin consent ERROR https://login.microsoftonline.com/organizations/v2.0/adminconsent AADSTS90009
- Service principle assign to who? ACR or App service?
- Access service principal for Microsoft.Azure.WebSites Resource Provider (Microsoft Azure App Service) from Azure pipeline task
- Assign the claimsMappingPolicy to a servicePrincipal giving error?
- How to refresh access token provided by TokenCredential / ClientSecretCredential by Azure Identity Java SDK?
Related Questions in READ-ACCESS
- Chain function call only works if you don't save a reference to an intermediate type
- Is there a way to give read permissions for a subdirectory in Deno?
- any way to enable GCP service account access to specific folder in GCS bucket?
- C++: Read access violation (this-> x was nullptr) with Blackmagic DeckLink SDK
- Creating own IntelliJ Plugin causes Read access is allowed from inside read-action
- Apache: How do I open up read access to a directory & its contents, giving a directory listing, but not write access?
- How can I modify my Stack Operation. (struct address problem)
- Prevent consecutive read operations from memory in C from being optimized away
- Any creative ways to detect deleted data allocated in heap?
- Grant Read access to service principal to get ONLY subscription ids on Azure
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
With "Reader" role, a user would be able to read all resources inside a subscription and not just subscription id.
I believe the solution to your problem is to create a custom role (let's call it
SubscriptionPropertiesReader) and then give only the permission to perform read operation just at the subscription level. Based on the information providedhere, I believe the permission you would want to include in this role isMicrosoft.Resources/subscriptions/read.The challenge obviously will be to create this custom role in each and every subscription and then assigning this role to your Service Principal in each subscription.