-
I am not sure if anyone can assist with this but when I run the subscriptions-ci pipeline in azure ado it succeeds but it is saying under the trigger subscription deployment No subscription configuration changes detected in current commit () So none of the code changes appear in the subscription I have spent time trying to resolve this issue. Can anyone advise me on troubleshooting this? Let me know if you need any more information. I am sure this is a simple error on my side. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
@theMK2000 the subscriptions pipeline can be triggered or run manually. When triggered (not the default state in the When run manually, there are two parameters requested, one of which must be supplied:
If you're already doing this, then the next thing to check is ensuring that your subscription configuration files are located under the correct folder path. For example, let's say I have a config file for the following subscription:
With the above requirements, I would need to create a subscription configuration file with the following name & location:
When I run the |
Beta Was this translation helpful? Give feedback.
-
hi @theMK2000, I examined several places to ensure the pipeline task script logic was valid (it was). In the end, it turns out that the To fix the error you are encountering, you'll need to make the following changes to the First, the visual representation. The code additions are marked in green on the right hand side, and the code changes are marked in red/green with green representing final state: For the textual representation, you will copy/paste the following block of code directly following line 91 in the current code: $paths = $env:SUBSCRIPTION_CHANGES -split ','
$guids = $paths -replace '.*?([0-9a-f]{8}[-]?([0-9a-f]{4}[-]?){3}[0-9a-f]{12}).*', '$1'
$changes = $guids -join ',' After pasting the above code block after existing line 91, you will change the I tested these changes by performing the following actions:
The results of the 2 pipeline CI triggers (each spawning a manual pipeline run) are shown below: These pipeline runs are displayed in reverse order of execution. |
Beta Was this translation helpful? Give feedback.
hi @theMK2000, I examined several places to ensure the pipeline task script logic was valid (it was). In the end, it turns out that the
Invoke-RestMethod
call is failing due to the presence of the/
characters in the fully qualified path name of each Added or Modified subscription configuration (JSON) file. This code hasn't changed since before 2021-09-30 and was working then, so I can only assume that something in the PowerShell module containing theInvoke-RestMethod
cmdlet has changed in the interim.To fix the error you are encountering, you'll need to make the following changes to the
.pipelines/templates/jobs/trigger-subscriptions.yml
file and commit to your Azure DevOps repository.…