Viewing docs for Defang Azure v2.4.1
published on Saturday, Jul 11, 2026 by Defang
published on Saturday, Jul 11, 2026 by Defang
Viewing docs for Defang Azure v2.4.1
published on Saturday, Jul 11, 2026 by Defang
published on Saturday, Jul 11, 2026 by Defang
Create Build Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Build(name: string, args: BuildArgs, opts?: CustomResourceOptions);@overload
def Build(resource_name: str,
args: BuildArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Build(resource_name: str,
opts: Optional[ResourceOptions] = None,
context_path: Optional[str] = None,
encoded_task_content: Optional[str] = None,
image_name: Optional[str] = None,
login_server: Optional[str] = None,
registry_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
subscription_id: Optional[str] = None,
task_name: Optional[str] = None,
max_wait_time: Optional[int] = None,
triggers: Optional[Sequence[str]] = None)func NewBuild(ctx *Context, name string, args BuildArgs, opts ...ResourceOption) (*Build, error)public Build(string name, BuildArgs args, CustomResourceOptions? opts = null)type: defang-azure:Build
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "defang-azure_build" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BuildArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BuildArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BuildArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BuildArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BuildArgs
- 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 buildResource = new DefangAzure.Build("buildResource", new()
{
ContextPath = "string",
EncodedTaskContent = "string",
ImageName = "string",
LoginServer = "string",
RegistryName = "string",
ResourceGroupName = "string",
ServiceName = "string",
SubscriptionId = "string",
TaskName = "string",
MaxWaitTime = 0,
Triggers = new[]
{
"string",
},
});
example, err := defangazure.NewBuild(ctx, "buildResource", &defangazure.BuildArgs{
ContextPath: pulumi.String("string"),
EncodedTaskContent: pulumi.String("string"),
ImageName: pulumi.String("string"),
LoginServer: pulumi.String("string"),
RegistryName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
ServiceName: pulumi.String("string"),
SubscriptionId: pulumi.String("string"),
TaskName: pulumi.String("string"),
MaxWaitTime: pulumi.Int(0),
Triggers: pulumi.StringArray{
pulumi.String("string"),
},
})
resource "defang-azure_build" "buildResource" {
context_path = "string"
encoded_task_content = "string"
image_name = "string"
login_server = "string"
registry_name = "string"
resource_group_name = "string"
service_name = "string"
subscription_id = "string"
task_name = "string"
max_wait_time = 0
triggers = ["string"]
}
var buildResource = new Build("buildResource", BuildArgs.builder()
.contextPath("string")
.encodedTaskContent("string")
.imageName("string")
.loginServer("string")
.registryName("string")
.resourceGroupName("string")
.serviceName("string")
.subscriptionId("string")
.taskName("string")
.maxWaitTime(0)
.triggers("string")
.build());
build_resource = defang_azure.Build("buildResource",
context_path="string",
encoded_task_content="string",
image_name="string",
login_server="string",
registry_name="string",
resource_group_name="string",
service_name="string",
subscription_id="string",
task_name="string",
max_wait_time=0,
triggers=["string"])
const buildResource = new defang_azure.Build("buildResource", {
contextPath: "string",
encodedTaskContent: "string",
imageName: "string",
loginServer: "string",
registryName: "string",
resourceGroupName: "string",
serviceName: "string",
subscriptionId: "string",
taskName: "string",
maxWaitTime: 0,
triggers: ["string"],
});
type: defang-azure:Build
properties:
contextPath: string
encodedTaskContent: string
imageName: string
loginServer: string
maxWaitTime: 0
registryName: string
resourceGroupName: string
serviceName: string
subscriptionId: string
taskName: string
triggers:
- string
Build 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 Build resource accepts the following input properties:
- Context
Path string - Encoded
Task stringContent - Image
Name string - Login
Server string - Registry
Name string - Resource
Group stringName - Service
Name string - Subscription
Id string - Task
Name string - Max
Wait intTime - Triggers List<string>
- Context
Path string - Encoded
Task stringContent - Image
Name string - Login
Server string - Registry
Name string - Resource
Group stringName - Service
Name string - Subscription
Id string - Task
Name string - Max
Wait intTime - Triggers []string
- context_
path string - encoded_
task_ stringcontent - image_
name string - login_
server string - registry_
name string - resource_
group_ stringname - service_
name string - subscription_
id string - task_
name string - max_
wait_ numbertime - triggers list(string)
- context
Path String - encoded
Task StringContent - image
Name String - login
Server String - registry
Name String - resource
Group StringName - service
Name String - subscription
Id String - task
Name String - max
Wait IntegerTime - triggers List<String>
- context
Path string - encoded
Task stringContent - image
Name string - login
Server string - registry
Name string - resource
Group stringName - service
Name string - subscription
Id string - task
Name string - max
Wait numberTime - triggers string[]
- context_
path str - encoded_
task_ strcontent - image_
name str - login_
server str - registry_
name str - resource_
group_ strname - service_
name str - subscription_
id str - task_
name str - max_
wait_ inttime - triggers Sequence[str]
- context
Path String - encoded
Task StringContent - image
Name String - login
Server String - registry
Name String - resource
Group StringName - service
Name String - subscription
Id String - task
Name String - max
Wait NumberTime - triggers List<String>
Outputs
All input properties are implicitly available as output properties. Additionally, the Build resource produces the following output properties:
Package Details
- Repository
- defang-azure DefangLabs/pulumi-defang
- License
- Apache-2.0
Viewing docs for Defang Azure v2.4.1
published on Saturday, Jul 11, 2026 by Defang
published on Saturday, Jul 11, 2026 by Defang