LinkedSubscription

class LinkedSubscription : KotlinCustomResource

Linked Subscription information. Uses Azure REST API version 2020-06-01-preview. In version 2.x of the Azure Native provider, it used API version 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/v3"
"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

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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard

The status of the remote management connection of the Azure Stack device.

Link copied to clipboard
val deviceId: Output<String>

The identifier of the Azure Stack device for remote management.

Link copied to clipboard
val deviceLinkState: Output<String>

The connection state of the Azure Stack device.

Link copied to clipboard
val deviceObjectId: Output<String>

The object identifier associated with the Azure Stack device connecting to Azure.

Link copied to clipboard
val etag: Output<String>?

The entity tag used for optimistic concurrency when modifying the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val kind: Output<String>

The kind of the resource.

Link copied to clipboard

The last remote management connection time for the Azure Stack device connected to the linked subscription resource.

Link copied to clipboard

The identifier associated with the device subscription.

Link copied to clipboard
val location: Output<String>

Location of the resource.

Link copied to clipboard
val name: Output<String>

Name of the resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The identifier associated with the device registration.

Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Custom tags for the resource.

Link copied to clipboard
val type: Output<String>

Type of Resource.

Link copied to clipboard
val urn: Output<String>