Skip to content

Commit 32111c4

Browse files
paterasMSFTdpwatrous
authored andcommitted
Batch 2022-10-01 control plane fix (Azure#21316)
* Revert removal of required properties. * Add x-ms-secret for secret properties. Removed secrets from examples * Fix model validation Co-authored-by: David Watrous <[email protected]>
1 parent 91368a9 commit 32111c4

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/BatchManagement.json

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3678,7 +3678,8 @@
36783678
"password": {
36793679
"type": "string",
36803680
"title": "The password to access the certificate's private key.",
3681-
"description": "This must not be specified if the certificate format is Cer."
3681+
"description": "This must not be specified if the certificate format is Cer.",
3682+
"x-ms-secret": true
36823683
}
36833684
},
36843685
"description": "Certificate properties for create operations",
@@ -4694,7 +4695,8 @@
46944695
},
46954696
"password": {
46964697
"type": "string",
4697-
"title": "The password to log into the registry server."
4698+
"title": "The password to log into the registry server.",
4699+
"x-ms-secret": true
46984700
},
46994701
"registryServer": {
47004702
"type": "string",
@@ -4996,7 +4998,8 @@
49964998
"sshPrivateKey": {
49974999
"type": "string",
49985000
"title": "The SSH private key for the user account.",
4999-
"description": "The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between nodes in a Linux pool when the pool's enableInterNodeCommunication property is true (it is ignored if enableInterNodeCommunication is false). It does this by placing the key pair into the user's .ssh directory. If not specified, password-less SSH is not configured between nodes (no modification of the user's .ssh directory is done)."
5001+
"description": "The private key must not be password protected. The private key is used to automatically configure asymmetric-key based authentication for SSH between nodes in a Linux pool when the pool's enableInterNodeCommunication property is true (it is ignored if enableInterNodeCommunication is false). It does this by placing the key pair into the user's .ssh directory. If not specified, password-less SSH is not configured between nodes (no modification of the user's .ssh directory is done).",
5002+
"x-ms-secret": true
50005003
}
50015004
},
50025005
"title": "Properties used to create a user account on a Linux node."
@@ -5039,7 +5042,8 @@
50395042
},
50405043
"password": {
50415044
"type": "string",
5042-
"title": "The password for the user account."
5045+
"title": "The password for the user account.",
5046+
"x-ms-secret": true
50435047
},
50445048
"elevationLevel": {
50455049
"title": "The elevation level of the user account.",
@@ -6057,12 +6061,14 @@
60576061
"accountKey": {
60586062
"type": "string",
60596063
"title": "The Azure Storage Account key.",
6060-
"description": "This property is mutually exclusive with both sasKey and identity; exactly one must be specified."
6064+
"description": "This property is mutually exclusive with both sasKey and identity; exactly one must be specified.",
6065+
"x-ms-secret": true
60616066
},
60626067
"sasKey": {
60636068
"type": "string",
60646069
"title": "The Azure Storage SAS token.",
6065-
"description": "This property is mutually exclusive with both accountKey and identity; exactly one must be specified."
6070+
"description": "This property is mutually exclusive with both accountKey and identity; exactly one must be specified.",
6071+
"x-ms-secret": true
60666072
},
60676073
"blobfuseOptions": {
60686074
"type": "string",
@@ -6134,10 +6140,12 @@
61346140
},
61356141
"password": {
61366142
"type": "string",
6137-
"title": "The password to use for authentication against the CIFS file system."
6143+
"title": "The password to use for authentication against the CIFS file system.",
6144+
"x-ms-secret": true
61386145
}
61396146
},
61406147
"required": [
6148+
"userName",
61416149
"source",
61426150
"password",
61436151
"relativeMountPath"
@@ -6158,7 +6166,8 @@
61586166
},
61596167
"accountKey": {
61606168
"type": "string",
6161-
"title": "The Azure Storage account key."
6169+
"title": "The Azure Storage account key.",
6170+
"x-ms-secret": true
61626171
},
61636172
"relativeMountPath": {
61646173
"type": "string",
@@ -6174,7 +6183,8 @@
61746183
"required": [
61756184
"accountName",
61766185
"azureFileUrl",
6177-
"relativeMountPath"
6186+
"relativeMountPath",
6187+
"accountKey"
61786188
],
61796189
"title": "Information used to connect to an Azure Fileshare."
61806190
},

specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolCreate_CloudServiceConfiguration.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,6 @@
192192
{
193193
"name": "username1",
194194
"elevationLevel": "Admin",
195-
"password": "Password",
196195
"linuxUserConfiguration": {
197196
"uid": 1234,
198197
"gid": 4567

specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolGet.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@
112112
"userAccounts": [
113113
{
114114
"name": "username1",
115-
"password": "password",
116115
"elevationLevel": "Admin",
117116
"linuxUserConfiguration": {
118117
"uid": 1234,

specification/batch/resource-manager/Microsoft.Batch/stable/2022-10-01/examples/PoolList.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@
110110
"userAccounts": [
111111
{
112112
"name": "username1",
113-
"password": "<ExamplePassword>",
114113
"elevationLevel": "Admin",
115114
"linuxUserConfiguration": {
116115
"uid": 1234,

0 commit comments

Comments
 (0)