azure-native.azurestack.LinkedSubscription
Explore with Pulumi AI
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 * 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",
});
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")
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:
- LinkedSubscription stringId 
- The identifier associated with the device subscription.
- RegistrationResource stringId 
- The identifier associated with the device registration.
- ResourceGroup string
- Name of the resource group.
- LinkedSubscription stringName 
- Name of the Linked Subscription resource.
- Location
string | Pulumi.Azure Native. Azure Stack. Location 
- Location of the resource.
- LinkedSubscription stringId 
- The identifier associated with the device subscription.
- RegistrationResource stringId 
- The identifier associated with the device registration.
- ResourceGroup string
- Name of the resource group.
- LinkedSubscription stringName 
- Name of the Linked Subscription resource.
- Location string | Location
- Location of the resource.
- linkedSubscription StringId 
- The identifier associated with the device subscription.
- registrationResource StringId 
- The identifier associated with the device registration.
- resourceGroup String
- Name of the resource group.
- linkedSubscription StringName 
- Name of the Linked Subscription resource.
- location String | Location
- Location of the resource.
- linkedSubscription stringId 
- The identifier associated with the device subscription.
- registrationResource stringId 
- The identifier associated with the device registration.
- resourceGroup string
- Name of the resource group.
- linkedSubscription stringName 
- Name of the Linked Subscription resource.
- location string | Location
- Location of the resource.
- linked_subscription_ strid 
- The identifier associated with the device subscription.
- registration_resource_ strid 
- The identifier associated with the device registration.
- resource_group str
- Name of the resource group.
- linked_subscription_ strname 
- Name of the Linked Subscription resource.
- location str | Location
- Location of the resource.
- linkedSubscription StringId 
- The identifier associated with the device subscription.
- registrationResource StringId 
- The identifier associated with the device registration.
- resourceGroup String
- Name of the resource group.
- linkedSubscription StringName 
- 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:
- DeviceConnection stringStatus 
- The status of the remote management connection of the Azure Stack device.
- DeviceId string
- The identifier of the Azure Stack device for remote management.
- DeviceLink stringState 
- The connection state of the Azure Stack device.
- DeviceObject stringId 
- 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.
- LastConnected stringTime 
- 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.Azure Native. Azure Stack. Outputs. System Data Response 
- 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.
- Dictionary<string, string>
- Custom tags for the resource.
- DeviceConnection stringStatus 
- The status of the remote management connection of the Azure Stack device.
- DeviceId string
- The identifier of the Azure Stack device for remote management.
- DeviceLink stringState 
- The connection state of the Azure Stack device.
- DeviceObject stringId 
- 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.
- LastConnected stringTime 
- The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
- Name string
- Name of the resource.
- SystemData SystemData Response 
- 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.
- map[string]string
- Custom tags for the resource.
- deviceConnection StringStatus 
- The status of the remote management connection of the Azure Stack device.
- deviceId String
- The identifier of the Azure Stack device for remote management.
- deviceLink StringState 
- The connection state of the Azure Stack device.
- deviceObject StringId 
- 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.
- lastConnected StringTime 
- The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
- name String
- Name of the resource.
- systemData SystemData Response 
- 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.
- Map<String,String>
- Custom tags for the resource.
- deviceConnection stringStatus 
- The status of the remote management connection of the Azure Stack device.
- deviceId string
- The identifier of the Azure Stack device for remote management.
- deviceLink stringState 
- The connection state of the Azure Stack device.
- deviceObject stringId 
- 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.
- lastConnected stringTime 
- The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
- name string
- Name of the resource.
- systemData SystemData Response 
- 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.
- {[key: string]: string}
- Custom tags for the resource.
- device_connection_ strstatus 
- 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_ strstate 
- The connection state of the Azure Stack device.
- device_object_ strid 
- 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_ strtime 
- 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 SystemData Response 
- 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.
- Mapping[str, str]
- Custom tags for the resource.
- deviceConnection StringStatus 
- The status of the remote management connection of the Azure Stack device.
- deviceId String
- The identifier of the Azure Stack device for remote management.
- deviceLink StringState 
- The connection state of the Azure Stack device.
- deviceObject StringId 
- 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.
- lastConnected StringTime 
- 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.
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource.
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource.
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified 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.
- createdAt String
- The timestamp of resource creation (UTC).
- createdBy String
- The identity that created the resource.
- createdBy StringType 
- The type of identity that created the resource.
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified 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: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