You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current bug isn't adapted for customers that would like to deploy self-hosted agents to different environments as part of their CI/CD pipeline strategy. Both pipeline.image.jobs.yml and pipeline.scaleset.jobs.yml files doesn't include specific variables for each environment, which doesn't allow good re-use of code. This leads to the pipeline wanting to deploy out to the default subscription in which the SPN is set to. This means that in order to move forward, the .azuredevops folder needs to adapt for variables for different scopes.
Steps to reproduce the behaviour:
While setting up the Self-hosted agent IPkit in your own environment, try deploying to 3 different subscriptions - where each subscription will be dedicated to deploying to sandbox, dev and prod environments.
Ensure that you have setup ready where each parameters file will be deployed to a different scope with their associated bicep file (either in the Azure Image builder or VMSS creation pipeline)
Then, try to deploy the infrastructure or image using the service connection provided.
The following error will pop up:
WARNING: The client '15041bef-fcd3-XXXX-XXXX-XXXXXXXXXXXX' with object id '15041bef-XXXX-XXXX-XXXXXXXXXXXX' does not have authorization to perform action 'Microsoft.Resources/deployments/validate/action' over scope '/subscriptions/ac084e26-de58-XXXX-XXXX-XXXXXXXXXXXX' or the scope is invalid. If access was recently granted, please refresh your credentials.
This illustrates that the default client and associated object id doesn't have the relevant permissions over the default subscription.
I would like to have the self-hosted agents to be able to be deployed to different scope, specifically subscriptions, therefore could we please create variables to allow for this flexibility and update the specific areas of code, specified in the screenshot. I have also included the screenshots to solutions for this issue. In my particular case, the dev service connection should be deploying to the dev subscription and same for production,
If applicable, add screenshots to help explain your problem.
OS: Windows 11
Browser Microsoft Edge
Version: Latest
Happy to fix this issue myself by becoming a contributor to this IPKit.
Problem example:
Problem solution:
The text was updated successfully, but these errors were encountered:
The current bug isn't adapted for customers that would like to deploy self-hosted agents to different environments as part of their CI/CD pipeline strategy. Both
pipeline.image.jobs.yml
andpipeline.scaleset.jobs.yml
files doesn't include specific variables for each environment, which doesn't allow good re-use of code. This leads to the pipeline wanting to deploy out to the default subscription in which the SPN is set to. This means that in order to move forward, the.azuredevops
folder needs to adapt for variables for different scopes.Steps to reproduce the behaviour:
WARNING: The client '15041bef-fcd3-XXXX-XXXX-XXXXXXXXXXXX' with object id '15041bef-XXXX-XXXX-XXXXXXXXXXXX' does not have authorization to perform action 'Microsoft.Resources/deployments/validate/action' over scope '/subscriptions/ac084e26-de58-XXXX-XXXX-XXXXXXXXXXXX' or the scope is invalid. If access was recently granted, please refresh your credentials.
This illustrates that the default client and associated object id doesn't have the relevant permissions over the default subscription.
I would like to have the self-hosted agents to be able to be deployed to different scope, specifically subscriptions, therefore could we please create variables to allow for this flexibility and update the specific areas of code, specified in the screenshot. I have also included the screenshots to solutions for this issue. In my particular case, the dev service connection should be deploying to the dev subscription and same for production,
If applicable, add screenshots to help explain your problem.
Happy to fix this issue myself by becoming a contributor to this IPKit.
Problem example:
Problem solution:
The text was updated successfully, but these errors were encountered: