-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
168 additions
and
19 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
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
50 changes: 50 additions & 0 deletions
50
src/Analyzer.PowerShellRuleEngine.UnitTests/templates/templateWithDefaultLocation.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/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"location": { | ||
"type": "string", | ||
"defaultValue": "southcentralus", | ||
"metadata": { | ||
"description": "Location for all resources." | ||
} | ||
}, | ||
"managedIdentityName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Specifies managed identity name" | ||
} | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"apiVersion": "2019-08-01", | ||
"type": "Microsoft.Web/sites", | ||
"kind": "functionapp", | ||
"name": "functionAppKind", | ||
"location": "[parameters('location')]", | ||
"properties": { | ||
"httpsOnly": true, | ||
"siteConfig": { | ||
"detailedErrorLoggingEnabled": false, | ||
"ftpsState": "Disabled", | ||
"httpLoggingEnabled": false, | ||
"minTlsVersion": "1.2", | ||
"requestTracingEnabled": false | ||
} | ||
}, | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', parameters('managedIdentityName'))]": {} | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "Microsoft.ManagedIdentity/userAssignedIdentities", | ||
"apiVersion": "2018-11-30", | ||
"name": "[parameters('managedIdentityName')]", | ||
"location": "[parameters('location')]" | ||
} | ||
] | ||
} |
43 changes: 43 additions & 0 deletions
43
src/Analyzer.PowerShellRuleEngine.UnitTests/templates/templateWithHardcodedLocation.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,43 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"managedIdentityName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "Specifies managed identity name" | ||
} | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"apiVersion": "2019-08-01", | ||
"type": "Microsoft.Web/sites", | ||
"kind": "functionapp", | ||
"name": "functionAppKind", | ||
"location": "southcentralus", | ||
"properties": { | ||
"httpsOnly": true, | ||
"siteConfig": { | ||
"detailedErrorLoggingEnabled": false, | ||
"ftpsState": "Disabled", | ||
"httpLoggingEnabled": false, | ||
"minTlsVersion": "1.2", | ||
"requestTracingEnabled": false | ||
} | ||
}, | ||
"identity": { | ||
"type": "UserAssigned", | ||
"userAssignedIdentities": { | ||
"[resourceId('Microsoft.ManagedIdentity/userAssignedIdentities', parameters('managedIdentityName'))]": {} | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "Microsoft.ManagedIdentity/userAssignedIdentities", | ||
"apiVersion": "2018-11-30", | ||
"name": "[parameters('managedIdentityName')]", | ||
"location": "southcentralus" | ||
} | ||
] | ||
} |
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