Abstract the Postgres management client to allow both single and flexible server#1872
Conversation
|
The provisioning for flexible creates the server but then hits this issue-- |
|
Again for deleting single servers |
wwlorey
left a comment
There was a problem hiding this comment.
The provisioning for flexible creates the server but then hits this issue--
3:34:09 PM: Creating PostgreSQL Server "ant-flexi-2"... It should be ready in several minutes. 3:34:44 PM: Error: The resource type 'locations/azureAsyncOperation' could not be found in the namespace 'Microsoft.DBforPostgreSQL' for api version '2021-04-10-privatepreview'. The supported api-versions are '2017-12-01-preview,2017-12-01,2018-03-29-privatepreview,2020-10-05-privatepreview,2020-02-14-privatepreview,2020-02-14-preview,2020-11-05-preview'.
I'm running into this as well. Do you know if/when that api version will be supported?
src/postgres/commands/createPostgresServer/steps/PostgresServerSkuStep.ts
Show resolved
Hide resolved
src/postgres/commands/createPostgresServer/steps/PostgresServerNameStep.ts
Outdated
Show resolved
Hide resolved
src/postgres/commands/createPostgresServer/steps/PostgresServerSkuStep.ts
Show resolved
Hide resolved
|
@wwlorey updates completed from the review |
|
This looks good 👍👍 I'll wait until we hear back about the API problem before testing again & getting this merged |
There is an issue with the SDK release. I'm waiting for a patch and will update packages.json once it's done |
ejizba
left a comment
There was a problem hiding this comment.
Sorry for jumping in here a little late, but I think there's too much duplicated code inside AbstractPostgresClient and models.ts. We lose a bit of type safety and risk some silly copy/paste bugs. We should be able to leverage TypeScript features like union types more heavily to clean it up
src/postgres/commands/createPostgresServer/steps/PostgresServerNameStep.ts
Outdated
Show resolved
Hide resolved
@ejizba thanks for the feedback. My TS knowledge is still pretty basic. This PR is still blocked on an SDK patch so I'll work through your feedback and update this PR. |
src/postgres/commands/createPostgresServer/steps/PostgresServerNameStep.ts
Outdated
Show resolved
Hide resolved
src/postgres/commands/createPostgresServer/steps/PostgresServerSkuStep.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Eric Jizba <ejizba@gmail.com>
|
Blocked by pending update to Azure/azure-sdk-for-js#15979 |
|
Related Azure/azure-sdk-for-js#16136 |

Uh oh!
There was an error while loading. Please reload this page.