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

[PowerShell] New-FinOpsServicePrincipal – Manage billing account service principals #130

Open
Tracked by #1
flanakin opened this issue May 1, 2023 · 0 comments
Assignees
Labels
Tool: PowerShell PowerShell scripts and automation Type: Feature πŸ’Ž Idea to improve the product

Comments

@flanakin
Copy link
Collaborator

flanakin commented May 1, 2023

πŸ“ Scenario

As an Enterprise Agreement billing account administrator, I need to create service principals in order to automate Cost Management and Billing API integration

πŸ’Ž Solution

Create functions to manage service principals for EA accounts:

  • Add-<prefix>ServicePrincipal
  • Get-<prefix>ServicePrincipal
  • Remove-<prefix>ServicePrincipal
  • Update-<prefix>ServicePrincipal

https://learn.microsoft.com/azure/cost-management-billing/manage/assign-roles-azure-service-principals#assign-enrollment-account-role-permission-to-the-spn

We need to determine what prefix we want to use for these, since this isn't a native Az module function. Some ideas:

  • FinOps if we want to maintain branding of the toolkit/module.
  • Toolkit if we want to be very explicit that this is a toolkit feature. Main downside is the length.
  • Azure to differentiate from anything we might do in the future for non-Azure clouds (e.g., manage
  • Billing since this only applies to billing scopes.
  • Account if we want to support each billing scope in its own function. (I'm thinking one for all scopes with a -Scope parameter for simplicity.)

Examples:

  • Add-FinOpsToolkitAzureBillingAccountServicePrincipal
  • Add-FinOpsAzureBillingServicePrincipal
  • Add-AzureBillingServicePrincipal
  • Add-FinOpsServicePrincipal

πŸ™‹β€β™€οΈ Ask for the community

We could use your help:

  1. Please vote this issue up (πŸ‘) to prioritize it.
  2. Leave comments to help us solidify the vision.
@flanakin flanakin added Type: Feature πŸ’Ž Idea to improve the product Tool: PowerShell PowerShell scripts and automation labels May 1, 2023
@MSBrett MSBrett self-assigned this May 30, 2023
@flanakin flanakin added this to the Toolkit v0.0.2 milestone Sep 1, 2023
@flanakin flanakin changed the title Manage billing account service principals [PowerShell] New-FinOpsServicePrincipal – Manage billing account service principals Sep 1, 2023
@flanakin flanakin moved this to πŸ— In progress in FinOps toolkit – PowerShell module Sep 1, 2023
@flanakin flanakin modified the milestones: 0.3, 0.4 Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Tool: PowerShell PowerShell scripts and automation Type: Feature πŸ’Ž Idea to improve the product
Projects
Status: πŸ— In progress
Development

No branches or pull requests

2 participants