Code Snippets Bicep

Short texts Bicep 🧑‍💻 Code snippets Bicep ✍️ Reading lists Bicep 👀

Azure Bicep

‎‎​ ‎‎​ param productName string param environmentName string resource appInsights ‘Microsoft.Insights/[email protected]’ = { name: ‘${productName}-insights-${environmentName}’ location: resourceGroup().location kind: ‘web’ properties: { Application_Type: ‘web’ WorkspaceResourceId: logAnalyticsWorkspace.id } tags: { ‘environment’: environmentName } } resource logAnalyticsWorkspace ‘Microsoft.OperationalInsights/[email protected]’ = { name: ‘${productName}-log-analytics-${environmentName}’ location: resourceGroup().location properties: { sku: { name: ‘PerGB2018’ } retentionInDays: 120 } tags: { ‘environment’: environmentName […]

deploy-log-analytics-sentinel

param workspaceName string = ‘azinsider’ param location string = resourceGroup().location resource workspace ‘Microsoft.OperationalInsights/[email protected]’ = { name: workspaceName location: location properties: { retentionInDays: 30 sku: { name: ‘PerGB2018’ } } } resource solution ‘Microsoft.OperationsManagement/[email protected]’ = { name: ‘SecurityInsights(${workspace.name})’ location: location properties: { workspaceResourceId: workspace.id } plan: { name: ‘SecurityInsights(${workspace.name})’ product: ‘OMSGallery/SecurityInsights’ publisher: ‘Microsoft’ promotionCode: ” } […]

create-azure-machine-learning-workspace-with-datastores

@description(‘Specifies name of workspace to create in Azure Machine Learning workspace.’) param workspaceName string @description(‘Specifies the location for all resources.’) param location string = ‘eastus’ @description(‘Specifies the number of datastores to be created.’) param datastoreCount int = 2 @description(‘The name for the storage account to created and associated with the workspace.’) param storageAccountName string = […]