Use this prompt when you are preparing a discrete task (e.g., housekeeping, investigation, documentation) that should be tracked in Azure DevOps.
## Defaults enforced for every task
- Organization: <YourADOOrgName>
- Project: <Your ADO Project Name>
- Work Item Type: Task
- Activity: Development (default, can be overridden based on context)
- Tags: ai-generated; updated-by-agent (no additional 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
| using './main.bicep' | |
| param parLocation = 'uksouth' | |
| param parResourceGroupName = 'rg-hub-dev' | |
| param parVirtualNetworkName = 'vnet-hub-dev' | |
| param parAddressSpace = '10.0.0.0/24' | |
| param parSubnetCidr = 26 | |
| param parSubnetCount = 1 |
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
| targetScope = 'subscription' | |
| param parLocation string | |
| param parResourceGroupName string | |
| param parVirtualNetworkName string | |
| param parAddressSpace string | |
| param parSubnetCidr int | |
| param parSubnetCount int | |
| var varSubnets = [ | |
| for i in range(0, parSubnetCount): { | |
| name: 'subnet-${i}' |
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
| # Set variables | |
| SUBSCRIPTION_ID="<YOUR_APP_SUBSCRIPTION_ID>" | |
| HUB_SUBSCRIPTION_ID="<YOUR_HUB_SUBSCRIPTION_ID>" | |
| HUB_RG="<YOUR_HUB_RG>" | |
| APP_NAME="<YOUR_APP_REG_NAME>" | |
| GITHUB_ORG="<YOUR_GITHUB_NAME>" | |
| GITHUB_REPO="<YOUR_GITHUB_REPO>" | |
| # Create Azure AD application and service principal | |
| APP_ID=$(az ad app create --display-name "$APP_NAME" --query appId -o tsv) |
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
| # Connect to Azure - Authentication handled automatically by AzurePowerShell task | |
| $azResourceModule = Get-module -Name Az.Resources | |
| if ($azResourceModule -eq $null) { | |
| Install-Module -Name Az.Resources -Repository PSGallery -Force | |
| } | |
| $azAccountModule = Get-module -Name Az.Accounts | |
| if ($azAccountModule -eq $null) { | |
| Install-Module -Name Az.Accounts -Repository PSGallery -Force |
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
| # Azure DevOps Pipeline to update Azure roles nightly | |
| # Runs the create-azureroles.ps1 script to check for new Azure roles and create PRs | |
| trigger: none # Disable CI triggers since this runs on schedule | |
| schedules: | |
| - cron: "0 0 * * *" # Run at midnight UTC every night | |
| displayName: 'Nightly Azure Roles Update' | |
| branches: | |
| include: |
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
| { | |
| "openapi": "3.0.1", | |
| "info": { | |
| "version": "1.0.0", | |
| "title": "Companies House Public Data API", | |
| "description": "An API suite providing read only access to search and retrieve public company data", | |
| "contact": { | |
| "name": "Companies House API Support", | |
| "url": "https://developer.company-information.service.gov.uk/", | |
| "email": "api@companieshouse.gov.uk" |
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
| using 'main.bicep' | |
| param location = 'uksouth' | |
| param tags = { | |
| Environment: 'demo' | |
| Project: 'Deployment Stacks' | |
| 'hidden-title': 'Managed' | |
| } | |
| param vnetAddressPrefix = [ | |
| '10.0.0.0/24' |
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
| // az stack sub create --name 'az-stack-uks-demo' --location 'uksouth' --template-file 'main.bicep' --parameters 'main.bicepparam' --action-on-unmanage 'deleteResources' --deny-settings-mode 'denyWriteAndDelete' --deny-settings-apply-to-child-scopes --deny-settings-excluded-principals ' | |
| targetScope = 'subscription' | |
| // Metadata | |
| metadata name = 'Deployment Stacks' | |
| metadata description = 'Zero to Hero - Bicep with Deployment Stacks' | |
| metadata owner = 'dan@rios.engineer' | |
| // MARK: Parameters |
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
| # Entra API resource URI | |
| $resource = "api://YOUR_URI" | |
| $endpoint = $env:IDENTITY_ENDPOINT | |
| $header = $env:IDENTITY_HEADER | |
| $apiVersion = "2019-08-01" | |
| $headers = @{ | |
| 'X-Identity-Header' = $header | |
| 'Content-Type' = 'application/x-www-form-urlencoded' |
NewerOlder