Azure Stack Tenant¶
/azure-tenant¶
POST¶
Create a new Azure Stack tenant.
JSON request
|
string |
A UUID identifying the Azure Stack provider. |
|
string |
Two character ISO 3166 country code. The country have to be supported by the selected Provisioning Region |
|
string |
First name of the tenant. Maximum length is 50 characters. |
|
string |
Last name of the tenant. Maximum length is 50 characters. |
|
string |
Email address of the tenant. |
|
string |
Locale in the form of XX_xx (language_territory) |
|
string |
Company name |
|
string |
First line of the address. Maximum length is 200 characters. |
|
string |
Second line of the address. Optional. Maximum length is 200 characters. |
|
string |
Max. length: 128 |
|
string |
Depending on the selected country. Please check for valid values per country: https://docs.microsoft.com/en-us/partner-center/develop/validate-an-address |
|
string |
Validation depending on the selected country. See valid values per country: https://docs.microsoft.com/en-us/partner-center/develop/validate-an-address |
|
string |
Valid phone number. |
|
string |
Sub-domain for the onmicrosoft.com domain ({prefix}.onmicrosoft.com). This domain will be used to access the account. Only alphanumeric (alphabetic and numeric) characters are allowed. |
JSON response
object: Azure Stack Tenant
Possible errors
Sample
curl \
--request POST \
--user "{{api_username}}:{{api_key}}" \
--data '
{
"csp": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"country": "NL",
"first_name": "John",
"last_name": "Doe",
"email_address": "john@example.com",
"locale": "nl_NL",
"company_name": "Johns inc.",
"address": "Example street 13",
"city": "Smallville",
"state": "OV",
"zip_code": "1234AB",
"phone_number": "+31.612345678",
"domain_prefix": "johnsinc",
}
' \
"{{api_base_url}}/azure-tenant" | python -m json.tool