azure-native.deploymentmanager.Service
Explore with Pulumi AI
The resource representation of a service in a service topology. API Version: 2019-11-01-preview.
Example Usage
Create service
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var service = new AzureNative.DeploymentManager.Service("service", new()
{
Location = "centralus",
ResourceGroupName = "myResourceGroup",
ServiceName = "myService",
ServiceTopologyName = "myTopology",
Tags = null,
TargetLocation = "centralus",
TargetSubscriptionId = "600c95c5-3ee5-44fe-b190-ca38a19adcd7",
});
});
package main
import (
deploymentmanager "github.com/pulumi/pulumi-azure-native-sdk/deploymentmanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := deploymentmanager.NewService(ctx, "service", &deploymentmanager.ServiceArgs{
Location: pulumi.String("centralus"),
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceName: pulumi.String("myService"),
ServiceTopologyName: pulumi.String("myTopology"),
Tags: nil,
TargetLocation: pulumi.String("centralus"),
TargetSubscriptionId: pulumi.String("600c95c5-3ee5-44fe-b190-ca38a19adcd7"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.deploymentmanager.Service;
import com.pulumi.azurenative.deploymentmanager.ServiceArgs;
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 service = new Service("service", ServiceArgs.builder()
.location("centralus")
.resourceGroupName("myResourceGroup")
.serviceName("myService")
.serviceTopologyName("myTopology")
.tags()
.targetLocation("centralus")
.targetSubscriptionId("600c95c5-3ee5-44fe-b190-ca38a19adcd7")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
service = azure_native.deploymentmanager.Service("service",
location="centralus",
resource_group_name="myResourceGroup",
service_name="myService",
service_topology_name="myTopology",
tags={},
target_location="centralus",
target_subscription_id="600c95c5-3ee5-44fe-b190-ca38a19adcd7")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const service = new azure_native.deploymentmanager.Service("service", {
location: "centralus",
resourceGroupName: "myResourceGroup",
serviceName: "myService",
serviceTopologyName: "myTopology",
tags: {},
targetLocation: "centralus",
targetSubscriptionId: "600c95c5-3ee5-44fe-b190-ca38a19adcd7",
});
resources:
service:
type: azure-native:deploymentmanager:Service
properties:
location: centralus
resourceGroupName: myResourceGroup
serviceName: myService
serviceTopologyName: myTopology
tags: {}
targetLocation: centralus
targetSubscriptionId: 600c95c5-3ee5-44fe-b190-ca38a19adcd7
Create Service Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
@overload
def Service(resource_name: str,
args: ServiceArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Service(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
service_topology_name: Optional[str] = None,
target_location: Optional[str] = None,
target_subscription_id: Optional[str] = None,
location: Optional[str] = None,
service_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
public Service(String name, ServiceArgs args)
public Service(String name, ServiceArgs args, CustomResourceOptions options)
type: azure-native:deploymentmanager:Service
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServiceArgs
- 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 ServiceArgs
- 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 ServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceArgs
- 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 exampleserviceResourceResourceFromDeploymentmanager = new AzureNative.Deploymentmanager.Service("exampleserviceResourceResourceFromDeploymentmanager", new()
{
ResourceGroupName = "string",
ServiceTopologyName = "string",
TargetLocation = "string",
TargetSubscriptionId = "string",
Location = "string",
ServiceName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := deploymentmanager.NewService(ctx, "exampleserviceResourceResourceFromDeploymentmanager", &deploymentmanager.ServiceArgs{
ResourceGroupName: "string",
ServiceTopologyName: "string",
TargetLocation: "string",
TargetSubscriptionId: "string",
Location: "string",
ServiceName: "string",
Tags: map[string]interface{}{
"string": "string",
},
})
var exampleserviceResourceResourceFromDeploymentmanager = new Service("exampleserviceResourceResourceFromDeploymentmanager", ServiceArgs.builder()
.resourceGroupName("string")
.serviceTopologyName("string")
.targetLocation("string")
.targetSubscriptionId("string")
.location("string")
.serviceName("string")
.tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
exampleservice_resource_resource_from_deploymentmanager = azure_native.deploymentmanager.Service("exampleserviceResourceResourceFromDeploymentmanager",
resource_group_name=string,
service_topology_name=string,
target_location=string,
target_subscription_id=string,
location=string,
service_name=string,
tags={
string: string,
})
const exampleserviceResourceResourceFromDeploymentmanager = new azure_native.deploymentmanager.Service("exampleserviceResourceResourceFromDeploymentmanager", {
resourceGroupName: "string",
serviceTopologyName: "string",
targetLocation: "string",
targetSubscriptionId: "string",
location: "string",
serviceName: "string",
tags: {
string: "string",
},
});
type: azure-native:deploymentmanager:Service
properties:
location: string
resourceGroupName: string
serviceName: string
serviceTopologyName: string
tags:
string: string
targetLocation: string
targetSubscriptionId: string
Service Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Service resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Service
Topology stringName - The name of the service topology .
- Target
Location string - The Azure location to which the resources in the service belong to or should be deployed to.
- Target
Subscription stringId - The subscription to which the resources in the service belong to or should be deployed to.
- Location string
- The geo-location where the resource lives
- Service
Name string - The name of the service resource.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Service
Topology stringName - The name of the service topology .
- Target
Location string - The Azure location to which the resources in the service belong to or should be deployed to.
- Target
Subscription stringId - The subscription to which the resources in the service belong to or should be deployed to.
- Location string
- The geo-location where the resource lives
- Service
Name string - The name of the service resource.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- service
Topology StringName - The name of the service topology .
- target
Location String - The Azure location to which the resources in the service belong to or should be deployed to.
- target
Subscription StringId - The subscription to which the resources in the service belong to or should be deployed to.
- location String
- The geo-location where the resource lives
- service
Name String - The name of the service resource.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- service
Topology stringName - The name of the service topology .
- target
Location string - The Azure location to which the resources in the service belong to or should be deployed to.
- target
Subscription stringId - The subscription to which the resources in the service belong to or should be deployed to.
- location string
- The geo-location where the resource lives
- service
Name string - The name of the service resource.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- service_
topology_ strname - The name of the service topology .
- target_
location str - The Azure location to which the resources in the service belong to or should be deployed to.
- target_
subscription_ strid - The subscription to which the resources in the service belong to or should be deployed to.
- location str
- The geo-location where the resource lives
- service_
name str - The name of the service resource.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- service
Topology StringName - The name of the service topology .
- target
Location String - The Azure location to which the resources in the service belong to or should be deployed to.
- target
Subscription StringId - The subscription to which the resources in the service belong to or should be deployed to.
- location String
- The geo-location where the resource lives
- service
Name String - The name of the service resource.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:deploymentmanager:Service myService /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0