-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
2a9a23e
commit 65ac21d
Showing
11 changed files
with
193 additions
and
22 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
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
12 changes: 0 additions & 12 deletions
12
tests/PSRule.Rules.Azure.Tests/Resources.Cosmos.Parameters.2.json
This file was deleted.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
tests/PSRule.Rules.Azure.Tests/Resources.Cosmos.Parameters.2.jsonc
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,13 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"metadata": { | ||
"template": "./Resources.Cosmos.Template.json" | ||
}, | ||
"parameters": { | ||
// The account name of the CosmosDB account. | ||
"accountName": { | ||
"value": "gremlin-002" | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,105 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
"accountName": { | ||
"type": "string", | ||
"metadata": { | ||
"description": "The name of the Cosmos DB account." | ||
} | ||
}, | ||
"location": { | ||
"type": "string", | ||
"defaultValue": "[resourceGroup().location]", | ||
"metadata": { | ||
"description": "The location to deploy Azure resources.", | ||
"strongType": "location" | ||
} | ||
}, | ||
"disableKeyBasedMetadataWriteAccess": { | ||
"type": "bool", | ||
"defaultValue": false, | ||
"metadata": { | ||
"description": "When enabled, resource keys and tokens are limit from performing resource management operations." | ||
} | ||
} | ||
}, | ||
"resources": [ | ||
{ | ||
"comments": "A test Cosmos DB account.", | ||
"type": "Microsoft.DocumentDB/databaseAccounts", | ||
"apiVersion": "2021-04-15", | ||
"name": "[parameters('accountName')]", | ||
"location": "[parameters('location')]", | ||
"tags": { | ||
"defaultExperience": "Gremlin (graph)", | ||
"hidden-cosmos-mmspecial": "", | ||
"CosmosAccountType": "Production" | ||
}, | ||
"kind": "GlobalDocumentDB", | ||
"identity": { | ||
"type": "None" | ||
}, | ||
"properties": { | ||
"publicNetworkAccess": "Enabled", | ||
"enableAutomaticFailover": false, | ||
"enableMultipleWriteLocations": false, | ||
"isVirtualNetworkFilterEnabled": false, | ||
"virtualNetworkRules": [], | ||
"disableKeyBasedMetadataWriteAccess": "[parameters('disableKeyBasedMetadataWriteAccess')]", | ||
"enableFreeTier": false, | ||
"enableAnalyticalStorage": false, | ||
"databaseAccountOfferType": "Standard", | ||
"defaultIdentity": "FirstPartyIdentity", | ||
"networkAclBypass": "None", | ||
"consistencyPolicy": { | ||
"defaultConsistencyLevel": "Session", | ||
"maxIntervalInSeconds": 5, | ||
"maxStalenessPrefix": 100 | ||
}, | ||
"locations": [ | ||
{ | ||
"locationName": "region", | ||
"provisioningState": "Succeeded", | ||
"failoverPriority": 0, | ||
"isZoneRedundant": true | ||
} | ||
], | ||
"cors": [], | ||
"capabilities": [ | ||
{ | ||
"name": "EnableGremlin" | ||
}, | ||
{ | ||
"name": "EnableServerless" | ||
} | ||
], | ||
"ipRules": [ | ||
{ | ||
"ipAddressOrRange": "104.42.195.92" | ||
}, | ||
{ | ||
"ipAddressOrRange": "40.76.54.131" | ||
}, | ||
{ | ||
"ipAddressOrRange": "52.176.6.30" | ||
}, | ||
{ | ||
"ipAddressOrRange": "52.169.50.45" | ||
}, | ||
{ | ||
"ipAddressOrRange": "52.187.184.26" | ||
} | ||
], | ||
"backupPolicy": { | ||
"type": "Periodic", | ||
"periodicModeProperties": { | ||
"backupIntervalInMinutes": 240, | ||
"backupRetentionIntervalInHours": 8 | ||
} | ||
}, | ||
"networkAclBypassResourceIds": [] | ||
} | ||
} | ||
] | ||
} |
10 changes: 10 additions & 0 deletions
10
tests/PSRule.Rules.Azure.Tests/azuredeploy.parameters.jsonc
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,10 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#", | ||
"contentVersion": "1.0.0.0", | ||
"parameters": { | ||
// The account name of the CosmosDB account. | ||
"accountName": { | ||
"value": "gremlin-002" | ||
} | ||
} | ||
} |