Site
Site resource. Must be created in the same location as its parent mobile network. Uses Azure REST API version 2024-04-01. In version 2.x of the Azure Native provider, it used API version 2023-06-01. Other available API versions: 2022-04-01-preview, 2022-11-01, 2023-06-01, 2023-09-01, 2024-02-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native mobilenetwork [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
Example Usage
Create mobile network site
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var site = new AzureNative.MobileNetwork.Site("site", new()
{
Location = "testLocation",
MobileNetworkName = "testMobileNetwork",
ResourceGroupName = "rg1",
SiteName = "testSite",
});
});
package main
import (
mobilenetwork "github.com/pulumi/pulumi-azure-native-sdk/mobilenetwork/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mobilenetwork.NewSite(ctx, "site", &mobilenetwork.SiteArgs{
Location: pulumi.String("testLocation"),
MobileNetworkName: pulumi.String("testMobileNetwork"),
ResourceGroupName: pulumi.String("rg1"),
SiteName: pulumi.String("testSite"),
})
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.mobilenetwork.Site;
import com.pulumi.azurenative.mobilenetwork.SiteArgs;
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 site = new Site("site", SiteArgs.builder()
.location("testLocation")
.mobileNetworkName("testMobileNetwork")
.resourceGroupName("rg1")
.siteName("testSite")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:mobilenetwork:Site testSite /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/sites/{siteName}
Properties
The Azure API version of the resource.
An array of IDs of the network functions deployed in the site. Deleting the site will delete any network functions that are deployed in the site.
The provisioning state of the site resource.
Azure Resource Manager metadata containing createdBy and modifiedBy information.