diff --git a/documentation/azure-powershell-modules.md b/documentation/azure-powershell-modules.md
index e95912ddc50d..8ab0ad0ddd20 100644
--- a/documentation/azure-powershell-modules.md
+++ b/documentation/azure-powershell-modules.md
@@ -105,6 +105,7 @@ Marketplace Ordering | `Az.MarketplaceOrdering`
Media | `Az.Media` | [![Media]][MediaGallery]
Migrate | `Az.Migrate` | [![Migrate]][MigrateGallery]
Mixed Reality | `Az.MixedReality` | [![MixedReality]][MixedRealityGallery]
+Mobile Network | `Az.MobileNetwork` | [![MobileNetwork]][MobileNetworkGallery]
Monitor | `Az.Monitor` | [![Monitor]][MonitorGallery]
Monitoring Solutions | `Az.MonitoringSolutions` | [![MonitoringSolutions]][MonitoringSolutionsGallery]
Database for MySQL | `Az.MySql` | [![MySql]][MySqlGallery]
@@ -257,6 +258,7 @@ Windows Iot Services | `Az.WindowsIotServices`
[Media]: https://img.shields.io/powershellgallery/v/Az.Media.svg?style=flat-square&label=Az.Media
[Migrate]: https://img.shields.io/powershellgallery/v/Az.Migrate.svg?style=flat-square&label=Az.Migrate
[MixedReality]: https://img.shields.io/powershellgallery/v/Az.MixedReality.svg?style=flat-square&label=Az.MixedReality
+[MobileNetwork]: https://img.shields.io/powershellgallery/v/Az.MobileNetwork.svg?style=flat-square&label=Az.MobileNetwork
[Monitor]: https://img.shields.io/powershellgallery/v/Az.Monitor.svg?style=flat-square&label=Az.Monitor
[MonitoringSolutions]: https://img.shields.io/powershellgallery/v/Az.MonitoringSolutions.svg?style=flat-square&label=Az.MonitoringSolutions
[MySql]: https://img.shields.io/powershellgallery/v/Az.MySql.svg?style=flat-square&label=Az.MySql
@@ -407,6 +409,7 @@ Windows Iot Services | `Az.WindowsIotServices`
[MediaGallery]: https://www.powershellgallery.com/packages/Az.Media/
[MigrateGallery]: https://www.powershellgallery.com/packages/Az.Migrate/
[MixedRealityGallery]: https://www.powershellgallery.com/packages/Az.MixedReality/
+[MobileNetworkGallery]: https://www.powershellgallery.com/packages/Az.MobileNetwork/
[MonitorGallery]: https://www.powershellgallery.com/packages/Az.Monitor/
[MonitoringSolutionsGallery]: https://www.powershellgallery.com/packages/Az.MonitoringSolutions/
[MySqlGallery]: https://www.powershellgallery.com/packages/Az.MySql/
diff --git a/src/MobileNetwork/Az.MobileNetwork.csproj b/src/MobileNetwork/Az.MobileNetwork.csproj
new file mode 100644
index 000000000000..ff33b8bcf87e
--- /dev/null
+++ b/src/MobileNetwork/Az.MobileNetwork.csproj
@@ -0,0 +1,8 @@
+
+
+ MobileNetwork
+
+
+
+
+
diff --git a/src/MobileNetwork/Az.MobileNetwork.format.ps1xml b/src/MobileNetwork/Az.MobileNetwork.format.ps1xml
new file mode 100644
index 000000000000..79cf53734c50
--- /dev/null
+++ b/src/MobileNetwork/Az.MobileNetwork.format.ps1xml
@@ -0,0 +1,2745 @@
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.MobileNetworkIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.MobileNetworkIdentity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AttachedDataNetworkName
+
+
+ DataNetworkName
+
+
+ MobileNetworkName
+
+
+ PacketCoreControlPlaneName
+
+
+ PacketCoreDataPlaneName
+
+
+ ResourceGroupName
+
+
+ ServiceName
+
+
+ SimGroupName
+
+
+ SimName
+
+
+ SimPolicyName
+
+
+ SiteName
+
+
+ SliceName
+
+
+ SubscriptionId
+
+
+ VersionName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ErrorDetail
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ErrorDetail
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Code
+
+
+ Message
+
+
+ Target
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ManagedServiceIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ManagedServiceIdentity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PrincipalId
+
+
+ TenantId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ProxyResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ProxyResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.Resource
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.Resource
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.SystemData
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.SystemData
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CreatedAt
+
+
+ CreatedBy
+
+
+ CreatedByType
+
+
+ LastModifiedAt
+
+
+ LastModifiedBy
+
+
+ LastModifiedByType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.TrackedResource
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.TrackedResource
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ SystemDataCreatedAt
+
+
+ SystemDataCreatedBy
+
+
+ SystemDataCreatedByType
+
+
+ SystemDataLastModifiedAt
+
+
+ SystemDataLastModifiedBy
+
+
+ SystemDataLastModifiedByType
+
+
+ Location
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.TrackedResourceTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.TrackedResourceTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.UserAssignedIdentity
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.UserAssignedIdentity
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ClientId
+
+
+ PrincipalId
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Ambr
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Ambr
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Downlink
+
+
+ Uplink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Arp
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Arp
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ PreemptCap
+
+
+ PreemptVuln
+
+
+ PriorityLevel
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AsyncOperationStatus
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AsyncOperationStatus
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ EndTime
+
+
+ Name
+
+
+ PercentComplete
+
+
+ ResourceGroupName
+
+
+ ResourceId
+
+
+ StartTime
+
+
+ Status
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AttachedDataNetwork
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AttachedDataNetwork
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AttachedDataNetworkListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AttachedDataNetworkListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AttachedDataNetworkPropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AttachedDataNetworkPropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DnsAddress
+
+
+ ProvisioningState
+
+
+ UserEquipmentAddressPoolPrefix
+
+
+ UserEquipmentStaticAddressPoolPrefix
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.CertificateProvisioning
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.CertificateProvisioning
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Reason
+
+
+ State
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.CommonSimPropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.CommonSimPropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DeviceType
+
+
+ IntegratedCircuitCardIdentifier
+
+
+ InternationalMobileSubscriberIdentity
+
+
+ ProvisioningState
+
+
+ SimState
+
+
+ VendorKeyFingerprint
+
+
+ VendorName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetwork
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetwork
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkConfiguration
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkConfiguration
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AdditionalAllowedSessionType
+
+
+ AllocationAndRetentionPriorityLevel
+
+
+ DefaultSessionType
+
+
+ FiveQi
+
+
+ MaximumNumberOfBufferedPacket
+
+
+ PreemptionCapability
+
+
+ PreemptionVulnerability
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkPropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkPropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Description
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.EncryptedSimPropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.EncryptedSimPropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DeviceType
+
+
+ IntegratedCircuitCardIdentifier
+
+
+ InternationalMobileSubscriberIdentity
+
+
+ ProvisioningState
+
+
+ SimPolicyId
+
+
+ SimState
+
+
+ VendorKeyFingerprint
+
+
+ VendorName
+
+
+ EncryptedCredentials
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.EncryptedSimUploadList
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.EncryptedSimUploadList
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AzureKeyIdentifier
+
+
+ EncryptedTransportKey
+
+
+ SignedTransportKey
+
+
+ VendorKeyFingerprint
+
+
+ Version
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.HttpsServerCertificate
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.HttpsServerCertificate
+
+
+
+
+
+
+
+
+
+
+
+ CertificateUrl
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Installation
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Installation
+
+
+
+
+
+
+
+
+
+
+
+ State
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.InterfaceProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.InterfaceProperties
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Ipv4Address
+
+
+ Ipv4Gateway
+
+
+ Ipv4Subnet
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.KeyVaultKey
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.KeyVaultKey
+
+
+
+
+
+
+
+
+
+
+
+ KeyUrl
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.LocalDiagnosticsAccessConfiguration
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.LocalDiagnosticsAccessConfiguration
+
+
+
+
+
+
+
+
+
+
+
+ AuthenticationType
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.MobileNetwork
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.MobileNetwork
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ PublicLandMobileNetworkIdentifierMcc
+
+
+ PublicLandMobileNetworkIdentifierMnc
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.MobileNetworkListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.MobileNetworkListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.MobileNetworkPropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.MobileNetworkPropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+ ServiceKey
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.NaptConfiguration
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.NaptConfiguration
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Enabled
+
+
+ PinholeLimit
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Operation
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Operation
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ IsDataAction
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.OperationDisplay
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.OperationDisplay
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Description
+
+
+ Operation
+
+
+ Provider
+
+
+ Resource
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.OperationList
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.OperationList
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlane
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlane
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneCollectDiagnosticsPackage
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneCollectDiagnosticsPackage
+
+
+
+
+
+
+
+
+
+
+
+ StorageAccountBlobUrl
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlanePropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlanePropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ CoreNetworkTechnology
+
+
+ ProvisioningState
+
+
+ RollbackVersion
+
+
+ Sku
+
+
+ UeMtu
+
+
+ Version
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneVersion
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneVersion
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneVersionListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneVersionListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneVersionPropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneVersionPropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreDataPlane
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreDataPlane
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreDataPlaneListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreDataPlaneListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreDataPlanePropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreDataPlanePropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PccRuleConfiguration
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PccRuleConfiguration
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ RuleName
+
+
+ RulePrecedence
+
+
+ TrafficControl
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PccRuleQosPolicy
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PccRuleQosPolicy
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AllocationAndRetentionPriorityLevel
+
+
+ FiveQi
+
+
+ MaximumBitRateDownlink
+
+
+ MaximumBitRateUplink
+
+
+ PreemptionCapability
+
+
+ PreemptionVulnerability
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PinholeTimeouts
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PinholeTimeouts
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Icmp
+
+
+ Tcp
+
+
+ Udp
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Platform
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Platform
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ MaximumPlatformSoftwareVersion
+
+
+ MinimumPlatformSoftwareVersion
+
+
+ ObsoleteVersion
+
+
+ RecommendedVersion
+
+
+ VersionState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PlmnId
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PlmnId
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Mcc
+
+
+ Mnc
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PortRange
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PortRange
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ MaxPort
+
+
+ MinPort
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PortReuseHoldTimes
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PortReuseHoldTimes
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Tcp
+
+
+ Udp
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.QosPolicy
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.QosPolicy
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ AllocationAndRetentionPriorityLevel
+
+
+ FiveQi
+
+
+ PreemptionCapability
+
+
+ PreemptionVulnerability
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Service
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Service
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ ProvisioningState
+
+
+ Precedence
+
+
+ MaximumBitRateDownlink
+
+
+ MaximumBitRateUplink
+
+
+ QoPolicyAllocationAndRetentionPriorityLevel
+
+
+ QoPolicyFiveQi
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceDataFlowTemplate
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceDataFlowTemplate
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Direction
+
+
+ Port
+
+
+ Protocol
+
+
+ RemoteIPList
+
+
+ TemplateName
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServicePropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServicePropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+ ServicePrecedence
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Sim
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Sim
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimDeleteList
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimDeleteList
+
+
+
+
+
+
+
+
+
+
+
+ Sim
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroup
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroup
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroupListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroupListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroupPropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroupPropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimNameAndEncryptedProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimNameAndEncryptedProperties
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimNameAndProperties
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimNameAndProperties
+
+
+
+
+
+
+
+
+
+
+
+ Name
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPolicy
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPolicy
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ ProvisioningState
+
+
+ RegistrationTimer
+
+
+ UeAmbrDownlink
+
+
+ UeAmbrUplink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPolicyListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPolicyListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPolicyPropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPolicyPropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+ RegistrationTimer
+
+
+ RfspIndex
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DeviceType
+
+
+ IntegratedCircuitCardIdentifier
+
+
+ InternationalMobileSubscriberIdentity
+
+
+ ProvisioningState
+
+
+ SimPolicyId
+
+
+ SimState
+
+
+ VendorKeyFingerprint
+
+
+ VendorName
+
+
+ AuthenticationKey
+
+
+ OperatorKeyCode
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimStaticIPPropertiesStaticIP
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimStaticIPPropertiesStaticIP
+
+
+
+
+
+
+
+
+
+
+
+ Ipv4Address
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Site
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Site
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SitePropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SitePropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteProvisioning
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteProvisioning
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Slice
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Slice
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Location
+
+
+ Name
+
+
+ ResourceGroupName
+
+
+ ProvisioningState
+
+
+ SnssaiSst
+
+
+ SnssaiSd
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SliceListResult
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SliceListResult
+
+
+
+
+
+
+
+
+
+
+
+ NextLink
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SlicePropertiesFormat
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SlicePropertiesFormat
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Description
+
+
+ ProvisioningState
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Snssai
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.Snssai
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Sd
+
+
+ Sst
+
+
+
+
+
+
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.TagsObjectTags
+
+ Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.TagsObjectTags
+
+
+
+
+
+
+
+
+
+
+
+ Item
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/MobileNetwork/Az.MobileNetwork.psd1 b/src/MobileNetwork/Az.MobileNetwork.psd1
new file mode 100644
index 000000000000..d0b2278bd038
--- /dev/null
+++ b/src/MobileNetwork/Az.MobileNetwork.psd1
@@ -0,0 +1,171 @@
+#
+# Module manifest for module 'Az.MobileNetwork'
+#
+# Generated by: Microsoft Corporation
+#
+# Generated on: 1/16/2023
+#
+
+@{
+
+# Script module or binary module file associated with this manifest.
+RootModule = './Az.MobileNetwork.psm1'
+
+# Version number of this module.
+ModuleVersion = '0.1.0'
+
+# Supported PSEditions
+CompatiblePSEditions = 'Core', 'Desktop'
+
+# ID used to uniquely identify this module
+GUID = '11f61d2d-3318-4e19-8917-0f0bd2cc78c7'
+
+# Author of this module
+Author = 'Microsoft Corporation'
+
+# Company or vendor of this module
+CompanyName = 'Microsoft Corporation'
+
+# Copyright statement for this module
+Copyright = 'Microsoft Corporation. All rights reserved.'
+
+# Description of the functionality provided by this module
+Description = 'Microsoft Azure PowerShell: MobileNetwork cmdlets'
+
+# Minimum version of the PowerShell engine required by this module
+PowerShellVersion = '5.1'
+
+# Name of the PowerShell host required by this module
+# PowerShellHostName = ''
+
+# Minimum version of the PowerShell host required by this module
+# PowerShellHostVersion = ''
+
+# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
+DotNetFrameworkVersion = '4.7.2'
+
+# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
+# ClrVersion = ''
+
+# Processor architecture (None, X86, Amd64) required by this module
+# ProcessorArchitecture = ''
+
+# Modules that must be imported into the global environment prior to importing this module
+RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.11.1'; })
+
+# Assemblies that must be loaded prior to importing this module
+RequiredAssemblies = './bin/Az.MobileNetwork.private.dll'
+
+# Script files (.ps1) that are run in the caller's environment prior to importing this module.
+# ScriptsToProcess = @()
+
+# Type files (.ps1xml) to be loaded when importing this module
+# TypesToProcess = @()
+
+# Format files (.ps1xml) to be loaded when importing this module
+FormatsToProcess = './Az.MobileNetwork.format.ps1xml'
+
+# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
+# NestedModules = @()
+
+# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
+FunctionsToExport = 'Get-AzMobileNetwork', 'Get-AzMobileNetworkAttachedDataNetwork',
+ 'Get-AzMobileNetworkDataNetwork',
+ 'Get-AzMobileNetworkPacketCoreControlPlane',
+ 'Get-AzMobileNetworkPacketCoreControlPlaneVersion',
+ 'Get-AzMobileNetworkPacketCoreDataPlane',
+ 'Get-AzMobileNetworkService', 'Get-AzMobileNetworkSim',
+ 'Get-AzMobileNetworkSimGroup', 'Get-AzMobileNetworkSimPolicy',
+ 'Get-AzMobileNetworkSite', 'Get-AzMobileNetworkSlice',
+ 'New-AzMobileNetwork', 'New-AzMobileNetworkAttachedDataNetwork',
+ 'New-AzMobileNetworkDataNetwork',
+ 'New-AzMobileNetworkDataNetworkConfigurationObject',
+ 'New-AzMobileNetworkPacketCoreControlPlane',
+ 'New-AzMobileNetworkPacketCoreDataPlane',
+ 'New-AzMobileNetworkPccRuleConfigurationObject',
+ 'New-AzMobileNetworkService',
+ 'New-AzMobileNetworkServiceDataFlowTemplateObject',
+ 'New-AzMobileNetworkServiceResourceIdObject',
+ 'New-AzMobileNetworkSim', 'New-AzMobileNetworkSimGroup',
+ 'New-AzMobileNetworkSimPolicy',
+ 'New-AzMobileNetworkSimStaticIPPropertiesObject',
+ 'New-AzMobileNetworkSite',
+ 'New-AzMobileNetworkSiteResourceIdObject',
+ 'New-AzMobileNetworkSlice',
+ 'New-AzMobileNetworkSliceConfigurationObject',
+ 'Remove-AzMobileNetwork',
+ 'Remove-AzMobileNetworkAttachedDataNetwork',
+ 'Remove-AzMobileNetworkDataNetwork',
+ 'Remove-AzMobileNetworkPacketCoreControlPlane',
+ 'Remove-AzMobileNetworkPacketCoreDataPlane',
+ 'Remove-AzMobileNetworkService', 'Remove-AzMobileNetworkSim',
+ 'Remove-AzMobileNetworkSimGroup', 'Remove-AzMobileNetworkSimPolicy',
+ 'Remove-AzMobileNetworkSite', 'Remove-AzMobileNetworkSlice',
+ 'Update-AzMobileNetwork',
+ 'Update-AzMobileNetworkAttachedDataNetwork',
+ 'Update-AzMobileNetworkDataNetwork',
+ 'Update-AzMobileNetworkPacketCoreControlPlane',
+ 'Update-AzMobileNetworkPacketCoreDataPlane',
+ 'Update-AzMobileNetworkService', 'Update-AzMobileNetworkSimGroup',
+ 'Update-AzMobileNetworkSimPolicy', 'Update-AzMobileNetworkSite',
+ 'Update-AzMobileNetworkSlice'
+
+# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
+CmdletsToExport = @()
+
+# Variables to export from this module
+# VariablesToExport = @()
+
+# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
+AliasesToExport = '*'
+
+# DSC resources to export from this module
+# DscResourcesToExport = @()
+
+# List of all modules packaged with this module
+# ModuleList = @()
+
+# List of all files packaged with this module
+# FileList = @()
+
+# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
+PrivateData = @{
+
+ PSData = @{
+
+ # Tags applied to this module. These help with module discovery in online galleries.
+ Tags = 'Azure','ResourceManager','ARM','PSModule','MobileNetwork'
+
+ # A URL to the license for this module.
+ LicenseUri = 'https://aka.ms/azps-license'
+
+ # A URL to the main website for this project.
+ ProjectUri = 'https://github.com/Azure/azure-powershell'
+
+ # A URL to an icon representing this module.
+ # IconUri = ''
+
+ # ReleaseNotes of this module
+ # ReleaseNotes = ''
+
+ # Prerelease string of this module
+ # Prerelease = ''
+
+ # Flag to indicate whether the module requires explicit user acceptance for install/update/save
+ # RequireLicenseAcceptance = $false
+
+ # External dependent modules of this module
+ # ExternalModuleDependencies = @()
+
+ } # End of PSData hashtable
+
+ } # End of PrivateData hashtable
+
+# HelpInfo URI of this module
+# HelpInfoURI = ''
+
+# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
+# DefaultCommandPrefix = ''
+
+}
+
diff --git a/src/MobileNetwork/Az.MobileNetwork.psm1 b/src/MobileNetwork/Az.MobileNetwork.psm1
new file mode 100644
index 000000000000..323a388bf9ed
--- /dev/null
+++ b/src/MobileNetwork/Az.MobileNetwork.psm1
@@ -0,0 +1,115 @@
+# region Generated
+ # ----------------------------------------------------------------------------------
+ # Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+ # ----------------------------------------------------------------------------------
+ # Load required Az.Accounts module
+ $accountsName = 'Az.Accounts'
+ $accountsModule = Get-Module -Name $accountsName
+ if(-not $accountsModule) {
+ $localAccountsPath = Join-Path $PSScriptRoot 'generated\modules'
+ if(Test-Path -Path $localAccountsPath) {
+ $localAccounts = Get-ChildItem -Path $localAccountsPath -Recurse -Include 'Az.Accounts.psd1' | Select-Object -Last 1
+ if($localAccounts) {
+ $accountsModule = Import-Module -Name ($localAccounts.FullName) -Scope Global -PassThru
+ }
+ }
+ if(-not $accountsModule) {
+ $hasAdequateVersion = (Get-Module -Name $accountsName -ListAvailable | Where-Object { $_.Version -ge [System.Version]'2.7.5' } | Measure-Object).Count -gt 0
+ if($hasAdequateVersion) {
+ $accountsModule = Import-Module -Name $accountsName -MinimumVersion 2.7.5 -Scope Global -PassThru
+ }
+ }
+ }
+
+ if(-not $accountsModule) {
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
+ } elseif (($accountsModule.Version -lt [System.Version]'2.7.5') -and (-not $localAccounts)) {
+ Write-Error "`nThis module requires $accountsName version 2.7.5 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
+ }
+ Write-Information "Loaded Module '$($accountsModule.Name)'"
+
+ # Load the private module dll
+ $null = Import-Module -Name (Join-Path $PSScriptRoot './bin/Az.MobileNetwork.private.dll')
+
+ # Get the private module's instance
+ $instance = [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module]::Instance
+
+ # Ask for the shared functionality table
+ $VTable = Register-AzModule
+
+ # Tweaks the pipeline on module load
+ $instance.OnModuleLoad = $VTable.OnModuleLoad
+
+ # Following two delegates are added for telemetry
+ $instance.GetTelemetryId = $VTable.GetTelemetryId
+ $instance.Telemetry = $VTable.Telemetry
+
+
+ # Tweaks the pipeline per call
+ $instance.OnNewRequest = $VTable.OnNewRequest
+
+ # Gets shared parameter values
+ $instance.GetParameterValue = $VTable.GetParameterValue
+
+ # Allows shared module to listen to events from this module
+ $instance.EventListener = $VTable.EventListener
+
+ # Gets shared argument completers
+ $instance.ArgumentCompleter = $VTable.ArgumentCompleter
+
+ # The name of the currently selected Azure profile
+ $instance.ProfileName = $VTable.ProfileName
+
+
+ # Load the custom module
+ $customModulePath = Join-Path $PSScriptRoot './custom/Az.MobileNetwork.custom.psm1'
+ if(Test-Path $customModulePath) {
+ $null = Import-Module -Name $customModulePath
+ }
+
+ # Export nothing to clear implicit exports
+ Export-ModuleMember
+
+ # Export proxy cmdlet scripts
+ $exportsPath = Join-Path $PSScriptRoot './exports'
+ $directories = Get-ChildItem -Directory -Path $exportsPath
+ $profileDirectory = $null
+ if($instance.ProfileName) {
+ if(($directories | ForEach-Object { $_.Name }) -contains $instance.ProfileName) {
+ $profileDirectory = $directories | Where-Object { $_.Name -eq $instance.ProfileName }
+ } else {
+ # Don't export anything if the profile doesn't exist for the module
+ $exportsPath = $null
+ Write-Warning "Selected Azure profile '$($instance.ProfileName)' does not exist for module '$($instance.Name)'. No cmdlets were loaded."
+ }
+ } elseif(($directories | Measure-Object).Count -gt 0) {
+ # Load the last folder if no profile is selected
+ $profileDirectory = $directories | Select-Object -Last 1
+ }
+
+ if($profileDirectory) {
+ Write-Information "Loaded Azure profile '$($profileDirectory.Name)' for module '$($instance.Name)'"
+ $exportsPath = $profileDirectory.FullName
+ }
+
+ if($exportsPath) {
+ Get-ChildItem -Path $exportsPath -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
+ $cmdletNames = Get-ScriptCmdlet -ScriptFolder $exportsPath
+ Export-ModuleMember -Function $cmdletNames -Alias (Get-ScriptCmdlet -ScriptFolder $exportsPath -AsAlias)
+ }
+
+ # Finalize initialization of this module
+ $instance.Init();
+ Write-Information "Loaded Module '$($instance.Name)'"
+# endregion
diff --git a/src/MobileNetwork/ChangeLog.md b/src/MobileNetwork/ChangeLog.md
new file mode 100644
index 000000000000..c580ba8f4972
--- /dev/null
+++ b/src/MobileNetwork/ChangeLog.md
@@ -0,0 +1,24 @@
+
+## Upcoming Release
+
+## Version 0.1.0
+* First preview release for module Az.MobileNetwork
+
diff --git a/src/MobileNetwork/MobileNetwork.sln b/src/MobileNetwork/MobileNetwork.sln
new file mode 100644
index 000000000000..f6ea196d2575
--- /dev/null
+++ b/src/MobileNetwork/MobileNetwork.sln
@@ -0,0 +1,58 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.0.31903.59
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{D4989EC2-B82A-4F25-ACD7-E79E7994DC24}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{D8504EBC-E79F-4F34-AAD2-7BCE56C253E1}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{6D3B016B-C72E-482B-A69D-36AEE7D86880}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{D7FC32EB-D7BE-443B-AEF8-25656FBAF488}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{45AEA965-C608-4708-A66A-FB7B4A428A2C}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{BFB4D89A-AD75-4B00-9328-B262985912C2}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MobileNetwork", "Az.MobileNetwork.csproj", "{13D7FE87-F30F-45AB-8869-524A0CB817A8}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {D4989EC2-B82A-4F25-ACD7-E79E7994DC24}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D4989EC2-B82A-4F25-ACD7-E79E7994DC24}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D4989EC2-B82A-4F25-ACD7-E79E7994DC24}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D4989EC2-B82A-4F25-ACD7-E79E7994DC24}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D8504EBC-E79F-4F34-AAD2-7BCE56C253E1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D8504EBC-E79F-4F34-AAD2-7BCE56C253E1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D8504EBC-E79F-4F34-AAD2-7BCE56C253E1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D8504EBC-E79F-4F34-AAD2-7BCE56C253E1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {6D3B016B-C72E-482B-A69D-36AEE7D86880}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {6D3B016B-C72E-482B-A69D-36AEE7D86880}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {6D3B016B-C72E-482B-A69D-36AEE7D86880}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {6D3B016B-C72E-482B-A69D-36AEE7D86880}.Release|Any CPU.Build.0 = Release|Any CPU
+ {D7FC32EB-D7BE-443B-AEF8-25656FBAF488}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {D7FC32EB-D7BE-443B-AEF8-25656FBAF488}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {D7FC32EB-D7BE-443B-AEF8-25656FBAF488}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {D7FC32EB-D7BE-443B-AEF8-25656FBAF488}.Release|Any CPU.Build.0 = Release|Any CPU
+ {45AEA965-C608-4708-A66A-FB7B4A428A2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {45AEA965-C608-4708-A66A-FB7B4A428A2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {45AEA965-C608-4708-A66A-FB7B4A428A2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {45AEA965-C608-4708-A66A-FB7B4A428A2C}.Release|Any CPU.Build.0 = Release|Any CPU
+ {BFB4D89A-AD75-4B00-9328-B262985912C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {BFB4D89A-AD75-4B00-9328-B262985912C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BFB4D89A-AD75-4B00-9328-B262985912C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {BFB4D89A-AD75-4B00-9328-B262985912C2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {13D7FE87-F30F-45AB-8869-524A0CB817A8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {13D7FE87-F30F-45AB-8869-524A0CB817A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {13D7FE87-F30F-45AB-8869-524A0CB817A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {13D7FE87-F30F-45AB-8869-524A0CB817A8}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+EndGlobal
diff --git a/src/MobileNetwork/Properties/AssemblyInfo.cs b/src/MobileNetwork/Properties/AssemblyInfo.cs
new file mode 100644
index 000000000000..8c2f80582eb6
--- /dev/null
+++ b/src/MobileNetwork/Properties/AssemblyInfo.cs
@@ -0,0 +1,28 @@
+// ----------------------------------------------------------------------------------
+//
+// Copyright Microsoft Corporation
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+// http://www.apache.org/licenses/LICENSE-2.0
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+// ----------------------------------------------------------------------------------
+
+using System;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+[assembly: AssemblyTitle("Microsoft Azure Powershell - MobileNetwork")]
+[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)]
+[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)]
+[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)]
+
+[assembly: ComVisible(false)]
+[assembly: CLSCompliant(false)]
+[assembly: Guid("5a417931-645b-480a-800d-feb2c5a08768")]
+[assembly: AssemblyVersion("0.1.0")]
+[assembly: AssemblyFileVersion("0.1.0")]
diff --git a/src/MobileNetwork/README.md b/src/MobileNetwork/README.md
new file mode 100644
index 000000000000..13053954b576
--- /dev/null
+++ b/src/MobileNetwork/README.md
@@ -0,0 +1,322 @@
+
+# Az.MobileNetwork
+This directory contains the PowerShell module for the MobileNetwork service.
+
+---
+## Status
+[](https://www.powershellgallery.com/packages/Az.MobileNetwork/)
+
+## Info
+- Modifiable: yes
+- Generated: all
+- Committed: yes
+- Packaged: yes
+
+---
+## Detail
+This module was primarily generated via [AutoRest](https://github.com/Azure/autorest) using the [PowerShell](https://github.com/Azure/autorest.powershell) extension.
+
+## Module Requirements
+- [Az.Accounts module](https://www.powershellgallery.com/packages/Az.Accounts/), version 2.7.5 or greater
+
+## Authentication
+AutoRest does not generate authentication code for the module. Authentication is handled via Az.Accounts by altering the HTTP payload before it is sent.
+
+## Development
+For information on how to develop for `Az.MobileNetwork`, see [how-to.md](how-to.md).
+
+
+### AutoRest Configuration
+> see https://aka.ms/autorest
+
+``` yaml
+branch: 63adf8a58565b729f70895b65aa7d1333b22d15f
+require:
+ - $(this-folder)/../readme.azure.noprofile.md
+input-file:
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/attachedDataNetwork.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/common.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/dataNetwork.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/mobileNetwork.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/operation.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/packetCoreControlPlane.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/packetCoreDataPlane.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/service.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/sim.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/simGroup.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/simPolicy.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/site.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/slice.json
+ - $(repo)/specification/mobilenetwork/resource-manager/Microsoft.MobileNetwork/stable/2022-11-01/ts29571.json
+
+module-version: 0.1.0
+title: MobileNetwork
+subject-prefix: $(service-name)
+
+resourcegroup-append: true
+identity-correction-for-post: true
+nested-object-to-string: true
+
+directive:
+ - from: swagger-document
+ where: $.definitions
+ transform: delete $.CoreNetworkTypeRm
+ - from: swagger-document
+ where: $.definitions
+ transform: delete $.PduSessionTypeRm
+
+ - from: swagger-document
+ where: $
+ transform: return $.replace(/\`default\`/g, "'default'")
+ - from: swagger-document
+ where: $
+ transform: return $.replace(/\`requested\`/g, "'requested'")
+ - from: swagger-document
+ where: $
+ transform: return $.replace(/\`service\`/g, "'service'")
+ - from: swagger-document
+ where: $
+ transform: return $.replace(/\`any\`/g, "'any'")
+
+ - where:
+ variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^BulkViaIdentity$|^Bulk$|^Collect$|^CollectViaIdentity$
+ remove: true
+
+ - where:
+ verb: New
+ subject: SimGroup
+ hide: true
+
+ - where:
+ verb: Set
+ remove: true
+ - where:
+ subject: ^AttachedDataNetworkTag$
+ set:
+ subject: AttachedDataNetwork
+ - where:
+ subject: ^DataNetworkTag$
+ set:
+ subject: DataNetwork
+ - where:
+ subject: ^PacketCoreControlPlaneTag$
+ set:
+ subject: PacketCoreControlPlane
+ - where:
+ subject: ^PacketCoreDataPlaneTag$
+ set:
+ subject: PacketCoreDataPlane
+ - where:
+ subject: ^ServiceTag$
+ set:
+ subject: Service
+ - where:
+ subject: ^SimGroupTag$
+ set:
+ subject: SimGroup
+ - where:
+ subject: ^SimPolicyTag$
+ set:
+ subject: SimPolicy
+ - where:
+ subject: ^SiteTag$
+ set:
+ subject: Site
+ - where:
+ subject: ^SlouseTag$
+ set:
+ subject: Slouse
+ - where:
+ subject: ^MobileNetworkTag$
+ set:
+ subject: MobileNetwork
+ - where:
+ subject: ^Slouse$
+ set:
+ subject: Slice
+ - where:
+ parameter-name: DefaultSlouseId
+ set:
+ parameter-name: DefaultSliceId
+
+ # - where:
+ # verb: Invoke
+ # subject: ^BulkSimDelete$
+ # set:
+ # verb: Remove
+ - where:
+ verb: Invoke
+ subject: ^BulkSimDelete$
+ remove: true
+ # - where:
+ # verb: Invoke
+ # subject: ^BulkSimUpload$
+ # set:
+ # verb: Update
+ - where:
+ verb: Invoke
+ subject: ^BulkSimUpload$
+ remove: true
+ # - where:
+ # verb: Invoke
+ # subject: ^BulkSimUploadEncrypted$
+ # set:
+ # verb: Update
+ - where:
+ verb: Invoke
+ subject: ^BulkSimUploadEncrypted$
+ remove: true
+ # - where:
+ # verb: Invoke
+ # subject: ^CollectPacketCoreControlPlaneDiagnosticPackage$
+ # set:
+ # verb: Update
+ - where:
+ verb: Invoke
+ subject: ^CollectPacketCoreControlPlaneDiagnosticPackage$
+ remove: true
+ # - where:
+ # verb: Invoke
+ # subject: ^ReinstallPacketCoreControlPlane$
+ # set:
+ # verb: Reset
+ - where:
+ verb: Invoke
+ subject: ^ReinstallPacketCoreControlPlane$
+ remove: true
+ # - where:
+ # verb: Invoke
+ # subject: ^RollbackPacketCoreControlPlane$
+ # set:
+ # verb: Revoke
+ - where:
+ verb: Invoke
+ subject: ^RollbackPacketCoreControlPlane$
+ remove: true
+
+ # The following are commented out and their generated cmdlets may be renamed and custom logic
+ # - model-cmdlet:
+ # - SliceConfiguration # SlouseId -> SliceId
+ # - DataNetworkConfiguration
+ # - ServiceResourceId
+ # - SiteResourceId
+ # - SimStaticIPProperties # SlouseId -> SliceId
+ # - PccRuleConfiguration
+ # - ServiceDataFlowTemplate
+
+ - where:
+ model-name: MobileNetwork
+ set:
+ format-table:
+ properties:
+ - Location
+ - Name
+ - ResourceGroupName
+ - PublicLandMobileNetworkIdentifierMcc
+ - PublicLandMobileNetworkIdentifierMnc
+ - where:
+ model-name: Site
+ set:
+ format-table:
+ properties:
+ - Location
+ - Name
+ - ResourceGroupName
+ - ProvisioningState
+ - where:
+ model-name: Slice
+ set:
+ format-table:
+ properties:
+ - Location
+ - Name
+ - ResourceGroupName
+ - ProvisioningState
+ - SnssaiSst
+ - SnssaiSd
+ - where:
+ model-name: Service
+ set:
+ format-table:
+ properties:
+ - Location
+ - Name
+ - ResourceGroupName
+ - ProvisioningState
+ - Precedence
+ - MaximumBitRateDownlink
+ - MaximumBitRateUplink
+ - QoPolicyAllocationAndRetentionPriorityLevel
+ - QoPolicyFiveQi
+ - where:
+ model-name: DataNetwork
+ set:
+ format-table:
+ properties:
+ - Location
+ - Name
+ - ResourceGroupName
+ - ProvisioningState
+ - where:
+ model-name: SimPolicy
+ set:
+ format-table:
+ properties:
+ - Location
+ - Name
+ - ResourceGroupName
+ - ProvisioningState
+ - RegistrationTimer
+ - UeAmbrDownlink
+ - UeAmbrUplink
+ - where:
+ model-name: SimGroup
+ set:
+ format-table:
+ properties:
+ - Location
+ - Name
+ - ResourceGroupName
+ - ProvisioningState
+ - where:
+ model-name: PacketCoreControlPlane
+ set:
+ format-table:
+ properties:
+ - Location
+ - Name
+ - ResourceGroupName
+ - ProvisioningState
+ - where:
+ model-name: PacketCoreDataPlane
+ set:
+ format-table:
+ properties:
+ - Location
+ - Name
+ - ResourceGroupName
+ - ProvisioningState
+ - where:
+ model-name: AttachedDataNetwork
+ set:
+ format-table:
+ properties:
+ - Location
+ - Name
+ - ResourceGroupName
+ - ProvisioningState
+ - where:
+ model-name: Sim
+ set:
+ format-table:
+ properties:
+ - Name
+ - ResourceGroupName
+ - ProvisioningState
+ - where:
+ model-name: PacketCoreControlPlaneVersion
+ set:
+ format-table:
+ properties:
+ - Name
+```
diff --git a/src/MobileNetwork/build-module.ps1 b/src/MobileNetwork/build-module.ps1
new file mode 100644
index 000000000000..a676bf542bb2
--- /dev/null
+++ b/src/MobileNetwork/build-module.ps1
@@ -0,0 +1,161 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$Run, [switch]$Test, [switch]$Docs, [switch]$Pack, [switch]$Code, [switch]$Release, [switch]$Debugger, [switch]$NoDocs)
+$ErrorActionPreference = 'Stop'
+
+if($PSEdition -ne 'Core') {
+ Write-Error 'This script requires PowerShell Core to execute. [Note] Generated cmdlets will work in both PowerShell Core or Windows PowerShell.'
+}
+
+if(-not $Isolated -and -not $Debugger) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+ & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+
+ if($LastExitCode -ne 0) {
+ # Build failed. Don't attempt to run the module.
+ return
+ }
+
+ if($Test) {
+ . (Join-Path $PSScriptRoot 'test-module.ps1')
+ if($LastExitCode -ne 0) {
+ # Tests failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ if($Docs) {
+ . (Join-Path $PSScriptRoot 'generate-help.ps1')
+ if($LastExitCode -ne 0) {
+ # Docs generation failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ if($Pack) {
+ . (Join-Path $PSScriptRoot 'pack-module.ps1')
+ if($LastExitCode -ne 0) {
+ # Packing failed. Don't attempt to run the module.
+ return
+ }
+ }
+
+ $runModulePath = Join-Path $PSScriptRoot 'run-module.ps1'
+ if($Code) {
+ . $runModulePath -Code
+ } elseif($Run) {
+ . $runModulePath
+ } else {
+ Write-Host -ForegroundColor Cyan "To run this module in an isolated PowerShell session, run the 'run-module.ps1' script or provide the '-Run' parameter to this script."
+ }
+ return
+}
+
+$binFolder = Join-Path $PSScriptRoot 'bin'
+$objFolder = Join-Path $PSScriptRoot 'obj'
+
+if(-not $Debugger) {
+ Write-Host -ForegroundColor Green 'Cleaning build folders...'
+ $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path $binFolder, $objFolder
+
+ if((Test-Path $binFolder) -or (Test-Path $objFolder)) {
+ Write-Host -ForegroundColor Cyan 'Did you forget to exit your isolated module session before rebuilding?'
+ Write-Error 'Unable to clean ''bin'' or ''obj'' folder. A process may have an open handle.'
+ }
+
+ Write-Host -ForegroundColor Green 'Compiling module...'
+ $buildConfig = 'Debug'
+ if($Release) {
+ $buildConfig = 'Release'
+ }
+ dotnet publish $PSScriptRoot --verbosity quiet --configuration $buildConfig /nologo
+ if($LastExitCode -ne 0) {
+ Write-Error 'Compilation failed.'
+ }
+
+ $null = Remove-Item -Recurse -ErrorAction SilentlyContinue -Path (Join-Path $binFolder 'Debug'), (Join-Path $binFolder 'Release')
+}
+
+$dll = Join-Path $PSScriptRoot 'bin\Az.MobileNetwork.private.dll'
+if(-not (Test-Path $dll)) {
+ Write-Error "Unable to find output assembly in '$binFolder'."
+}
+
+# Load DLL to use build-time cmdlets
+$null = Import-Module -Name $dll
+
+$modulePaths = $dll
+$customPsm1 = Join-Path $PSScriptRoot 'custom\Az.MobileNetwork.custom.psm1'
+if(Test-Path $customPsm1) {
+ $modulePaths = @($dll, $customPsm1)
+}
+
+$exportsFolder = Join-Path $PSScriptRoot 'exports'
+if(Test-Path $exportsFolder) {
+ $null = Get-ChildItem -Path $exportsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+}
+$null = New-Item -ItemType Directory -Force -Path $exportsFolder
+
+$internalFolder = Join-Path $PSScriptRoot 'internal'
+if(Test-Path $internalFolder) {
+ $null = Get-ChildItem -Path $internalFolder -Recurse -Exclude '*.psm1', 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+}
+$null = New-Item -ItemType Directory -Force -Path $internalFolder
+
+$psd1 = Join-Path $PSScriptRoot './Az.MobileNetwork.psd1'
+$guid = Get-ModuleGuid -Psd1Path $psd1
+$moduleName = 'Az.MobileNetwork'
+$examplesFolder = Join-Path $PSScriptRoot 'examples'
+$null = New-Item -ItemType Directory -Force -Path $examplesFolder
+
+Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
+$modelCmdlets = @()
+if ($modelCmdlets.Count -gt 0) {
+ . (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
+ CreateModelCmdlet($modelCmdlets)
+}
+
+if($NoDocs) {
+ Write-Host -ForegroundColor Green 'Creating exports...'
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ExcludeDocs -ExamplesFolder $examplesFolder
+} else {
+ Write-Host -ForegroundColor Green 'Creating exports and docs...'
+ $moduleDescription = 'Microsoft Azure PowerShell: MobileNetwork cmdlets'
+ $docsFolder = Join-Path $PSScriptRoot 'docs'
+ if(Test-Path $docsFolder) {
+ $null = Get-ChildItem -Path $docsFolder -Recurse -Exclude 'README.md' | Remove-Item -Recurse -ErrorAction SilentlyContinue
+ }
+ $null = New-Item -ItemType Directory -Force -Path $docsFolder
+ Export-ProxyCmdlet -ModuleName $moduleName -ModulePath $modulePaths -ExportsFolder $exportsFolder -InternalFolder $internalFolder -ModuleDescription $moduleDescription -DocsFolder $docsFolder -ExamplesFolder $examplesFolder -ModuleGuid $guid
+}
+
+Write-Host -ForegroundColor Green 'Creating format.ps1xml...'
+$formatPs1xml = Join-Path $PSScriptRoot './Az.MobileNetwork.format.ps1xml'
+Export-FormatPs1xml -FilePath $formatPs1xml
+
+Write-Host -ForegroundColor Green 'Creating psd1...'
+$customFolder = Join-Path $PSScriptRoot 'custom'
+Export-Psd1 -ExportsFolder $exportsFolder -CustomFolder $customFolder -Psd1Path $psd1 -ModuleGuid $guid
+
+Write-Host -ForegroundColor Green 'Creating test stubs...'
+$testFolder = Join-Path $PSScriptRoot 'test'
+$null = New-Item -ItemType Directory -Force -Path $testFolder
+Export-TestStub -ModuleName $moduleName -ExportsFolder $exportsFolder -OutputFolder $testFolder
+
+Write-Host -ForegroundColor Green 'Creating example stubs...'
+Export-ExampleStub -ExportsFolder $exportsFolder -OutputFolder $examplesFolder
+
+Write-Host -ForegroundColor Green '-------------Done-------------'
diff --git a/src/MobileNetwork/check-dependencies.ps1 b/src/MobileNetwork/check-dependencies.ps1
new file mode 100644
index 000000000000..c29591c7bfe1
--- /dev/null
+++ b/src/MobileNetwork/check-dependencies.ps1
@@ -0,0 +1,65 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$Accounts, [switch]$Pester, [switch]$Resources)
+$ErrorActionPreference = 'Stop'
+
+if(-not $Isolated) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ $pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+ & "$pwsh" -NoExit -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ return
+}
+
+function DownloadModule ([bool]$predicate, [string]$path, [string]$moduleName, [string]$versionMinimum, [string]$requiredVersion) {
+ if($predicate) {
+ $module = Get-Module -ListAvailable -Name $moduleName
+ if((-not $module) -or ($versionMinimum -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -ge [System.Version]$versionMinimum } | Measure-Object).Count -eq 0) -or ($requiredVersion -and ($module | ForEach-Object { $_.Version } | Where-Object { $_ -eq [System.Version]$requiredVersion } | Measure-Object).Count -eq 0)) {
+ $null = New-Item -ItemType Directory -Force -Path $path
+ Write-Host -ForegroundColor Green "Installing local $moduleName module into '$path'..."
+ if ($requiredVersion) {
+ Find-Module -Name $moduleName -RequiredVersion $requiredVersion -Repository PSGallery | Save-Module -Path $path
+ }elseif($versionMinimum) {
+ Find-Module -Name $moduleName -MinimumVersion $versionMinimum -Repository PSGallery | Save-Module -Path $path
+ } else {
+ Find-Module -Name $moduleName -Repository PSGallery | Save-Module -Path $path
+ }
+ }
+ }
+}
+
+$ProgressPreference = 'SilentlyContinue'
+$all = (@($Accounts.IsPresent, $Pester.IsPresent) | Select-Object -Unique | Measure-Object).Count -eq 1
+
+$localModulesPath = Join-Path $PSScriptRoot 'generated\modules'
+if(Test-Path -Path $localModulesPath) {
+ $env:PSModulePath = "$localModulesPath$([IO.Path]::PathSeparator)$env:PSModulePath"
+}
+
+DownloadModule -predicate ($all -or $Accounts) -path $localModulesPath -moduleName 'Az.Accounts' -versionMinimum '2.7.5'
+DownloadModule -predicate ($all -or $Pester) -path $localModulesPath -moduleName 'Pester' -requiredVersion '4.10.1'
+
+$tools = Join-Path $PSScriptRoot 'tools'
+$resourceDir = Join-Path $tools 'Resources'
+$resourceModule = Join-Path $HOME '.PSSharedModules\Resources\Az.Resources.TestSupport.psm1'
+
+if ($Resources.IsPresent -and ((-not (Test-Path -Path $resourceModule)) -or $RegenerateSupportModule.IsPresent)) {
+ Write-Host -ForegroundColor Green "Building local Resource module used for test..."
+ Set-Location $resourceDir
+ $null = autorest .\README.md --use:@autorest/powershell@3.0.414 --output-folder=$HOME/.PSSharedModules/Resources
+ $null = Copy-Item custom/* $HOME/.PSSharedModules/Resources/custom/
+ Set-Location $HOME/.PSSharedModules/Resources
+ $null = .\build-module.ps1
+ Set-Location $PSScriptRoot
+}
diff --git a/src/MobileNetwork/create-model-cmdlets.ps1 b/src/MobileNetwork/create-model-cmdlets.ps1
new file mode 100644
index 000000000000..fca2ded5dc88
--- /dev/null
+++ b/src/MobileNetwork/create-model-cmdlets.ps1
@@ -0,0 +1,179 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+function CreateModelCmdlet {
+
+ param([string[]]$Models)
+
+ if ($Models.Count -eq 0)
+ {
+ return
+ }
+
+ $ModelCsPath = Join-Path (Join-Path $PSScriptRoot 'generated\api') 'Models'
+ $ModuleName = 'MobileNetwork'
+ $OutputDir = Join-Path $PSScriptRoot 'custom\autogen-model-cmdlets'
+ $null = New-Item -ItemType Directory -Force -Path $OutputDir
+
+ $CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs
+ $Content = ''
+ $null = $CsFiles | ForEach-Object -Process { if ($_.Name.Split('.').count -eq 2 )
+ { $Content += get-content $_.fullname -raw
+ } }
+
+ $Tree = [Microsoft.CodeAnalysis.CSharp.SyntaxFactory]::ParseCompilationUnit($Content)
+ $Nodes = $Tree.ChildNodes().ChildNodes()
+ foreach ($Model in $Models)
+ {
+ $InterfaceNode = $Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq "I$Model") }
+ if ($InterfaceNode.count -eq 0) {
+ continue
+ }
+ # through a queue, we iterate all the parent models.
+ $Queue = @($InterfaceNode)
+ $visited = @("I$Model")
+ $AllInterfaceNodes = @()
+ while ($Queue.count -ne 0)
+ {
+ $AllInterfaceNodes += $Queue[0]
+ # Baselist contains the direct parent models.
+ foreach ($parent in $Queue[0].BaseList.Types)
+ {
+ if (($parent.Type.Right.Identifier.Value -ne 'IJsonSerializable') -and (-not $visited.Contains($parent.Type.Right.Identifier.Value)))
+ {
+ $Queue = [Array]$Queue + ($Nodes | Where-Object { ($_.Keyword.value -eq 'interface') -and ($_.Identifier.value -eq $parent.Type.Right.Identifier.Value) })
+ $visited = [Array]$visited + $parent.Type.Right.Identifier.Value
+ }
+ }
+ $first, $Queue = $Queue
+ }
+
+ $Namespace = $InterfaceNode.Parent.Name
+ $ObjectType = $Model
+ $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}"
+ # remove duplicated module name
+ if ($ObjectType.StartsWith($ModuleName)) {
+ $ModulePrefix = ''
+ } else {
+ $ModulePrefix = $ModuleName
+ }
+ $OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir
+
+ $ParameterDefineScriptList = New-Object System.Collections.Generic.List[string]
+ $ParameterAssignScriptList = New-Object System.Collections.Generic.List[string]
+ foreach ($Node in $AllInterfaceNodes)
+ {
+ foreach ($Member in $Node.Members)
+ {
+ $Arguments = $Member.AttributeLists.Attributes.ArgumentList.Arguments
+ $Required = $false
+ $Description = ""
+ $Readonly = $False
+ foreach ($Argument in $Arguments)
+ {
+ if ($Argument.NameEquals.Name.Identifier.Value -eq "Required")
+ {
+ $Required = $Argument.Expression.Token.Value
+ }
+ if ($Argument.NameEquals.Name.Identifier.Value -eq "Description")
+ {
+ $Description = $Argument.Expression.Token.Value.Trim('.').replace('"', '`"')
+ }
+ if ($Argument.NameEquals.Name.Identifier.Value -eq "Readonly")
+ {
+ $Readonly = $Argument.Expression.Token.Value
+ }
+ }
+ if ($Readonly)
+ {
+ continue
+ }
+ $Identifier = $Member.Identifier.Value
+ $Type = $Member.Type.ToString().replace('?', '').Split("::")[-1]
+ $ParameterDefinePropertyList = New-Object System.Collections.Generic.List[string]
+ if ($Required)
+ {
+ $ParameterDefinePropertyList.Add("Mandatory")
+ }
+ if ($Description -ne "")
+ {
+ $ParameterDefinePropertyList.Add("HelpMessage=`"${Description}.`"")
+ }
+ $ParameterDefineProperty = [System.String]::Join(", ", $ParameterDefinePropertyList)
+ # check whether completer is needed
+ $completer = '';
+ if($Type.Split('.').Split('.')[-2] -eq 'Support') {
+ # If Type is an array, need to strip []
+ $strippedType = $Type.Replace('[]', '')
+ $completer += "`n [ArgumentCompleter([${strippedType}])]"
+ }
+ $ParameterDefineScript = "
+ [Parameter($ParameterDefineProperty)]${completer}
+ [${Type}]
+ `$${Identifier}"
+ $ParameterDefineScriptList.Add($ParameterDefineScript)
+ $ParameterAssignScriptList.Add("
+ if (`$PSBoundParameters.ContainsKey('${Identifier}')) {
+ `$Object.${Identifier} = `$${Identifier}
+ }")
+ }
+ }
+ $ParameterDefineScript = $ParameterDefineScriptList | Join-String -Separator ","
+ $ParameterAssignScript = $ParameterAssignScriptList | Join-String -Separator ""
+
+ $Script = "
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the ""License"");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an ""AS IS"" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ${ObjectType}.
+.Description
+Create an in-memory object for ${ObjectType}.
+
+.Outputs
+${ObjectTypeWithNamespace}
+.Link
+https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
+#>
+function New-Az${ModulePrefix}${ObjectType}Object {
+ [OutputType('${ObjectTypeWithNamespace}')]
+ [CmdletBinding(PositionalBinding=`$false)]
+ Param(
+${ParameterDefineScript}
+ )
+
+ process {
+ `$Object = [${ObjectTypeWithNamespace}]::New()
+${ParameterAssignScript}
+ return `$Object
+ }
+}
+"
+ Set-Content -Path $OutputPath -Value $Script
+ }
+}
diff --git a/src/MobileNetwork/custom/Az.MobileNetwork.custom.psm1 b/src/MobileNetwork/custom/Az.MobileNetwork.custom.psm1
new file mode 100644
index 000000000000..3180f5584a6f
--- /dev/null
+++ b/src/MobileNetwork/custom/Az.MobileNetwork.custom.psm1
@@ -0,0 +1,17 @@
+# region Generated
+ # Load the private module dll
+ $null = Import-Module -PassThru -Name (Join-Path $PSScriptRoot '..\bin\Az.MobileNetwork.private.dll')
+
+ # Load the internal module
+ $internalModulePath = Join-Path $PSScriptRoot '..\internal\Az.MobileNetwork.internal.psm1'
+ if(Test-Path $internalModulePath) {
+ $null = Import-Module -Name $internalModulePath
+ }
+
+ # Export nothing to clear implicit exports
+ Export-ModuleMember
+
+ # Export script cmdlets
+ Get-ChildItem -Path $PSScriptRoot -Recurse -Include '*.ps1' -File | ForEach-Object { . $_.FullName }
+ Export-ModuleMember -Function (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot) -Alias (Get-ScriptCmdlet -ScriptFolder $PSScriptRoot -AsAlias)
+# endregion
diff --git a/src/MobileNetwork/custom/New-AzMobileNetworkDataNetworkConfigurationObject.ps1 b/src/MobileNetwork/custom/New-AzMobileNetworkDataNetworkConfigurationObject.ps1
new file mode 100644
index 000000000000..d3bd9f3563de
--- /dev/null
+++ b/src/MobileNetwork/custom/New-AzMobileNetworkDataNetworkConfigurationObject.ps1
@@ -0,0 +1,111 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for DataNetworkConfiguration.
+.Description
+Create an in-memory object for DataNetworkConfiguration.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkConfiguration
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkDataNetworkConfigurationObject
+#>
+function New-AzMobileNetworkDataNetworkConfigurationObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkConfiguration')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Allowed session types in addition to the default session type. Must not duplicate the default session type.")]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PduSessionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PduSessionType[]]
+ $AdditionalAllowedSessionType,
+ [Parameter(HelpMessage="Default QoS Flow allocation and retention priority (ARP) level. Flows with higher priority preempt flows with lower priority, if the settings of `preemptionCapability` and `preemptionVulnerability` allow it. 1 is the highest level of priority. If this field is not specified then `5qi` is used to derive the ARP value. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.")]
+ [int]
+ $AllocationAndRetentionPriorityLevel,
+ [Parameter(Mandatory, HelpMessage="List of services that can be used as part of this SIM policy. The list must not contain duplicate items and must contain at least one item. The services must be in the same location as the SIM policy.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IServiceResourceId[]]
+ $AllowedService,
+ [Parameter(Mandatory, HelpMessage="Data network resource ID.")]
+ [string]
+ $DataNetworkId,
+ [Parameter(HelpMessage="The default PDU session type, which is used if the UE does not request a specific session type.")]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PduSessionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PduSessionType]
+ $DefaultSessionType,
+ [Parameter(HelpMessage="Default QoS Flow 5G QoS Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. This must not be a standardized 5QI value corresponding to a GBR (guaranteed bit rate) QoS Flow. The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85. See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the definition of which are the GBR 5QI values.")]
+ [int]
+ $FiveQi,
+ [Parameter(HelpMessage="The maximum number of downlink packets to buffer at the user plane for High Latency Communication - Extended Buffering. See 3GPP TS29.272 v15.10.0 section 7.3.188 for a full description. This maximum is not guaranteed because there is a internal limit on buffered packets across all PDU sessions.")]
+ [int]
+ $MaximumNumberOfBufferedPacket,
+ [Parameter(HelpMessage="Default QoS Flow preemption capability. The preemption capability of a QoS Flow controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.")]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionCapability])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionCapability]
+ $PreemptionCapability,
+ [Parameter(HelpMessage="Default QoS Flow preemption vulnerability. The preemption vulnerability of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.")]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionVulnerability])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionVulnerability]
+ $PreemptionVulnerability,
+ [Parameter(Mandatory, HelpMessage="Downlink bit rate.")]
+ [string]
+ $SessionAmbrDownlink,
+ [Parameter(Mandatory, HelpMessage="Uplink bit rate.")]
+ [string]
+ $SessionAmbrUplink
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkConfiguration]::New()
+
+ if ($PSBoundParameters.ContainsKey('AdditionalAllowedSessionType')) {
+ $Object.AdditionalAllowedSessionType = $AdditionalAllowedSessionType
+ }
+ if ($PSBoundParameters.ContainsKey('AllocationAndRetentionPriorityLevel')) {
+ $Object.AllocationAndRetentionPriorityLevel = $AllocationAndRetentionPriorityLevel
+ }
+ if ($PSBoundParameters.ContainsKey('AllowedService')) {
+ $Object.AllowedService = $AllowedService
+ }
+ if ($PSBoundParameters.ContainsKey('DataNetworkId')) {
+ $Object.DataNetworkId = $DataNetworkId
+ }
+ if ($PSBoundParameters.ContainsKey('DefaultSessionType')) {
+ $Object.DefaultSessionType = $DefaultSessionType
+ }
+ if ($PSBoundParameters.ContainsKey('FiveQi')) {
+ $Object.FiveQi = $FiveQi
+ }
+ if ($PSBoundParameters.ContainsKey('MaximumNumberOfBufferedPacket')) {
+ $Object.MaximumNumberOfBufferedPacket = $MaximumNumberOfBufferedPacket
+ }
+ if ($PSBoundParameters.ContainsKey('PreemptionCapability')) {
+ $Object.PreemptionCapability = $PreemptionCapability
+ }
+ if ($PSBoundParameters.ContainsKey('PreemptionVulnerability')) {
+ $Object.PreemptionVulnerability = $PreemptionVulnerability
+ }
+ if ($PSBoundParameters.ContainsKey('SessionAmbrDownlink')) {
+ $Object.SessionAmbrDownlink = $SessionAmbrDownlink
+ }
+ if ($PSBoundParameters.ContainsKey('SessionAmbrUplink')) {
+ $Object.SessionAmbrUplink = $SessionAmbrUplink
+ }
+ return $Object
+ }
+}
+
diff --git a/src/MobileNetwork/custom/New-AzMobileNetworkPccRuleConfigurationObject.ps1 b/src/MobileNetwork/custom/New-AzMobileNetworkPccRuleConfigurationObject.ps1
new file mode 100644
index 000000000000..21c69474c2b6
--- /dev/null
+++ b/src/MobileNetwork/custom/New-AzMobileNetworkPccRuleConfigurationObject.ps1
@@ -0,0 +1,116 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for PccRuleConfiguration.
+.Description
+Create an in-memory object for PccRuleConfiguration.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PccRuleConfiguration
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkPccRuleConfigurationObject
+#>
+function New-AzMobileNetworkPccRuleConfigurationObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PccRuleConfiguration')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Downlink bit rate.")]
+ [string]
+ $GuaranteedBitRateDownlink,
+ [Parameter(HelpMessage="Uplink bit rate.")]
+ [string]
+ $GuaranteedBitRateUplink,
+ [Parameter(Mandatory, HelpMessage="The name of the rule. This must be unique within the parent service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'.")]
+ [string]
+ $RuleName,
+ [Parameter(Mandatory, HelpMessage="A precedence value that is used to decide between data flow policy rules when identifying the QoS values to use for a particular SIM. A lower value means a higher priority. This value should be unique among all data flow policy rules configured in the mobile network.")]
+ [int]
+ $RulePrecedence,
+ [Parameter(HelpMessage="QoS Flow allocation and retention priority (ARP) level. Flows with higher priority preempt flows with lower priority, if the settings of `preemptionCapability` and `preemptionVulnerability` allow it. 1 is the highest level of priority. If this field is not specified then `5qi` is used to derive the ARP value. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.")]
+ [int]
+ $RuleQoPolicyAllocationAndRetentionPriorityLevel,
+ [Parameter(HelpMessage="QoS Flow 5G QoS Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. This must not be a standardized 5QI value corresponding to a GBR (guaranteed bit rate) QoS Flow. The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85. See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the definition of which are the GBR 5QI values.")]
+ [int]
+ $RuleQoPolicyFiveQi,
+ [Parameter(HelpMessage="Downlink bit rate.")]
+ [string]
+ $RuleQoPolicyMaximumBitRateDownlink,
+ [Parameter(HelpMessage="Uplink bit rate.")]
+ [string]
+ $RuleQoPolicyMaximumBitRateUplink,
+ [Parameter(HelpMessage="QoS Flow preemption capability. The preemption capability of a QoS Flow controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.")]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionCapability])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionCapability]
+ $RuleQoPolicyPreemptionCapability,
+ [Parameter(HelpMessage="QoS Flow preemption vulnerability. The preemption vulnerability of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.")]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionVulnerability])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionVulnerability]
+ $RuleQoPolicyPreemptionVulnerability,
+ [Parameter(Mandatory, HelpMessage="The set of data flow templates to use for this data flow policy rule.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IServiceDataFlowTemplate[]]
+ $ServiceDataFlowTemplate,
+ [Parameter(HelpMessage="Determines whether flows that match this data flow policy rule are permitted.")]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.TrafficControlPermission])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.TrafficControlPermission]
+ $TrafficControl
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PccRuleConfiguration]::New()
+
+ if ($PSBoundParameters.ContainsKey('GuaranteedBitRateDownlink')) {
+ $Object.GuaranteedBitRateDownlink = $GuaranteedBitRateDownlink
+ }
+ if ($PSBoundParameters.ContainsKey('GuaranteedBitRateUplink')) {
+ $Object.GuaranteedBitRateUplink = $GuaranteedBitRateUplink
+ }
+ if ($PSBoundParameters.ContainsKey('RuleName')) {
+ $Object.RuleName = $RuleName
+ }
+ if ($PSBoundParameters.ContainsKey('RulePrecedence')) {
+ $Object.RulePrecedence = $RulePrecedence
+ }
+ if ($PSBoundParameters.ContainsKey('RuleQoPolicyAllocationAndRetentionPriorityLevel')) {
+ $Object.RuleQoPolicyAllocationAndRetentionPriorityLevel = $RuleQoPolicyAllocationAndRetentionPriorityLevel
+ }
+ if ($PSBoundParameters.ContainsKey('RuleQoPolicyFiveQi')) {
+ $Object.RuleQoPolicyFiveQi = $RuleQoPolicyFiveQi
+ }
+ if ($PSBoundParameters.ContainsKey('RuleQoPolicyMaximumBitRateDownlink')) {
+ $Object.RuleQoPolicyMaximumBitRateDownlink = $RuleQoPolicyMaximumBitRateDownlink
+ }
+ if ($PSBoundParameters.ContainsKey('RuleQoPolicyMaximumBitRateUplink')) {
+ $Object.RuleQoPolicyMaximumBitRateUplink = $RuleQoPolicyMaximumBitRateUplink
+ }
+ if ($PSBoundParameters.ContainsKey('RuleQoPolicyPreemptionCapability')) {
+ $Object.RuleQoPolicyPreemptionCapability = $RuleQoPolicyPreemptionCapability
+ }
+ if ($PSBoundParameters.ContainsKey('RuleQoPolicyPreemptionVulnerability')) {
+ $Object.RuleQoPolicyPreemptionVulnerability = $RuleQoPolicyPreemptionVulnerability
+ }
+ if ($PSBoundParameters.ContainsKey('ServiceDataFlowTemplate')) {
+ $Object.ServiceDataFlowTemplate = $ServiceDataFlowTemplate
+ }
+ if ($PSBoundParameters.ContainsKey('TrafficControl')) {
+ $Object.TrafficControl = $TrafficControl
+ }
+ return $Object
+ }
+}
+
diff --git a/src/MobileNetwork/custom/New-AzMobileNetworkServiceDataFlowTemplateObject.ps1 b/src/MobileNetwork/custom/New-AzMobileNetworkServiceDataFlowTemplateObject.ps1
new file mode 100644
index 000000000000..4618e1fe24d0
--- /dev/null
+++ b/src/MobileNetwork/custom/New-AzMobileNetworkServiceDataFlowTemplateObject.ps1
@@ -0,0 +1,72 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ServiceDataFlowTemplate.
+.Description
+Create an in-memory object for ServiceDataFlowTemplate.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceDataFlowTemplate
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkServiceDataFlowTemplateObject
+#>
+function New-AzMobileNetworkServiceDataFlowTemplateObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceDataFlowTemplate')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="The direction of this flow.")]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.SdfDirection])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.SdfDirection]
+ $Direction,
+ [Parameter(HelpMessage="The port(s) to which UEs will connect for this flow. You can specify zero or more ports or port ranges. If you specify one or more ports or port ranges then you must specify a value other than `ip` in the `protocol` field. This is an optional setting. If you do not specify it then connections will be allowed on all ports. Port ranges must be specified as -. For example: [`8080`, `8082-8085`].")]
+ [string[]]
+ $Port,
+ [Parameter(Mandatory, HelpMessage="A list of the allowed protocol(s) for this flow. If you want this flow to be able to use any protocol within the internet protocol suite, use the value `ip`. If you only want to allow a selection of protocols, you must use the corresponding IANA Assigned Internet Protocol Number for each protocol, as described in https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml. For example, for UDP, you must use 17. If you use the value `ip` then you must leave the field `port` unspecified.")]
+ [string[]]
+ $Protocol,
+ [Parameter(Mandatory, HelpMessage="The remote IP address(es) to which UEs will connect for this flow. If you want to allow connections on any IP address, use the value 'any'. Otherwise, you must provide each of the remote IP addresses to which the packet core instance will connect for this flow. You must provide each IP address in CIDR notation, including the netmask (for example, 192.0.2.54/24).")]
+ [string[]]
+ $RemoteIPList,
+ [Parameter(Mandatory, HelpMessage="The name of the data flow template. This must be unique within the parent data flow policy rule. You must not use any of the following reserved strings - 'default', 'requested' or 'service'.")]
+ [string]
+ $TemplateName
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceDataFlowTemplate]::New()
+
+ if ($PSBoundParameters.ContainsKey('Direction')) {
+ $Object.Direction = $Direction
+ }
+ if ($PSBoundParameters.ContainsKey('Port')) {
+ $Object.Port = $Port
+ }
+ if ($PSBoundParameters.ContainsKey('Protocol')) {
+ $Object.Protocol = $Protocol
+ }
+ if ($PSBoundParameters.ContainsKey('RemoteIPList')) {
+ $Object.RemoteIPList = $RemoteIPList
+ }
+ if ($PSBoundParameters.ContainsKey('TemplateName')) {
+ $Object.TemplateName = $TemplateName
+ }
+ return $Object
+ }
+}
+
diff --git a/src/MobileNetwork/custom/New-AzMobileNetworkServiceResourceIdObject.ps1 b/src/MobileNetwork/custom/New-AzMobileNetworkServiceResourceIdObject.ps1
new file mode 100644
index 000000000000..39cc23620a6a
--- /dev/null
+++ b/src/MobileNetwork/custom/New-AzMobileNetworkServiceResourceIdObject.ps1
@@ -0,0 +1,47 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ServiceResourceId.
+.Description
+Create an in-memory object for ServiceResourceId.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceResourceId
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkServiceResourceIdObject
+#>
+function New-AzMobileNetworkServiceResourceIdObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceResourceId')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Service resource ID.")]
+ [string]
+ $Id
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceResourceId]::New()
+
+ if ($PSBoundParameters.ContainsKey('Id')) {
+ $Object.Id = $Id
+ }
+ return $Object
+ }
+}
+
diff --git a/src/MobileNetwork/custom/New-AzMobileNetworkSimGroup.ps1 b/src/MobileNetwork/custom/New-AzMobileNetworkSimGroup.ps1
new file mode 100644
index 000000000000..53efc710dfab
--- /dev/null
+++ b/src/MobileNetwork/custom/New-AzMobileNetworkSimGroup.ps1
@@ -0,0 +1,200 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a SIM group.
+.Description
+Creates or updates a SIM group.
+.Example
+New-AzMobileNetworkSimGroup -Name azps-mn-simgroup -ResourceGroupName azps_test_group -Location eastus -MobileNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworksimgroup
+#>
+function New-AzMobileNetworkSimGroup {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('SimGroupName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the SIM Group.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The key URL, unversioned.
+ # For example: https://contosovault.vault.azure.net/keys/azureKey.
+ ${EncryptionKeyUrl},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.ManagedServiceIdentityType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.ManagedServiceIdentityType]
+ # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
+ ${IdentityType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IUserAssignedIdentities]))]
+ [System.Collections.Hashtable]
+ # The set of user assigned identities associated with the resource.
+ # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
+ # The dictionary values can be empty objects ({}) in requests.
+ ${IdentityUserAssignedIdentity},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Mobile network resource ID.
+ ${MobileNetworkId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ $mapping = @{
+ CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkSimGroup_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+
+ throw
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ } catch {
+
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/custom/New-AzMobileNetworkSimStaticIPPropertiesObject.ps1 b/src/MobileNetwork/custom/New-AzMobileNetworkSimStaticIPPropertiesObject.ps1
new file mode 100644
index 000000000000..69f6fa75a58f
--- /dev/null
+++ b/src/MobileNetwork/custom/New-AzMobileNetworkSimStaticIPPropertiesObject.ps1
@@ -0,0 +1,59 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for SimStaticIPProperties.
+.Description
+Create an in-memory object for SimStaticIPProperties.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimStaticIPProperties
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkSimStaticIPPropertiesObject
+#>
+function New-AzMobileNetworkSimStaticIPPropertiesObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimStaticIPProperties')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="Attached data network resource ID.")]
+ [string]
+ $AttachedDataNetworkId,
+ [Parameter(HelpMessage="Slice resource ID.")]
+ [string]
+ $SliceId,
+ [Parameter(HelpMessage="The IPv4 address assigned to the SIM at this network scope. This address must be in the userEquipmentStaticAddressPoolPrefix defined in the attached data network.")]
+ [string]
+ $StaticIPIpv4Address
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimStaticIPProperties]::New()
+
+ if ($PSBoundParameters.ContainsKey('AttachedDataNetworkId')) {
+ $Object.AttachedDataNetworkId = $AttachedDataNetworkId
+ }
+ if ($PSBoundParameters.ContainsKey('SliceId')) {
+ $Object.SlouseId = $SliceId
+ }
+ if ($PSBoundParameters.ContainsKey('StaticIPIpv4Address')) {
+ $Object.StaticIPIpv4Address = $StaticIPIpv4Address
+ }
+ return $Object
+ }
+}
+
diff --git a/src/MobileNetwork/custom/New-AzMobileNetworkSiteResourceIdObject.ps1 b/src/MobileNetwork/custom/New-AzMobileNetworkSiteResourceIdObject.ps1
new file mode 100644
index 000000000000..d037968347f4
--- /dev/null
+++ b/src/MobileNetwork/custom/New-AzMobileNetworkSiteResourceIdObject.ps1
@@ -0,0 +1,47 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for SiteResourceId.
+.Description
+Create an in-memory object for SiteResourceId.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteResourceId
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkSiteResourceIdObject
+#>
+function New-AzMobileNetworkSiteResourceIdObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteResourceId')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="Site resource ID.")]
+ [string]
+ $Id
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteResourceId]::New()
+
+ if ($PSBoundParameters.ContainsKey('Id')) {
+ $Object.Id = $Id
+ }
+ return $Object
+ }
+}
+
diff --git a/src/MobileNetwork/custom/New-AzMobileNetworkSliceConfigurationObject.ps1 b/src/MobileNetwork/custom/New-AzMobileNetworkSliceConfigurationObject.ps1
new file mode 100644
index 000000000000..01fbb720c36b
--- /dev/null
+++ b/src/MobileNetwork/custom/New-AzMobileNetworkSliceConfigurationObject.ps1
@@ -0,0 +1,59 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for SliceConfiguration.
+.Description
+Create an in-memory object for SliceConfiguration.
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SliceConfiguration
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkSliceConfigurationObject
+#>
+function New-AzMobileNetworkSliceConfigurationObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SliceConfiguration')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(Mandatory, HelpMessage="The allowed data networks and the settings to use for them. The list must not contain duplicate items and must contain at least one item.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetworkConfiguration[]]
+ $DataNetworkConfiguration,
+ [Parameter(Mandatory, HelpMessage="Data network resource ID.")]
+ [string]
+ $DefaultDataNetworkId,
+ [Parameter(Mandatory, HelpMessage="Slice resource ID.")]
+ [string]
+ $SliceId
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SliceConfiguration]::New()
+
+ if ($PSBoundParameters.ContainsKey('DataNetworkConfiguration')) {
+ $Object.DataNetworkConfiguration = $DataNetworkConfiguration
+ }
+ if ($PSBoundParameters.ContainsKey('DefaultDataNetworkId')) {
+ $Object.DefaultDataNetworkId = $DefaultDataNetworkId
+ }
+ if ($PSBoundParameters.ContainsKey('SliceId')) {
+ $Object.SlouseId = $SliceId
+ }
+ return $Object
+ }
+}
+
diff --git a/src/MobileNetwork/custom/README.md b/src/MobileNetwork/custom/README.md
new file mode 100644
index 000000000000..e7575b88a5aa
--- /dev/null
+++ b/src/MobileNetwork/custom/README.md
@@ -0,0 +1,41 @@
+# Custom
+This directory contains custom implementation for non-generated cmdlets for the `Az.MobileNetwork` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.MobileNetwork.custom.psm1`. This file should not be modified.
+
+## Info
+- Modifiable: yes
+- Generated: partial
+- Committed: yes
+- Packaged: yes
+
+## Details
+For `Az.MobileNetwork` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*.
+
+For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.MobileNetwork.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder.
+
+For script cmdlets, these are loaded via the `Az.MobileNetwork.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build.
+
+## Purpose
+This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder.
+
+## Usage
+The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
+- Break
+- DefaultProfile
+- HttpPipelineAppend
+- HttpPipelinePrepend
+- Proxy
+- ProxyCredential
+- ProxyUseDefaultCredentials
+
+These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.MobileNetwork`. For C#, follow the usage seen in the `ProcessRecordAsync` method.
+
+### Attributes
+For processing the cmdlets, we've created some additional attributes:
+- `Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.DescriptionAttribute`
+ - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
+- `Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.DoNotExportAttribute`
+ - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.MobileNetwork`.
+- `Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.InternalExportAttribute`
+ - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.MobileNetwork`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder.
+- `Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ProfileAttribute`
+ - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Get-AzMobileNetwork.md b/src/MobileNetwork/examples/Get-AzMobileNetwork.md
new file mode 100644
index 000000000000..fd8a1df4d323
--- /dev/null
+++ b/src/MobileNetwork/examples/Get-AzMobileNetwork.md
@@ -0,0 +1,40 @@
+### Example 1: List information about the specified mobile network by Sub.
+```powershell
+Get-AzMobileNetwork
+```
+
+```output
+Location Name ResourceGroupName PublicLandMobileNetworkIdentifierMcc PublicLandMobileNetworkIdentifierMnc
+-------- ---- ----------------- ------------------------------------ ------------------------------------
+eastus azps-mn azps_test_group 001 01
+eastus azps-mn2 azps_test_group 001 01
+```
+
+List information about the specified mobile network by Sub.
+
+### Example 2: List information about the specified mobile network by ResourceGroup.
+```powershell
+Get-AzMobileNetwork -ResourceGroupName azps_test_group
+```
+
+```output
+Location Name ResourceGroupName PublicLandMobileNetworkIdentifierMcc PublicLandMobileNetworkIdentifierMnc
+-------- ---- ----------------- ------------------------------------ ------------------------------------
+eastus azps-mn azps_test_group 001 01
+eastus azps-mn2 azps_test_group 001 01
+```
+
+List information about the specified mobile network by ResourceGroup.
+
+### Example 3: Get information about the specified mobile network.
+```powershell
+Get-AzMobileNetwork -ResourceGroupName azps_test_group -Name azps-mn
+```
+
+```output
+Location Name ResourceGroupName PublicLandMobileNetworkIdentifierMcc PublicLandMobileNetworkIdentifierMnc
+-------- ---- ----------------- ------------------------------------ ------------------------------------
+eastus azps-mn azps_test_group 001 01
+```
+
+Get information about the specified mobile network.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkAttachedDataNetwork.md b/src/MobileNetwork/examples/Get-AzMobileNetworkAttachedDataNetwork.md
new file mode 100644
index 000000000000..da8b2ac87378
--- /dev/null
+++ b/src/MobileNetwork/examples/Get-AzMobileNetworkAttachedDataNetwork.md
@@ -0,0 +1,25 @@
+### Example 1: List information about the specified attached data network by PacketCoreControlPlaneName and PacketCoreDataPlaneName.
+```powershell
+Get-AzMobileNetworkAttachedDataNetwork -PacketCoreControlPlaneName azps=mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-adn azps_test_group Succeeded
+```
+
+List information about the specified attached data network by PacketCoreControlPlaneName and PacketCoreDataPlaneName.
+
+### Example 2: Get information about the specified attached data network by Name.
+```powershell
+Get-AzMobileNetworkAttachedDataNetwork -PacketCoreControlPlaneName azps=mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Name azps-mn-adn
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-adn azps_test_group Succeeded
+```
+
+Get information about the specified attached data network by Name.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkDataNetwork.md b/src/MobileNetwork/examples/Get-AzMobileNetworkDataNetwork.md
new file mode 100644
index 000000000000..c7be25de46f4
--- /dev/null
+++ b/src/MobileNetwork/examples/Get-AzMobileNetworkDataNetwork.md
@@ -0,0 +1,25 @@
+### Example 1: List information about the specified data network by MobileNetwork Name.
+```powershell
+Get-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -ResourceGroupName azps_test_group
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-datanetwork azps_test_group Succeeded
+```
+
+List information about the specified data network by MobileNetwork Name.
+
+### Example 2: Get information about the specified data network.
+```powershell
+Get-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -Name azps-mn-datanetwork
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-datanetwork azps_test_group Succeeded
+```
+
+Get information about the specified data network.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlane.md b/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlane.md
new file mode 100644
index 000000000000..42b29d017350
--- /dev/null
+++ b/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlane.md
@@ -0,0 +1,38 @@
+### Example 1: List information about the specified packet core control plane by Sub.
+```powershell
+Get-AzMobileNetworkPacketCoreControlPlane
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-pccp azps_test_group Succeeded
+```
+
+List information about the specified packet core control plane by Sub.
+
+### Example 2: Get information about the specified packet core control plane by ResourceGroup.
+```powershell
+Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroup azps_test_group
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-pccp azps_test_group Succeeded
+```
+
+Get information about the specified packet core control plane by ResourceGroup.
+
+### Example 3: Get information about the specified packet core control plane by Name.
+```powershell
+Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroup azps_test_group -Name azps-mn-pccp
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-pccp azps_test_group Succeeded
+```
+
+Get information about the specified packet core control plane by Name.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md b/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md
new file mode 100644
index 000000000000..049c933d4a3b
--- /dev/null
+++ b/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md
@@ -0,0 +1,29 @@
+### Example 1: List information about the specified packet core control plane version by sub.
+```powershell
+Get-AzMobileNetworkPacketCoreControlPlaneVersion
+```
+
+```output
+Name
+----
+PMN-4-9-0
+......
+pmn-2301-0-1
+......
+...
+```
+
+List information about the specified packet core control plane version by sub.
+
+### Example 2: Get information about the specified packet core control plane version by VersionName.
+```powershell
+Get-AzMobileNetworkPacketCoreControlPlaneVersion -VersionName pmn-2301-0-1
+```
+
+```output
+Name
+----
+pmn-2301-0-1
+```
+
+Get information about the specified packet core control plane version by VersionName.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreDataPlane.md b/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreDataPlane.md
new file mode 100644
index 000000000000..e09f89b34662
--- /dev/null
+++ b/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreDataPlane.md
@@ -0,0 +1,25 @@
+### Example 1: List information about the specified packet core data plane by PacketCoreControlPlaneName.
+```powershell
+Get-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-pcdp azps_test_group Succeeded
+```
+
+List information about the specified packet core data plane by PacketCoreControlPlaneName.
+
+### Example 2: Get information about the specified packet core data plane by Name.
+```powershell
+Get-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Name azps-mn-pcdp
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-pcdp azps_test_group Succeeded
+```
+
+Get information about the specified packet core data plane by Name.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkService.md b/src/MobileNetwork/examples/Get-AzMobileNetworkService.md
new file mode 100644
index 000000000000..b1314735ca72
--- /dev/null
+++ b/src/MobileNetwork/examples/Get-AzMobileNetworkService.md
@@ -0,0 +1,25 @@
+### Example 1: List information about the specified service by MobileNetwork Name.
+```powershell
+Get-AzMobileNetworkService -MobileNetworkName azps-mn -ResourceGroupName azps_test_group
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState Precedence MaximumBitRateDownlink MaximumBitRateUplink QoPolicyAllocationAndRetentionPriorityLevel QoPolicyFiveQi
+-------- ---- ----------------- ----------------- ---------- ---------------------- -------------------- ------------------------------------------- --------------
+eastus azps-mn-service azps_test_group Succeeded 0 1 Gbps 500 Mbps 9 9
+```
+
+List information about the specified service by MobileNetwork Name.
+
+### Example 2: Get information about the specified service.
+```powershell
+Get-AzMobileNetworkService -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -Name azps-mn-service
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState Precedence MaximumBitRateDownlink MaximumBitRateUplink QoPolicyAllocationAndRetentionPriorityLevel QoPolicyFiveQi
+-------- ---- ----------------- ----------------- ---------- ---------------------- -------------------- ------------------------------------------- --------------
+eastus azps-mn-service azps_test_group Succeeded 0 1 Gbps 500 Mbps 9 9
+```
+
+Get information about the specified service.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkSim.md b/src/MobileNetwork/examples/Get-AzMobileNetworkSim.md
new file mode 100644
index 000000000000..0ff280e84c3b
--- /dev/null
+++ b/src/MobileNetwork/examples/Get-AzMobileNetworkSim.md
@@ -0,0 +1,25 @@
+### Example 1: List information about the specified SIM by SimGroup.
+```powershell
+Get-AzMobileNetworkSim -GroupName azps-mn-simgroup -ResourceGroupName azps_test_group
+```
+
+```output
+Name ResourceGroupName ProvisioningState
+---- ----------------- -----------------
+azps-mn-sim azps_test_group Succeeded
+```
+
+List information about the specified SIM by SimGroup.
+
+### Example 2: Get information about the specified SIM by Name.
+```powershell
+Get-AzMobileNetworkSim -GroupName azps-mn-simgroup -ResourceGroupName azps_test_group -Name azps-mn-sim
+```
+
+```output
+Name ResourceGroupName ProvisioningState
+---- ----------------- -----------------
+azps-mn-sim azps_test_group Succeeded
+```
+
+Get information about the specified SIM by Name.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkSimGroup.md b/src/MobileNetwork/examples/Get-AzMobileNetworkSimGroup.md
new file mode 100644
index 000000000000..7280e1ba8e90
--- /dev/null
+++ b/src/MobileNetwork/examples/Get-AzMobileNetworkSimGroup.md
@@ -0,0 +1,38 @@
+### Example 1: Get information about the specified SIM group by Sub.
+```powershell
+Get-AzMobileNetworkSimGroup
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-simgroup azps_test_group Succeeded
+```
+
+Get information about the specified SIM group by Sub.
+
+### Example 2: Get information about the specified SIM group by ResourceGroup.
+```powershell
+Get-AzMobileNetworkSimGroup -ResourceGroupName azps_test_group
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-simgroup azps_test_group Succeeded
+```
+
+Get information about the specified SIM group by ResourceGroup.
+
+### Example 3: Get information about the specified SIM group.
+```powershell
+Get-AzMobileNetworkSimGroup -ResourceGroupName azps_test_group -Name azps-mn-simgroup
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-simgroup azps_test_group Succeeded
+```
+
+Get information about the specified SIM group.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkSimPolicy.md b/src/MobileNetwork/examples/Get-AzMobileNetworkSimPolicy.md
new file mode 100644
index 000000000000..2306576e16fa
--- /dev/null
+++ b/src/MobileNetwork/examples/Get-AzMobileNetworkSimPolicy.md
@@ -0,0 +1,25 @@
+### Example 1: List information about the specified SIM policy by MobileNetwork Name.
+```powershell
+Get-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -ResourceGroupName azps_test_group
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState RegistrationTimer UeAmbrDownlink UeAmbrUplink
+-------- ---- ----------------- ----------------- ----------------- -------------- ------------
+eastus azps-mn-simpolicy azps_test_group Succeeded 3240 1 Gbps 500 Mbps
+```
+
+List information about the specified SIM policy by MobileNetwork Name.
+
+### Example 2: Get information about the specified SIM policy.
+```powershell
+Get-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -Name azps-mn-simpolicy
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState RegistrationTimer UeAmbrDownlink UeAmbrUplink
+-------- ---- ----------------- ----------------- ----------------- -------------- ------------
+eastus azps-mn-simpolicy azps_test_group Succeeded 3240 1 Gbps 500 Mbps
+```
+
+Get information about the specified SIM policy.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkSite.md b/src/MobileNetwork/examples/Get-AzMobileNetworkSite.md
new file mode 100644
index 000000000000..e04501908bc6
--- /dev/null
+++ b/src/MobileNetwork/examples/Get-AzMobileNetworkSite.md
@@ -0,0 +1,25 @@
+### Example 1: List information about the specified mobile network site by MobileNetwork Name.
+```powershell
+Get-AzMobileNetworkSite -ResourceGroupName azps_test_group -MobileNetworkName azps-mn
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-site azps_test_group Succeeded
+```
+
+List information about the specified mobile network site by MobileNetwork Name.
+
+### Example 2: Get information about the specified mobile network site.
+```powershell
+Get-AzMobileNetworkSite -ResourceGroupName azps_test_group -MobileNetworkName azps-mn -Name azps-mn-site
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-site azps_test_group Succeeded
+```
+
+Get information about the specified mobile network site.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkSlice.md b/src/MobileNetwork/examples/Get-AzMobileNetworkSlice.md
new file mode 100644
index 000000000000..371c5108e22a
--- /dev/null
+++ b/src/MobileNetwork/examples/Get-AzMobileNetworkSlice.md
@@ -0,0 +1,25 @@
+### Example 1: List information about the specified network slice by MobileNetwork Name.
+```powershell
+Get-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState SnssaiSst SnssaiSd
+-------- ---- ----------------- ----------------- --------- --------
+eastus azps-mn-slice azps_test_group Succeeded 1 1abcde
+```
+
+List information about the specified network slice by MobileNetwork Name.
+
+### Example 2: Get information about the specified network slice.
+```powershell
+Get-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState SnssaiSst SnssaiSd
+-------- ---- ----------------- ----------------- --------- --------
+eastus azps-mn-slice azps_test_group Succeeded 1 1abcde
+```
+
+Get information about the specified network slice.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetwork.md b/src/MobileNetwork/examples/New-AzMobileNetwork.md
new file mode 100644
index 000000000000..10cb9cd9212d
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetwork.md
@@ -0,0 +1,12 @@
+### Example 1: Creates or updates a mobile network.
+```powershell
+New-AzMobileNetwork -Name azps-mn -ResourceGroupName azps_test_group -Location eastus -PublicLandMobileNetworkIdentifierMcc 001 -PublicLandMobileNetworkIdentifierMnc 01 -Tag @{"china"="move"}
+```
+
+```output
+Location Name ResourceGroupName PublicLandMobileNetworkIdentifierMcc PublicLandMobileNetworkIdentifierMnc
+-------- ---- ----------------- ------------------------------------ ------------------------------------
+eastus azps-mn azps_test_group 001 01
+```
+
+Creates or updates a mobile network.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkAttachedDataNetwork.md b/src/MobileNetwork/examples/New-AzMobileNetworkAttachedDataNetwork.md
new file mode 100644
index 000000000000..d829742cee4c
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkAttachedDataNetwork.md
@@ -0,0 +1,15 @@
+### Example 1: Creates or updates an attached data network.
+```powershell
+$dns=@("1.1.1.1", "1.1.1.2")
+
+New-AzMobileNetworkAttachedDataNetwork -Name azps-mn-adn -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -DnsAddress $dns -Location eastus -UserPlaneDataInterfaceIpv4Address 10.0.0.10 -UserPlaneDataInterfaceIpv4Gateway 10.0.0.1 -UserPlaneDataInterfaceIpv4Subnet 10.0.0.0/24 -UserPlaneDataInterfaceName N6
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-adn azps_test_group Succeeded
+```
+
+Creates or updates an attached data network.
+Must be created in the same location as its parent packet core data plane.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkDataNetwork.md b/src/MobileNetwork/examples/New-AzMobileNetworkDataNetwork.md
new file mode 100644
index 000000000000..550c57e62acd
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkDataNetwork.md
@@ -0,0 +1,13 @@
+### Example 1: Creates or updates a data network.
+```powershell
+New-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -Name azps-mn-datanetwork -ResourceGroupName azps_test_group -Location eastus
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-datanetwork azps_test_group Succeeded
+```
+
+Creates or updates a data network.
+Must be created in the same location as its parent mobile network.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkDataNetworkConfigurationObject.md b/src/MobileNetwork/examples/New-AzMobileNetworkDataNetworkConfigurationObject.md
new file mode 100644
index 000000000000..c41d589d55b2
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkDataNetworkConfigurationObject.md
@@ -0,0 +1,14 @@
+### Example 1: Create an in-memory object for DataNetworkConfiguration.
+```powershell
+$ServiceResourceId = New-AzMobileNetworkServiceResourceIdObject -Id "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/services/azps-mn-service"
+
+New-AzMobileNetworkDataNetworkConfigurationObject -AllowedService $ServiceResourceId -DataNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/dataNetworks/azps-mn-datanetwork" -SessionAmbrDownlink "1 Gbps" -SessionAmbrUplink "500 Mbps" -FiveQi 9 -AllocationAndRetentionPriorityLevel 9 -DefaultSessionType 'IPv4' -MaximumNumberOfBufferedPacket 200 -PreemptionCapability 'NotPreempt' -PreemptionVulnerability 'Preemptable'
+```
+
+```output
+AdditionalAllowedSessionType AllocationAndRetentionPriorityLevel DefaultSessionType FiveQi MaximumNumberOfBufferedPacket PreemptionCapability PreemptionVulnerability
+---------------------------- ----------------------------------- ------------------ ------ ----------------------------- -------------------- -----------------------
+ 9 IPv4 9 200 NotPreempt Preemptable
+```
+
+Create an in-memory object for DataNetworkConfiguration.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkPacketCoreControlPlane.md b/src/MobileNetwork/examples/New-AzMobileNetworkPacketCoreControlPlane.md
new file mode 100644
index 000000000000..aaf781a35e0a
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkPacketCoreControlPlane.md
@@ -0,0 +1,14 @@
+### Example 1: Creates or updates a packet core control plane.
+```powershell
+$siteResourceId = New-AzMobileNetworkSiteResourceIdObject -Id /subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/sites/azps-mn-site
+
+New-AzMobileNetworkPacketCoreControlPlane -Name azps-mn-pccp -ResourceGroupName azps_test_group -LocalDiagnosticAccessAuthenticationType Password -Location eastus -PlatformType AKS-HCI -Site $siteResourceId -Sku G0 -ControlPlaneAccessInterfaceIpv4Address 192.168.1.10 -ControlPlaneAccessInterfaceIpv4Gateway 192.168.1.1 -ControlPlaneAccessInterfaceIpv4Subnet 192.168.1.0/24 -ControlPlaneAccessInterfaceName N2 -CoreNetworkTechnology 5GC
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-pccp azps_test_group Succeeded
+```
+
+Creates or updates a packet core control plane.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkPacketCoreDataPlane.md b/src/MobileNetwork/examples/New-AzMobileNetworkPacketCoreDataPlane.md
new file mode 100644
index 000000000000..adf196eaec8f
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkPacketCoreDataPlane.md
@@ -0,0 +1,13 @@
+### Example 1: Creates or updates a packet core data plane.
+```powershell
+New-AzMobileNetworkPacketCoreDataPlane -Name azps-mn-pcdp -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Location eastus -UserPlaneAccessInterfaceIpv4Address 10.0.1.10 -UserPlaneAccessInterfaceIpv4Gateway 10.0.1.1 -UserPlaneAccessInterfaceIpv4Subnet 10.0.1.0/24 -UserPlaneAccessInterfaceName N3
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-pcdp azps_test_group Succeeded
+```
+
+Creates or updates a packet core data plane.
+Must be created in the same location as its parent packet core control plane.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkPccRuleConfigurationObject.md b/src/MobileNetwork/examples/New-AzMobileNetworkPccRuleConfigurationObject.md
new file mode 100644
index 000000000000..ccac297f71f1
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkPccRuleConfigurationObject.md
@@ -0,0 +1,14 @@
+### Example 1: Create an in-memory object for PccRuleConfiguration.
+```powershell
+$ServiceDataFlowTemplate = New-AzMobileNetworkServiceDataFlowTemplateObject -Direction "Bidirectional" -Protocol "255" -RemoteIPList "any" -TemplateName azps-mn-flow-template
+
+New-AzMobileNetworkPccRuleConfigurationObject -RuleName azps-mn-service-rule -RulePrecedence 0 -ServiceDataFlowTemplate $ServiceDataFlowTemplate -TrafficControl 'Enabled' -RuleQoPolicyPreemptionVulnerability 'Preemptable' -RuleQoPolicyPreemptionCapability 'NotPreempt' -RuleQoPolicyAllocationAndRetentionPriorityLevel 9 -RuleQoPolicyMaximumBitRateDownlink "1 Gbps" -RuleQoPolicyMaximumBitRateUplink "500 Mbps"
+```
+
+```output
+RuleName RulePrecedence TrafficControl
+-------- -------------- --------------
+azps-mn-service-rule 0 Enabled
+```
+
+Create an in-memory object for PccRuleConfiguration.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkService.md b/src/MobileNetwork/examples/New-AzMobileNetworkService.md
new file mode 100644
index 000000000000..8c9657a7cb09
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkService.md
@@ -0,0 +1,17 @@
+### Example 1: Creates or updates a service.
+```powershell
+$ServiceDataFlowTemplate = New-AzMobileNetworkServiceDataFlowTemplateObject -Direction "Bidirectional" -Protocol "255" -RemoteIPList "any" -TemplateName azps-mn-flow-template
+
+$PccRule = New-AzMobileNetworkPccRuleConfigurationObject -RuleName azps-mn-service-rule -RulePrecedence 0 -ServiceDataFlowTemplate $ServiceDataFlowTemplate -TrafficControl 'Enabled' -RuleQoPolicyPreemptionVulnerability 'Preemptable' -RuleQoPolicyPreemptionCapability 'NotPreempt' -RuleQoPolicyAllocationAndRetentionPriorityLevel 9 -RuleQoPolicyMaximumBitRateDownlink "1 Gbps" -RuleQoPolicyMaximumBitRateUplink "500 Mbps"
+
+New-AzMobileNetworkService -MobileNetworkName azps-mn -Name azps-mn-service -ResourceGroupName azps_test_group -Location eastus -PccRule $PccRule -ServicePrecedence 0 -MaximumBitRateDownlink "1 Gbps" -MaximumBitRateUplink "500 Mbps" -ServiceQoPolicyAllocationAndRetentionPriorityLevel 9 -ServiceQoPolicyFiveQi 9 -ServiceQoPolicyPreemptionCapability 'MayPreempt' -ServiceQoPolicyPreemptionVulnerability 'Preemptable'
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState Precedence MaximumBitRateDownlink MaximumBitRateUplink QoPolicyAllocationAndRetentionPriorityLevel QoPolicyFiveQi
+-------- ---- ----------------- ----------------- ---------- ---------------------- -------------------- ------------------------------------------- --------------
+eastus azps-mn-service azps_test_group Succeeded 0 1 Gbps 500 Mbps 9 9
+```
+
+Creates or updates a service.
+Must be created in the same location as its parent mobile network.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkServiceDataFlowTemplateObject.md b/src/MobileNetwork/examples/New-AzMobileNetworkServiceDataFlowTemplateObject.md
new file mode 100644
index 000000000000..2ef354b4f9ae
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkServiceDataFlowTemplateObject.md
@@ -0,0 +1,12 @@
+### Example 1: Create an in-memory object for ServiceDataFlowTemplate.
+```powershell
+New-AzMobileNetworkServiceDataFlowTemplateObject -Direction "Bidirectional" -Protocol "255" -RemoteIPList "any" -TemplateName azps-mn-flow-template
+```
+
+```output
+Direction Port Protocol RemoteIPList TemplateName
+--------- ---- -------- ------------ ------------
+Bidirectional {255} {any} azps-mn-flow-template
+```
+
+Create an in-memory object for ServiceDataFlowTemplate.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkServiceResourceIdObject.md b/src/MobileNetwork/examples/New-AzMobileNetworkServiceResourceIdObject.md
new file mode 100644
index 000000000000..fbf81e1a66d0
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkServiceResourceIdObject.md
@@ -0,0 +1,12 @@
+### Example 1: Create an in-memory object for ServiceResourceId.
+```powershell
+New-AzMobileNetworkServiceResourceIdObject -Id "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/services/azps-mn-service"
+```
+
+```output
+Id
+--
+/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/services/azps-mn-service
+```
+
+Create an in-memory object for ServiceResourceId.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkSim.md b/src/MobileNetwork/examples/New-AzMobileNetworkSim.md
new file mode 100644
index 000000000000..88a5276a8977
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkSim.md
@@ -0,0 +1,14 @@
+### Example 1: Creates or updates a SIM.
+```powershell
+$staticIp = New-AzMobileNetworkSimStaticIPPropertiesObject -StaticIPIpv4Address 10.0.0.20
+
+New-AzMobileNetworkSim -GroupName azps-mn-simgroup -Name azps-mn-sim -ResourceGroupName azps_test_group -InternationalMobileSubscriberIdentity 000000000000001 -AuthenticationKey 00112233445566778899AABBCCDDEEFF -DeviceType Mobile -IntegratedCircuitCardIdentifier 8900000000000000001 -OperatorKeyCode 00000000000000000000000000000001 -SimPolicyId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/simPolicies/azps-mn-simpolicy" -StaticIPConfiguration $staticIp
+```
+
+```output
+Name ResourceGroupName ProvisioningState
+---- ----------------- -----------------
+azps-mn-sim azps_test_group Succeeded
+```
+
+Creates or updates a SIM.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkSimGroup.md b/src/MobileNetwork/examples/New-AzMobileNetworkSimGroup.md
new file mode 100644
index 000000000000..2b005eeda1f3
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkSimGroup.md
@@ -0,0 +1,15 @@
+### Example 1: Creates or updates a SIM group.
+```powershell
+$ManagedIdentity = @{"/subscriptions/{subId}/resourcegroups/azps_test_group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/azps-mn-mi"="{}"}
+
+New-AzMobileNetworkSimGroup -Name azps-mn-simgroup -ResourceGroupName azps_test_group -Location eastus -MobileNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn"
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-simgroup azps_test_group Succeeded
+```
+
+Creates or updates a SIM group.
+You need to create Keyvault, managementiidentity, and give Keyvault some permissions on the ManagementIdentity
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkSimPolicy.md b/src/MobileNetwork/examples/New-AzMobileNetworkSimPolicy.md
new file mode 100644
index 000000000000..f376568be3ac
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkSimPolicy.md
@@ -0,0 +1,19 @@
+### Example 1: Creates or updates a SIM policy.
+```powershell
+$ServiceResourceId = New-AzMobileNetworkServiceResourceIdObject -Id "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/services/azps-mn-service"
+
+$DataNetworkConfiguration = New-AzMobileNetworkDataNetworkConfigurationObject -AllowedService $ServiceResourceId -DataNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/dataNetworks/azps-mn-datanetwork" -SessionAmbrDownlink "1 Gbps" -SessionAmbrUplink "500 Mbps" -FiveQi 9 -AllocationAndRetentionPriorityLevel 9 -DefaultSessionType 'IPv4' -MaximumNumberOfBufferedPacket 200 -PreemptionCapability 'NotPreempt' -PreemptionVulnerability 'Preemptable'
+
+$SliceConfiguration = New-AzMobileNetworkSliceConfigurationObject -DataNetworkConfiguration $DataNetworkConfiguration -DefaultDataNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/dataNetworks/azps-mn-datanetwork" -SliceId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/slices/azps-mn-slice"
+
+New-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -Name azps-mn-simpolicy -ResourceGroupName azps_test_group -Location eastus -DefaultSliceId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/slices/azps-mn-slice" -SliceConfiguration $SliceConfiguration -UeAmbrDownlink "1 Gbps" -UeAmbrUplink "500 Mbps" -RegistrationTimer 3240
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState RegistrationTimer UeAmbrDownlink UeAmbrUplink
+-------- ---- ----------------- ----------------- ----------------- -------------- ------------
+eastus azps-mn-simpolicy azps_test_group Succeeded 3240 1 Gbps 500 Mbps
+```
+
+Creates or updates a SIM policy.
+Must be created in the same location as its parent mobile network.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkSimStaticIPPropertiesObject.md b/src/MobileNetwork/examples/New-AzMobileNetworkSimStaticIPPropertiesObject.md
new file mode 100644
index 000000000000..cc157cdf15e3
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkSimStaticIPPropertiesObject.md
@@ -0,0 +1,12 @@
+### Example 1: Create an in-memory object for SimStaticIPProperties.
+```powershell
+New-AzMobileNetworkSimStaticIPPropertiesObject -StaticIPIpv4Address 10.0.0.20
+```
+
+```output
+AttachedDataNetworkId SlouseId StaticIPIpv4Address
+--------------------- -------- -------------------
+ 10.0.0.20
+```
+
+Create an in-memory object for SimStaticIPProperties.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkSite.md b/src/MobileNetwork/examples/New-AzMobileNetworkSite.md
new file mode 100644
index 000000000000..eb73d74d56ba
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkSite.md
@@ -0,0 +1,13 @@
+### Example 1: Creates or updates a mobile network site.
+```powershell
+New-AzMobileNetworkSite -MobileNetworkName azps-mn -Name azps-mn-site -ResourceGroupName azps_test_group -Location eastus -Tag @{"site"="123"}
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-site azps_test_group Succeeded
+```
+
+Creates or updates a mobile network site.
+Must be created in the same location as its parent mobile network.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkSiteResourceIdObject.md b/src/MobileNetwork/examples/New-AzMobileNetworkSiteResourceIdObject.md
new file mode 100644
index 000000000000..efc64adc63d1
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkSiteResourceIdObject.md
@@ -0,0 +1,12 @@
+### Example 1: Create an in-memory object for SiteResourceId.
+```powershell
+New-AzMobileNetworkSiteResourceIdObject -Id "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/sites/azps-mn-site"
+```
+
+```output
+Id
+--
+/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/sites/azps-mn-site
+```
+
+Create an in-memory object for SiteResourceId.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkSlice.md b/src/MobileNetwork/examples/New-AzMobileNetworkSlice.md
new file mode 100644
index 000000000000..acdb7fbc829c
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkSlice.md
@@ -0,0 +1,13 @@
+### Example 1: Creates or updates a network slice.
+```powershell
+New-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Location eastus -SnssaiSst 1 -SnssaiSd "1abcde"
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState SnssaiSst SnssaiSd
+-------- ---- ----------------- ----------------- --------- --------
+eastus azps-mn-slice azps_test_group Succeeded 1 1abcde
+```
+
+Creates or updates a network slice.
+Must be created in the same location as its parent mobile network.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkSliceConfigurationObject.md b/src/MobileNetwork/examples/New-AzMobileNetworkSliceConfigurationObject.md
new file mode 100644
index 000000000000..739a34927642
--- /dev/null
+++ b/src/MobileNetwork/examples/New-AzMobileNetworkSliceConfigurationObject.md
@@ -0,0 +1,16 @@
+### Example 1: Create an in-memory object for SliceConfiguration.
+```powershell
+$ServiceResourceId = New-AzMobileNetworkServiceResourceIdObject -Id "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/services/azps-mn-service"
+
+$DataNetworkConfiguration = New-AzMobileNetworkDataNetworkConfigurationObject -AllowedService $ServiceResourceId -DataNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/dataNetworks/azps-mn-datanetwork" -SessionAmbrDownlink "1 Gbps" -SessionAmbrUplink "500 Mbps" -FiveQi 9 -AllocationAndRetentionPriorityLevel 9 -DefaultSessionType 'IPv4' -MaximumNumberOfBufferedPacket 200 -PreemptionCapability 'NotPreempt' -PreemptionVulnerability 'Preemptable'
+
+New-AzMobileNetworkSliceConfigurationObject -DataNetworkConfiguration $DataNetworkConfiguration -DefaultDataNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/dataNetworks/azps-mn-datanetwork" -SliceId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/slices/azps-mn-slice"
+```
+
+```output
+DataNetworkConfiguration
+------------------------
+{{…
+```
+
+Create an in-memory object for SliceConfiguration.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Remove-AzMobileNetwork.md b/src/MobileNetwork/examples/Remove-AzMobileNetwork.md
new file mode 100644
index 000000000000..f06a8b2b9a91
--- /dev/null
+++ b/src/MobileNetwork/examples/Remove-AzMobileNetwork.md
@@ -0,0 +1,6 @@
+### Example 1: Deletes the specified mobile network.
+```powershell
+Remove-AzMobileNetwork -Name azps-mn -ResourceGroupName azps_test_group
+```
+
+Deletes the specified mobile network.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Remove-AzMobileNetworkAttachedDataNetwork.md b/src/MobileNetwork/examples/Remove-AzMobileNetworkAttachedDataNetwork.md
new file mode 100644
index 000000000000..82625ba72d0a
--- /dev/null
+++ b/src/MobileNetwork/examples/Remove-AzMobileNetworkAttachedDataNetwork.md
@@ -0,0 +1,6 @@
+### Example 1: Deletes the specified attached data network.
+```powershell
+Remove-AzMobileNetworkAttachedDataNetwork -Name azps-mn-adn -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group
+```
+
+Deletes the specified attached data network.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Remove-AzMobileNetworkDataNetwork.md b/src/MobileNetwork/examples/Remove-AzMobileNetworkDataNetwork.md
new file mode 100644
index 000000000000..0f9049824514
--- /dev/null
+++ b/src/MobileNetwork/examples/Remove-AzMobileNetworkDataNetwork.md
@@ -0,0 +1,6 @@
+### Example 1: Deletes the specified data network.
+```powershell
+Remove-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -Name azps-mn-datanetwork -ResourceGroupName azps_test_group
+```
+
+Deletes the specified data network.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Remove-AzMobileNetworkPacketCoreControlPlane.md b/src/MobileNetwork/examples/Remove-AzMobileNetworkPacketCoreControlPlane.md
new file mode 100644
index 000000000000..0b63da8bb8d2
--- /dev/null
+++ b/src/MobileNetwork/examples/Remove-AzMobileNetworkPacketCoreControlPlane.md
@@ -0,0 +1,6 @@
+### Example 1: Deletes the specified packet core control plane.
+```powershell
+Remove-AzMobileNetworkPacketCoreControlPlane -Name azps-mn-pccp -ResourceGroupName azps_test_group
+```
+
+Deletes the specified packet core control plane.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Remove-AzMobileNetworkPacketCoreDataPlane.md b/src/MobileNetwork/examples/Remove-AzMobileNetworkPacketCoreDataPlane.md
new file mode 100644
index 000000000000..bea5ddc22974
--- /dev/null
+++ b/src/MobileNetwork/examples/Remove-AzMobileNetworkPacketCoreDataPlane.md
@@ -0,0 +1,6 @@
+### Example 1: Deletes the specified packet core data plane.
+```powershell
+Remove-AzMobileNetworkPacketCoreDataPlane -Name azps-mn-pcdp -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group
+```
+
+Deletes the specified packet core data plane.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Remove-AzMobileNetworkService.md b/src/MobileNetwork/examples/Remove-AzMobileNetworkService.md
new file mode 100644
index 000000000000..9a613622922a
--- /dev/null
+++ b/src/MobileNetwork/examples/Remove-AzMobileNetworkService.md
@@ -0,0 +1,6 @@
+### Example 1: Deletes the specified service.
+```powershell
+Remove-AzMobileNetworkService -MobileNetworkName azps-mn -Name azps-mn-service -ResourceGroupName azps_test_group
+```
+
+Deletes the specified service.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Remove-AzMobileNetworkSim.md b/src/MobileNetwork/examples/Remove-AzMobileNetworkSim.md
new file mode 100644
index 000000000000..968ee853efbb
--- /dev/null
+++ b/src/MobileNetwork/examples/Remove-AzMobileNetworkSim.md
@@ -0,0 +1,6 @@
+### Example 1: Deletes the specified SIM.
+```powershell
+Remove-AzMobileNetworkSim -GroupName azps-mn-simgroup -Name azps-mn-sim -ResourceGroupName azps_test_group
+```
+
+Deletes the specified SIM.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Remove-AzMobileNetworkSimGroup.md b/src/MobileNetwork/examples/Remove-AzMobileNetworkSimGroup.md
new file mode 100644
index 000000000000..e1842554bcac
--- /dev/null
+++ b/src/MobileNetwork/examples/Remove-AzMobileNetworkSimGroup.md
@@ -0,0 +1,6 @@
+### Example 1: Deletes the specified SIM group.
+```powershell
+Remove-AzMobileNetworkSimGroup -Name azps-mn-simgroup -ResourceGroupName azps_test_group
+```
+
+Deletes the specified SIM group.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Remove-AzMobileNetworkSimPolicy.md b/src/MobileNetwork/examples/Remove-AzMobileNetworkSimPolicy.md
new file mode 100644
index 000000000000..a25a2af97f36
--- /dev/null
+++ b/src/MobileNetwork/examples/Remove-AzMobileNetworkSimPolicy.md
@@ -0,0 +1,6 @@
+### Example 1: Deletes the specified SIM policy.
+```powershell
+Remove-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -Name azps-mn-simpolicy -ResourceGroupName azps_test_group
+```
+
+Deletes the specified SIM policy.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Remove-AzMobileNetworkSite.md b/src/MobileNetwork/examples/Remove-AzMobileNetworkSite.md
new file mode 100644
index 000000000000..93e3b44cea6d
--- /dev/null
+++ b/src/MobileNetwork/examples/Remove-AzMobileNetworkSite.md
@@ -0,0 +1,7 @@
+### Example 1: Deletes the specified mobile network site.
+```powershell
+Remove-AzMobileNetworkSite -MobileNetworkName azps-mn -Name azps-mn-site -ResourceGroupName azps_test_group
+```
+
+Deletes the specified mobile network site.
+This will also delete any network functions that are a part of this site.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Remove-AzMobileNetworkSlice.md b/src/MobileNetwork/examples/Remove-AzMobileNetworkSlice.md
new file mode 100644
index 000000000000..ef3d1b5baaf0
--- /dev/null
+++ b/src/MobileNetwork/examples/Remove-AzMobileNetworkSlice.md
@@ -0,0 +1,6 @@
+### Example 1: Deletes the specified network slice.
+```powershell
+Remove-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice
+```
+
+Deletes the specified network slice.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Update-AzMobileNetwork.md b/src/MobileNetwork/examples/Update-AzMobileNetwork.md
new file mode 100644
index 000000000000..88d0649ed4df
--- /dev/null
+++ b/src/MobileNetwork/examples/Update-AzMobileNetwork.md
@@ -0,0 +1,12 @@
+### Example 1: Updates mobile network tags.
+```powershell
+Update-AzMobileNetwork -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -Tag @{"123"="abc"}
+```
+
+```output
+Location Name ResourceGroupName PublicLandMobileNetworkIdentifierMcc PublicLandMobileNetworkIdentifierMnc
+-------- ---- ----------------- ------------------------------------ ------------------------------------
+eastus azps-mn azps_test_group 001 01
+```
+
+Updates mobile network tags.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkAttachedDataNetwork.md b/src/MobileNetwork/examples/Update-AzMobileNetworkAttachedDataNetwork.md
new file mode 100644
index 000000000000..e2f0ff3c4c60
--- /dev/null
+++ b/src/MobileNetwork/examples/Update-AzMobileNetworkAttachedDataNetwork.md
@@ -0,0 +1,12 @@
+### Example 1: Updates an attached data network tags.
+```powershell
+Update-AzMobileNetworkAttachedDataNetwork -AttachedDataNetworkName azps-mn-adn -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps_test_group -ResourceGroupName -Tag @{"abc"="123"}
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-adn azps_test_group Succeeded
+```
+
+Updates an attached data network tags.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkDataNetwork.md b/src/MobileNetwork/examples/Update-AzMobileNetworkDataNetwork.md
new file mode 100644
index 000000000000..bf724518b70c
--- /dev/null
+++ b/src/MobileNetwork/examples/Update-AzMobileNetworkDataNetwork.md
@@ -0,0 +1,12 @@
+### Example 1: Updates data network tags.
+```powershell
+Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="`12"}
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-datanetwork azps_test_group Succeeded
+```
+
+Updates data network tags.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreControlPlane.md b/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreControlPlane.md
new file mode 100644
index 000000000000..8afddc84f2d1
--- /dev/null
+++ b/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreControlPlane.md
@@ -0,0 +1,12 @@
+### Example 1: Updates packet core control planes tags.
+```powershell
+Update-AzMobileNetworkPacketCoreControlPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Tag @{"abc"="123"}
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-pccp azps_test_group Succeeded
+```
+
+Updates packet core control planes tags.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreDataPlane.md b/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreDataPlane.md
new file mode 100644
index 000000000000..001552d19763
--- /dev/null
+++ b/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreDataPlane.md
@@ -0,0 +1,12 @@
+### Example 1: Updates packet core data planes tags.
+```powershell
+Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123}
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-pcdp azps_test_group Succeeded
+```
+
+Updates packet core data planes tags.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkService.md b/src/MobileNetwork/examples/Update-AzMobileNetworkService.md
new file mode 100644
index 000000000000..95f1bdd71f78
--- /dev/null
+++ b/src/MobileNetwork/examples/Update-AzMobileNetworkService.md
@@ -0,0 +1,12 @@
+### Example 1: Updates service tags.
+```powershell
+Update-AzMobileNetworkService -MobileNetworkName azps-mn -ServiceName azps-mn-service -ResourceGroupName azps_test_group -Tag @{"abc"="123"}
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState Precedence MaximumBitRateDownlink MaximumBitRateUplink QoPolicyAllocationAndRetentionPriorityLevel QoPolicyFiveQi
+-------- ---- ----------------- ----------------- ---------- ---------------------- -------------------- ------------------------------------------- --------------
+eastus azps-mn-service azps_test_group Succeeded 0 1 Gbps 500 Mbps 9 9
+```
+
+Updates service tags.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkSimGroup.md b/src/MobileNetwork/examples/Update-AzMobileNetworkSimGroup.md
new file mode 100644
index 000000000000..82cb7f2f86a0
--- /dev/null
+++ b/src/MobileNetwork/examples/Update-AzMobileNetworkSimGroup.md
@@ -0,0 +1,12 @@
+### Example 1: Updates SIM group tags.
+```powershell
+Update-AzMobileNetworkSimGroup -SimGroupName azps-mn-simgroup -ResourceGroupName azps_test_group -Tag @{"abc"="123"}
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-simgroup azps_test_group Succeeded
+```
+
+Updates SIM group tags.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkSimPolicy.md b/src/MobileNetwork/examples/Update-AzMobileNetworkSimPolicy.md
new file mode 100644
index 000000000000..882cc8e8b160
--- /dev/null
+++ b/src/MobileNetwork/examples/Update-AzMobileNetworkSimPolicy.md
@@ -0,0 +1,12 @@
+### Example 1: Updates SIM policy tags.
+```powershell
+Update-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -SimPolicyName azps-mn-simpolicy -ResourceGroupName azps_test_group -Tag @{"abc"="123"}
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState RegistrationTimer UeAmbrDownlink UeAmbrUplink
+-------- ---- ----------------- ----------------- ----------------- -------------- ------------
+eastus azps-mn-simpolicy azps_test_group Succeeded 3240 1 Gbps 500 Mbps
+```
+
+Updates SIM policy tags.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkSite.md b/src/MobileNetwork/examples/Update-AzMobileNetworkSite.md
new file mode 100644
index 000000000000..704918cb9987
--- /dev/null
+++ b/src/MobileNetwork/examples/Update-AzMobileNetworkSite.md
@@ -0,0 +1,12 @@
+### Example 1: Updates site tags.
+```powershell
+Update-AzMobileNetworkSite -MobileNetworkName azps-mn -SiteName azps-mn-site -ResourceGroupName azps_test_group -Tag @{"site"="123"}
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState
+-------- ---- ----------------- -----------------
+eastus azps-mn-site azps_test_group Succeeded
+```
+
+Updates site tags.
\ No newline at end of file
diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkSlice.md b/src/MobileNetwork/examples/Update-AzMobileNetworkSlice.md
new file mode 100644
index 000000000000..c01492a76569
--- /dev/null
+++ b/src/MobileNetwork/examples/Update-AzMobileNetworkSlice.md
@@ -0,0 +1,12 @@
+### Example 1: Updates slice tags.
+```powershell
+Update-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Tag @{"abc"="123"}
+```
+
+```output
+Location Name ResourceGroupName ProvisioningState SnssaiSst SnssaiSd
+-------- ---- ----------------- ----------------- --------- --------
+eastus azps-mn-slice azps_test_group Succeeded 1 1abcde
+```
+
+Updates slice tags.
\ No newline at end of file
diff --git a/src/MobileNetwork/export-surface.ps1 b/src/MobileNetwork/export-surface.ps1
new file mode 100644
index 000000000000..8f532ebe079e
--- /dev/null
+++ b/src/MobileNetwork/export-surface.ps1
@@ -0,0 +1,41 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$IncludeGeneralParameters, [switch]$UseExpandedFormat)
+$ErrorActionPreference = 'Stop'
+
+$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+if(-not $Isolated) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ return
+}
+
+$dll = Join-Path $PSScriptRoot 'bin\Az.MobileNetwork.private.dll'
+if(-not (Test-Path $dll)) {
+ Write-Error "Unable to find output assembly in '$binFolder'."
+}
+$null = Import-Module -Name $dll
+
+$moduleName = 'Az.MobileNetwork'
+$exportsFolder = Join-Path $PSScriptRoot 'exports'
+$resourcesFolder = Join-Path $PSScriptRoot 'resources'
+
+Export-CmdletSurface -ModuleName $moduleName -CmdletFolder $exportsFolder -OutputFolder $resourcesFolder -IncludeGeneralParameters $IncludeGeneralParameters.IsPresent -UseExpandedFormat $UseExpandedFormat.IsPresent
+Write-Host -ForegroundColor Green "CmdletSurface file(s) created in '$resourcesFolder'"
+
+Export-ModelSurface -OutputFolder $resourcesFolder -UseExpandedFormat $UseExpandedFormat.IsPresent
+Write-Host -ForegroundColor Green "ModelSurface file created in '$resourcesFolder'"
+
+Write-Host -ForegroundColor Green '-------------Done-------------'
\ No newline at end of file
diff --git a/src/MobileNetwork/exports/Get-AzMobileNetwork.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetwork.ps1
new file mode 100644
index 000000000000..7f7f3342f811
--- /dev/null
+++ b/src/MobileNetwork/exports/Get-AzMobileNetwork.ps1
@@ -0,0 +1,218 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified mobile network.
+.Description
+Gets information about the specified mobile network.
+.Example
+Get-AzMobileNetwork
+.Example
+Get-AzMobileNetwork -ResourceGroupName azps_test_group
+.Example
+Get-AzMobileNetwork -ResourceGroupName azps_test_group -Name azps-mn
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IMobileNetwork
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AttachedDataNetworkName ]: The name of the attached data network.
+ [DataNetworkName ]: The name of the data network.
+ [Id ]: Resource identity path
+ [MobileNetworkName ]: The name of the mobile network.
+ [PacketCoreControlPlaneName ]: The name of the packet core control plane.
+ [PacketCoreDataPlaneName ]: The name of the packet core data plane.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServiceName ]: The name of the service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ [SimGroupName ]: The name of the SIM Group.
+ [SimName ]: The name of the SIM.
+ [SimPolicyName ]: The name of the SIM policy.
+ [SiteName ]: The name of the mobile network site.
+ [SliceName ]: The name of the network slice.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VersionName ]: The name of the packet core control plane version.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetwork
+#>
+function Get-AzMobileNetwork {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IMobileNetwork])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('MobileNetworkName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.MobileNetwork.private\Get-AzMobileNetwork_Get';
+ GetViaIdentity = 'Az.MobileNetwork.private\Get-AzMobileNetwork_GetViaIdentity';
+ List = 'Az.MobileNetwork.private\Get-AzMobileNetwork_List';
+ List1 = 'Az.MobileNetwork.private\Get-AzMobileNetwork_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkAttachedDataNetwork.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkAttachedDataNetwork.ps1
new file mode 100644
index 000000000000..4cc2c4dbe053
--- /dev/null
+++ b/src/MobileNetwork/exports/Get-AzMobileNetworkAttachedDataNetwork.ps1
@@ -0,0 +1,228 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified attached data network.
+.Description
+Gets information about the specified attached data network.
+.Example
+Get-AzMobileNetworkAttachedDataNetwork -PacketCoreControlPlaneName azps=mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group
+.Example
+Get-AzMobileNetworkAttachedDataNetwork -PacketCoreControlPlaneName azps=mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Name azps-mn-adn
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AttachedDataNetworkName ]: The name of the attached data network.
+ [DataNetworkName ]: The name of the data network.
+ [Id ]: Resource identity path
+ [MobileNetworkName ]: The name of the mobile network.
+ [PacketCoreControlPlaneName ]: The name of the packet core control plane.
+ [PacketCoreDataPlaneName ]: The name of the packet core data plane.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServiceName ]: The name of the service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ [SimGroupName ]: The name of the SIM Group.
+ [SimName ]: The name of the SIM.
+ [SimPolicyName ]: The name of the SIM policy.
+ [SiteName ]: The name of the mobile network site.
+ [SliceName ]: The name of the network slice.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VersionName ]: The name of the packet core control plane version.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkattacheddatanetwork
+#>
+function Get-AzMobileNetworkAttachedDataNetwork {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('AttachedDataNetworkName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the attached data network.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the packet core control plane.
+ ${PacketCoreControlPlaneName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the packet core data plane.
+ ${PacketCoreDataPlaneName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.MobileNetwork.private\Get-AzMobileNetworkAttachedDataNetwork_Get';
+ GetViaIdentity = 'Az.MobileNetwork.private\Get-AzMobileNetworkAttachedDataNetwork_GetViaIdentity';
+ List = 'Az.MobileNetwork.private\Get-AzMobileNetworkAttachedDataNetwork_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkDataNetwork.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkDataNetwork.ps1
new file mode 100644
index 000000000000..354655172653
--- /dev/null
+++ b/src/MobileNetwork/exports/Get-AzMobileNetworkDataNetwork.ps1
@@ -0,0 +1,221 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified data network.
+.Description
+Gets information about the specified data network.
+.Example
+Get-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -ResourceGroupName azps_test_group
+.Example
+Get-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -Name azps-mn-datanetwork
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AttachedDataNetworkName ]: The name of the attached data network.
+ [DataNetworkName ]: The name of the data network.
+ [Id ]: Resource identity path
+ [MobileNetworkName ]: The name of the mobile network.
+ [PacketCoreControlPlaneName ]: The name of the packet core control plane.
+ [PacketCoreDataPlaneName ]: The name of the packet core data plane.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServiceName ]: The name of the service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ [SimGroupName ]: The name of the SIM Group.
+ [SimName ]: The name of the SIM.
+ [SimPolicyName ]: The name of the SIM policy.
+ [SiteName ]: The name of the mobile network site.
+ [SliceName ]: The name of the network slice.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VersionName ]: The name of the packet core control plane version.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkdatanetwork
+#>
+function Get-AzMobileNetworkDataNetwork {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network.
+ ${MobileNetworkName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('DataNetworkName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the data network.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.MobileNetwork.private\Get-AzMobileNetworkDataNetwork_Get';
+ GetViaIdentity = 'Az.MobileNetwork.private\Get-AzMobileNetworkDataNetwork_GetViaIdentity';
+ List = 'Az.MobileNetwork.private\Get-AzMobileNetworkDataNetwork_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlane.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlane.ps1
new file mode 100644
index 000000000000..d8e506d856d8
--- /dev/null
+++ b/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlane.ps1
@@ -0,0 +1,218 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified packet core control plane.
+.Description
+Gets information about the specified packet core control plane.
+.Example
+Get-AzMobileNetworkPacketCoreControlPlane
+.Example
+Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroup azps_test_group
+.Example
+Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroup azps_test_group -Name azps-mn-pccp
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AttachedDataNetworkName ]: The name of the attached data network.
+ [DataNetworkName ]: The name of the data network.
+ [Id ]: Resource identity path
+ [MobileNetworkName ]: The name of the mobile network.
+ [PacketCoreControlPlaneName ]: The name of the packet core control plane.
+ [PacketCoreDataPlaneName ]: The name of the packet core data plane.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServiceName ]: The name of the service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ [SimGroupName ]: The name of the SIM Group.
+ [SimName ]: The name of the SIM.
+ [SimPolicyName ]: The name of the SIM policy.
+ [SiteName ]: The name of the mobile network site.
+ [SliceName ]: The name of the network slice.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VersionName ]: The name of the packet core control plane version.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkpacketcorecontrolplane
+#>
+function Get-AzMobileNetworkPacketCoreControlPlane {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('PacketCoreControlPlaneName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the packet core control plane.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.MobileNetwork.private\Get-AzMobileNetworkPacketCoreControlPlane_Get';
+ GetViaIdentity = 'Az.MobileNetwork.private\Get-AzMobileNetworkPacketCoreControlPlane_GetViaIdentity';
+ List = 'Az.MobileNetwork.private\Get-AzMobileNetworkPacketCoreControlPlane_List';
+ List1 = 'Az.MobileNetwork.private\Get-AzMobileNetworkPacketCoreControlPlane_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlaneVersion.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlaneVersion.ps1
new file mode 100644
index 000000000000..38363da37d47
--- /dev/null
+++ b/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlaneVersion.ps1
@@ -0,0 +1,194 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified packet core control plane version.
+.Description
+Gets information about the specified packet core control plane version.
+.Example
+Get-AzMobileNetworkPacketCoreControlPlaneVersion
+.Example
+Get-AzMobileNetworkPacketCoreControlPlaneVersion -VersionName pmn-2301-0-1
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneVersion
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AttachedDataNetworkName ]: The name of the attached data network.
+ [DataNetworkName ]: The name of the data network.
+ [Id ]: Resource identity path
+ [MobileNetworkName ]: The name of the mobile network.
+ [PacketCoreControlPlaneName ]: The name of the packet core control plane.
+ [PacketCoreDataPlaneName ]: The name of the packet core data plane.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServiceName ]: The name of the service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ [SimGroupName ]: The name of the SIM Group.
+ [SimName ]: The name of the SIM.
+ [SimPolicyName ]: The name of the SIM policy.
+ [SiteName ]: The name of the mobile network site.
+ [SliceName ]: The name of the network slice.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VersionName ]: The name of the packet core control plane version.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkpacketcorecontrolplaneversion
+#>
+function Get-AzMobileNetworkPacketCoreControlPlaneVersion {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneVersion])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the packet core control plane version.
+ ${VersionName},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.MobileNetwork.private\Get-AzMobileNetworkPacketCoreControlPlaneVersion_Get';
+ GetViaIdentity = 'Az.MobileNetwork.private\Get-AzMobileNetworkPacketCoreControlPlaneVersion_GetViaIdentity';
+ List = 'Az.MobileNetwork.private\Get-AzMobileNetworkPacketCoreControlPlaneVersion_List';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreDataPlane.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreDataPlane.ps1
new file mode 100644
index 000000000000..f1c9eb75ea48
--- /dev/null
+++ b/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreDataPlane.ps1
@@ -0,0 +1,221 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified packet core data plane.
+.Description
+Gets information about the specified packet core data plane.
+.Example
+Get-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group
+.Example
+Get-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Name azps-mn-pcdp
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AttachedDataNetworkName ]: The name of the attached data network.
+ [DataNetworkName ]: The name of the data network.
+ [Id ]: Resource identity path
+ [MobileNetworkName ]: The name of the mobile network.
+ [PacketCoreControlPlaneName ]: The name of the packet core control plane.
+ [PacketCoreDataPlaneName ]: The name of the packet core data plane.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServiceName ]: The name of the service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ [SimGroupName ]: The name of the SIM Group.
+ [SimName ]: The name of the SIM.
+ [SimPolicyName ]: The name of the SIM policy.
+ [SiteName ]: The name of the mobile network site.
+ [SliceName ]: The name of the network slice.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VersionName ]: The name of the packet core control plane version.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkpacketcoredataplane
+#>
+function Get-AzMobileNetworkPacketCoreDataPlane {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('PacketCoreDataPlaneName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the packet core data plane.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the packet core control plane.
+ ${PacketCoreControlPlaneName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.MobileNetwork.private\Get-AzMobileNetworkPacketCoreDataPlane_Get';
+ GetViaIdentity = 'Az.MobileNetwork.private\Get-AzMobileNetworkPacketCoreDataPlane_GetViaIdentity';
+ List = 'Az.MobileNetwork.private\Get-AzMobileNetworkPacketCoreDataPlane_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkService.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkService.ps1
new file mode 100644
index 000000000000..453e61a4ad59
--- /dev/null
+++ b/src/MobileNetwork/exports/Get-AzMobileNetworkService.ps1
@@ -0,0 +1,222 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified service.
+.Description
+Gets information about the specified service.
+.Example
+Get-AzMobileNetworkService -MobileNetworkName azps-mn -ResourceGroupName azps_test_group
+.Example
+Get-AzMobileNetworkService -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -Name azps-mn-service
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AttachedDataNetworkName ]: The name of the attached data network.
+ [DataNetworkName ]: The name of the data network.
+ [Id ]: Resource identity path
+ [MobileNetworkName ]: The name of the mobile network.
+ [PacketCoreControlPlaneName ]: The name of the packet core control plane.
+ [PacketCoreDataPlaneName ]: The name of the packet core data plane.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServiceName ]: The name of the service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ [SimGroupName ]: The name of the SIM Group.
+ [SimName ]: The name of the SIM.
+ [SimPolicyName ]: The name of the SIM policy.
+ [SiteName ]: The name of the mobile network site.
+ [SliceName ]: The name of the network slice.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VersionName ]: The name of the packet core control plane version.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkservice
+#>
+function Get-AzMobileNetworkService {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network.
+ ${MobileNetworkName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('ServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the service.
+ # You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.MobileNetwork.private\Get-AzMobileNetworkService_Get';
+ GetViaIdentity = 'Az.MobileNetwork.private\Get-AzMobileNetworkService_GetViaIdentity';
+ List = 'Az.MobileNetwork.private\Get-AzMobileNetworkService_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkSim.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkSim.ps1
new file mode 100644
index 000000000000..9aa962695631
--- /dev/null
+++ b/src/MobileNetwork/exports/Get-AzMobileNetworkSim.ps1
@@ -0,0 +1,222 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified SIM.
+.Description
+Gets information about the specified SIM.
+.Example
+Get-AzMobileNetworkSim -GroupName azps-mn-simgroup -ResourceGroupName azps_test_group
+.Example
+Get-AzMobileNetworkSim -GroupName azps-mn-simgroup -ResourceGroupName azps_test_group -Name azps-mn-sim
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISim
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AttachedDataNetworkName ]: The name of the attached data network.
+ [DataNetworkName ]: The name of the data network.
+ [Id ]: Resource identity path
+ [MobileNetworkName ]: The name of the mobile network.
+ [PacketCoreControlPlaneName ]: The name of the packet core control plane.
+ [PacketCoreDataPlaneName ]: The name of the packet core data plane.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServiceName ]: The name of the service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ [SimGroupName ]: The name of the SIM Group.
+ [SimName ]: The name of the SIM.
+ [SimPolicyName ]: The name of the SIM policy.
+ [SiteName ]: The name of the mobile network site.
+ [SliceName ]: The name of the network slice.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VersionName ]: The name of the packet core control plane version.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworksim
+#>
+function Get-AzMobileNetworkSim {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISim])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Alias('SimGroupName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the SIM Group.
+ ${GroupName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('SimName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the SIM.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.MobileNetwork.private\Get-AzMobileNetworkSim_Get';
+ GetViaIdentity = 'Az.MobileNetwork.private\Get-AzMobileNetworkSim_GetViaIdentity';
+ List = 'Az.MobileNetwork.private\Get-AzMobileNetworkSim_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkSimGroup.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkSimGroup.ps1
new file mode 100644
index 000000000000..c14f87466ff9
--- /dev/null
+++ b/src/MobileNetwork/exports/Get-AzMobileNetworkSimGroup.ps1
@@ -0,0 +1,218 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified SIM group.
+.Description
+Gets information about the specified SIM group.
+.Example
+Get-AzMobileNetworkSimGroup
+.Example
+Get-AzMobileNetworkSimGroup -ResourceGroupName azps_test_group
+.Example
+Get-AzMobileNetworkSimGroup -ResourceGroupName azps_test_group -Name azps-mn-simgroup
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AttachedDataNetworkName ]: The name of the attached data network.
+ [DataNetworkName ]: The name of the data network.
+ [Id ]: Resource identity path
+ [MobileNetworkName ]: The name of the mobile network.
+ [PacketCoreControlPlaneName ]: The name of the packet core control plane.
+ [PacketCoreDataPlaneName ]: The name of the packet core data plane.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServiceName ]: The name of the service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ [SimGroupName ]: The name of the SIM Group.
+ [SimName ]: The name of the SIM.
+ [SimPolicyName ]: The name of the SIM policy.
+ [SiteName ]: The name of the mobile network site.
+ [SliceName ]: The name of the network slice.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VersionName ]: The name of the packet core control plane version.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworksimgroup
+#>
+function Get-AzMobileNetworkSimGroup {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('SimGroupName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the SIM Group.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.MobileNetwork.private\Get-AzMobileNetworkSimGroup_Get';
+ GetViaIdentity = 'Az.MobileNetwork.private\Get-AzMobileNetworkSimGroup_GetViaIdentity';
+ List = 'Az.MobileNetwork.private\Get-AzMobileNetworkSimGroup_List';
+ List1 = 'Az.MobileNetwork.private\Get-AzMobileNetworkSimGroup_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkSimPolicy.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkSimPolicy.ps1
new file mode 100644
index 000000000000..ea6ea9b8342f
--- /dev/null
+++ b/src/MobileNetwork/exports/Get-AzMobileNetworkSimPolicy.ps1
@@ -0,0 +1,221 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified SIM policy.
+.Description
+Gets information about the specified SIM policy.
+.Example
+Get-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -ResourceGroupName azps_test_group
+.Example
+Get-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -Name azps-mn-simpolicy
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AttachedDataNetworkName ]: The name of the attached data network.
+ [DataNetworkName ]: The name of the data network.
+ [Id ]: Resource identity path
+ [MobileNetworkName ]: The name of the mobile network.
+ [PacketCoreControlPlaneName ]: The name of the packet core control plane.
+ [PacketCoreDataPlaneName ]: The name of the packet core data plane.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServiceName ]: The name of the service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ [SimGroupName ]: The name of the SIM Group.
+ [SimName ]: The name of the SIM.
+ [SimPolicyName ]: The name of the SIM policy.
+ [SiteName ]: The name of the mobile network site.
+ [SliceName ]: The name of the network slice.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VersionName ]: The name of the packet core control plane version.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworksimpolicy
+#>
+function Get-AzMobileNetworkSimPolicy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network.
+ ${MobileNetworkName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('SimPolicyName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the SIM policy.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.MobileNetwork.private\Get-AzMobileNetworkSimPolicy_Get';
+ GetViaIdentity = 'Az.MobileNetwork.private\Get-AzMobileNetworkSimPolicy_GetViaIdentity';
+ List = 'Az.MobileNetwork.private\Get-AzMobileNetworkSimPolicy_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkSite.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkSite.ps1
new file mode 100644
index 000000000000..facbd21e651d
--- /dev/null
+++ b/src/MobileNetwork/exports/Get-AzMobileNetworkSite.ps1
@@ -0,0 +1,221 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified mobile network site.
+.Description
+Gets information about the specified mobile network site.
+.Example
+Get-AzMobileNetworkSite -ResourceGroupName azps_test_group -MobileNetworkName azps-mn
+.Example
+Get-AzMobileNetworkSite -ResourceGroupName azps_test_group -MobileNetworkName azps-mn -Name azps-mn-site
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISite
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AttachedDataNetworkName ]: The name of the attached data network.
+ [DataNetworkName ]: The name of the data network.
+ [Id ]: Resource identity path
+ [MobileNetworkName ]: The name of the mobile network.
+ [PacketCoreControlPlaneName ]: The name of the packet core control plane.
+ [PacketCoreDataPlaneName ]: The name of the packet core data plane.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServiceName ]: The name of the service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ [SimGroupName ]: The name of the SIM Group.
+ [SimName ]: The name of the SIM.
+ [SimPolicyName ]: The name of the SIM policy.
+ [SiteName ]: The name of the mobile network site.
+ [SliceName ]: The name of the network slice.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VersionName ]: The name of the packet core control plane version.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworksite
+#>
+function Get-AzMobileNetworkSite {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISite])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network.
+ ${MobileNetworkName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('SiteName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network site.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.MobileNetwork.private\Get-AzMobileNetworkSite_Get';
+ GetViaIdentity = 'Az.MobileNetwork.private\Get-AzMobileNetworkSite_GetViaIdentity';
+ List = 'Az.MobileNetwork.private\Get-AzMobileNetworkSite_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkSlice.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkSlice.ps1
new file mode 100644
index 000000000000..3bd01c554ff8
--- /dev/null
+++ b/src/MobileNetwork/exports/Get-AzMobileNetworkSlice.ps1
@@ -0,0 +1,220 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified network slice.
+.Description
+Gets information about the specified network slice.
+.Example
+Get-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group
+.Example
+Get-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+INPUTOBJECT : Identity Parameter
+ [AttachedDataNetworkName ]: The name of the attached data network.
+ [DataNetworkName ]: The name of the data network.
+ [Id ]: Resource identity path
+ [MobileNetworkName ]: The name of the mobile network.
+ [PacketCoreControlPlaneName ]: The name of the packet core control plane.
+ [PacketCoreDataPlaneName ]: The name of the packet core data plane.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [ServiceName ]: The name of the service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ [SimGroupName ]: The name of the SIM Group.
+ [SimName ]: The name of the SIM.
+ [SimPolicyName ]: The name of the SIM policy.
+ [SiteName ]: The name of the mobile network site.
+ [SliceName ]: The name of the network slice.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VersionName ]: The name of the packet core control plane version.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkslice
+#>
+function Get-AzMobileNetworkSlice {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network.
+ ${MobileNetworkName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the network slice.
+ ${SliceName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ Get = 'Az.MobileNetwork.private\Get-AzMobileNetworkSlice_Get';
+ GetViaIdentity = 'Az.MobileNetwork.private\Get-AzMobileNetworkSlice_GetViaIdentity';
+ List = 'Az.MobileNetwork.private\Get-AzMobileNetworkSlice_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetwork.ps1 b/src/MobileNetwork/exports/New-AzMobileNetwork.ps1
new file mode 100644
index 000000000000..7633d94e3b4f
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetwork.ps1
@@ -0,0 +1,215 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a mobile network.
+.Description
+Creates or updates a mobile network.
+.Example
+New-AzMobileNetwork -Name azps-mn -ResourceGroupName azps_test_group -Location eastus -PublicLandMobileNetworkIdentifierMcc 001 -PublicLandMobileNetworkIdentifierMnc 01 -Tag @{"china"="move"}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IMobileNetwork
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetwork
+#>
+function New-AzMobileNetwork {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IMobileNetwork])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('MobileNetworkName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Mobile country code (MCC).
+ ${PublicLandMobileNetworkIdentifierMcc},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Mobile network code (MNC).
+ ${PublicLandMobileNetworkIdentifierMnc},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetwork_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkAttachedDataNetwork.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkAttachedDataNetwork.ps1
new file mode 100644
index 000000000000..51633727345f
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkAttachedDataNetwork.ps1
@@ -0,0 +1,332 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates an attached data network.
+Must be created in the same location as its parent packet core data plane.
+.Description
+Creates or updates an attached data network.
+Must be created in the same location as its parent packet core data plane.
+.Example
+$dns=@("1.1.1.1", "1.1.1.2")
+
+New-AzMobileNetworkAttachedDataNetwork -Name azps-mn-adn -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -DnsAddress $dns -Location eastus -UserPlaneDataInterfaceIpv4Address 10.0.0.10 -UserPlaneDataInterfaceIpv4Gateway 10.0.0.1 -UserPlaneDataInterfaceIpv4Subnet 10.0.0.0/24 -UserPlaneDataInterfaceName N6
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworkattacheddatanetwork
+#>
+function New-AzMobileNetworkAttachedDataNetwork {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('AttachedDataNetworkName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the attached data network.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the packet core control plane.
+ ${PacketCoreControlPlaneName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the packet core data plane.
+ ${PacketCoreDataPlaneName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String[]]
+ # The DNS servers to signal to UEs to use for this attached data network.
+ # This configuration is mandatory - if you don't want DNS servers, you must provide an empty array.
+ ${DnsAddress},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.NaptEnabled])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.NaptEnabled]
+ # Whether NAPT is enabled for connections to this attached data network.
+ ${NaptConfigurationEnabled},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # Maximum number of UDP and TCP pinholes that can be open simultaneously on the core interface.
+ # For 5G networks, this is the N6 interface.
+ # For 4G networks, this is the SGi interface.
+ ${NaptConfigurationPinholeLimit},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # Pinhole timeout for ICMP pinholes in seconds.
+ # Default for ICMP Echo is 30 seconds.
+ ${PinholeTimeoutIcmp},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # Pinhole timeout for TCP pinholes in seconds.
+ # Default for TCP is 3 minutes.
+ ${PinholeTimeoutTcp},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # Pinhole timeout for UDP pinholes in seconds.
+ # Default for UDP is 30 seconds.
+ ${PinholeTimeoutUdp},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # The maximum port number
+ ${PortRangeMaxPort},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # The minimum port number
+ ${PortRangeMinPort},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # Minimum time in seconds that will pass before a TCP port that was used by a closed pinhole can be reused.
+ # Default for TCP is 2 minutes.
+ ${PortReuseHoldTimeTcp},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # Minimum time in seconds that will pass before a UDP port that was used by a closed pinhole can be reused.
+ # Default for UDP is 1 minute.
+ ${PortReuseHoldTimeUdp},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String[]]
+ # The user equipment (UE) address pool prefixes for the attached data network from which the packet core instance will dynamically assign IP addresses to UEs.The packet core instance assigns an IP address to a UE when the UE sets up a PDU session.
+ # You must define at least one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix.
+ # If you define both, they must be of the same size.
+ ${UserEquipmentAddressPoolPrefix},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String[]]
+ # The user equipment (UE) address pool prefixes for the attached data network from which the packet core instance will assign static IP addresses to UEs.The packet core instance assigns an IP address to a UE when the UE sets up a PDU session.
+ # The static IP address for a specific UE is set in StaticIPConfiguration on the corresponding SIM resource.At least one of userEquipmentAddressPoolPrefix and userEquipmentStaticAddressPoolPrefix must be defined.
+ # If both are defined, they must be of the same size.
+ ${UserEquipmentStaticAddressPoolPrefix},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The IPv4 address.
+ ${UserPlaneDataInterfaceIpv4Address},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The default IPv4 gateway (router).
+ ${UserPlaneDataInterfaceIpv4Gateway},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The IPv4 subnet.
+ ${UserPlaneDataInterfaceIpv4Subnet},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The logical name for this interface.
+ # This should match one of the interfaces configured on your Azure Stack Edge device.
+ ${UserPlaneDataInterfaceName},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkAttachedDataNetwork_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkDataNetwork.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkDataNetwork.ps1
new file mode 100644
index 000000000000..b08be0cb50fa
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkDataNetwork.ps1
@@ -0,0 +1,217 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a data network.
+Must be created in the same location as its parent mobile network.
+.Description
+Creates or updates a data network.
+Must be created in the same location as its parent mobile network.
+.Example
+New-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -Name azps-mn-datanetwork -ResourceGroupName azps_test_group -Location eastus
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworkdatanetwork
+#>
+function New-AzMobileNetworkDataNetwork {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network.
+ ${MobileNetworkName},
+
+ [Parameter(Mandatory)]
+ [Alias('DataNetworkName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the data network.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # An optional description for this data network.
+ ${Description},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkDataNetwork_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkDataNetworkConfigurationObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkDataNetworkConfigurationObject.ps1
new file mode 100644
index 000000000000..f496048d9979
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkDataNetworkConfigurationObject.ps1
@@ -0,0 +1,204 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for DataNetworkConfiguration.
+.Description
+Create an in-memory object for DataNetworkConfiguration.
+.Example
+$ServiceResourceId = New-AzMobileNetworkServiceResourceIdObject -Id "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/services/azps-mn-service"
+
+New-AzMobileNetworkDataNetworkConfigurationObject -AllowedService $ServiceResourceId -DataNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/dataNetworks/azps-mn-datanetwork" -SessionAmbrDownlink "1 Gbps" -SessionAmbrUplink "500 Mbps" -FiveQi 9 -AllocationAndRetentionPriorityLevel 9 -DefaultSessionType 'IPv4' -MaximumNumberOfBufferedPacket 200 -PreemptionCapability 'NotPreempt' -PreemptionVulnerability 'Preemptable'
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkConfiguration
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+ALLOWEDSERVICE : List of services that can be used as part of this SIM policy. The list must not contain duplicate items and must contain at least one item. The services must be in the same location as the SIM policy.
+ Id : Service resource ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkDataNetworkConfigurationObject
+#>
+function New-AzMobileNetworkDataNetworkConfigurationObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkConfiguration])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IServiceResourceId[]]
+ # List of services that can be used as part of this SIM policy.
+ # The list must not contain duplicate items and must contain at least one item.
+ # The services must be in the same location as the SIM policy.
+ # To construct, see NOTES section for ALLOWEDSERVICE properties and create a hash table.
+ ${AllowedService},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Data network resource ID.
+ ${DataNetworkId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Downlink bit rate.
+ ${SessionAmbrDownlink},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Uplink bit rate.
+ ${SessionAmbrUplink},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PduSessionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PduSessionType[]]
+ # Allowed session types in addition to the default session type.
+ # Must not duplicate the default session type.
+ ${AdditionalAllowedSessionType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # Default QoS Flow allocation and retention priority (ARP) level.
+ # Flows with higher priority preempt flows with lower priority, if the settings of preemptionCapability and preemptionVulnerability allow it.
+ # 1 is the highest level of priority.
+ # If this field is not specified then 5qi is used to derive the ARP value.
+ # See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ ${AllocationAndRetentionPriorityLevel},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PduSessionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PduSessionType]
+ # The default PDU session type, which is used if the UE does not request a specific session type.
+ ${DefaultSessionType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # Default QoS Flow 5G QoS Indicator value.
+ # The 5QI identifies a specific QoS forwarding treatment to be provided to a flow.
+ # This must not be a standardized 5QI value corresponding to a GBR (guaranteed bit rate) QoS Flow.
+ # The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85.
+ # See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the definition of which are the GBR 5QI values.
+ ${FiveQi},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # The maximum number of downlink packets to buffer at the user plane for High Latency Communication - Extended Buffering.
+ # See 3GPP TS29.272 v15.10.0 section 7.3.188 for a full description.
+ # This maximum is not guaranteed because there is a internal limit on buffered packets across all PDU sessions.
+ ${MaximumNumberOfBufferedPacket},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionCapability])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionCapability]
+ # Default QoS Flow preemption capability.
+ # The preemption capability of a QoS Flow controls whether it can preempt another QoS Flow with a lower priority level.
+ # See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ ${PreemptionCapability},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionVulnerability])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionVulnerability]
+ # Default QoS Flow preemption vulnerability.
+ # The preemption vulnerability of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level.
+ # See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ ${PreemptionVulnerability}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkDataNetworkConfigurationObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreControlPlane.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreControlPlane.ps1
new file mode 100644
index 000000000000..da2a42bd4a05
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreControlPlane.ps1
@@ -0,0 +1,342 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a packet core control plane.
+.Description
+Creates or updates a packet core control plane.
+.Example
+$siteResourceId = New-AzMobileNetworkSiteResourceIdObject -Id /subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/sites/azps-mn-site
+
+New-AzMobileNetworkPacketCoreControlPlane -Name azps-mn-pccp -ResourceGroupName azps_test_group -LocalDiagnosticAccessAuthenticationType Password -Location eastus -PlatformType AKS-HCI -Site $siteResourceId -Sku G0 -ControlPlaneAccessInterfaceIpv4Address 192.168.1.10 -ControlPlaneAccessInterfaceIpv4Gateway 192.168.1.1 -ControlPlaneAccessInterfaceIpv4Subnet 192.168.1.0/24 -ControlPlaneAccessInterfaceName N2 -CoreNetworkTechnology 5GC
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+SITE : Site(s) under which this packet core control plane should be deployed. The sites must be in the same location as the packet core control plane.
+ Id : Site resource ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworkpacketcorecontrolplane
+#>
+function New-AzMobileNetworkPacketCoreControlPlane {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('PacketCoreControlPlaneName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the packet core control plane.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.AuthenticationType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.AuthenticationType]
+ # How to authenticate users who access local diagnostics APIs.
+ ${LocalDiagnosticAccessAuthenticationType},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(Mandatory)]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PlatformType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PlatformType]
+ # The platform type where packet core is deployed.
+ ${PlatformType},
+
+ [Parameter(Mandatory)]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISiteResourceId[]]
+ # Site(s) under which this packet core control plane should be deployed.
+ # The sites must be in the same location as the packet core control plane.
+ # To construct, see NOTES section for SITE properties and create a hash table.
+ ${Site},
+
+ [Parameter(Mandatory)]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.BillingSku])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.BillingSku]
+ # The SKU defining the throughput and SIM allowances for this packet core control plane deployment.
+ ${Sku},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Azure Stack Edge device resource ID.
+ ${AzureStackEdgeDeviceId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Azure Stack HCI cluster resource ID.
+ ${AzureStackHciClusterId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Azure Arc connected cluster resource ID.
+ ${ConnectedClusterId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The IPv4 address.
+ ${ControlPlaneAccessInterfaceIpv4Address},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The default IPv4 gateway (router).
+ ${ControlPlaneAccessInterfaceIpv4Gateway},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The IPv4 subnet.
+ ${ControlPlaneAccessInterfaceIpv4Subnet},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The logical name for this interface.
+ # This should match one of the interfaces configured on your Azure Stack Edge device.
+ ${ControlPlaneAccessInterfaceName},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.CoreNetworkType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.CoreNetworkType]
+ # The core network technology generation (5G core or EPC / 4G core).
+ ${CoreNetworkTechnology},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Azure Arc custom location resource ID.
+ ${CustomLocationId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The certificate URL, unversioned.
+ # For example: https://contosovault.vault.azure.net/certificates/ingress.
+ ${HttpsServerCertificateUrl},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.ManagedServiceIdentityType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.ManagedServiceIdentityType]
+ # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
+ ${IdentityType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IUserAssignedIdentities]))]
+ [System.Collections.Hashtable]
+ # The set of user assigned identities associated with the resource.
+ # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
+ # The dictionary values can be empty objects ({}) in requests.
+ ${IdentityUserAssignedIdentity},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IAny]
+ # Settings to allow interoperability with third party components e.g.
+ # RANs and UEs.
+ ${InteropSetting},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # The MTU (in bytes) signaled to the UE.
+ # The same MTU is set on the user plane data links for all data networks.
+ # The MTU set on the user plane access link is calculated to be 60 bytes greater than this value to allow for GTP encapsulation.
+ ${UeMtu},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The version of the packet core software that is deployed.
+ ${Version},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkPacketCoreControlPlane_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreDataPlane.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreDataPlane.ps1
new file mode 100644
index 000000000000..b331ecca491a
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreDataPlane.ps1
@@ -0,0 +1,236 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a packet core data plane.
+Must be created in the same location as its parent packet core control plane.
+.Description
+Creates or updates a packet core data plane.
+Must be created in the same location as its parent packet core control plane.
+.Example
+New-AzMobileNetworkPacketCoreDataPlane -Name azps-mn-pcdp -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Location eastus -UserPlaneAccessInterfaceIpv4Address 10.0.1.10 -UserPlaneAccessInterfaceIpv4Gateway 10.0.1.1 -UserPlaneAccessInterfaceIpv4Subnet 10.0.1.0/24 -UserPlaneAccessInterfaceName N3
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworkpacketcoredataplane
+#>
+function New-AzMobileNetworkPacketCoreDataPlane {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('PacketCoreDataPlaneName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the packet core data plane.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the packet core control plane.
+ ${PacketCoreControlPlaneName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The IPv4 address.
+ ${UserPlaneAccessInterfaceIpv4Address},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The default IPv4 gateway (router).
+ ${UserPlaneAccessInterfaceIpv4Gateway},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The IPv4 subnet.
+ ${UserPlaneAccessInterfaceIpv4Subnet},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The logical name for this interface.
+ # This should match one of the interfaces configured on your Azure Stack Edge device.
+ ${UserPlaneAccessInterfaceName},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkPacketCoreDataPlane_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkPccRuleConfigurationObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkPccRuleConfigurationObject.ps1
new file mode 100644
index 000000000000..b329dd85ab4e
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkPccRuleConfigurationObject.ps1
@@ -0,0 +1,212 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for PccRuleConfiguration.
+.Description
+Create an in-memory object for PccRuleConfiguration.
+.Example
+$ServiceDataFlowTemplate = New-AzMobileNetworkServiceDataFlowTemplateObject -Direction "Bidirectional" -Protocol "255" -RemoteIPList "any" -TemplateName azps-mn-flow-template
+
+New-AzMobileNetworkPccRuleConfigurationObject -RuleName azps-mn-service-rule -RulePrecedence 0 -ServiceDataFlowTemplate $ServiceDataFlowTemplate -TrafficControl 'Enabled' -RuleQoPolicyPreemptionVulnerability 'Preemptable' -RuleQoPolicyPreemptionCapability 'NotPreempt' -RuleQoPolicyAllocationAndRetentionPriorityLevel 9 -RuleQoPolicyMaximumBitRateDownlink "1 Gbps" -RuleQoPolicyMaximumBitRateUplink "500 Mbps"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PccRuleConfiguration
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+SERVICEDATAFLOWTEMPLATE : The set of data flow templates to use for this data flow policy rule.
+ Direction : The direction of this flow.
+ Protocol : A list of the allowed protocol(s) for this flow. If you want this flow to be able to use any protocol within the internet protocol suite, use the value `ip`. If you only want to allow a selection of protocols, you must use the corresponding IANA Assigned Internet Protocol Number for each protocol, as described in https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml. For example, for UDP, you must use 17. If you use the value `ip` then you must leave the field `port` unspecified.
+ RemoteIPList : The remote IP address(es) to which UEs will connect for this flow. If you want to allow connections on any IP address, use the value 'any'. Otherwise, you must provide each of the remote IP addresses to which the packet core instance will connect for this flow. You must provide each IP address in CIDR notation, including the netmask (for example, 192.0.2.54/24).
+ TemplateName : The name of the data flow template. This must be unique within the parent data flow policy rule. You must not use any of the following reserved strings - 'default', 'requested' or 'service'.
+ [Port ]: The port(s) to which UEs will connect for this flow. You can specify zero or more ports or port ranges. If you specify one or more ports or port ranges then you must specify a value other than `ip` in the `protocol` field. This is an optional setting. If you do not specify it then connections will be allowed on all ports. Port ranges must be specified as -. For example: [`8080`, `8082-8085`].
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkPccRuleConfigurationObject
+#>
+function New-AzMobileNetworkPccRuleConfigurationObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PccRuleConfiguration])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The name of the rule.
+ # This must be unique within the parent service.
+ # You must not use any of the following reserved strings - 'default', 'requested' or 'service'.
+ ${RuleName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # A precedence value that is used to decide between data flow policy rules when identifying the QoS values to use for a particular SIM.
+ # A lower value means a higher priority.
+ # This value should be unique among all data flow policy rules configured in the mobile network.
+ ${RulePrecedence},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IServiceDataFlowTemplate[]]
+ # The set of data flow templates to use for this data flow policy rule.
+ # To construct, see NOTES section for SERVICEDATAFLOWTEMPLATE properties and create a hash table.
+ ${ServiceDataFlowTemplate},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Downlink bit rate.
+ ${GuaranteedBitRateDownlink},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Uplink bit rate.
+ ${GuaranteedBitRateUplink},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # QoS Flow allocation and retention priority (ARP) level.
+ # Flows with higher priority preempt flows with lower priority, if the settings of preemptionCapability and preemptionVulnerability allow it.
+ # 1 is the highest level of priority.
+ # If this field is not specified then 5qi is used to derive the ARP value.
+ # See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ ${RuleQoPolicyAllocationAndRetentionPriorityLevel},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # QoS Flow 5G QoS Indicator value.
+ # The 5QI identifies a specific QoS forwarding treatment to be provided to a flow.
+ # This must not be a standardized 5QI value corresponding to a GBR (guaranteed bit rate) QoS Flow.
+ # The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85.
+ # See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the definition of which are the GBR 5QI values.
+ ${RuleQoPolicyFiveQi},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Downlink bit rate.
+ ${RuleQoPolicyMaximumBitRateDownlink},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Uplink bit rate.
+ ${RuleQoPolicyMaximumBitRateUplink},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionCapability])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionCapability]
+ # QoS Flow preemption capability.
+ # The preemption capability of a QoS Flow controls whether it can preempt another QoS Flow with a lower priority level.
+ # See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ ${RuleQoPolicyPreemptionCapability},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionVulnerability])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionVulnerability]
+ # QoS Flow preemption vulnerability.
+ # The preemption vulnerability of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level.
+ # See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ ${RuleQoPolicyPreemptionVulnerability},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.TrafficControlPermission])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.TrafficControlPermission]
+ # Determines whether flows that match this data flow policy rule are permitted.
+ ${TrafficControl}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkPccRuleConfigurationObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkService.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkService.ps1
new file mode 100644
index 000000000000..8ab3a1736f34
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkService.ps1
@@ -0,0 +1,305 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a service.
+Must be created in the same location as its parent mobile network.
+.Description
+Creates or updates a service.
+Must be created in the same location as its parent mobile network.
+.Example
+$ServiceDataFlowTemplate = New-AzMobileNetworkServiceDataFlowTemplateObject -Direction "Bidirectional" -Protocol "255" -RemoteIPList "any" -TemplateName azps-mn-flow-template
+
+$PccRule = New-AzMobileNetworkPccRuleConfigurationObject -RuleName azps-mn-service-rule -RulePrecedence 0 -ServiceDataFlowTemplate $ServiceDataFlowTemplate -TrafficControl 'Enabled' -RuleQoPolicyPreemptionVulnerability 'Preemptable' -RuleQoPolicyPreemptionCapability 'NotPreempt' -RuleQoPolicyAllocationAndRetentionPriorityLevel 9 -RuleQoPolicyMaximumBitRateDownlink "1 Gbps" -RuleQoPolicyMaximumBitRateUplink "500 Mbps"
+
+New-AzMobileNetworkService -MobileNetworkName azps-mn -Name azps-mn-service -ResourceGroupName azps_test_group -Location eastus -PccRule $PccRule -ServicePrecedence 0 -MaximumBitRateDownlink "1 Gbps" -MaximumBitRateUplink "500 Mbps" -ServiceQoPolicyAllocationAndRetentionPriorityLevel 9 -ServiceQoPolicyFiveQi 9 -ServiceQoPolicyPreemptionCapability 'MayPreempt' -ServiceQoPolicyPreemptionVulnerability 'Preemptable'
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+PCCRULE : The set of data flow policy rules that make up this service.
+ RuleName : The name of the rule. This must be unique within the parent service. You must not use any of the following reserved strings - 'default', 'requested' or 'service'.
+ RulePrecedence : A precedence value that is used to decide between data flow policy rules when identifying the QoS values to use for a particular SIM. A lower value means a higher priority. This value should be unique among all data flow policy rules configured in the mobile network.
+ ServiceDataFlowTemplate : The set of data flow templates to use for this data flow policy rule.
+ Direction : The direction of this flow.
+ Protocol : A list of the allowed protocol(s) for this flow. If you want this flow to be able to use any protocol within the internet protocol suite, use the value `ip`. If you only want to allow a selection of protocols, you must use the corresponding IANA Assigned Internet Protocol Number for each protocol, as described in https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml. For example, for UDP, you must use 17. If you use the value `ip` then you must leave the field `port` unspecified.
+ RemoteIPList : The remote IP address(es) to which UEs will connect for this flow. If you want to allow connections on any IP address, use the value 'any'. Otherwise, you must provide each of the remote IP addresses to which the packet core instance will connect for this flow. You must provide each IP address in CIDR notation, including the netmask (for example, 192.0.2.54/24).
+ TemplateName : The name of the data flow template. This must be unique within the parent data flow policy rule. You must not use any of the following reserved strings - 'default', 'requested' or 'service'.
+ [Port ]: The port(s) to which UEs will connect for this flow. You can specify zero or more ports or port ranges. If you specify one or more ports or port ranges then you must specify a value other than `ip` in the `protocol` field. This is an optional setting. If you do not specify it then connections will be allowed on all ports. Port ranges must be specified as -. For example: [`8080`, `8082-8085`].
+ [GuaranteedBitRateDownlink ]: Downlink bit rate.
+ [GuaranteedBitRateUplink ]: Uplink bit rate.
+ [RuleQoPolicyAllocationAndRetentionPriorityLevel ]: QoS Flow allocation and retention priority (ARP) level. Flows with higher priority preempt flows with lower priority, if the settings of `preemptionCapability` and `preemptionVulnerability` allow it. 1 is the highest level of priority. If this field is not specified then `5qi` is used to derive the ARP value. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ [RuleQoPolicyFiveQi ]: QoS Flow 5G QoS Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. This must not be a standardized 5QI value corresponding to a GBR (guaranteed bit rate) QoS Flow. The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85. See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the definition of which are the GBR 5QI values.
+ [RuleQoPolicyMaximumBitRateDownlink ]: Downlink bit rate.
+ [RuleQoPolicyMaximumBitRateUplink ]: Uplink bit rate.
+ [RuleQoPolicyPreemptionCapability ]: QoS Flow preemption capability. The preemption capability of a QoS Flow controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ [RuleQoPolicyPreemptionVulnerability ]: QoS Flow preemption vulnerability. The preemption vulnerability of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ [TrafficControl ]: Determines whether flows that match this data flow policy rule are permitted.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworkservice
+#>
+function New-AzMobileNetworkService {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network.
+ ${MobileNetworkName},
+
+ [Parameter(Mandatory)]
+ [Alias('ServiceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the service.
+ # You must not use any of the following reserved strings - 'default', 'requested' or 'service'
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(Mandatory)]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPccRuleConfiguration[]]
+ # The set of data flow policy rules that make up this service.
+ # To construct, see NOTES section for PCCRULE properties and create a hash table.
+ ${PccRule},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # A precedence value that is used to decide between services when identifying the QoS values to use for a particular SIM.
+ # A lower value means a higher priority.
+ # This value should be unique among all services configured in the mobile network.
+ ${ServicePrecedence},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Downlink bit rate.
+ ${MaximumBitRateDownlink},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Uplink bit rate.
+ ${MaximumBitRateUplink},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # QoS Flow allocation and retention priority (ARP) level.
+ # Flows with higher priority preempt flows with lower priority, if the settings of `preemptionCapability` and `preemptionVulnerability` allow it.
+ # 1 is the highest level of priority.
+ # If this field is not specified then `5qi` is used to derive the ARP value.
+ # See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ ${ServiceQoPolicyAllocationAndRetentionPriorityLevel},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # QoS Flow 5G QoS Indicator value.
+ # The 5QI identifies a specific QoS forwarding treatment to be provided to a flow.
+ # This must not be a standardized 5QI value corresponding to a GBR (guaranteed bit rate) QoS Flow.
+ # The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85.
+ # See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the definition of which are the GBR 5QI values.
+ ${ServiceQoPolicyFiveQi},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionCapability])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionCapability]
+ # QoS Flow preemption capability.
+ # The preemption capability of a QoS Flow controls whether it can preempt another QoS Flow with a lower priority level.
+ # See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ ${ServiceQoPolicyPreemptionCapability},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionVulnerability])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionVulnerability]
+ # QoS Flow preemption vulnerability.
+ # The preemption vulnerability of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level.
+ # See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ ${ServiceQoPolicyPreemptionVulnerability},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkService_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkServiceDataFlowTemplateObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkServiceDataFlowTemplateObject.ps1
new file mode 100644
index 000000000000..64770695482f
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkServiceDataFlowTemplateObject.ps1
@@ -0,0 +1,153 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ServiceDataFlowTemplate.
+.Description
+Create an in-memory object for ServiceDataFlowTemplate.
+.Example
+New-AzMobileNetworkServiceDataFlowTemplateObject -Direction "Bidirectional" -Protocol "255" -RemoteIPList "any" -TemplateName azps-mn-flow-template
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceDataFlowTemplate
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkServiceDataFlowTemplateObject
+#>
+function New-AzMobileNetworkServiceDataFlowTemplateObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceDataFlowTemplate])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.SdfDirection])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.SdfDirection]
+ # The direction of this flow.
+ ${Direction},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String[]]
+ # A list of the allowed protocol(s) for this flow.
+ # If you want this flow to be able to use any protocol within the internet protocol suite, use the value ip.
+ # If you only want to allow a selection of protocols, you must use the corresponding IANA Assigned Internet Protocol Number for each protocol, as described in https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml.
+ # For example, for UDP, you must use 17.
+ # If you use the value ip then you must leave the field port unspecified.
+ ${Protocol},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String[]]
+ # The remote IP address(es) to which UEs will connect for this flow.
+ # If you want to allow connections on any IP address, use the value 'any'.
+ # Otherwise, you must provide each of the remote IP addresses to which the packet core instance will connect for this flow.
+ # You must provide each IP address in CIDR notation, including the netmask (for example, 192.0.2.54/24).
+ ${RemoteIPList},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The name of the data flow template.
+ # This must be unique within the parent data flow policy rule.
+ # You must not use any of the following reserved strings - 'default', 'requested' or 'service'.
+ ${TemplateName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String[]]
+ # The port(s) to which UEs will connect for this flow.
+ # You can specify zero or more ports or port ranges.
+ # If you specify one or more ports or port ranges then you must specify a value other than ip in the protocol field.
+ # This is an optional setting.
+ # If you do not specify it then connections will be allowed on all ports.
+ # Port ranges must be specified as -.
+ # For example: [8080, 8082-8085].
+ ${Port}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkServiceDataFlowTemplateObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkServiceResourceIdObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkServiceResourceIdObject.ps1
new file mode 100644
index 000000000000..633510da2ad8
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkServiceResourceIdObject.ps1
@@ -0,0 +1,113 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for ServiceResourceId.
+.Description
+Create an in-memory object for ServiceResourceId.
+.Example
+New-AzMobileNetworkServiceResourceIdObject -Id "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/services/azps-mn-service"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceResourceId
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkServiceResourceIdObject
+#>
+function New-AzMobileNetworkServiceResourceIdObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceResourceId])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Service resource ID.
+ ${Id}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkServiceResourceIdObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSim.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSim.ps1
new file mode 100644
index 000000000000..c35832280f8e
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkSim.ps1
@@ -0,0 +1,254 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a SIM.
+.Description
+Creates or updates a SIM.
+.Example
+$staticIp = New-AzMobileNetworkSimStaticIPPropertiesObject -StaticIPIpv4Address 10.0.0.20
+
+New-AzMobileNetworkSim -GroupName azps-mn-simgroup -Name azps-mn-sim -ResourceGroupName azps_test_group -InternationalMobileSubscriberIdentity 000000000000001 -AuthenticationKey 00112233445566778899AABBCCDDEEFF -DeviceType Mobile -IntegratedCircuitCardIdentifier 8900000000000000001 -OperatorKeyCode 00000000000000000000000000000001 -SimPolicyId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/simPolicies/azps-mn-simpolicy" -StaticIPConfiguration $staticIp
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISim
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+STATICIPCONFIGURATION : A list of static IP addresses assigned to this SIM. Each address is assigned at a defined network scope, made up of {attached data network, slice}.
+ [AttachedDataNetworkId ]: Attached data network resource ID.
+ [SlouseId ]: Slice resource ID.
+ [StaticIPIpv4Address ]: The IPv4 address assigned to the SIM at this network scope. This address must be in the userEquipmentStaticAddressPoolPrefix defined in the attached data network.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworksim
+#>
+function New-AzMobileNetworkSim {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISim])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('SimGroupName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the SIM Group.
+ ${GroupName},
+
+ [Parameter(Mandatory)]
+ [Alias('SimName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the SIM.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The international mobile subscriber identity (IMSI) for the SIM.
+ ${InternationalMobileSubscriberIdentity},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The Ki value for the SIM.
+ ${AuthenticationKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # An optional free-form text field that can be used to record the device type this SIM is associated with, for example 'Video camera'.
+ # The Azure portal allows SIMs to be grouped and filtered based on this value.
+ ${DeviceType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The integrated circuit card ID (ICCID) for the SIM.
+ ${IntegratedCircuitCardIdentifier},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The Opc value for the SIM.
+ ${OperatorKeyCode},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # SIM policy resource ID.
+ ${SimPolicyId},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimStaticIPProperties[]]
+ # A list of static IP addresses assigned to this SIM.
+ # Each address is assigned at a defined network scope, made up of {attached data network, slice}.
+ # To construct, see NOTES section for STATICIPCONFIGURATION properties and create a hash table.
+ ${StaticIPConfiguration},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkSim_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSimGroup.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSimGroup.ps1
new file mode 100644
index 000000000000..ffce330c8058
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkSimGroup.ps1
@@ -0,0 +1,234 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a SIM group.
+.Description
+Creates or updates a SIM group.
+.Example
+$ManagedIdentity = @{"/subscriptions/{subId}/resourcegroups/azps_test_group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/azps-mn-mi"="{}"}
+
+New-AzMobileNetworkSimGroup -Name azps-mn-simgroup -ResourceGroupName azps_test_group -Location eastus -MobileNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworksimgroup
+#>
+function New-AzMobileNetworkSimGroup {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('SimGroupName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the SIM Group.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Mobile network resource ID.
+ ${MobileNetworkId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The key URL, unversioned.
+ # For example: https://contosovault.vault.azure.net/keys/azureKey.
+ ${EncryptionKeyUrl},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.ManagedServiceIdentityType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.ManagedServiceIdentityType]
+ # Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed).
+ ${IdentityType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IUserAssignedIdentities]))]
+ [System.Collections.Hashtable]
+ # The set of user assigned identities associated with the resource.
+ # The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}.
+ # The dictionary values can be empty objects ({}) in requests.
+ ${IdentityUserAssignedIdentity},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.MobileNetwork.custom\New-AzMobileNetworkSimGroup';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSimPolicy.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSimPolicy.ps1
new file mode 100644
index 000000000000..65e130d53c74
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkSimPolicy.ps1
@@ -0,0 +1,278 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a SIM policy.
+Must be created in the same location as its parent mobile network.
+.Description
+Creates or updates a SIM policy.
+Must be created in the same location as its parent mobile network.
+.Example
+$ServiceResourceId = New-AzMobileNetworkServiceResourceIdObject -Id "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/services/azps-mn-service"
+
+$DataNetworkConfiguration = New-AzMobileNetworkDataNetworkConfigurationObject -AllowedService $ServiceResourceId -DataNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/dataNetworks/azps-mn-datanetwork" -SessionAmbrDownlink "1 Gbps" -SessionAmbrUplink "500 Mbps" -FiveQi 9 -AllocationAndRetentionPriorityLevel 9 -DefaultSessionType 'IPv4' -MaximumNumberOfBufferedPacket 200 -PreemptionCapability 'NotPreempt' -PreemptionVulnerability 'Preemptable'
+
+$SliceConfiguration = New-AzMobileNetworkSliceConfigurationObject -DataNetworkConfiguration $DataNetworkConfiguration -DefaultDataNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/dataNetworks/azps-mn-datanetwork" -SliceId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/slices/azps-mn-slice"
+
+New-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -Name azps-mn-simpolicy -ResourceGroupName azps_test_group -Location eastus -DefaultSliceId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/slices/azps-mn-slice" -SliceConfiguration $SliceConfiguration -UeAmbrDownlink "1 Gbps" -UeAmbrUplink "500 Mbps" -RegistrationTimer 3240
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+SLICECONFIGURATION : The allowed slices and the settings to use for them. The list must not contain duplicate items and must contain at least one item.
+ DataNetworkConfiguration : The allowed data networks and the settings to use for them. The list must not contain duplicate items and must contain at least one item.
+ AllowedService : List of services that can be used as part of this SIM policy. The list must not contain duplicate items and must contain at least one item. The services must be in the same location as the SIM policy.
+ Id : Service resource ID.
+ DataNetworkId : Data network resource ID.
+ SessionAmbrDownlink : Downlink bit rate.
+ SessionAmbrUplink : Uplink bit rate.
+ [AdditionalAllowedSessionType ]: Allowed session types in addition to the default session type. Must not duplicate the default session type.
+ [AllocationAndRetentionPriorityLevel ]: Default QoS Flow allocation and retention priority (ARP) level. Flows with higher priority preempt flows with lower priority, if the settings of `preemptionCapability` and `preemptionVulnerability` allow it. 1 is the highest level of priority. If this field is not specified then `5qi` is used to derive the ARP value. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ [DefaultSessionType ]: The default PDU session type, which is used if the UE does not request a specific session type.
+ [FiveQi ]: Default QoS Flow 5G QoS Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. This must not be a standardized 5QI value corresponding to a GBR (guaranteed bit rate) QoS Flow. The illegal GBR 5QI values are: 1, 2, 3, 4, 65, 66, 67, 71, 72, 73, 74, 75, 76, 82, 83, 84, and 85. See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the definition of which are the GBR 5QI values.
+ [MaximumNumberOfBufferedPacket ]: The maximum number of downlink packets to buffer at the user plane for High Latency Communication - Extended Buffering. See 3GPP TS29.272 v15.10.0 section 7.3.188 for a full description. This maximum is not guaranteed because there is a internal limit on buffered packets across all PDU sessions.
+ [PreemptionCapability ]: Default QoS Flow preemption capability. The preemption capability of a QoS Flow controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ [PreemptionVulnerability ]: Default QoS Flow preemption vulnerability. The preemption vulnerability of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
+ DefaultDataNetworkId : Data network resource ID.
+ SlouseId : Slice resource ID.
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworksimpolicy
+#>
+function New-AzMobileNetworkSimPolicy {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network.
+ ${MobileNetworkName},
+
+ [Parameter(Mandatory)]
+ [Alias('SimPolicyName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the SIM policy.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Slice resource ID.
+ ${DefaultSliceId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(Mandatory)]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISliceConfiguration[]]
+ # The allowed slices and the settings to use for them.
+ # The list must not contain duplicate items and must contain at least one item.
+ # To construct, see NOTES section for SLICECONFIGURATION properties and create a hash table.
+ ${SliceConfiguration},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Downlink bit rate.
+ ${UeAmbrDownlink},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Uplink bit rate.
+ ${UeAmbrUplink},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # Interval for the UE periodic registration update procedure, in seconds.
+ ${RegistrationTimer},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # RAT/Frequency Selection Priority Index, defined in 3GPP TS 36.413.
+ # This is an optional setting and by default is unspecified.
+ ${RfspIndex},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkSimPolicy_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSimStaticIPPropertiesObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSimStaticIPPropertiesObject.ps1
new file mode 100644
index 000000000000..d83cdc079b61
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkSimStaticIPPropertiesObject.ps1
@@ -0,0 +1,126 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for SimStaticIPProperties.
+.Description
+Create an in-memory object for SimStaticIPProperties.
+.Example
+New-AzMobileNetworkSimStaticIPPropertiesObject -StaticIPIpv4Address 10.0.0.20
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimStaticIPProperties
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkSimStaticIPPropertiesObject
+#>
+function New-AzMobileNetworkSimStaticIPPropertiesObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimStaticIPProperties])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Attached data network resource ID.
+ ${AttachedDataNetworkId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Slice resource ID.
+ ${SliceId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The IPv4 address assigned to the SIM at this network scope.
+ # This address must be in the userEquipmentStaticAddressPoolPrefix defined in the attached data network.
+ ${StaticIPIpv4Address}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkSimStaticIPPropertiesObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSite.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSite.ps1
new file mode 100644
index 000000000000..9434658b5376
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkSite.ps1
@@ -0,0 +1,211 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a mobile network site.
+Must be created in the same location as its parent mobile network.
+.Description
+Creates or updates a mobile network site.
+Must be created in the same location as its parent mobile network.
+.Example
+New-AzMobileNetworkSite -MobileNetworkName azps-mn -Name azps-mn-site -ResourceGroupName azps_test_group -Location eastus -Tag @{"site"="123"}
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISite
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworksite
+#>
+function New-AzMobileNetworkSite {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISite])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network.
+ ${MobileNetworkName},
+
+ [Parameter(Mandatory)]
+ [Alias('SiteName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network site.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkSite_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSiteResourceIdObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSiteResourceIdObject.ps1
new file mode 100644
index 000000000000..6cb1826e7453
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkSiteResourceIdObject.ps1
@@ -0,0 +1,113 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for SiteResourceId.
+.Description
+Create an in-memory object for SiteResourceId.
+.Example
+New-AzMobileNetworkSiteResourceIdObject -Id "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/sites/azps-mn-site"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteResourceId
+.Link
+https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkSiteResourceIdObject
+#>
+function New-AzMobileNetworkSiteResourceIdObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteResourceId])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Site resource ID.
+ ${Id}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkSiteResourceIdObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSlice.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSlice.ps1
new file mode 100644
index 000000000000..5b892088ede2
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkSlice.ps1
@@ -0,0 +1,228 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a network slice.
+Must be created in the same location as its parent mobile network.
+.Description
+Creates or updates a network slice.
+Must be created in the same location as its parent mobile network.
+.Example
+New-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Location eastus -SnssaiSst 1 -SnssaiSd "1abcde"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice
+.Link
+https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworkslice
+#>
+function New-AzMobileNetworkSlice {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the mobile network.
+ ${MobileNetworkName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [System.String]
+ # The name of the network slice.
+ ${SliceName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.Int32]
+ # Slice/service type (SST).
+ ${SnssaiSst},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # An optional description for this network slice.
+ ${Description},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [System.String]
+ # Slice differentiator (SD).
+ ${SnssaiSd},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+
+ if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {
+ [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString()
+ }
+ $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ if ($preTelemetryId -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId =(New-Guid).ToString()
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Create', $MyInvocation, $parameterSet, $PSCmdlet)
+ } else {
+ $internalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ if ($internalCalledCmdlets -eq '') {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $MyInvocation.MyCommand.Name
+ } else {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets += ',' + $MyInvocation.MyCommand.Name
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = 'internal'
+ }
+
+ $mapping = @{
+ CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkSlice_CreateExpanded';
+ }
+ if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet)
+ $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet)
+ $scriptCmd = {& $wrappedCmd @PSBoundParameters}
+ $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin)
+ $steppablePipeline.Begin($PSCmdlet)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+
+ finally {
+ $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId
+ $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+
+}
+end {
+ try {
+ $steppablePipeline.End()
+
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $backupTelemetryId
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets = $backupInternalCalledCmdlets
+ if ($preTelemetryId -eq '') {
+ [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.module]::Instance.Telemetry.Invoke('Send', $MyInvocation, $parameterSet, $PSCmdlet)
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ }
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId = $preTelemetryId
+
+ } catch {
+ [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext()
+ throw
+ }
+}
+}
diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSliceConfigurationObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSliceConfigurationObject.ps1
new file mode 100644
index 000000000000..a3ef09acbeba
--- /dev/null
+++ b/src/MobileNetwork/exports/New-AzMobileNetworkSliceConfigurationObject.ps1
@@ -0,0 +1,149 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create an in-memory object for SliceConfiguration.
+.Description
+Create an in-memory object for SliceConfiguration.
+.Example
+$ServiceResourceId = New-AzMobileNetworkServiceResourceIdObject -Id "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/services/azps-mn-service"
+
+$DataNetworkConfiguration = New-AzMobileNetworkDataNetworkConfigurationObject -AllowedService $ServiceResourceId -DataNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/dataNetworks/azps-mn-datanetwork" -SessionAmbrDownlink "1 Gbps" -SessionAmbrUplink "500 Mbps" -FiveQi 9 -AllocationAndRetentionPriorityLevel 9 -DefaultSessionType 'IPv4' -MaximumNumberOfBufferedPacket 200 -PreemptionCapability 'NotPreempt' -PreemptionVulnerability 'Preemptable'
+
+New-AzMobileNetworkSliceConfigurationObject -DataNetworkConfiguration $DataNetworkConfiguration -DefaultDataNetworkId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/dataNetworks/azps-mn-datanetwork" -SliceId "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/slices/azps-mn-slice"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SliceConfiguration
+.Notes
+COMPLEX PARAMETER PROPERTIES
+
+To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables.
+
+DATANETWORKCONFIGURATION : The allowed data networks and the settings to use for them. The list must not contain duplicate items and must contain at least one item.
+ AllowedService : List of services that can be used as part of this SIM policy. The list must not contain duplicate items and must contain at least one item. The services must be in the same location as the SIM policy.
+ Id : Service resource ID.
+ DataNetworkId : Data network resource ID.
+ SessionAmbrDownlink : Downlink bit rate.
+ SessionAmbrUplink : Uplink bit rate.
+ [AdditionalAllowedSessionType