-
Notifications
You must be signed in to change notification settings - Fork 194
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into CacheUpdate-2023-01-21
- Loading branch information
Showing
13 changed files
with
533 additions
and
263 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...word-Textboxes-Must-Be-Used-For-Password-Parameters/Fail/NotSecureObject/azuredeploy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"location": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().location]", | ||
"metadata": { | ||
"description": "Location." | ||
} | ||
}, | ||
"certificates": { | ||
"type": "object", | ||
"defaultValue": [ | ||
{ | ||
"password": "password" | ||
} | ||
], | ||
"metadata": { | ||
"description": "Backend data." | ||
} | ||
} | ||
}, | ||
"variables": { | ||
}, | ||
"resources": [ | ||
], | ||
"outputs": { | ||
"location": { | ||
"type": "string", | ||
"value": "[parameters('location')]" | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...xtboxes-Must-Be-Used-For-Password-Parameters/Fail/NotSecureObject/createUiDefinition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#", | ||
"handler": "Microsoft.Azure.CreateUIDef", | ||
"version": "0.1.2-preview", | ||
"parameters": { | ||
"basics": [ | ||
{ | ||
"name": "settings", | ||
"label": "Settings", | ||
"bladeTitle": "Settings", | ||
"elements": [ | ||
{ | ||
"type": "Microsoft.Common.Section", | ||
"name": "section", | ||
"label": "Section Settings", | ||
"visible": "true", | ||
"elements": [ | ||
{ | ||
"type": "Microsoft.Common.PasswordBox", | ||
"name": "passwordBox", | ||
"label": { | ||
"password": "Password", | ||
"confirmPassword": "Confirm password" | ||
}, | ||
"toolTip": "Password for password box", | ||
"visible": true, | ||
"constraints": { | ||
"required": true, | ||
"regex": "^[\\S]{10,25}$", | ||
"validationMessage": "Password must be between 10 and 25 characters." | ||
}, | ||
"options": { | ||
"hideConfirmation": false | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"outputs": { | ||
"Location": "[location()]", | ||
"certificates": { | ||
"0": { | ||
"password": "[coalesce(steps('settings').section.passwordBox, 'NA')]" | ||
} | ||
} | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
...assword-Textboxes-Must-Be-Used-For-Password-Parameters/Pass/SecureObject/azuredeploy.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"location": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().location]", | ||
"metadata": { | ||
"description": "Location." | ||
} | ||
}, | ||
"certificates": { | ||
"type": "secureObject", | ||
"defaultValue": [ | ||
{ | ||
"password": "password" | ||
} | ||
], | ||
"metadata": { | ||
"description": "Backend data." | ||
} | ||
} | ||
}, | ||
"variables": { | ||
}, | ||
"resources": [ | ||
], | ||
"outputs": { | ||
"location": { | ||
"type": "string", | ||
"value": "[parameters('location')]" | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...-Textboxes-Must-Be-Used-For-Password-Parameters/Pass/SecureObject/createUiDefinition.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#", | ||
"handler": "Microsoft.Azure.CreateUIDef", | ||
"version": "0.1.2-preview", | ||
"parameters": { | ||
"basics": [ | ||
{ | ||
"name": "settings", | ||
"label": "Settings", | ||
"bladeTitle": "Settings", | ||
"elements": [ | ||
{ | ||
"type": "Microsoft.Common.Section", | ||
"name": "section", | ||
"label": "Section Settings", | ||
"visible": "true", | ||
"elements": [ | ||
{ | ||
"type": "Microsoft.Common.PasswordBox", | ||
"name": "passwordBox", | ||
"label": { | ||
"password": "Password", | ||
"confirmPassword": "Confirm password" | ||
}, | ||
"toolTip": "Password for password box", | ||
"visible": true, | ||
"constraints": { | ||
"required": true, | ||
"regex": "^[\\S]{10,25}$", | ||
"validationMessage": "Password must be between 10 and 25 characters." | ||
}, | ||
"options": { | ||
"hideConfirmation": false | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
], | ||
"outputs": { | ||
"Location": "[location()]", | ||
"certificates": { | ||
"0": { | ||
"password": "[coalesce(steps('settings').section.passwordBox, 'NA')]" | ||
} | ||
} | ||
} | ||
} | ||
} |
28 changes: 28 additions & 0 deletions
28
unit-tests/PasswordBoxes-Must-Have-Min-Length/Pass/Has-Regex-Constraint-With-FixLength.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#", | ||
"handler": "Microsoft.Compute.MultiVm", | ||
"version": "0.1.2-preview", | ||
"parameters": { | ||
"basics": [ | ||
{ | ||
"name": "dbAdminPassword", | ||
"type": "Microsoft.Common.PasswordBox", | ||
"label": { | ||
"password": "Password", | ||
"confirmPassword": "Confirm password" | ||
}, | ||
"toolTip": "Admin password for the database", | ||
"constraints": { | ||
"required": true, | ||
"regex": "^(?=.*[A-Z])(?=.*[a-z])(?=.*\\d)[A-Za-z\\d\\$\\&\\+\\,:\\=\\?@#|'.\\^\\*!\\-_~/'\\[\\]\\{\\}\"]{8,}$", | ||
"validationMessage": "The password must contain at least 8 characters, with at least 1 uppercase letter, 1 lowercase letter and 1 number, and special characters, but should not contain > < ( ) % ; \\." | ||
}, | ||
"options": { | ||
"hideConfirmation": false | ||
}, | ||
"visible": true | ||
} | ||
], | ||
"steps": [] | ||
} | ||
} |
Oops, something went wrong.