Skip to content

Commit

Permalink
add "x-ms-secret": true to secret field (Azure#16436)
Browse files Browse the repository at this point in the history
* add "x-ms-secret": true to secret field

* remove breaking change prop

* Update example

Co-authored-by: Nan Jiang <naji@microsoft.com>
  • Loading branch information
najian and Nan Jiang authored Oct 19, 2021
1 parent 3c16aae commit 01c6e5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
"authInfo": {
"authType": "servicePrincipalSecret",
"clientId": "name",
"principalId": "id",
"secret": "secret"
"principalId": "id"
},
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
}
Expand All @@ -41,8 +40,7 @@
"authInfo": {
"authType": "servicePrincipalSecret",
"clientId": "name",
"principalId": "id",
"secret": "secret"
"principalId": "id"
},
"targetId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test-rg/providers/Microsoft.DocumentDb/databaseAccounts/test-acc/mongodbDatabases/test-db"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,8 @@
},
"secret": {
"description": "Secret for servicePrincipal auth.",
"type": "string"
"type": "string",
"x-ms-secret": true
}
},
"required": [
Expand Down Expand Up @@ -514,7 +515,8 @@
},
"certificate": {
"description": "ServicePrincipal certificate for servicePrincipal auth.",
"type": "string"
"type": "string",
"x-ms-secret": true
}
},
"required": [
Expand Down

0 comments on commit 01c6e5b

Please sign in to comment.