1. Packages
  2. Azure Native
  3. API Docs
  4. azurestack
  5. LinkedSubscription
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.azurestack.LinkedSubscription

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    Linked Subscription information. Azure REST API version: 2020-06-01-preview. Prior API version in Azure Native 1.x: 2020-06-01-preview.

    Example Usage

    Create or update a Linked Subscription.

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var linkedSubscription = new AzureNative.AzureStack.LinkedSubscription("linkedSubscription", new()
        {
            LinkedSubscriptionId = "104fbb77-2b0e-476a-83de-65ad8acd1f0b",
            LinkedSubscriptionName = "testLinkedSubscription",
            Location = "eastus",
            RegistrationResourceId = "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration",
            ResourceGroup = "azurestack",
        });
    
    });
    
    package main
    
    import (
    	azurestack "github.com/pulumi/pulumi-azure-native-sdk/azurestack/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := azurestack.NewLinkedSubscription(ctx, "linkedSubscription", &azurestack.LinkedSubscriptionArgs{
    			LinkedSubscriptionId:   pulumi.String("104fbb77-2b0e-476a-83de-65ad8acd1f0b"),
    			LinkedSubscriptionName: pulumi.String("testLinkedSubscription"),
    			Location:               pulumi.String("eastus"),
    			RegistrationResourceId: pulumi.String("/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration"),
    			ResourceGroup:          pulumi.String("azurestack"),
    		})
    		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.azurestack.LinkedSubscription;
    import com.pulumi.azurenative.azurestack.LinkedSubscriptionArgs;
    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 linkedSubscription = new LinkedSubscription("linkedSubscription", LinkedSubscriptionArgs.builder()
                .linkedSubscriptionId("104fbb77-2b0e-476a-83de-65ad8acd1f0b")
                .linkedSubscriptionName("testLinkedSubscription")
                .location("eastus")
                .registrationResourceId("/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration")
                .resourceGroup("azurestack")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    linked_subscription = azure_native.azurestack.LinkedSubscription("linkedSubscription",
        linked_subscription_id="104fbb77-2b0e-476a-83de-65ad8acd1f0b",
        linked_subscription_name="testLinkedSubscription",
        location="eastus",
        registration_resource_id="/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration",
        resource_group="azurestack")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const linkedSubscription = new azure_native.azurestack.LinkedSubscription("linkedSubscription", {
        linkedSubscriptionId: "104fbb77-2b0e-476a-83de-65ad8acd1f0b",
        linkedSubscriptionName: "testLinkedSubscription",
        location: "eastus",
        registrationResourceId: "/subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration",
        resourceGroup: "azurestack",
    });
    
    resources:
      linkedSubscription:
        type: azure-native:azurestack:LinkedSubscription
        properties:
          linkedSubscriptionId: 104fbb77-2b0e-476a-83de-65ad8acd1f0b
          linkedSubscriptionName: testLinkedSubscription
          location: eastus
          registrationResourceId: /subscriptions/dd8597b4-8739-4467-8b10-f8679f62bfbf/resourceGroups/azurestack/providers/Microsoft.AzureStack/registrations/testRegistration
          resourceGroup: azurestack
    

    Create LinkedSubscription Resource

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

    Constructor syntax

    new LinkedSubscription(name: string, args: LinkedSubscriptionArgs, opts?: CustomResourceOptions);
    @overload
    def LinkedSubscription(resource_name: str,
                           args: LinkedSubscriptionArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def LinkedSubscription(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           linked_subscription_id: Optional[str] = None,
                           registration_resource_id: Optional[str] = None,
                           resource_group: Optional[str] = None,
                           linked_subscription_name: Optional[str] = None,
                           location: Optional[Union[str, Location]] = None)
    func NewLinkedSubscription(ctx *Context, name string, args LinkedSubscriptionArgs, opts ...ResourceOption) (*LinkedSubscription, error)
    public LinkedSubscription(string name, LinkedSubscriptionArgs args, CustomResourceOptions? opts = null)
    public LinkedSubscription(String name, LinkedSubscriptionArgs args)
    public LinkedSubscription(String name, LinkedSubscriptionArgs args, CustomResourceOptions options)
    
    type: azure-native:azurestack:LinkedSubscription
    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 LinkedSubscriptionArgs
    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 LinkedSubscriptionArgs
    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 LinkedSubscriptionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LinkedSubscriptionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LinkedSubscriptionArgs
    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 linkedSubscriptionResource = new AzureNative.AzureStack.LinkedSubscription("linkedSubscriptionResource", new()
    {
        LinkedSubscriptionId = "string",
        RegistrationResourceId = "string",
        ResourceGroup = "string",
        LinkedSubscriptionName = "string",
        Location = "string",
    });
    
    example, err := azurestack.NewLinkedSubscription(ctx, "linkedSubscriptionResource", &azurestack.LinkedSubscriptionArgs{
    	LinkedSubscriptionId:   pulumi.String("string"),
    	RegistrationResourceId: pulumi.String("string"),
    	ResourceGroup:          pulumi.String("string"),
    	LinkedSubscriptionName: pulumi.String("string"),
    	Location:               pulumi.String("string"),
    })
    
    var linkedSubscriptionResource = new LinkedSubscription("linkedSubscriptionResource", LinkedSubscriptionArgs.builder()
        .linkedSubscriptionId("string")
        .registrationResourceId("string")
        .resourceGroup("string")
        .linkedSubscriptionName("string")
        .location("string")
        .build());
    
    linked_subscription_resource = azure_native.azurestack.LinkedSubscription("linkedSubscriptionResource",
        linked_subscription_id="string",
        registration_resource_id="string",
        resource_group="string",
        linked_subscription_name="string",
        location="string")
    
    const linkedSubscriptionResource = new azure_native.azurestack.LinkedSubscription("linkedSubscriptionResource", {
        linkedSubscriptionId: "string",
        registrationResourceId: "string",
        resourceGroup: "string",
        linkedSubscriptionName: "string",
        location: "string",
    });
    
    type: azure-native:azurestack:LinkedSubscription
    properties:
        linkedSubscriptionId: string
        linkedSubscriptionName: string
        location: string
        registrationResourceId: string
        resourceGroup: string
    

    LinkedSubscription 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 LinkedSubscription resource accepts the following input properties:

    LinkedSubscriptionId string
    The identifier associated with the device subscription.
    RegistrationResourceId string
    The identifier associated with the device registration.
    ResourceGroup string
    Name of the resource group.
    LinkedSubscriptionName string
    Name of the Linked Subscription resource.
    Location string | Pulumi.AzureNative.AzureStack.Location
    Location of the resource.
    LinkedSubscriptionId string
    The identifier associated with the device subscription.
    RegistrationResourceId string
    The identifier associated with the device registration.
    ResourceGroup string
    Name of the resource group.
    LinkedSubscriptionName string
    Name of the Linked Subscription resource.
    Location string | Location
    Location of the resource.
    linkedSubscriptionId String
    The identifier associated with the device subscription.
    registrationResourceId String
    The identifier associated with the device registration.
    resourceGroup String
    Name of the resource group.
    linkedSubscriptionName String
    Name of the Linked Subscription resource.
    location String | Location
    Location of the resource.
    linkedSubscriptionId string
    The identifier associated with the device subscription.
    registrationResourceId string
    The identifier associated with the device registration.
    resourceGroup string
    Name of the resource group.
    linkedSubscriptionName string
    Name of the Linked Subscription resource.
    location string | Location
    Location of the resource.
    linked_subscription_id str
    The identifier associated with the device subscription.
    registration_resource_id str
    The identifier associated with the device registration.
    resource_group str
    Name of the resource group.
    linked_subscription_name str
    Name of the Linked Subscription resource.
    location str | Location
    Location of the resource.
    linkedSubscriptionId String
    The identifier associated with the device subscription.
    registrationResourceId String
    The identifier associated with the device registration.
    resourceGroup String
    Name of the resource group.
    linkedSubscriptionName String
    Name of the Linked Subscription resource.
    location String | "global"
    Location of the resource.

    Outputs

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

    DeviceConnectionStatus string
    The status of the remote management connection of the Azure Stack device.
    DeviceId string
    The identifier of the Azure Stack device for remote management.
    DeviceLinkState string
    The connection state of the Azure Stack device.
    DeviceObjectId string
    The object identifier associated with the Azure Stack device connecting to Azure.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    The kind of the resource.
    LastConnectedTime string
    The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
    Name string
    Name of the resource.
    SystemData Pulumi.AzureNative.AzureStack.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    Type of Resource.
    Etag string
    The entity tag used for optimistic concurrency when modifying the resource.
    Tags Dictionary<string, string>
    Custom tags for the resource.
    DeviceConnectionStatus string
    The status of the remote management connection of the Azure Stack device.
    DeviceId string
    The identifier of the Azure Stack device for remote management.
    DeviceLinkState string
    The connection state of the Azure Stack device.
    DeviceObjectId string
    The object identifier associated with the Azure Stack device connecting to Azure.
    Id string
    The provider-assigned unique ID for this managed resource.
    Kind string
    The kind of the resource.
    LastConnectedTime string
    The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
    Name string
    Name of the resource.
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    Type string
    Type of Resource.
    Etag string
    The entity tag used for optimistic concurrency when modifying the resource.
    Tags map[string]string
    Custom tags for the resource.
    deviceConnectionStatus String
    The status of the remote management connection of the Azure Stack device.
    deviceId String
    The identifier of the Azure Stack device for remote management.
    deviceLinkState String
    The connection state of the Azure Stack device.
    deviceObjectId String
    The object identifier associated with the Azure Stack device connecting to Azure.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    The kind of the resource.
    lastConnectedTime String
    The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
    name String
    Name of the resource.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type String
    Type of Resource.
    etag String
    The entity tag used for optimistic concurrency when modifying the resource.
    tags Map<String,String>
    Custom tags for the resource.
    deviceConnectionStatus string
    The status of the remote management connection of the Azure Stack device.
    deviceId string
    The identifier of the Azure Stack device for remote management.
    deviceLinkState string
    The connection state of the Azure Stack device.
    deviceObjectId string
    The object identifier associated with the Azure Stack device connecting to Azure.
    id string
    The provider-assigned unique ID for this managed resource.
    kind string
    The kind of the resource.
    lastConnectedTime string
    The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
    name string
    Name of the resource.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type string
    Type of Resource.
    etag string
    The entity tag used for optimistic concurrency when modifying the resource.
    tags {[key: string]: string}
    Custom tags for the resource.
    device_connection_status str
    The status of the remote management connection of the Azure Stack device.
    device_id str
    The identifier of the Azure Stack device for remote management.
    device_link_state str
    The connection state of the Azure Stack device.
    device_object_id str
    The object identifier associated with the Azure Stack device connecting to Azure.
    id str
    The provider-assigned unique ID for this managed resource.
    kind str
    The kind of the resource.
    last_connected_time str
    The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
    name str
    Name of the resource.
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of the resource.
    type str
    Type of Resource.
    etag str
    The entity tag used for optimistic concurrency when modifying the resource.
    tags Mapping[str, str]
    Custom tags for the resource.
    deviceConnectionStatus String
    The status of the remote management connection of the Azure Stack device.
    deviceId String
    The identifier of the Azure Stack device for remote management.
    deviceLinkState String
    The connection state of the Azure Stack device.
    deviceObjectId String
    The object identifier associated with the Azure Stack device connecting to Azure.
    id String
    The provider-assigned unique ID for this managed resource.
    kind String
    The kind of the resource.
    lastConnectedTime String
    The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
    name String
    Name of the resource.
    systemData Property Map
    Metadata pertaining to creation and last modification of the resource.
    type String
    Type of Resource.
    etag String
    The entity tag used for optimistic concurrency when modifying the resource.
    tags Map<String>
    Custom tags for the resource.

    Supporting Types

    Location, LocationArgs

    @Global
    global
    LocationGlobal
    global
    Global
    global
    Global
    global
    GLOBAL_
    global
    "global"
    global

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    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_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    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:azurestack:LinkedSubscription testLinkedSubscription /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.AzureStack/linkedSubscriptions/{linkedSubscriptionName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi