azure-native.subscription.Alias
Explore with Pulumi AI
Subscription Information with the alias. API Version: 2020-09-01.
Create Alias Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Alias(name: string, args: AliasArgs, opts?: CustomResourceOptions);
@overload
def Alias(resource_name: str,
args: AliasArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Alias(resource_name: str,
opts: Optional[ResourceOptions] = None,
properties: Optional[PutAliasRequestPropertiesArgs] = None,
alias_name: Optional[str] = None)
func NewAlias(ctx *Context, name string, args AliasArgs, opts ...ResourceOption) (*Alias, error)
public Alias(string name, AliasArgs args, CustomResourceOptions? opts = null)
type: azure-native:subscription:Alias
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AliasArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args
This property is required. AliasArgs - The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AliasArgs - The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args
This property is required. AliasArgs - The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. AliasArgs - 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 aliasResource = new AzureNative.Subscription.Alias("aliasResource", new()
{
Properties =
{
{ "billingScope", "string" },
{ "displayName", "string" },
{ "resellerId", "string" },
{ "subscriptionId", "string" },
{ "workload", "string" },
},
AliasName = "string",
});
example, err := subscription.NewAlias(ctx, "aliasResource", &subscription.AliasArgs{
Properties: map[string]interface{}{
"billingScope": "string",
"displayName": "string",
"resellerId": "string",
"subscriptionId": "string",
"workload": "string",
},
AliasName: "string",
})
var aliasResource = new Alias("aliasResource", AliasArgs.builder()
.properties(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.aliasName("string")
.build());
alias_resource = azure_native.subscription.Alias("aliasResource",
properties={
billingScope: string,
displayName: string,
resellerId: string,
subscriptionId: string,
workload: string,
},
alias_name=string)
const aliasResource = new azure_native.subscription.Alias("aliasResource", {
properties: {
billingScope: "string",
displayName: "string",
resellerId: "string",
subscriptionId: "string",
workload: "string",
},
aliasName: "string",
});
type: azure-native:subscription:Alias
properties:
aliasName: string
properties:
billingScope: string
displayName: string
resellerId: string
subscriptionId: string
workload: string
Alias 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 Alias resource accepts the following input properties:
- Properties
This property is required. Pulumi.Azure Native. Subscription. Inputs. Put Alias Request Properties - Put alias request properties.
- Alias
Name Changes to this property will trigger replacement.
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
- Properties
This property is required. PutAlias Request Properties Args - Put alias request properties.
- Alias
Name Changes to this property will trigger replacement.
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
- properties
This property is required. PutAlias Request Properties - Put alias request properties.
- alias
Name Changes to this property will trigger replacement.
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
- properties
This property is required. PutAlias Request Properties - Put alias request properties.
- alias
Name Changes to this property will trigger replacement.
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
- properties
This property is required. PutAlias Request Properties Args - Put alias request properties.
- alias_
name Changes to this property will trigger replacement.
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
- properties
This property is required. Property Map - Put alias request properties.
- alias
Name Changes to this property will trigger replacement.
- Name for this subscription creation request also known as alias. Note that this is not the same as subscription name and this doesn’t have any other lifecycle need beyond the request for subscription creation.
Outputs
All input properties are implicitly available as output properties. Additionally, the Alias resource produces the following output properties:
Supporting Types
PutAliasRequestProperties, PutAliasRequestPropertiesArgs
- Billing
Scope string - Determines whether subscription is fieldLed, partnerLed or LegacyEA
- Display
Name string - The friendly name of the subscription.
- Reseller
Id string - Reseller ID, basically MPN Id
- Subscription
Id string - This parameter can be used to create alias for existing subscription Id
- Workload
string | Pulumi.
Azure Native. Subscription. Workload - The workload type of the subscription. It can be either Production or DevTest.
- Billing
Scope string - Determines whether subscription is fieldLed, partnerLed or LegacyEA
- Display
Name string - The friendly name of the subscription.
- Reseller
Id string - Reseller ID, basically MPN Id
- Subscription
Id string - This parameter can be used to create alias for existing subscription Id
- Workload string | Workload
- The workload type of the subscription. It can be either Production or DevTest.
- billing
Scope String - Determines whether subscription is fieldLed, partnerLed or LegacyEA
- display
Name String - The friendly name of the subscription.
- reseller
Id String - Reseller ID, basically MPN Id
- subscription
Id String - This parameter can be used to create alias for existing subscription Id
- workload String | Workload
- The workload type of the subscription. It can be either Production or DevTest.
- billing
Scope string - Determines whether subscription is fieldLed, partnerLed or LegacyEA
- display
Name string - The friendly name of the subscription.
- reseller
Id string - Reseller ID, basically MPN Id
- subscription
Id string - This parameter can be used to create alias for existing subscription Id
- workload string | Workload
- The workload type of the subscription. It can be either Production or DevTest.
- billing_
scope str - Determines whether subscription is fieldLed, partnerLed or LegacyEA
- display_
name str - The friendly name of the subscription.
- reseller_
id str - Reseller ID, basically MPN Id
- subscription_
id str - This parameter can be used to create alias for existing subscription Id
- workload str | Workload
- The workload type of the subscription. It can be either Production or DevTest.
- billing
Scope String - Determines whether subscription is fieldLed, partnerLed or LegacyEA
- display
Name String - The friendly name of the subscription.
- reseller
Id String - Reseller ID, basically MPN Id
- subscription
Id String - This parameter can be used to create alias for existing subscription Id
- workload
String | "Production" | "Dev
Test" - The workload type of the subscription. It can be either Production or DevTest.
PutAliasResponsePropertiesResponse, PutAliasResponsePropertiesResponseArgs
- Subscription
Id This property is required. string - Newly created subscription Id.
- Provisioning
State string - The provisioning state of the resource.
- Subscription
Id This property is required. string - Newly created subscription Id.
- Provisioning
State string - The provisioning state of the resource.
- subscription
Id This property is required. String - Newly created subscription Id.
- provisioning
State String - The provisioning state of the resource.
- subscription
Id This property is required. string - Newly created subscription Id.
- provisioning
State string - The provisioning state of the resource.
- subscription_
id This property is required. str - Newly created subscription Id.
- provisioning_
state str - The provisioning state of the resource.
- subscription
Id This property is required. String - Newly created subscription Id.
- provisioning
State String - The provisioning state of the resource.
Workload, WorkloadArgs
- Production
- Production
- Dev
Test - DevTest
- Workload
Production - Production
- Workload
Dev Test - DevTest
- Production
- Production
- Dev
Test - DevTest
- Production
- Production
- Dev
Test - DevTest
- PRODUCTION
- Production
- DEV_TEST
- DevTest
- "Production"
- Production
- "Dev
Test" - DevTest
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:subscription:Alias aliasForNewSub /providers/Microsoft.Subscription/aliases/aliasForNewSub
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0