Skip to content

Commit 99abf83

Browse files
committed
Add x-ms-secret for secret properties.
Removed secrets from examples
1 parent e8e3b59 commit 99abf83

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
lines changed

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

Lines changed: 16 additions & 8 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,7 +6140,8 @@
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": [
@@ -6159,7 +6166,8 @@
61596166
},
61606167
"accountKey": {
61616168
"type": "string",
6162-
"title": "The Azure Storage account key."
6169+
"title": "The Azure Storage account key.",
6170+
"x-ms-secret": true
61636171
},
61646172
"relativeMountPath": {
61656173
"type": "string",

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,

0 commit comments

Comments
 (0)