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
owner="meow" | |
# Search for VMs by tag and output ID in a list | |
az vm list --query "[?tags.owner=='${owner}'].id" --output tsv | |
# Get children of mgmt group | |
az account management-group show --name "internal" --expand --query "children[].name" | |
az aks list --subscription opaopaopa --query "[].{Cluster:name, Power:powerState.code, Status:provisioningState}" --output table |
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
resource "azurerm_subnet_network_security_group_association" "bastion-to-vm" { | |
subnet_id = azurerm_subnet.this.id | |
network_security_group_id = azurerm_network_security_group.bastion_to_pipelines.id | |
} | |
resource "azurerm_network_security_group" "bastion_to_pipelines" { | |
name = "vm-nsg" | |
location = azurerm_resource_group.this.location | |
resource_group_name = azurerm_resource_group.this.name |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: azcli-delete-me | |
spec: | |
containers: | |
- name: azcli | |
image: mcr.microsoft.com/azure-cli | |
# Just spin & wait forever | |
command: [ "/bin/bash", "-c", "--" ] |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: simpserver | |
spec: | |
containers: | |
- name: simpserver | |
image: python:3.10 | |
command: ["python3"] | |
args: ["-m", "http.server", "8080"] |
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
- job: jobRunTestsuites | |
container: golang:1.15-buster | |
displayName: "Run Testsuites" | |
steps: | |
- task: Bash@3 | |
displayName: "Go | Test and handle test cov" | |
inputs: | |
targetType: inline | |
workingDirectory: "$(System.DefaultWorkingDirectory)" | |
script: | |
NewerOlder