Linked Subscription
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
The Azure API version of the resource.
The status of the remote management connection of the Azure Stack device.
The connection state of the Azure Stack device.
The object identifier associated with the Azure Stack device connecting to Azure.
The last remote management connection time for the Azure Stack device connected to the linked subscription resource.
The identifier associated with the device subscription.
The identifier associated with the device registration.
Metadata pertaining to creation and last modification of the resource.