Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Azure Pipeline to Deploy into AKS

The azureSubscription field in the Azure DevOps pipeline YAML refers to the name or ID of the Azure service connection that you set up in Azure DevOps to authenticate and authorize the pipeline to interact with your Azure resources (e.g., your AKS cluster).

In Azure DevOps, this service connection represents the credentials (usually based on a Service Principal) that the pipeline will use to perform tasks such as deploying to AKS, accessing other Azure resources, etc.

Steps to find or create the azureSubscription value:

  1. Go to Azure DevOps:
    • Navigate to your Azure DevOps project.
  2. Project Settings:
    • In the lower-left corner, click on Project settings.
  3. Service connections:
    • Under Pipelines, click on Service connections.
    • You should see a list of service connections if any are already set up. These represent the available Azure subscriptions that your pipeline can use.
  4. Find the correct service connection:
    • The azureSubscription value should match the name of the service connection listed here. For example, it might be something like MyAzureServiceConnection, or in your case, the name of the subscription you’re authorized to use.
  5. Create a new service connection (if necessary):
    • If you don’t have a service connection set up, click New service connection.
    • Choose Azure Resource Manager and follow the steps to create a new connection using either:
      • Service Principal (automatic) (recommended) – this will automatically set up a Service Principal and permissions for you.
      • Service Principal (manual) – this allows you to manually enter details such as Subscription ID, Service Principal ID, and Secret if you’ve set up credentials manually in Azure.
    • After setting it up, you can use the name of this service connection in your pipeline YAML.
  6. Use in the pipeline:
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments

Certification Courses

DevOpsSchool has introduced a series of professional certification courses designed to enhance your skills and expertise in cutting-edge technologies and methodologies. Whether you are aiming to excel in development, security, or operations, these certifications provide a comprehensive learning experience. Explore the following programs:

DevOps Certification, SRE Certification, and DevSecOps Certification by DevOpsSchool

Explore our DevOps Certification, SRE Certification, and DevSecOps Certification programs at DevOpsSchool. Gain the expertise needed to excel in your career with hands-on training and globally recognized certifications.

0
Would love your thoughts, please comment.x
()
x