-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[Az.Resources] Adding examples of how to use ServicePrincipalName parameter #26891
base: main
Are you sure you want to change the base?
Conversation
Adding examples of how to use the 'ServicePrincipalName' parameter.
️✔️Az.Resources
|
Thank you for your contribution SebastianClaesson! We will review the pull request and get back to you soon. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Please join your github account to Azure org.
|
Removed example 6 as it was very similiar to example 5.
/azp run azure-powershell - security-tools |
Azure Pipelines successfully started running 1 pipeline(s). |
@SebastianClaesson The changes look good, a few things from my side,
|
This PR was labeled "needs-revision" because it has unresolved review comments or CI failures. |
Aboslutely! Here's the code; $ApplicationObject = Get-AzADServicePrincipal -DisplayName 'sc-azdo-vendingmachine'
$ApplicationObject | Select DisplayName, AppId, '#oDataType'
Get-AzRoleAssignment -ServicePrincipalName $ApplicationObject.AppId | Select DisplayName, RoleDefinitionName, ObjectType, Scope |
Description
Adding examples of how to use the 'ServicePrincipalName' parameter.
Mandatory Checklist
Please choose the target release of Azure PowerShell. (⚠️ Target release is a different concept from API readiness. Please click below links for details.)
Check this box to confirm: I have read the Submitting Changes section of
CONTRIBUTING.md
and reviewed the following information:ChangeLog.md
file(s) appropriatelysrc/{{SERVICE}}/{{SERVICE}}/ChangeLog.md
.## Upcoming Release
header in the past tense.ChangeLog.md
if no new release is required, such as fixing test case only.