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 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:
- Linked
Subscription stringId - The identifier associated with the device subscription.
- Registration
Resource stringId - The identifier associated with the device registration.
- Resource
Group string - Name of the resource group.
- Linked
Subscription stringName - Name of the Linked Subscription resource.
- Location
string | Pulumi.
Azure Native. Azure Stack. Location - Location of the resource.
- Linked
Subscription stringId - The identifier associated with the device subscription.
- Registration
Resource stringId - The identifier associated with the device registration.
- Resource
Group string - Name of the resource group.
- Linked
Subscription stringName - Name of the Linked Subscription resource.
- Location string | Location
- Location of the resource.
- linked
Subscription StringId - The identifier associated with the device subscription.
- registration
Resource StringId - The identifier associated with the device registration.
- resource
Group String - Name of the resource group.
- linked
Subscription StringName - Name of the Linked Subscription resource.
- location String | Location
- Location of the resource.
- linked
Subscription stringId - The identifier associated with the device subscription.
- registration
Resource stringId - The identifier associated with the device registration.
- resource
Group string - Name of the resource group.
- linked
Subscription 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.
- linked
Subscription StringId - The identifier associated with the device subscription.
- registration
Resource StringId - The identifier associated with the device registration.
- resource
Group String - Name of the resource group.
- linked
Subscription 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:
- Device
Connection stringStatus - The status of the remote management connection of the Azure Stack device.
- Device
Id string - The identifier of the Azure Stack device for remote management.
- Device
Link stringState - The connection state of the Azure Stack device.
- Device
Object 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.
- Last
Connected stringTime - The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
- Name string
- Name of the resource.
- System
Data 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.
- Device
Connection stringStatus - The status of the remote management connection of the Azure Stack device.
- Device
Id string - The identifier of the Azure Stack device for remote management.
- Device
Link stringState - The connection state of the Azure Stack device.
- Device
Object 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.
- Last
Connected stringTime - The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
- Name string
- Name of the resource.
- System
Data 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.
- device
Connection StringStatus - The status of the remote management connection of the Azure Stack device.
- device
Id String - The identifier of the Azure Stack device for remote management.
- device
Link StringState - The connection state of the Azure Stack device.
- device
Object 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.
- last
Connected StringTime - The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
- name String
- Name of the resource.
- system
Data 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.
- device
Connection stringStatus - The status of the remote management connection of the Azure Stack device.
- device
Id string - The identifier of the Azure Stack device for remote management.
- device
Link stringState - The connection state of the Azure Stack device.
- device
Object 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.
- last
Connected stringTime - The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
- name string
- Name of the resource.
- system
Data 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.
- device
Connection StringStatus - The status of the remote management connection of the Azure Stack device.
- device
Id String - The identifier of the Azure Stack device for remote management.
- device
Link StringState - The connection state of the Azure Stack device.
- device
Object 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.
- last
Connected StringTime - The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
- name String
- Name of the resource.
- system
Data 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
- Location
Global - global
- Global
- global
- Global
- global
- GLOBAL_
- global
- "global"
- global
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: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