We recommend using Azure Native.
Viewing docs for Azure v5.89.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v5.89.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Get information about a Mobile Network Slice.
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 exampleGetNetworkSlice = azure.mobile.getNetworkSlice({
name: "example-mns",
mobileNetworkId: test.id,
});
import pulumi
import pulumi_azure as azure
example = azure.mobile.get_network(name="example-mn",
resource_group_name="example-rg")
example_get_network_slice = azure.mobile.get_network_slice(name="example-mns",
mobile_network_id=test["id"])
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/mobile"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mobile.LookupNetwork(ctx, &mobile.LookupNetworkArgs{
Name: "example-mn",
ResourceGroupName: "example-rg",
}, nil)
if err != nil {
return err
}
_, err = mobile.LookupNetworkSlice(ctx, &mobile.LookupNetworkSliceArgs{
Name: "example-mns",
MobileNetworkId: test.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 exampleGetNetworkSlice = Azure.Mobile.GetNetworkSlice.Invoke(new()
{
Name = "example-mns",
MobileNetworkId = test.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.GetNetworkSliceArgs;
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 exampleGetNetworkSlice = MobileFunctions.getNetworkSlice(GetNetworkSliceArgs.builder()
.name("example-mns")
.mobileNetworkId(test.id())
.build());
}
}
variables:
example:
fn::invoke:
Function: azure:mobile:getNetwork
Arguments:
name: example-mn
resourceGroupName: example-rg
exampleGetNetworkSlice:
fn::invoke:
Function: azure:mobile:getNetworkSlice
Arguments:
name: example-mns
mobileNetworkId: ${test.id}
Using getNetworkSlice
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 getNetworkSlice(args: GetNetworkSliceArgs, opts?: InvokeOptions): Promise<GetNetworkSliceResult>
function getNetworkSliceOutput(args: GetNetworkSliceOutputArgs, opts?: InvokeOptions): Output<GetNetworkSliceResult>def get_network_slice(mobile_network_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkSliceResult
def get_network_slice_output(mobile_network_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkSliceResult]func LookupNetworkSlice(ctx *Context, args *LookupNetworkSliceArgs, opts ...InvokeOption) (*LookupNetworkSliceResult, error)
func LookupNetworkSliceOutput(ctx *Context, args *LookupNetworkSliceOutputArgs, opts ...InvokeOption) LookupNetworkSliceResultOutput> Note: This function is named LookupNetworkSlice in the Go SDK.
public static class GetNetworkSlice
{
public static Task<GetNetworkSliceResult> InvokeAsync(GetNetworkSliceArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkSliceResult> Invoke(GetNetworkSliceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkSliceResult> getNetworkSlice(GetNetworkSliceArgs args, InvokeOptions options)
public static Output<GetNetworkSliceResult> getNetworkSlice(GetNetworkSliceArgs args, InvokeOptions options)
fn::invoke:
function: azure:mobile/getNetworkSlice:getNetworkSlice
arguments:
# arguments dictionaryThe following arguments are supported:
- Mobile
Network stringId - The ID of Mobile Network which the Mobile Network Slice belongs to.
- Name string
- Specifies the name which should be used for this Mobile Network Slice.
- Mobile
Network stringId - The ID of Mobile Network which the Mobile Network Slice belongs to.
- Name string
- Specifies the name which should be used for this Mobile Network Slice.
- mobile
Network StringId - The ID of Mobile Network which the Mobile Network Slice belongs to.
- name String
- Specifies the name which should be used for this Mobile Network Slice.
- mobile
Network stringId - The ID of Mobile Network which the Mobile Network Slice belongs to.
- name string
- Specifies the name which should be used for this Mobile Network Slice.
- mobile_
network_ strid - The ID of Mobile Network which the Mobile Network Slice belongs to.
- name str
- Specifies the name which should be used for this Mobile Network Slice.
- mobile
Network StringId - The ID of Mobile Network which the Mobile Network Slice belongs to.
- name String
- Specifies the name which should be used for this Mobile Network Slice.
getNetworkSlice Result
The following output properties are available:
- Description string
- A description of this Mobile Network Slice.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Mobile Network Slice exists.
- Mobile
Network stringId - Name string
- Single
Network List<GetSlice Selection Assistance Informations Network Slice Single Network Slice Selection Assistance Information> - A
single_network_slice_selection_assistance_informationblock as defined below. Single-network slice selection assistance information (S-NSSAI). - Dictionary<string, string>
- A mapping of tags which are assigned to the Mobile Network Slice.
- Description string
- A description of this Mobile Network Slice.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Mobile Network Slice exists.
- Mobile
Network stringId - Name string
- Single
Network []GetSlice Selection Assistance Informations Network Slice Single Network Slice Selection Assistance Information - A
single_network_slice_selection_assistance_informationblock as defined below. Single-network slice selection assistance information (S-NSSAI). - map[string]string
- A mapping of tags which are assigned to the Mobile Network Slice.
- description String
- A description of this Mobile Network Slice.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Mobile Network Slice exists.
- mobile
Network StringId - name String
- single
Network List<GetSlice Selection Assistance Informations Network Slice Single Network Slice Selection Assistance Information> - A
single_network_slice_selection_assistance_informationblock as defined below. Single-network slice selection assistance information (S-NSSAI). - Map<String,String>
- A mapping of tags which are assigned to the Mobile Network Slice.
- description string
- A description of this Mobile Network Slice.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure Region where the Mobile Network Slice exists.
- mobile
Network stringId - name string
- single
Network GetSlice Selection Assistance Informations Network Slice Single Network Slice Selection Assistance Information[] - A
single_network_slice_selection_assistance_informationblock as defined below. Single-network slice selection assistance information (S-NSSAI). - {[key: string]: string}
- A mapping of tags which are assigned to the Mobile Network Slice.
- description str
- A description of this Mobile Network Slice.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure Region where the Mobile Network Slice exists.
- mobile_
network_ strid - name str
- single_
network_ Sequence[Getslice_ selection_ assistance_ informations Network Slice Single Network Slice Selection Assistance Information] - A
single_network_slice_selection_assistance_informationblock as defined below. Single-network slice selection assistance information (S-NSSAI). - Mapping[str, str]
- A mapping of tags which are assigned to the Mobile Network Slice.
- description String
- A description of this Mobile Network Slice.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Mobile Network Slice exists.
- mobile
Network StringId - name String
- single
Network List<Property Map>Slice Selection Assistance Informations - A
single_network_slice_selection_assistance_informationblock as defined below. Single-network slice selection assistance information (S-NSSAI). - Map<String>
- A mapping of tags which are assigned to the Mobile Network Slice.
Supporting Types
GetNetworkSliceSingleNetworkSliceSelectionAssistanceInformation
- Slice
Differentiator string - Slice differentiator (SD).
- Slice
Service intType - Slice/service type (SST).
- Slice
Differentiator string - Slice differentiator (SD).
- Slice
Service intType - Slice/service type (SST).
- slice
Differentiator String - Slice differentiator (SD).
- slice
Service IntegerType - Slice/service type (SST).
- slice
Differentiator string - Slice differentiator (SD).
- slice
Service numberType - Slice/service type (SST).
- slice_
differentiator str - Slice differentiator (SD).
- slice_
service_ inttype - Slice/service type (SST).
- slice
Differentiator String - Slice differentiator (SD).
- slice
Service NumberType - Slice/service type (SST).
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v5.89.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
