Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: Automate fetching the deployment service principal(s) enterprise app object id #1605

Closed
MariusStorhaug opened this issue Jun 26, 2022 · 3 comments · Fixed by #1752
Assignees
Labels
enhancement New feature or request

Comments

@MariusStorhaug
Copy link
Contributor

MariusStorhaug commented Jun 26, 2022

Description

Automate fetching the deployment service principal(s) enterprise app object id

This could render the deployment_sp_id obsolete

@MariusStorhaug
Copy link
Contributor Author

This should be as easy as:

$Context = Get-AzContext
$ApplicationId = $Context.Account.Id
$SPN = Get-AzADServicePrincipal -ApplicationId $ApplicationId
$SPNObjectID = $SPN.Id

@MariusStorhaug MariusStorhaug changed the title [Feature Request]: Check if the deployment service principal(s) can get its own enterprise app object id [Feature Request]: Automate fetching the deployment service principal(s) object id Jun 26, 2022
@MariusStorhaug MariusStorhaug changed the title [Feature Request]: Automate fetching the deployment service principal(s) object id [Feature Request]: Automate fetching the deployment service principal(s) enterprise app object id Jun 26, 2022
@MariusStorhaug MariusStorhaug self-assigned this Jun 26, 2022
@MariusStorhaug
Copy link
Contributor Author

MariusStorhaug commented Jun 26, 2022

I am creating a POC for this with the wider changes to OIDC and mulit env approach.

@MariusStorhaug
Copy link
Contributor Author

Update: Not adding it to the #1608 PR. Based on discussion with @ahmadabdalla it might be better to add this to the settings/var/token story.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants