We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.mobile.getNetworkSite
Explore with Pulumi AI
Get information about a Mobile Network Site.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.mobile.getNetwork({
    name: "example-mn",
    resourceGroupName: "example-rg",
});
const exampleGetNetworkSite = example.then(example => azure.mobile.getNetworkSite({
    name: "example-mns",
    mobileNetworkId: example.id,
}));
import pulumi
import pulumi_azure as azure
example = azure.mobile.get_network(name="example-mn",
    resource_group_name="example-rg")
example_get_network_site = azure.mobile.get_network_site(name="example-mns",
    mobile_network_id=example.id)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mobile"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := mobile.LookupNetwork(ctx, &mobile.LookupNetworkArgs{
			Name:              "example-mn",
			ResourceGroupName: "example-rg",
		}, nil)
		if err != nil {
			return err
		}
		_, err = mobile.LookupNetworkSite(ctx, &mobile.LookupNetworkSiteArgs{
			Name:            "example-mns",
			MobileNetworkId: example.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.Mobile.GetNetwork.Invoke(new()
    {
        Name = "example-mn",
        ResourceGroupName = "example-rg",
    });
    var exampleGetNetworkSite = Azure.Mobile.GetNetworkSite.Invoke(new()
    {
        Name = "example-mns",
        MobileNetworkId = example.Apply(getNetworkResult => getNetworkResult.Id),
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.mobile.MobileFunctions;
import com.pulumi.azure.mobile.inputs.GetNetworkArgs;
import com.pulumi.azure.mobile.inputs.GetNetworkSiteArgs;
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) {
        final var example = MobileFunctions.getNetwork(GetNetworkArgs.builder()
            .name("example-mn")
            .resourceGroupName("example-rg")
            .build());
        final var exampleGetNetworkSite = MobileFunctions.getNetworkSite(GetNetworkSiteArgs.builder()
            .name("example-mns")
            .mobileNetworkId(example.applyValue(getNetworkResult -> getNetworkResult.id()))
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: azure:mobile:getNetwork
      arguments:
        name: example-mn
        resourceGroupName: example-rg
  exampleGetNetworkSite:
    fn::invoke:
      function: azure:mobile:getNetworkSite
      arguments:
        name: example-mns
        mobileNetworkId: ${example.id}
Using getNetworkSite
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNetworkSite(args: GetNetworkSiteArgs, opts?: InvokeOptions): Promise<GetNetworkSiteResult>
function getNetworkSiteOutput(args: GetNetworkSiteOutputArgs, opts?: InvokeOptions): Output<GetNetworkSiteResult>def get_network_site(mobile_network_id: Optional[str] = None,
                     name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetNetworkSiteResult
def get_network_site_output(mobile_network_id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetNetworkSiteResult]func LookupNetworkSite(ctx *Context, args *LookupNetworkSiteArgs, opts ...InvokeOption) (*LookupNetworkSiteResult, error)
func LookupNetworkSiteOutput(ctx *Context, args *LookupNetworkSiteOutputArgs, opts ...InvokeOption) LookupNetworkSiteResultOutput> Note: This function is named LookupNetworkSite in the Go SDK.
public static class GetNetworkSite 
{
    public static Task<GetNetworkSiteResult> InvokeAsync(GetNetworkSiteArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkSiteResult> Invoke(GetNetworkSiteInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkSiteResult> getNetworkSite(GetNetworkSiteArgs args, InvokeOptions options)
public static Output<GetNetworkSiteResult> getNetworkSite(GetNetworkSiteArgs args, InvokeOptions options)
fn::invoke:
  function: azure:mobile/getNetworkSite:getNetworkSite
  arguments:
    # arguments dictionaryThe following arguments are supported:
- MobileNetwork stringId 
- the ID of the Mobile Network which the Mobile Network Site belongs to.
- Name string
- The name which should be used for this Mobile Network Site.
- MobileNetwork stringId 
- the ID of the Mobile Network which the Mobile Network Site belongs to.
- Name string
- The name which should be used for this Mobile Network Site.
- mobileNetwork StringId 
- the ID of the Mobile Network which the Mobile Network Site belongs to.
- name String
- The name which should be used for this Mobile Network Site.
- mobileNetwork stringId 
- the ID of the Mobile Network which the Mobile Network Site belongs to.
- name string
- The name which should be used for this Mobile Network Site.
- mobile_network_ strid 
- the ID of the Mobile Network which the Mobile Network Site belongs to.
- name str
- The name which should be used for this Mobile Network Site.
- mobileNetwork StringId 
- the ID of the Mobile Network which the Mobile Network Site belongs to.
- name String
- The name which should be used for this Mobile Network Site.
getNetworkSite Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Mobile Network Site should exist.
- MobileNetwork stringId 
- Name string
- NetworkFunction List<string>Ids 
- An array of Id of Network Functions deployed on the site.
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Mobile Network Site.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Mobile Network Site should exist.
- MobileNetwork stringId 
- Name string
- NetworkFunction []stringIds 
- An array of Id of Network Functions deployed on the site.
- map[string]string
- A mapping of tags which should be assigned to the Mobile Network Site.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Mobile Network Site should exist.
- mobileNetwork StringId 
- name String
- networkFunction List<String>Ids 
- An array of Id of Network Functions deployed on the site.
- Map<String,String>
- A mapping of tags which should be assigned to the Mobile Network Site.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure Region where the Mobile Network Site should exist.
- mobileNetwork stringId 
- name string
- networkFunction string[]Ids 
- An array of Id of Network Functions deployed on the site.
- {[key: string]: string}
- A mapping of tags which should be assigned to the Mobile Network Site.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure Region where the Mobile Network Site should exist.
- mobile_network_ strid 
- name str
- network_function_ Sequence[str]ids 
- An array of Id of Network Functions deployed on the site.
- Mapping[str, str]
- A mapping of tags which should be assigned to the Mobile Network Site.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Mobile Network Site should exist.
- mobileNetwork StringId 
- name String
- networkFunction List<String>Ids 
- An array of Id of Network Functions deployed on the site.
- Map<String>
- A mapping of tags which should be assigned to the Mobile Network Site.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.