-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #744 from psah434/pallavisah/passwordbox
Pallavisah/passwordbox
- Loading branch information
Showing
5 changed files
with
181 additions
and
4 deletions.
There are no files selected for viewing
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')]" | ||
} | ||
} | ||
} | ||
} | ||
} |