Linked Subscription
Linked Subscription information. Uses Azure REST API version 2020-06-01-preview. In version 1.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",
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Properties
Link copied to clipboard
The status of the remote management connection of the Azure Stack device.
Link copied to clipboard
The connection state of the Azure Stack device.
Link copied to clipboard
The object identifier associated with the Azure Stack device connecting to Azure.
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
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.