1. Packages
  2. Sonarqube Provider
  3. API Docs
  4. AlmAzure
sonarqube 0.16.14 published on Monday, Apr 14, 2025 by jdamata

sonarqube.AlmAzure

Explore with Pulumi AI

Provides a Sonarqube Azure Devops Alm/Devops Platform Integration resource. This can be used to create and manage a Alm/Devops Platform Integration for Azure Devops.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as sonarqube from "@pulumi/sonarqube";

const az1 = new sonarqube.AlmAzure("az1", {
    key: "az1",
    personalAccessToken: "my_pat",
    url: "https://dev.azure.com/my-org",
});
Copy
import pulumi
import pulumi_sonarqube as sonarqube

az1 = sonarqube.AlmAzure("az1",
    key="az1",
    personal_access_token="my_pat",
    url="https://dev.azure.com/my-org")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/sonarqube/sonarqube"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sonarqube.NewAlmAzure(ctx, "az1", &sonarqube.AlmAzureArgs{
			Key:                 pulumi.String("az1"),
			PersonalAccessToken: pulumi.String("my_pat"),
			Url:                 pulumi.String("https://dev.azure.com/my-org"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sonarqube = Pulumi.Sonarqube;

return await Deployment.RunAsync(() => 
{
    var az1 = new Sonarqube.AlmAzure("az1", new()
    {
        Key = "az1",
        PersonalAccessToken = "my_pat",
        Url = "https://dev.azure.com/my-org",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sonarqube.AlmAzure;
import com.pulumi.sonarqube.AlmAzureArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var az1 = new AlmAzure("az1", AlmAzureArgs.builder()
            .key("az1")
            .personalAccessToken("my_pat")
            .url("https://dev.azure.com/my-org")
            .build());

    }
}
Copy
resources:
  az1:
    type: sonarqube:AlmAzure
    properties:
      key: az1
      personalAccessToken: my_pat
      url: https://dev.azure.com/my-org
Copy

Create AlmAzure Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AlmAzure(name: string, args: AlmAzureArgs, opts?: CustomResourceOptions);
@overload
def AlmAzure(resource_name: str,
             args: AlmAzureArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def AlmAzure(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             key: Optional[str] = None,
             personal_access_token: Optional[str] = None,
             url: Optional[str] = None,
             alm_azure_id: Optional[str] = None)
func NewAlmAzure(ctx *Context, name string, args AlmAzureArgs, opts ...ResourceOption) (*AlmAzure, error)
public AlmAzure(string name, AlmAzureArgs args, CustomResourceOptions? opts = null)
public AlmAzure(String name, AlmAzureArgs args)
public AlmAzure(String name, AlmAzureArgs args, CustomResourceOptions options)
type: sonarqube:AlmAzure
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AlmAzureArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AlmAzureArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AlmAzureArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AlmAzureArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AlmAzureArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var almAzureResource = new Sonarqube.AlmAzure("almAzureResource", new()
{
    Key = "string",
    PersonalAccessToken = "string",
    Url = "string",
    AlmAzureId = "string",
});
Copy
example, err := sonarqube.NewAlmAzure(ctx, "almAzureResource", &sonarqube.AlmAzureArgs{
Key: pulumi.String("string"),
PersonalAccessToken: pulumi.String("string"),
Url: pulumi.String("string"),
AlmAzureId: pulumi.String("string"),
})
Copy
var almAzureResource = new AlmAzure("almAzureResource", AlmAzureArgs.builder()
    .key("string")
    .personalAccessToken("string")
    .url("string")
    .almAzureId("string")
    .build());
Copy
alm_azure_resource = sonarqube.AlmAzure("almAzureResource",
    key="string",
    personal_access_token="string",
    url="string",
    alm_azure_id="string")
Copy
const almAzureResource = new sonarqube.AlmAzure("almAzureResource", {
    key: "string",
    personalAccessToken: "string",
    url: "string",
    almAzureId: "string",
});
Copy
type: sonarqube:AlmAzure
properties:
    almAzureId: string
    key: string
    personalAccessToken: string
    url: string
Copy

AlmAzure Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AlmAzure resource accepts the following input properties:

Key This property is required. string
Unique key of the Azure Devops instance setting
PersonalAccessToken This property is required. string
Azure Devops personal access token
Url This property is required. string
Azure API URL
AlmAzureId string
The ID of this resource.
Key This property is required. string
Unique key of the Azure Devops instance setting
PersonalAccessToken This property is required. string
Azure Devops personal access token
Url This property is required. string
Azure API URL
AlmAzureId string
The ID of this resource.
key This property is required. String
Unique key of the Azure Devops instance setting
personalAccessToken This property is required. String
Azure Devops personal access token
url This property is required. String
Azure API URL
almAzureId String
The ID of this resource.
key This property is required. string
Unique key of the Azure Devops instance setting
personalAccessToken This property is required. string
Azure Devops personal access token
url This property is required. string
Azure API URL
almAzureId string
The ID of this resource.
key This property is required. str
Unique key of the Azure Devops instance setting
personal_access_token This property is required. str
Azure Devops personal access token
url This property is required. str
Azure API URL
alm_azure_id str
The ID of this resource.
key This property is required. String
Unique key of the Azure Devops instance setting
personalAccessToken This property is required. String
Azure Devops personal access token
url This property is required. String
Azure API URL
almAzureId String
The ID of this resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the AlmAzure resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing AlmAzure Resource

Get an existing AlmAzure resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: AlmAzureState, opts?: CustomResourceOptions): AlmAzure
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alm_azure_id: Optional[str] = None,
        key: Optional[str] = None,
        personal_access_token: Optional[str] = None,
        url: Optional[str] = None) -> AlmAzure
func GetAlmAzure(ctx *Context, name string, id IDInput, state *AlmAzureState, opts ...ResourceOption) (*AlmAzure, error)
public static AlmAzure Get(string name, Input<string> id, AlmAzureState? state, CustomResourceOptions? opts = null)
public static AlmAzure get(String name, Output<String> id, AlmAzureState state, CustomResourceOptions options)
resources:  _:    type: sonarqube:AlmAzure    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AlmAzureId string
The ID of this resource.
Key string
Unique key of the Azure Devops instance setting
PersonalAccessToken string
Azure Devops personal access token
Url string
Azure API URL
AlmAzureId string
The ID of this resource.
Key string
Unique key of the Azure Devops instance setting
PersonalAccessToken string
Azure Devops personal access token
Url string
Azure API URL
almAzureId String
The ID of this resource.
key String
Unique key of the Azure Devops instance setting
personalAccessToken String
Azure Devops personal access token
url String
Azure API URL
almAzureId string
The ID of this resource.
key string
Unique key of the Azure Devops instance setting
personalAccessToken string
Azure Devops personal access token
url string
Azure API URL
alm_azure_id str
The ID of this resource.
key str
Unique key of the Azure Devops instance setting
personal_access_token str
Azure Devops personal access token
url str
Azure API URL
almAzureId String
The ID of this resource.
key String
Unique key of the Azure Devops instance setting
personalAccessToken String
Azure Devops personal access token
url String
Azure API URL

Package Details

Repository
sonarqube jdamata/terraform-provider-sonarqube
License
Notes
This Pulumi package is based on the sonarqube Terraform Provider.