let part1 = "Just another"; let part2 = " Kusto hacker"; print result = strcat(part1, part2)
This file contains hidden or 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
resources | |
| where type =~ 'microsoft.hybridcompute/machines' or type =~ 'Microsoft.Compute/virtualMachines' | |
| extend TagsObject = parse_json(tags) // Parse the JSON string into a dynamic object | |
| project name, City = tostring(TagsObject.City), Environment = tostring(TagsObject.Environment) // Extract the City tag as a string | |
| summarize CityCount = count() by City // Group by City and count occurrences |
This file contains hidden or 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
resources | |
| where type =~ 'microsoft.hybridcompute/machines' or type =~ 'Microsoft.Compute/virtualMachines' | |
| extend TagsObject = parse_json(tags) // Parse the JSON string into a dynamic object | |
| project name, City = tostring(TagsObject.City), Environment = tostring(TagsObject.Environment) // Extract the City & Environment tags separately |
This file contains hidden or 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
resources | |
| where type =~ 'microsoft.hybridcompute/machines' or type =~'Microsoft.Compute/virtualMachines' | |
| project name, ['tags'] |
This file contains hidden or 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 ensures we have unique CAF compliant names for our resources. | |
module "naming" { | |
source = "Azure/naming/azurerm" | |
version = "0.3.0" | |
} | |
locals { | |
azure_regions = [ | |
"ukwest", | |
"westeurope", |
This file contains hidden or 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
## | |
# Variables | |
## | |
## | |
# Common Variables | |
## | |
variable "tag_environment" { | |
type = string | |
default = "Testing" |
This file contains hidden or 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
## | |
# Terraform Configuration | |
## | |
terraform { | |
required_version = ">= 1.10.0" | |
required_providers { | |
azurerm = { | |
source = "hashicorp/azurerm" | |
version = ">= 3.71, < 5.0.0" |
This file contains hidden or 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
resource "azurerm_netapp_account" "example" { | |
name = "example-netapp-account" | |
location = azurerm_resource_group.example.location | |
resource_group_name = azurerm_resource_group.example.name | |
} | |
resource "azurerm_netapp_pool" "example" { | |
name = "example-netapp-pool" | |
location = azurerm_resource_group.example.location | |
resource_group_name = azurerm_resource_group.example.name |
This file contains hidden or 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
resource "azurerm_resource_group" "example" { | |
name = "rg-example" | |
location = "UK South" | |
} | |
resource "azurerm_virtual_network" "example" { | |
name = "networking" | |
resource_group_name = azurerm_resource_group.example.name | |
location = azurerm_resource_group.example.location | |
address_space = ["10.0.0.0/16"] |
This file contains hidden or 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
trigger: | |
- main | |
pool: | |
vmImage: ubuntu-latest | |
steps: | |
- task: AzureCLI@2 | |
name: RunTerraform | |
inputs: | |
azureSubscription: INSERT NAME OF YOUR SERVICE CONNECTION # The name of your service connection goes here | |
scriptType: bash |
NewerOlder