// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.subscription.generated;

import com.azure.resourcemanager.subscription.models.PutAliasRequest;
import com.azure.resourcemanager.subscription.models.PutAliasRequestProperties;
import com.azure.resourcemanager.subscription.models.Workload;

/** Samples for Alias Create. */
public final class AliasCreateSamples {
    /*
     * x-ms-original-file: specification/subscription/resource-manager/Microsoft.Subscription/stable/2020-09-01/examples/createAlias.json
     */
    /**
     * Sample code: CreateAlias.
     *
     * @param manager Entry point to SubscriptionManager.
     */
    public static void createAlias(com.azure.resourcemanager.subscription.SubscriptionManager manager) {
        manager
            .alias()
            .create(
                "aliasForNewSub",
                new PutAliasRequest()
                    .withProperties(
                        new PutAliasRequestProperties()
                            .withDisplayName("Contoso MCA subscription")
                            .withWorkload(Workload.PRODUCTION)
                            .withBillingScope(
                                "/providers/Microsoft.Billing/billingAccounts/e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31/billingProfiles/PE2Q-NOIT-BG7-TGB/invoiceSections/MTT4-OBS7-PJA-TGB")),
                com.azure.core.util.Context.NONE);
    }
}
