-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
service bus and blob container snippets (#1416)
* Add service bus snippets * remove 'other' from choices Co-authored-by: Stephen Weatherford <[email protected]>
- Loading branch information
1 parent
d49ec8a
commit f96958b
Showing
9 changed files
with
223 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"metadata": { | ||
"prefix": "arm-servicebus-namespace", | ||
"description": "ServiceBus Namespace" | ||
}, | ||
"resources": [ | ||
{ | ||
"name": "${1:serviceBusNamespace1}", | ||
"type": "Microsoft.ServiceBus/namespaces", | ||
"apiVersion": "2021-01-01-preview", | ||
"location": /*${2|[parameters('location')],[resourceGroup().location]|}*/ "location", | ||
"sku": { | ||
"name": "Standard" | ||
}, | ||
"properties": { | ||
} | ||
} | ||
] | ||
} |
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,31 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"metadata": { | ||
"prefix": "arm-servicebus-queue", | ||
"description": "ServiceBus Queue" | ||
}, | ||
"resources": [ | ||
{ | ||
"name": "${1:serviceBusNamespace1}/${2:serviceBusQueue1}", | ||
"type": "Microsoft.ServiceBus/namespaces/queues", | ||
"apiVersion": "2021-01-01-preview", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.ServiceBus/namespaces', '${2:serviceBusQueue1}')]" | ||
], | ||
"properties": { | ||
"lockDuration": "${3|PT5M,PT30S|}", | ||
"maxSizeInMegabytes": 1024, | ||
"requiresDuplicateDetection": false, | ||
"requiresSession": false, | ||
"defaultMessageTimeToLive": "${4|P14D,PT10M,P10675199DT2H48M5.4775807S|}", | ||
"deadLetteringOnMessageExpiration": false, | ||
"duplicateDetectionHistoryTimeWindow": "PT10M", | ||
"maxDeliveryCount": 10, | ||
"autoDeleteOnIdle": "P10675199DT2H48M5.4775807S", | ||
"enablePartitioning": false, | ||
"enableExpress": false | ||
} | ||
} | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
assets/resourceSnippets/Storage Blob Container.snippet.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,21 @@ | ||
{ | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"metadata": { | ||
"prefix": "arm-storage-blob-container", | ||
"description": "Storage Blob Container" | ||
}, | ||
"resources": [ | ||
{ | ||
"name": "${1:accountName}/default/${2:blobContainerName}", | ||
"type": "Microsoft.Storage/storageAccounts/blobServices/containers", | ||
"apiVersion": "2021-04-01", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Storage/storageAccounts', '${1:accountName}')]" | ||
], | ||
"properties": { | ||
"publicAccess": "None" | ||
} | ||
} | ||
] | ||
} |
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
36 changes: 36 additions & 0 deletions
36
test/snippets/expected/ServiceBus Namespace.snippetresult.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,36 @@ | ||
{ | ||
"resources": [ | ||
{ | ||
"name": "serviceBusNamespace1", | ||
"type": "Microsoft.ServiceBus/namespaces", | ||
"apiVersion": "2021-01-01-preview", | ||
"location": "[parameters('location')]", | ||
"sku": { | ||
"name": "Standard" | ||
}, | ||
"properties": {} | ||
} | ||
], | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"variables": { | ||
//Insert here: variable | ||
}, | ||
"parameters": { | ||
"location": { | ||
"type": "string" | ||
} | ||
//Insert here: parameter | ||
}, | ||
"outputs": { | ||
//Insert here: output | ||
}, | ||
"functions": [ | ||
{ | ||
"namespace": "udf", | ||
"members": { | ||
//Insert here: user function | ||
} | ||
} | ||
] | ||
} |
44 changes: 44 additions & 0 deletions
44
test/snippets/expected/ServiceBus Queue.snippetresult.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,44 @@ | ||
{ | ||
"resources": [ | ||
{ | ||
"name": "serviceBusNamespace1/serviceBusQueue1", | ||
"type": "Microsoft.ServiceBus/namespaces/queues", | ||
"apiVersion": "2021-01-01-preview", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.ServiceBus/namespaces', 'serviceBusQueue1')]" | ||
], | ||
"properties": { | ||
"lockDuration": "PT5M", | ||
"maxSizeInMegabytes": 1024, | ||
"requiresDuplicateDetection": false, | ||
"requiresSession": false, | ||
"defaultMessageTimeToLive": "P14D", | ||
"deadLetteringOnMessageExpiration": false, | ||
"duplicateDetectionHistoryTimeWindow": "PT10M", | ||
"maxDeliveryCount": 10, | ||
"autoDeleteOnIdle": "P10675199DT2H48M5.4775807S", | ||
"enablePartitioning": false, | ||
"enableExpress": false | ||
} | ||
} | ||
], | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"variables": { | ||
//Insert here: variable | ||
}, | ||
"parameters": { | ||
//Insert here: parameter | ||
}, | ||
"outputs": { | ||
//Insert here: output | ||
}, | ||
"functions": [ | ||
{ | ||
"namespace": "udf", | ||
"members": { | ||
//Insert here: user function | ||
} | ||
} | ||
] | ||
} |
34 changes: 34 additions & 0 deletions
34
test/snippets/expected/Storage Blob Container.snippetresult.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 @@ | ||
{ | ||
"resources": [ | ||
{ | ||
"name": "accountName/default/blobContainerName", | ||
"type": "Microsoft.Storage/storageAccounts/blobServices/containers", | ||
"apiVersion": "2021-04-01", | ||
"dependsOn": [ | ||
"[resourceId('Microsoft.Storage/storageAccounts', 'accountName')]" | ||
], | ||
"properties": { | ||
"publicAccess": "None" | ||
} | ||
} | ||
], | ||
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", | ||
"contentVersion": "1.0.0.0", | ||
"variables": { | ||
//Insert here: variable | ||
}, | ||
"parameters": { | ||
//Insert here: parameter | ||
}, | ||
"outputs": { | ||
//Insert here: output | ||
}, | ||
"functions": [ | ||
{ | ||
"namespace": "udf", | ||
"members": { | ||
//Insert here: user function | ||
} | ||
} | ||
] | ||
} |