I have a Resource Group 'test-rg'. How can I add a custom role 'Custom Role' to an application 'test-application' to this resource group via PowerShell script?
Add a role to an application to a resource group via PowerShell script
153 Views Asked by user989988 At
1
There are 1 best solutions below
Related Questions in AZURE
- How to update to the latest external Git in Azure Web App?
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Inject AsyncCollector into a service
- mutual tls authentication between app service and function app
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Application settings for production deployment slot in Azure App Services
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Implementing Incremental consent when using both application and delegated permissions
- Invalid format for email address in WordPress on Azure app service
- Producer Batching Service Bus Vs Kafka
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Azure Batch for Excel VBA
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Azure Scale Sets and Parallel Jobs
Related Questions in ROLES
- Troubleshooting object instantiation based on role in PHP app
- Ansible role variable is not defined
- Hierarchical roles for a user, with child roles having different permissions on case based, Laravel Spatie
- how to use two roles as a and operator in cerbos
- Approach to display links by role
- react router dom and role based
- How to add roles to a member using role id using discord.py?
- Can maintainers see my activity on Gitlab? Which roles are able to do this?
- Excluding a table from a Oracle role
- liferay, how to add a new permission to liferay using admin panel portal
- Laravel authorize for users and roles
- C# app service service principal role based authorization
- What roles does a postgresql database make use of?
- MSAL: Blazor Server client with AspNetCore API. Both protected by MSAL. How to have client access user's API roles?
- Accessibility role for button that links out of the app in Jetpack Compose
Related Questions in AZURE-RESOURCE-GROUP
- Why is "Export Template" button not clickable
- How to get the id of a another resource group in bicep?
- Resource Groups can't be deleted due to Permission issues
- How to list vms by specific Azure resource group
- Azure- Getting (AuthorizationFailed) even with owner role assigned to my account
- Error deploying Azure Synapse on private network with Terraform
- Managing Locks on RG, auto remove locks
- Azure API call not getting logged
- Can't create a new Azure Data Factory ADF with Contributor role
- Azure Resource Graph Query to retrieve all resources of applications using resource groups based on application ID
- Get all Azure resource groups within the specific Azure management group like "ABC"
- What are the supported filter operations on Azure Resource Group list
- Does making an Azure key vault private still allow access to other resources in the same resource group?
- Add a role to an application to a resource group via PowerShell script
- Azure Resource Graph Explorer :: list all resourceGroup with subscriptionName
Related Questions in IDENTITY-MANAGEMENT
- OpenAM Community Edition with Vue SPA / CORS Settings
- Is it possible to integrate Looker Studio with websites without keeping it public, to preserve data?
- Finding the most secure way to change IAM user passwords with AWSPowerShell
- GCP IAM Policy revoked all access
- Login/initiate session in WSO2 Identity Server 5.11.0 without using UI
- Configuring Terraform provider AWS
- Discrepancy in the AWS IAM Identity Center's permission sets
- SailPoint Policy - Using a script to check user's department
- AWS - Policy creation failure on CDK Deployment through Identity Center Profile
- Azure ADB2C callback url is giving bad request of redirect from OpenID connect
- AWS OIDC policy for multiple repositories?
- Snowflake: AWS IAM Role for notification integration
- How to assume a cross account role in AWS lambda using javascript sdk v2?
- Keycloak identity brokering setup with mutual auth x509 certificate
- Can able to configure the flow in keycloak
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)
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?

I believe by
you actually mean:
If that's the case, you need to just create a role assignment.
To do it in PowerShell, you need to run a following command:
Where:
<objectId>is an Object ID of your Service Principal / Enterprise Application,<roleName>is a built-in or a custom role (e.g.,Custom Role),<subscriptionId>and<resourceGroupName>are identifier of respective Subscription and Resource Group you want to give access to.