|
18 | 18 | ## |
19 | 19 | ## NOTE: If you don't need to overwrite a shared value, you can IGNORE this section |
20 | 20 | ## |
21 | | -## |==================================================================================================================================================================================================================| |
22 | | -## | Parameter | Default Value | Description | Example | |
23 | | -## |---------------------------------|--------------------------------------|-----------------------------------------------------------------------------------------------------|-----------------------------------| |
24 | | -## | displayName | 'Publish module' | Name for the pipeline job | 'Publish KeyVault' | |
25 | | -## | serviceConnection | '$(serviceConnection)' | The service connection that connects to Azure | 'demo-internal' | |
26 | | -## | poolName | '$(poolName)' | You can provide either a [poolname] or [vmImage] to run the job on | 'Custom Deployment Pool' | |
27 | | -## | vmImage | '$(vmImage)' | You can provide either a [poolname] or [vmImage] to run the job on | 'ubuntu20.04' | |
28 | | -## | defaultJobTimeoutInMinutes | 120 | The timeout for the job in this pipeline | 120 | |
29 | | -## | versionOption | '$(versionOption)' | The mode to handle the version increments [major|minor|patch|custom]. | 'patch' | |
30 | | -## | moduleVersion | '$(moduleVersion)' | The version to enforce if [versionOption] is set to [custom] | '1.0.0' | |
31 | | -## | modulePath | '$(modulePath)' | The path to the module to deploy. E.g. [c:/KeyVault] | 'c:/KeyVault' | |
32 | | -## | templateSpecsRGName | '$(templateSpecsRGName)' | Required to publish to template spec. ResourceGroup of the template spec to publish to | 'mgmt-rg' | |
33 | | -## | templateSpecsRGLocation | '$(templateSpecsRGLocation)' | Required to publish to template spec. Location of the template spec resource group | 'West Europe' | |
34 | | -## | templateSpecsDescription | '$(templateSpecsDescription)' | Required to publish to template spec. Description of the template spec to publish to | 'IaCs module' | |
35 | | -## | vstsFeedName | '$(vstsFeedName)' | Required to publish to a DevOps feed. Name to the feed to publish to. | 'modules' | |
36 | | -## | vstsProject | '$(System.TeamProject)' | Required to publish to a DevOps feed. Name of the project hosting the artifacts feed. May be empty. | 'iacs' | |
37 | | -## | bicepRegistryName | '$(bicepRegistryName)' | Required to publish to the private bicep registry. Name of the hosting container registry | 'adpsxxazacrx001' | |
38 | | -## | bicepRegistryRGName | '$(bicepRegistryRGName)' | Required to publish to the private bicep registry. Resource group of the hosting container registry | 'artifacts-rg' | |
39 | | -## | vstsOrganization | '$(vstsOrganization)' | Required to publish to a DevOps feed. Name of the organization hosting the artifacts feed. | 'servicescode' | |
40 | | -## | azurePowerShellVersion | '$(azurePowerShellVersion)' | Used for configuring the Azure PowerShell Version, one of the example values. | 'latestVersion' or 'OtherVersion' | |
41 | | -## | preferredAzurePowerShellVersion | '$(preferredAzurePowerShellVersion)' | Used for configuring the Azure PowerShell Version, either an empty string or specific version. | '4.4.0' | |
42 | | -## |==================================================================================================================================================================================================================| |
| 21 | +## |======================================================================================================================================================================================================================| |
| 22 | +## | Parameter | Default Value | Description | Example | |
| 23 | +## |---------------------------------|--------------------------------------|---------------------------------------------------------------------------------------------------------|-----------------------------------| |
| 24 | +## | displayName | 'Publish module' | Name for the pipeline job | 'Publish KeyVault' | |
| 25 | +## | serviceConnection | '$(serviceConnection)' | The service connection that connects to Azure | 'demo-internal' | |
| 26 | +## | poolName | '$(poolName)' | You can provide either a [poolname] or [vmImage] to run the job on | 'Custom Deployment Pool' | |
| 27 | +## | vmImage | '$(vmImage)' | You can provide either a [poolname] or [vmImage] to run the job on | 'ubuntu20.04' | |
| 28 | +## | defaultJobTimeoutInMinutes | 120 | The timeout for the job in this pipeline | 120 | |
| 29 | +## | versionOption | '$(versionOption)' | The mode to handle the version increments [major|minor|patch|custom]. | 'patch' | |
| 30 | +## | moduleVersion | '$(moduleVersion)' | The version to enforce if [versionOption] is set to [custom] | '1.0.0' | |
| 31 | +## | modulePath | '$(modulePath)' | The path to the module to deploy. E.g. [c:/KeyVault] | 'c:/KeyVault' | |
| 32 | +## | templateSpecsRGName | '$(templateSpecsRGName)' | Required to publish to template spec. ResourceGroup of the template spec to publish to | 'mgmt-rg' | |
| 33 | +## | templateSpecsRGLocation | '$(templateSpecsRGLocation)' | Required to publish to template spec. Location of the template spec resource group | 'West Europe' | |
| 34 | +## | templateSpecsDescription | '$(templateSpecsDescription)' | Required to publish to template spec. Description of the template spec to publish to | 'IaCs module' | |
| 35 | +## | vstsFeedName | '$(vstsFeedName)' | Required to publish to a DevOps feed. Name to the feed to publish to. | 'modules' | |
| 36 | +## | vstsProject | '$(System.TeamProject)' | Required to publish to a DevOps feed. Name of the project hosting the artifacts feed. May be empty. | 'iacs' | |
| 37 | +## | bicepRegistryName | '$(bicepRegistryName)' | Required to publish to the private bicep registry. Name of the hosting container registry | 'adpsxxazacrx001' | |
| 38 | +## | bicepRegistryRGName | '$(bicepRegistryRGName)' | Required to publish to the private bicep registry. Resource group of the hosting container registry | 'artifacts-rg' | |
| 39 | +## | bicepRegistryRgLocation | '$(bicepRegistryRgLocation)' | Required to publish to the private bicep registry. Location of the RG of the hosting container registry | 'West Europe' | |
| 40 | +## | vstsOrganization | '$(vstsOrganization)' | Required to publish to a DevOps feed. Name of the organization hosting the artifacts feed. | 'servicescode' | |
| 41 | +## | azurePowerShellVersion | '$(azurePowerShellVersion)' | Used for configuring the Azure PowerShell Version, one of the example values. | 'latestVersion' or 'OtherVersion' | |
| 42 | +## | preferredAzurePowerShellVersion | '$(preferredAzurePowerShellVersion)' | Used for configuring the Azure PowerShell Version, either an empty string or specific version. | '4.4.0' | |
| 43 | +## |======================================================================================================================================================================================================================| |
43 | 44 | ## |
44 | 45 | ##---------------------------------------------## |
45 | 46 |
|
@@ -72,6 +73,7 @@ parameters: |
72 | 73 | ## Private-Bicep-Registry-related |
73 | 74 | bicepRegistryName: '$(bicepRegistryName)' |
74 | 75 | bicepRegistryRGName: '$(bicepRegistryRGName)' |
| 76 | + bicepRegistryRgLocation: '$(bicepRegistryRgLocation)' |
75 | 77 |
|
76 | 78 | ##---------------------------------------------## |
77 | 79 | ## TEMPLATE LOGIC ## |
@@ -238,11 +240,12 @@ jobs: |
238 | 240 | . (Join-Path '$(System.DefaultWorkingDirectory)' '$(pipelineFunctionsPath)' 'resourcePublish' 'Publish-ModuleToPrivateBicepRegistry.ps1') |
239 | 241 |
|
240 | 242 | $functionInput = @{ |
241 | | - templateFilePath = Join-Path '$(ENVMODULEPATH)' 'deploy.bicep' |
242 | | - bicepRegistryName = '${{ parameters.bicepRegistryName }}' |
243 | | - bicepRegistryRgName = '${{ parameters.bicepRegistryRgName }}' |
244 | | - customVersion = '${{ parameters.customVersion }}' |
245 | | - versioningOption = '${{ parameters.versioningOption }}' |
| 243 | + templateFilePath = Join-Path '$(ENVMODULEPATH)' 'deploy.bicep' |
| 244 | + bicepRegistryName = '${{ parameters.bicepRegistryName }}' |
| 245 | + bicepRegistryRgName = '${{ parameters.bicepRegistryRgName }}' |
| 246 | + bicepRegistryRgLocation = '${{ parameters.bicepRegistryRgLocation }}' |
| 247 | + customVersion = '${{ parameters.customVersion }}' |
| 248 | + versioningOption = '${{ parameters.versioningOption }}' |
246 | 249 | } |
247 | 250 |
|
248 | 251 | Write-Verbose "Invoke task with" -Verbose |
|
0 commit comments