Skip to content

Commit

Permalink
add "x-ms-secret": true for protectedSettings. (#3854)
Browse files Browse the repository at this point in the history
* add "x-ms-secret": true for protectedSettings.

* remove protectedSettings from response models.
  • Loading branch information
aronip authored May 24, 2021
1 parent 2436dfa commit 02aec3c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4844,7 +4844,8 @@
},
"protectedSettings": {
"type": "object",
"description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all."
"description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.",
"x-ms-secret": true
},
"provisioningState": {
"readOnly": true,
Expand Down Expand Up @@ -4890,7 +4891,8 @@
},
"protectedSettings": {
"type": "object",
"description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all."
"description": "The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.",
"x-ms-secret": true
}
},
"description": "Describes the properties of a Machine Extension."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"typeHandlerVersion": "1.10.3",
"autoUpgradeMinorVersion": false,
"settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"}",
"protectedSettings": {},
"provisioningState": "Succeeded",
"instanceView": {
"name": "CustomScriptExtension",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"typeHandlerVersion": "1.10.3",
"autoUpgradeMinorVersion": false,
"settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -gt 10000 }\"}",
"protectedSettings": {},
"provisioningState": "Succeeded",
"instanceView": {
"name": "CustomScriptExtension",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"typeHandlerVersion": "1.10.3",
"autoUpgradeMinorVersion": false,
"settings": "@{commandToExecute=powershell.exe -c \"Get-Process | Where-Object { $_.CPU -lt 100 }\"}",
"protectedSettings": {},
"provisioningState": "Succeeded",
"instanceView": {
"name": "CustomScriptExtension",
Expand Down

0 comments on commit 02aec3c

Please sign in to comment.