Cannot programatically create subscription

Whitmore, Rachel 0 Reputation points
2024-08-21T12:25:38.19+00:00

![Error-image] (/api/attachments/e4531a14-2bbe-4145-bb35-ef665d46065c?platform=QnA)Hi,

I am having issues programatically creating MCA subscriptions.

we want to use terraform to create the subscription but keep getting the following error. (See image)

I have tried using az cli - I get the same issue. When going through portal as myself it works fine.

Even using AZ Cli with my own credentials does not work.

I have given spn Owner at the scope"/".

I have also given it billing owner on the billing account/profile/invoice section and also azure subscription creator on billing invoice section.

Still no luck.

What am I missing?

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,839 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
340 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
484 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.