Skip to content

Commit bb43ed1

Browse files
mjqinMengjun Qin
andauthored
Add custom domain configuration for managed environment (#20149)
Co-authored-by: Mengjun Qin <[email protected]>
1 parent baa9b05 commit bb43ed1

File tree

5 files changed

+113
-8
lines changed

5 files changed

+113
-8
lines changed

specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,53 @@
714714
}
715715
}
716716
},
717+
"CustomDomainConfiguration": {
718+
"type": "object",
719+
"description": "Configuration properties for apps environment custom domain",
720+
"properties": {
721+
"customDomainVerificationId": {
722+
"description": "Id used to verify domain name ownership",
723+
"type": "string",
724+
"readOnly": true
725+
},
726+
"dnsSuffix": {
727+
"type": "string",
728+
"description": "Dns suffix for the environment domain",
729+
"x-ms-mutability": [
730+
"create",
731+
"read"
732+
]
733+
},
734+
"certificateValue": {
735+
"format": "byte",
736+
"description": "PFX or PEM blob",
737+
"type": "string",
738+
"x-ms-secret": true
739+
},
740+
"certificatePassword": {
741+
"format": "byte",
742+
"description": "Certificate password",
743+
"type": "string",
744+
"x-ms-secret": true
745+
},
746+
"expirationDate": {
747+
"format": "date-time",
748+
"description": "Certificate expiration date.",
749+
"type": "string",
750+
"readOnly": true
751+
},
752+
"thumbprint": {
753+
"description": "Certificate thumbprint.",
754+
"type": "string",
755+
"readOnly": true
756+
},
757+
"subjectName": {
758+
"description": "Subject name of the certificate.",
759+
"type": "string",
760+
"readOnly": true
761+
}
762+
}
763+
},
717764
"ManagedEnvironment": {
718765
"description": "An environment for hosting container apps",
719766
"type": "object",
@@ -788,6 +835,10 @@
788835
"create",
789836
"read"
790837
]
838+
},
839+
"customDomainConfiguration": {
840+
"$ref": "#/definitions/CustomDomainConfiguration",
841+
"description": "Custom domain configuration for the environment"
791842
}
792843
},
793844
"x-ms-client-flatten": true

specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_CreateOrUpdate.json

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
"sharedKey": "string"
1515
}
1616
},
17-
"zoneRedundant": true
17+
"zoneRedundant": true,
18+
"customDomainConfiguration": {
19+
"dnsSuffix": "www.my-name.com",
20+
"certificateValue": "PFX-or-PEM-blob",
21+
"certificatePassword": "private key password"
22+
}
1823
}
1924
}
2025
},
@@ -35,7 +40,14 @@
3540
"customerId": "string"
3641
}
3742
},
38-
"zoneRedundant": true
43+
"zoneRedundant": true,
44+
"customDomainConfiguration": {
45+
"customDomainVerificationId": "custom domain verification id",
46+
"dnsSuffix": "www.my-name.com",
47+
"subjectName": "CN=www.my-name.com",
48+
"expirationDate": "2022-11-06T04:00:00Z",
49+
"thumbprint": "CERTIFICATE_THUMBPRINT"
50+
}
3951
}
4052
}
4153
},
@@ -55,7 +67,14 @@
5567
"customerId": "string"
5668
}
5769
},
58-
"zoneRedundant": true
70+
"zoneRedundant": true,
71+
"customDomainConfiguration": {
72+
"customDomainVerificationId": "custom domain verification id",
73+
"dnsSuffix": "www.my-name.com",
74+
"subjectName": "CN=www.my-name.com",
75+
"expirationDate": "2022-11-06T04:00:00Z",
76+
"thumbprint": "CERTIFICATE_THUMBPRINT"
77+
}
5978
}
6079
}
6180
}

specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_Get.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@
1818
"deploymentErrors": null,
1919
"defaultDomain": "jlaw-demo1.k4apps.io",
2020
"staticIp": "20.42.33.145",
21-
"zoneRedundant": true
21+
"zoneRedundant": true,
22+
"customDomainConfiguration": {
23+
"customDomainVerificationId": "custom domain verification id",
24+
"dnsSuffix": "www.my-name.com",
25+
"subjectName": "CN=www.my-name.com",
26+
"expirationDate": "2022-11-06T04:00:00Z",
27+
"thumbprint": "CERTIFICATE_THUMBPRINT"
28+
}
2229
}
2330
}
2431
}

specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListByResourceGroup.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@
2020
"defaultDomain": "jlaw-demo1.k4apps.io",
2121
"staticIp": "20.42.33.145",
2222
"appLogsConfiguration": null,
23-
"zoneRedundant": true
23+
"zoneRedundant": true,
24+
"customDomainConfiguration": {
25+
"customDomainVerificationId": "custom domain verification id",
26+
"dnsSuffix": "www.my-name.com",
27+
"subjectName": "CN=www.my-name.com",
28+
"expirationDate": "2022-11-06T04:00:00Z",
29+
"thumbprint": "CERTIFICATE_THUMBPRINT"
30+
}
2431
}
2532
},
2633
{
@@ -35,7 +42,14 @@
3542
"defaultDomain": "demo1.k4apps.io",
3643
"staticIp": "52.142.21.61",
3744
"appLogsConfiguration": null,
38-
"zoneRedundant": true
45+
"zoneRedundant": true,
46+
"customDomainConfiguration": {
47+
"customDomainVerificationId": "custom domain verification id",
48+
"dnsSuffix": "www.my-name2.com",
49+
"subjectName": "CN=www.my-name2.com",
50+
"expirationDate": "2022-11-06T04:00:00Z",
51+
"thumbprint": "CERTIFICATE_THUMBPRINT"
52+
}
3953
}
4054
}
4155
]

specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ManagedEnvironments_ListBySubscription.json

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@
1919
"defaultDomain": "jlaw-demo1.k4apps.io",
2020
"staticIp": "20.42.33.145",
2121
"appLogsConfiguration": null,
22-
"zoneRedundant": true
22+
"zoneRedundant": true,
23+
"customDomainConfiguration": {
24+
"customDomainVerificationId": "custom domain verification id",
25+
"dnsSuffix": "www.my-name.com",
26+
"subjectName": "CN=www.my-name.com",
27+
"expirationDate": "2022-11-06T04:00:00Z",
28+
"thumbprint": "CERTIFICATE_THUMBPRINT"
29+
}
2330
}
2431
},
2532
{
@@ -34,7 +41,14 @@
3441
"defaultDomain": "demo1.k4apps.io",
3542
"staticIp": "52.142.21.61",
3643
"appLogsConfiguration": null,
37-
"zoneRedundant": true
44+
"zoneRedundant": true,
45+
"customDomainConfiguration": {
46+
"customDomainVerificationId": "custom domain verification id",
47+
"dnsSuffix": "www.my-name2.com",
48+
"subjectName": "CN=www.my-name2.com",
49+
"expirationDate": "2022-11-06T04:00:00Z",
50+
"thumbprint": "CERTIFICATE_THUMBPRINT"
51+
}
3852
}
3953
}
4054
]

0 commit comments

Comments
 (0)