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
# The name of the pipeline, including the date and a revision number | |
name: copa_$(Date:yyyyMMdd)_$(Rev:r) | |
# This pipeline is not triggered automatically by any event | |
trigger: none | |
# This pipeline is not triggered automatically by any pull request | |
pr: none | |
# Parameters for the pipeline |
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
// Define the location parameter for all resources | |
@description('Location for all resources.') | |
param location string = resourceGroup().location | |
// Define the parameter for the Storage account name | |
@description('The name of the Storage account.') | |
param stgaccountname string | |
// Define the parameter for the public access setting of the Storage account | |
@description('Sets the public access of the storage account.') |
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
# Define the pipeline name and trigger | |
name: Azure Image Builder - Build and Publish Image Template | |
trigger: | |
- main | |
# Define pipeline variables | |
variables: | |
serviceconnection: azserviceconnections | |
overwrite: false |
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
// Define the parameter for the Storage account name | |
@description('The name of the Storage account.') | |
param stgaccountname string | |
// Get the environment-specific metadata | |
var environmentMetadata = environment() | |
// Define the customizations for the image | |
var customizations = [ | |
// Create a apps directory on the OS drive |
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
// Define parameters for the Bicep template | |
param location string = resourceGroup().location | |
param imagetemplatename string | |
param azComputeGalleryName string = 'myGallery' | |
@description('The name of the Storage account.') | |
param stgaccountname string | |
param azUserAssignedManagedIdentity string = 'useri' | |
// Define the details for the VM offer | |
var vmOfferDetails = { |
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
trigger: | |
- main | |
pool: | |
name: containerapp-adoagent | |
jobs: | |
- job: Setup | |
displayName: Get Environment - Linux |
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
// Define parameters | |
// https://github.com/lukemurraynz/containerapps-selfhosted-agent | |
param location string = resourceGroup().location | |
@description('The location where the resources will be deployed. Based on the Resource Group location.') | |
param poolName string = 'containerapp-adoagent' | |
@description('The name of the Azure DevOps agent pool.') | |
@maxLength(50) | |
param containerregistryName string = 'adoregistry' | |
@description('The name of the Azure Container Registry.') | |
param adourl string = 'https://dev.azure.com/contoso' |
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
@description('Name of the virtual network.') | |
param vnetName string = 'myVnet' | |
@description('Name of the first subnet.') | |
param subnet1Name string = 'subnet1' | |
@description('Name of the second subnet.') | |
param subnet2Name string = 'subnet2' | |
@description('Name of the first network security group.') |
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 runbook deletes all resource groups under a management group except for the ones with a specific tag. | |
<# | |
.SYNOPSIS | |
Deletes all resource groups under a management group except for the ones with a specific tag. | |
.DESCRIPTION | |
This script deletes all resource groups under a specified management group except for the ones with a specific tag. It can also delete policy assignments and subscription role assignments if specified. | |
.PARAMETER ManagementGroupId | |
The ID of the management group to delete resource groups under. WARNING: This script will delete all resource groups under the specified management group except for the ones with the specified tag. Make sure you have specified the correct management group ID, or you may accidentally delete resources that you did not intend to delete. |
NewerOlder