Update subscription creation ARM API in Microsoft.Subscription RP#2535
Update subscription creation ARM API in Microsoft.Subscription RP#2535lmazuel merged 22 commits intoAzure:masterfrom
Conversation
Automation for azure-sdk-for-pythonA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-goA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
|
This is awaiting ARM feedback - please add the "WaitForARMFeedback" label to this PR. |
…ly handles the responses with location headers
| ] | ||
| } | ||
| }, | ||
| "/{scope}/providers/Microsoft.Subscription/createSubscription": { |
There was a problem hiding this comment.
Since there are only a few of these, please create an instance for each parent resource type.
There was a problem hiding this comment.
Following up offline on this. When we change the path to "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/providers/Microsoft.Subscription/createSubscription", autorest produces the following validation error:
ERROR (UniqueResourcePaths/R2059/RPCViolation): Multiple resource providers are not allowed in a single spec. More than one the resource paths were found: 'Microsoft.Subscription, Microsoft.Billing'.
| "items": { | ||
| "$ref": "#/definitions/AdPrincipal" | ||
| }, | ||
| "description": "The list of principals that should be granted Owner access on the subscription." |
There was a problem hiding this comment.
Please add to the description that the principals must be part of the same tenant.
Editing readme.md file and updating swagger path for Http Post
| @@ -0,0 +1,35 @@ | |||
| { | |||
| "parameters": { | |||
| "scope": "/providers/Microsoft.Billing/billingAccounts/a460e639-9c9b-4b58-9046-1120b22c7dc1/", | |||
There was a problem hiding this comment.
Please update the examples to reflect your latest change.
| @@ -0,0 +1,28 @@ | |||
| { | |||
There was a problem hiding this comment.
can we rename this file to "getSubscriptionOperations.json"? I think we'll also want to return (recently) completed operations for a better developer experience.
| "displayName": "Test Ea Azure Sub", | ||
| "owners": [ | ||
| { | ||
| "tenantId": "73f7ab6e-cfa0-42be-b506-be6e77c2700c", |
There was a problem hiding this comment.
Let's also change this to 05053bdf-7e6a-4f96-854f-1dae531c170b - we likely won't allow owners from different tenants to be assigned owner on the subscription.
wilcobmsft
left a comment
There was a problem hiding this comment.
Please make sure all checks are passing.
| "operationId": "SubscriptionOperations_List", | ||
| "x-ms-examples": { | ||
| "getPendingSubscriptionOperations": { | ||
| "$ref": "./examples/getPendingSubscriptionOperations.json" |
There was a problem hiding this comment.
rename to getSubscriptionOperations (both file reference and the example name)
|
I see that there hasn't been any activity on this PR for a week. Is this PR still valid? |
Automation for azure-sdk-for-nodeNothing to generate for azure-sdk-for-node |
| @@ -0,0 +1,35 @@ | |||
| { | |||
| "parameters": { | |||
| "billingAccountName": "73f8ab6e-cfa0-42be-b886-be6e77c2980c", | |||
| { | ||
| "name": "enrollmentAccountName", | ||
| "in": "path", | ||
| "description": "The name of the billing account to which the subscription will be billed.", |
There was a problem hiding this comment.
"The name of the enrollment account ..."
|
@AutorestCI rebuild azure-sdk-for-go |
1 similar comment
|
@AutorestCI rebuild azure-sdk-for-go |
…oft.Subscriptions swagger so that --package-all-subscriptions tag can produce a single package
| @@ -0,0 +1,312 @@ | |||
| { | |||
There was a problem hiding this comment.
Rename file to "subscriptions.json" to be consistent with the (existing) stable version.
| "swagger": "2.0", | ||
| "info": { | ||
| "version": "2018-03-01-preview", | ||
| "title": "SubscriptionManagementClient", |
There was a problem hiding this comment.
Change to "SubscriptionClient" for consistency with the stable version.
| "info": { | ||
| "version": "2018-03-01-preview", | ||
| "title": "SubscriptionManagementClient", | ||
| "description": "Subscription management client provides an interface to create and manage Azure subscriptions programmatically." |
There was a problem hiding this comment.
Merge with the description of the stable version. Drop the term "management client".
…h the Microsoft.Resources swagger
|
@AutorestCI regenerate azure-sdk-for-go |
Adding swagger and examples for Partner center resource provider.
This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information
api-versionin the path should match theapi-versionin the spec).Quality of Swagger