Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upped aliases API version to non-preview #198

Merged
merged 13 commits into from
Apr 2, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
SUMMARY: The Subscription Alias module deploys an EA, MCA or MPA Subscription into the tenants default Management Group
DESCRIPTION: The Subscription Alias module deploys an EA, MCA or MPA Subscription into the tenants default Management Group as per the docs here: https://docs.microsoft.com/azure/cost-management-billing/manage/programmatically-create-subscription
AUTHOR/S: jtracey93
johnlokerse marked this conversation as resolved.
Show resolved Hide resolved
VERSION: 1.0.0
VERSION: 1.1.0
- Updated version of the API
- Added additional properties: parTags, parManagementGroupId, parSubscriptionOwnerId and subscriptionTenantId
*/

targetScope = 'tenant'
Expand All @@ -13,6 +15,15 @@ param parSubscriptionName string
@description('The full resource ID of billing scope associated to the EA, MCA or MPA account you wish to create the subscription in.')
param parSubscriptionBillingScope string

@description('Tags you would like to be applied')
param parTags object = {}

@description('The ID of the management group where the subscription will be placed. Also known as the parent management group.')
param parManagementGroupId string
johnlokerse marked this conversation as resolved.
Show resolved Hide resolved

@description('The ID of the responsible user for the subscription.')
johnlokerse marked this conversation as resolved.
Show resolved Hide resolved
param parSubscriptionOwnerId string
johnlokerse marked this conversation as resolved.
Show resolved Hide resolved

@allowed([
'DevTest'
'Production'
Expand All @@ -23,6 +34,12 @@ param parSubscriptionOfferType string = 'Production'
resource resSubscription 'Microsoft.Subscription/aliases@2021-10-01' = {
name: parSubscriptionName
properties: {
additionalProperties: {
tags: parTags
managementGroupId: parManagementGroupId
subscriptionOwnerId: parSubscriptionOwnerId
subscriptionTenantId: tenant().tenantId
johnlokerse marked this conversation as resolved.
Show resolved Hide resolved
}
displayName: parSubscriptionName
billingScope: parSubscriptionBillingScope
workload: parSubscriptionOfferType
Expand Down