azure-native.edge.SitesByServiceGroup
Explore with Pulumi AI
Site as ARM Resource
Uses Azure REST API version 2025-03-01-preview.
Example Usage
SitesByServiceGroup_CreateOrUpdate - generated by [MaximumSet] rule
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var sitesByServiceGroup = new AzureNative.Edge.SitesByServiceGroup("sitesByServiceGroup", new()
{
Properties = new AzureNative.Edge.Inputs.SitePropertiesArgs
{
Description = "enxcmpvfvadbapo",
DisplayName = "string",
},
ServicegroupName = "string",
SiteName = "string",
});
});
package main
import (
edge "github.com/pulumi/pulumi-azure-native-sdk/edge/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := edge.NewSitesByServiceGroup(ctx, "sitesByServiceGroup", &edge.SitesByServiceGroupArgs{
Properties: &edge.SitePropertiesArgs{
Description: pulumi.String("enxcmpvfvadbapo"),
DisplayName: pulumi.String("string"),
},
ServicegroupName: pulumi.String("string"),
SiteName: pulumi.String("string"),
})
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.edge.SitesByServiceGroup;
import com.pulumi.azurenative.edge.SitesByServiceGroupArgs;
import com.pulumi.azurenative.edge.inputs.SitePropertiesArgs;
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 sitesByServiceGroup = new SitesByServiceGroup("sitesByServiceGroup", SitesByServiceGroupArgs.builder()
.properties(SitePropertiesArgs.builder()
.description("enxcmpvfvadbapo")
.displayName("string")
.build())
.servicegroupName("string")
.siteName("string")
.build());
}
}
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const sitesByServiceGroup = new azure_native.edge.SitesByServiceGroup("sitesByServiceGroup", {
properties: {
description: "enxcmpvfvadbapo",
displayName: "string",
},
servicegroupName: "string",
siteName: "string",
});
import pulumi
import pulumi_azure_native as azure_native
sites_by_service_group = azure_native.edge.SitesByServiceGroup("sitesByServiceGroup",
properties={
"description": "enxcmpvfvadbapo",
"display_name": "string",
},
servicegroup_name="string",
site_name="string")
resources:
sitesByServiceGroup:
type: azure-native:edge:SitesByServiceGroup
properties:
properties:
description: enxcmpvfvadbapo
displayName: string
servicegroupName: string
siteName: string
Create SitesByServiceGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SitesByServiceGroup(name: string, args: SitesByServiceGroupArgs, opts?: CustomResourceOptions);
@overload
def SitesByServiceGroup(resource_name: str,
args: SitesByServiceGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SitesByServiceGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
servicegroup_name: Optional[str] = None,
properties: Optional[SitePropertiesArgs] = None,
site_name: Optional[str] = None)
func NewSitesByServiceGroup(ctx *Context, name string, args SitesByServiceGroupArgs, opts ...ResourceOption) (*SitesByServiceGroup, error)
public SitesByServiceGroup(string name, SitesByServiceGroupArgs args, CustomResourceOptions? opts = null)
public SitesByServiceGroup(String name, SitesByServiceGroupArgs args)
public SitesByServiceGroup(String name, SitesByServiceGroupArgs args, CustomResourceOptions options)
type: azure-native:edge:SitesByServiceGroup
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 SitesByServiceGroupArgs
- 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 SitesByServiceGroupArgs
- 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 SitesByServiceGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SitesByServiceGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SitesByServiceGroupArgs
- 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 sitesByServiceGroupResource = new AzureNative.Edge.SitesByServiceGroup("sitesByServiceGroupResource", new()
{
ServicegroupName = "string",
Properties = new AzureNative.Edge.Inputs.SitePropertiesArgs
{
AddressResourceId = "string",
Description = "string",
DisplayName = "string",
Labels =
{
{ "string", "string" },
},
SiteAddress = new AzureNative.Edge.Inputs.SiteAddressPropertiesArgs
{
City = "string",
Country = "string",
PostalCode = "string",
StateOrProvince = "string",
StreetAddress1 = "string",
StreetAddress2 = "string",
},
},
SiteName = "string",
});
example, err := edge.NewSitesByServiceGroup(ctx, "sitesByServiceGroupResource", &edge.SitesByServiceGroupArgs{
ServicegroupName: pulumi.String("string"),
Properties: &edge.SitePropertiesArgs{
AddressResourceId: pulumi.String("string"),
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
SiteAddress: &edge.SiteAddressPropertiesArgs{
City: pulumi.String("string"),
Country: pulumi.String("string"),
PostalCode: pulumi.String("string"),
StateOrProvince: pulumi.String("string"),
StreetAddress1: pulumi.String("string"),
StreetAddress2: pulumi.String("string"),
},
},
SiteName: pulumi.String("string"),
})
var sitesByServiceGroupResource = new SitesByServiceGroup("sitesByServiceGroupResource", SitesByServiceGroupArgs.builder()
.servicegroupName("string")
.properties(SitePropertiesArgs.builder()
.addressResourceId("string")
.description("string")
.displayName("string")
.labels(Map.of("string", "string"))
.siteAddress(SiteAddressPropertiesArgs.builder()
.city("string")
.country("string")
.postalCode("string")
.stateOrProvince("string")
.streetAddress1("string")
.streetAddress2("string")
.build())
.build())
.siteName("string")
.build());
sites_by_service_group_resource = azure_native.edge.SitesByServiceGroup("sitesByServiceGroupResource",
servicegroup_name="string",
properties={
"address_resource_id": "string",
"description": "string",
"display_name": "string",
"labels": {
"string": "string",
},
"site_address": {
"city": "string",
"country": "string",
"postal_code": "string",
"state_or_province": "string",
"street_address1": "string",
"street_address2": "string",
},
},
site_name="string")
const sitesByServiceGroupResource = new azure_native.edge.SitesByServiceGroup("sitesByServiceGroupResource", {
servicegroupName: "string",
properties: {
addressResourceId: "string",
description: "string",
displayName: "string",
labels: {
string: "string",
},
siteAddress: {
city: "string",
country: "string",
postalCode: "string",
stateOrProvince: "string",
streetAddress1: "string",
streetAddress2: "string",
},
},
siteName: "string",
});
type: azure-native:edge:SitesByServiceGroup
properties:
properties:
addressResourceId: string
description: string
displayName: string
labels:
string: string
siteAddress:
city: string
country: string
postalCode: string
stateOrProvince: string
streetAddress1: string
streetAddress2: string
servicegroupName: string
siteName: string
SitesByServiceGroup 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 SitesByServiceGroup resource accepts the following input properties:
- Servicegroup
Name string - The name of the service group
- Properties
Pulumi.
Azure Native. Edge. Inputs. Site Properties - The resource-specific properties for this resource.
- Site
Name string - The name of the site
- Servicegroup
Name string - The name of the service group
- Properties
Site
Properties Args - The resource-specific properties for this resource.
- Site
Name string - The name of the site
- servicegroup
Name String - The name of the service group
- properties
Site
Properties - The resource-specific properties for this resource.
- site
Name String - The name of the site
- servicegroup
Name string - The name of the service group
- properties
Site
Properties - The resource-specific properties for this resource.
- site
Name string - The name of the site
- servicegroup_
name str - The name of the service group
- properties
Site
Properties Args - The resource-specific properties for this resource.
- site_
name str - The name of the site
- servicegroup
Name String - The name of the service group
- properties Property Map
- The resource-specific properties for this resource.
- site
Name String - The name of the site
Outputs
All input properties are implicitly available as output properties. Additionally, the SitesByServiceGroup resource produces the following output properties:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Edge. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
SiteAddressProperties, SiteAddressPropertiesArgs
- City string
- City of the address
- Country string
- Country of the address
- Postal
Code string - Postal or ZIP code of the address
- State
Or stringProvince - State or province of the address
- Street
Address1 string - First line of the street address
- Street
Address2 string - Second line of the street address
- City string
- City of the address
- Country string
- Country of the address
- Postal
Code string - Postal or ZIP code of the address
- State
Or stringProvince - State or province of the address
- Street
Address1 string - First line of the street address
- Street
Address2 string - Second line of the street address
- city String
- City of the address
- country String
- Country of the address
- postal
Code String - Postal or ZIP code of the address
- state
Or StringProvince - State or province of the address
- street
Address1 String - First line of the street address
- street
Address2 String - Second line of the street address
- city string
- City of the address
- country string
- Country of the address
- postal
Code string - Postal or ZIP code of the address
- state
Or stringProvince - State or province of the address
- street
Address1 string - First line of the street address
- street
Address2 string - Second line of the street address
- city str
- City of the address
- country str
- Country of the address
- postal_
code str - Postal or ZIP code of the address
- state_
or_ strprovince - State or province of the address
- street_
address1 str - First line of the street address
- street_
address2 str - Second line of the street address
- city String
- City of the address
- country String
- Country of the address
- postal
Code String - Postal or ZIP code of the address
- state
Or StringProvince - State or province of the address
- street
Address1 String - First line of the street address
- street
Address2 String - Second line of the street address
SiteAddressPropertiesResponse, SiteAddressPropertiesResponseArgs
- City string
- City of the address
- Country string
- Country of the address
- Postal
Code string - Postal or ZIP code of the address
- State
Or stringProvince - State or province of the address
- Street
Address1 string - First line of the street address
- Street
Address2 string - Second line of the street address
- City string
- City of the address
- Country string
- Country of the address
- Postal
Code string - Postal or ZIP code of the address
- State
Or stringProvince - State or province of the address
- Street
Address1 string - First line of the street address
- Street
Address2 string - Second line of the street address
- city String
- City of the address
- country String
- Country of the address
- postal
Code String - Postal or ZIP code of the address
- state
Or StringProvince - State or province of the address
- street
Address1 String - First line of the street address
- street
Address2 String - Second line of the street address
- city string
- City of the address
- country string
- Country of the address
- postal
Code string - Postal or ZIP code of the address
- state
Or stringProvince - State or province of the address
- street
Address1 string - First line of the street address
- street
Address2 string - Second line of the street address
- city str
- City of the address
- country str
- Country of the address
- postal_
code str - Postal or ZIP code of the address
- state_
or_ strprovince - State or province of the address
- street_
address1 str - First line of the street address
- street_
address2 str - Second line of the street address
- city String
- City of the address
- country String
- Country of the address
- postal
Code String - Postal or ZIP code of the address
- state
Or StringProvince - State or province of the address
- street
Address1 String - First line of the street address
- street
Address2 String - Second line of the street address
SiteProperties, SitePropertiesArgs
- Address
Resource stringId - AddressResource ArmId of Site resource
- Description string
- Description of Site resource
- Display
Name string - displayName of Site resource
- Labels Dictionary<string, string>
- Key-value pairs for labeling the site resource.
- Site
Address Pulumi.Azure Native. Edge. Inputs. Site Address Properties - Physical address of the site
- Address
Resource stringId - AddressResource ArmId of Site resource
- Description string
- Description of Site resource
- Display
Name string - displayName of Site resource
- Labels map[string]string
- Key-value pairs for labeling the site resource.
- Site
Address SiteAddress Properties - Physical address of the site
- address
Resource StringId - AddressResource ArmId of Site resource
- description String
- Description of Site resource
- display
Name String - displayName of Site resource
- labels Map<String,String>
- Key-value pairs for labeling the site resource.
- site
Address SiteAddress Properties - Physical address of the site
- address
Resource stringId - AddressResource ArmId of Site resource
- description string
- Description of Site resource
- display
Name string - displayName of Site resource
- labels {[key: string]: string}
- Key-value pairs for labeling the site resource.
- site
Address SiteAddress Properties - Physical address of the site
- address_
resource_ strid - AddressResource ArmId of Site resource
- description str
- Description of Site resource
- display_
name str - displayName of Site resource
- labels Mapping[str, str]
- Key-value pairs for labeling the site resource.
- site_
address SiteAddress Properties - Physical address of the site
- address
Resource StringId - AddressResource ArmId of Site resource
- description String
- Description of Site resource
- display
Name String - displayName of Site resource
- labels Map<String>
- Key-value pairs for labeling the site resource.
- site
Address Property Map - Physical address of the site
SitePropertiesResponse, SitePropertiesResponseArgs
- Provisioning
State string - Provisioning state of last operation
- Address
Resource stringId - AddressResource ArmId of Site resource
- Description string
- Description of Site resource
- Display
Name string - displayName of Site resource
- Labels Dictionary<string, string>
- Key-value pairs for labeling the site resource.
- Site
Address Pulumi.Azure Native. Edge. Inputs. Site Address Properties Response - Physical address of the site
- Provisioning
State string - Provisioning state of last operation
- Address
Resource stringId - AddressResource ArmId of Site resource
- Description string
- Description of Site resource
- Display
Name string - displayName of Site resource
- Labels map[string]string
- Key-value pairs for labeling the site resource.
- Site
Address SiteAddress Properties Response - Physical address of the site
- provisioning
State String - Provisioning state of last operation
- address
Resource StringId - AddressResource ArmId of Site resource
- description String
- Description of Site resource
- display
Name String - displayName of Site resource
- labels Map<String,String>
- Key-value pairs for labeling the site resource.
- site
Address SiteAddress Properties Response - Physical address of the site
- provisioning
State string - Provisioning state of last operation
- address
Resource stringId - AddressResource ArmId of Site resource
- description string
- Description of Site resource
- display
Name string - displayName of Site resource
- labels {[key: string]: string}
- Key-value pairs for labeling the site resource.
- site
Address SiteAddress Properties Response - Physical address of the site
- provisioning_
state str - Provisioning state of last operation
- address_
resource_ strid - AddressResource ArmId of Site resource
- description str
- Description of Site resource
- display_
name str - displayName of Site resource
- labels Mapping[str, str]
- Key-value pairs for labeling the site resource.
- site_
address SiteAddress Properties Response - Physical address of the site
- provisioning
State String - Provisioning state of last operation
- address
Resource StringId - AddressResource ArmId of Site resource
- description String
- Description of Site resource
- display
Name String - displayName of Site resource
- labels Map<String>
- Key-value pairs for labeling the site resource.
- site
Address Property Map - Physical address of the site
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:edge:SitesByServiceGroup string /providers/Microsoft.Management/serviceGroups/{servicegroupName}/providers/Microsoft.Edge/sites/{siteName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0