|
11 | 11 | from azure.cli.core.aaz import * |
12 | 12 |
|
13 | 13 |
|
| 14 | +@register_command( |
| 15 | + "neon create", |
| 16 | + ) |
14 | 17 | class Create(AAZCommand): |
15 | 18 | """Create a Neon organization |
16 | 19 |
|
17 | | - :example: Organizations_CreateOrUpdate |
18 | | - az neon postgres create --resource-group demoResourceGroup --name demoNeonResource --location eastus --subscription 12345678-1234-1234-1234-123456789abc --marketplace-details "{subscription-id:abcd1234-5678-90ab-cdef-12345678abcd,subscription-status:PendingFulfillmentStart,offer-details:{publisher-id:microsoft,offer-id:neon-postgres,plan-id:serverless-plan,plan-name:'Neon Serverless Postgres - Free (Test_Liftr)',term-unit:P1M,term-id:term1234}}" --user-details "{first-name:John,last-name:Doe,email-address:johndoe@example.com,upn:johndoe,phone-number:+1234567890}" --company-details "{company-name:'DemoCompany',country:USA,business-phone:+9876543210,office-address:'123 Azure Ave, Redmond, WA',domain:democompany.com,number-of-employees:1000}" --partner-organization-properties "{organization-id:org-5678,org-name:'PartnerOrg',single-sign-on-properties:{single-sign-on-state:Enable,enterprise-app-id:app-9876,single-sign-on-url:'https://sso.partnerorg.com',aad-domains:['partnerorg.com']}}" |
| 20 | + :example: Create Neon Organization (Shortcut) |
| 21 | + az neon create --resource-group myResourceGroup --name myNeonOrg --location eastus --subscription 12345678-1234-1234-1234-123456789abc --marketplace-details "{subscription-id:abcd1234-5678-90ab-cdef-12345678abcd,subscription-status:Subscribed,offer-details:{publisher-id:neon1722366567200,offer-id:neon_serverless_postgres_azure_prod,plan-id:neon_serverless_postgres_azure_prod_free,plan-name:'Free Plan',term-unit:P1M,term-id:term1234}}" --user-details "{first-name:John,last-name:Doe,email-address:johndoe@example.com,upn:johndoe,phone-number:+1234567890}" --company-details "{company-name:'DemoCompany',country:USA,business-phone:+9876543210,office-address:'123 Azure Ave, Redmond, WA',domain:democompany.com,number-of-employees:1000}" --partner-organization-properties "{organization-id:org-5678,org-name:'PartnerOrg',single-sign-on-properties:{single-sign-on-state:Enable,enterprise-app-id:app-9876,single-sign-on-url:'https://sso.partnerorg.com',aad-domains:['partnerorg.com']}}" |
19 | 22 | """ |
20 | 23 |
|
21 | 24 | _aaz_info = { |
22 | | - "version": "2024-08-01-preview", |
| 25 | + "version": "2025-03-01", |
23 | 26 | "resources": [ |
24 | | - ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/neon.postgres/organizations/{}", "2024-08-01-preview"], |
| 27 | + ["mgmt-plane", "/subscriptions/{}/resourcegroups/{}/providers/neon.postgres/organizations/{}", "2025-03-01"], |
25 | 28 | ] |
26 | 29 | } |
27 | 30 |
|
@@ -120,7 +123,7 @@ def _build_arguments_schema(cls, *args, **kwargs): |
120 | 123 | marketplace_details.subscription_status = AAZStrArg( |
121 | 124 | options=["subscription-status"], |
122 | 125 | help="Marketplace subscription status", |
123 | | - enum={"PendingFulfillmentStart": "PendingFulfillmentStart", "Subscribed": "Subscribed", "Suspended": "Suspended", "Unsubscribed": "Unsubscribed"}, |
| 126 | + enum={"Subscribed": "Subscribed", "Subscribed": "Subscribed", "Suspended": "Suspended", "Unsubscribed": "Unsubscribed"}, |
124 | 127 | ) |
125 | 128 |
|
126 | 129 | offer_details = cls._args_schema.marketplace_details.offer_details |
@@ -321,7 +324,7 @@ def url_parameters(self): |
321 | 324 | def query_parameters(self): |
322 | 325 | parameters = { |
323 | 326 | **self.serialize_query_param( |
324 | | - "api-version", "2024-08-01-preview", |
| 327 | + "api-version", "2025-03-01", |
325 | 328 | required=True, |
326 | 329 | ), |
327 | 330 | } |
|
0 commit comments