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

Added tenantChangeAllowedTenants parameter to GET & PUT tenantPolicy. #27789

Closed
wants to merge 6 commits into from
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"parameters": {
"subscriptionId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05",
"api-version": "2024-04-04-preview"
},
"responses": {
"200": {
"body": {
"subscriptionId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05",
"acceptOwnershipState": "Pending",
"provisioningState": "Accepted",
"billingOwner": "[email protected]",
"subscriptionTenantId": "6c541ca7-1cab-4ea0-adde-6305e1d534e2",
"displayName": "Test Subscription",
"tags": {
"tag1": "TagValue1"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{

Check failure on line 1 in specification/subscription/resource-manager/Microsoft.Subscription/preview/2024-04-04-preview/examples/acceptSubscriptionOwnership.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/subscription/resource-manager/Microsoft.Subscription/preview/2024-04-04-preview/examples/acceptSubscriptionOwnership.json#L1

specification/subscription/resource-manager/Microsoft.Subscription/preview/2024-04-04-preview/examples/acceptSubscriptionOwnership.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/subscription/resource-manager/Microsoft.Subscription/preview/2024-04-04-preview/examples/acceptSubscriptionOwnership.json
"parameters": {
"subscriptionId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05",
"api-version": "2024-04-04-preview"
"body": {
"properties": {
"displayName": "Test Subscription",
"managementGroupId": null,
"tags": {
"tag1": "Messi",
"tag2": "Ronaldo",
"tag3": "Lebron"
}
}
}
},
"responses": {
"202": {
"headers": {
"Location": "https://management.azure.com/providers/Microsoft.Subscription/subscriptionOperations/ODdmYTU0MDktODc5YS00ZTEzLTg2MWItNTQ4ZjYxNzBlOTQw?api-version=2021-10-01",
"Retry-After": 8
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad",
"api-version": "2024-04-04-preview"
},
"responses": {
"200": {
"body": {
"subscriptionId": "83aa47df-e3e9-49ff-877b-94304bf3d3ad"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"parameters": {
"api-version": "2024-04-04-preview",
"body": {
"blockSubscriptionsLeavingTenant": true,
"blockSubscriptionsIntoTenant": true,
"exemptedPrincipals": [
"e879cf0f-2b4d-5431-109a-f72fc9868693",
"9792da87-c97b-410d-a97d-27021ba09ce6"
],
"tenantChangeAllowedTenants": [
"9dcb068b-4df9-4208-93e2-73a155dff345"
]
}
},
"responses": {
"200": {
"body": {
"id": "providers/Microsoft.Subscription/policies/default",
"name": "default",
"type": "providers/Microsoft.Subscription/policies",
"properties": {
"policyId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05",
"blockSubscriptionsLeavingTenant": true,
"blockSubscriptionsIntoTenant": true,
"exemptedPrincipals": [
"e879cf0f-2b4d-5431-109a-f72fc9868693",
"9792da87-c97b-410d-a97d-27021ba09ce6"
],
"tenantChangeAllowedTenants": [
"9dcb068b-4df9-4208-93e2-73a155dff345"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{

Check failure on line 1 in specification/subscription/resource-manager/Microsoft.Subscription/preview/2024-04-04-preview/examples/createAlias.json

View check run for this annotation

Azure Pipelines / Swagger PrettierCheck

specification/subscription/resource-manager/Microsoft.Subscription/preview/2024-04-04-preview/examples/createAlias.json#L1

specification/subscription/resource-manager/Microsoft.Subscription/preview/2024-04-04-preview/examples/createAlias.json(1,1): error : Code style issues found, please run prettier. > npm install > npx prettier --write specification/subscription/resource-manager/Microsoft.Subscription/preview/2024-04-04-preview/examples/createAlias.json
"parameters": {
"aliasName": "aliasForNewSub",
"api-version": "2024-04-04-preview"
"body": {
"properties": {
"displayName": "Test Subscription",
"workload": "Production",
"billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH",
"subscriptionId": null,
"additionalProperties": {
"managementGroupId": null,
"subscriptionTenantId": "66f6e4d6-07dc-4aea-94ea-e12d3026a3c8",
"subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c",
"tags": {
"tag1": "Messi",
"tag2": "Ronaldo",
"tag3": "Lebron"
}
}
}
}
},
"responses": {
"200": {
"body": {
"id": "string",
"name": "string",
"type": "string",
"properties": {
"subscriptionId": "e2283d0f-acad-4904-b803-627dd74cc072",
"displayName": "Test Subscription",
"provisioningState": "Accepted",
"acceptOwnershipUrl": "/providers/Microsoft.Subscription/e2283d0f-acad-4904-b803-627dd74cc072/acceptOwnership",
"acceptOwnershipState": "Pending",
"billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH",
"workload": "Production",
"resellerId": null,
"subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c",
"managementGroupId": null,
"tags": {
"tag1": "Messi",
"tag2": "Ronaldo",
"tag3": "Lebron"
}
}
}
},
"201": {
"body": {
"id": "string",
"name": "string",
"type": "string",
"properties": {
"subscriptionId": "e2283d0f-acad-4904-b803-627dd74cc072",
"displayName": "Test Subscription",
"provisioningState": "Accepted",
"acceptOwnershipUrl": "/providers/Microsoft.Subscription/e2283d0f-acad-4904-b803-627dd74cc072/acceptOwnership",
"acceptOwnershipState": "Pending",
"billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH",
"workload": "Production",
"resellerId": null,
"subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c",
"managementGroupId": null,
"tags": {
"tag1": "Messi",
"tag2": "Ronaldo",
"tag3": "Lebron"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"parameters": {
"aliasName": "aliasForNewSub",
"api-version": "2024-04-04-preview"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"subscriptionId": "7948bcee-488c-47ce-941c-38e20ede803d",
"api-version": "2024-04-04-preview"
},
"responses": {
"200": {
"body": {
"subscriptionId": "7948bcee-488c-47ce-941c-38e20ede803d"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parameters": {
"aliasName": "aliasForNewSub",
"api-version": "2024-04-04-preview"
},
"responses": {
"200": {
"body": {
"id": "string",
"name": "string",
"type": "string",
"properties": {
"subscriptionId": "e2283d0f-acad-4904-b803-627dd74cc072",
"displayName": "Test Subscription",
"provisioningState": "Accepted",
"acceptOwnershipUrl": "/providers/Microsoft.Subscription/e2283d0f-acad-4904-b803-627dd74cc072/acceptOwnership",
"acceptOwnershipState": "Pending",
"billingScope": "/billingAccounts/af6231a7-7f8d-4fcc-a993-dd8466108d07:c663dac6-a9a5-405a-8938-cd903e12ab5b_2019_05_31/billingProfiles/QWDQ-QWHI-AUW-SJDO-DJH/invoiceSections/FEUF-EUHE-ISJ-SKDW-DJH",
"workload": "Production",
"resellerId": null,
"subscriptionOwnerId": "f09b39eb-c496-482c-9ab9-afd799572f4c",
"managementGroupId": null,
"tags": {
"tag1": "Messi",
"tag2": "Ronaldo",
"tag3": "Lebron"
}
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"parameters": {
"billingAccountId": "testBillingAccountId",
"api-version": "2024-04-04-preview"
},
"responses": {
"200": {
"body": {
"id": "/providers/Microsoft.Subscription/Policies/policyForBillingAccount",
"name": "testBillingAccountId",
"type": "Microsoft.Subscription/policies",
"properties": {
"serviceTenants": [
{
"tenantName": "testServiceTenant",
"tenantId": "b8ed2088-c458-4e77-bd61-9e048d96a1c0"
}
],
"allowTransfers": true
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2024-04-04-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"name": "Microsoft.Subscription/createOperation/action",
"isDataAction": false,
"display": {
"provider": "Microsoft Subscription",
"resource": "Resources",
"operation": "Create a subscription"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"parameters": {
"operationId": "e4b8d068-f574-462a-a76f-6fa0afc613c9",
"api-version": "2024-04-04-preview"
},
"responses": {
"202": {
"headers": {
"Location": "/providers/Microsoft.Subscription/subscriptionOperations/e4b8d068-f574-462a-a76f-6fa0afc613c9?api-version=2021-10-01",
"Retry-After": 8
}
},
"200": {
"body": {
"subscriptionLink": "/subscriptions/4df8d5c2-1b7e-4dd5-bc61-640704bde633"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"parameters": {
"api-version": "2024-04-04-preview"
},
"responses": {
"200": {
"body": {
"id": "providers/Microsoft.Subscription/policies/default",
"name": "default",
"type": "providers/Microsoft.Subscription/policies",
"properties": {
"policyId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05",
"blockSubscriptionsLeavingTenant": true,
"blockSubscriptionsIntoTenant": true,
"exemptedPrincipals": [
"e879cf0f-2b4d-5431-109a-f72fc9868693",
"9792da87-c97b-410d-a97d-27021ba09ce6"
],
"tenantChangeAllowedTenants": [
"9dcb068b-4df9-4208-93e2-73a155dff345"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"parameters": {
"api-version": "2024-04-04-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "providers/Microsoft.Subscription/policies/default",
"name": "default",
"type": "providers/Microsoft.Subscription/policies",
"properties": {
"policyId": "291bba3f-e0a5-47bc-a099-3bdcb2a50a05",
"blockSubscriptionsLeavingTenant": true,
"blockSubscriptionsIntoTenant": true,
"exemptedPrincipals": [
"e879cf0f-2b4d-5431-109a-f72fc9868693",
"9792da87-c97b-410d-a97d-27021ba09ce6"
],
"tenantChangeAllowedTenants": [
"9dcb068b-4df9-4208-93e2-73a155dff345"
]
}
}
],
"nextLink": null
}
}
}
}
Loading
Loading