From 96adadaaba187706778123443e4328e74ecdc126 Mon Sep 17 00:00:00 2001 From: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Date: Mon, 10 Apr 2023 02:32:05 +0000 Subject: [PATCH 1/3] Move MobileNetwork to main --- src/MobileNetwork/Az.MobileNetwork.psd1 | 2 +- src/MobileNetwork/MobileNetwork.sln | 70 +- src/MobileNetwork/README.md | 17 +- .../mobileNetworks-dataNetworks.json | 95 + .../mobileNetworks-services.json | 95 + .../mobileNetworks-simPolicies.json | 95 + .../mobileNetworks-sites.json | 95 + .../mobileNetworks-slices.json | 95 + .../mobileNetworks.json | 85 + .../packetCoreControlPlaneVersions.json | 37 + ...etCoreDataPlanes-attachedDataNetworks.json | 105 + ...oreControlPlanes-packetCoreDataPlanes.json | 95 + .../packetCoreControlPlanes.json | 85 + .../simGroups-sims.json | 95 + .../UX/Microsoft.MobileNetwork/simGroups.json | 85 + src/MobileNetwork/build-module.ps1 | 4 + src/MobileNetwork/create-model-cmdlets.ps1 | 12 +- ...ate-AzMobileNetworkAttachedDataNetwork.ps1 | 322 ++ .../Update-AzMobileNetworkDataNetwork.ps1 | 164 + ...-AzMobileNetworkPacketCoreControlPlane.ps1 | 343 ++ ...ate-AzMobileNetworkPacketCoreDataPlane.ps1 | 192 + .../custom/Update-AzMobileNetworkService.ps1 | 243 + .../custom/Update-AzMobileNetworkSimGroup.ps1 | 196 + .../Update-AzMobileNetworkSimPolicy.ps1 | 214 + .../custom/Update-AzMobileNetworkSlice.ps1 | 179 + ...t-AzMobileNetworkPacketCoreControlPlane.md | 4 +- .../examples/New-AzMobileNetworkSimGroup.md | 2 - ...date-AzMobileNetworkAttachedDataNetwork.md | 4 +- .../Update-AzMobileNetworkDataNetwork.md | 4 +- ...e-AzMobileNetworkPacketCoreControlPlane.md | 4 +- ...date-AzMobileNetworkPacketCoreDataPlane.md | 4 +- .../examples/Update-AzMobileNetworkService.md | 6 +- .../Update-AzMobileNetworkSimGroup.md | 4 +- .../Update-AzMobileNetworkSimPolicy.md | 4 +- .../examples/Update-AzMobileNetworkSlice.md | 6 +- .../exports/Get-AzMobileNetwork.ps1 | 5 +- ...Get-AzMobileNetworkAttachedDataNetwork.ps1 | 5 +- .../Get-AzMobileNetworkDataNetwork.ps1 | 5 +- ...-AzMobileNetworkPacketCoreControlPlane.ps1 | 9 +- ...leNetworkPacketCoreControlPlaneVersion.ps1 | 5 +- ...Get-AzMobileNetworkPacketCoreDataPlane.ps1 | 5 +- .../exports/Get-AzMobileNetworkService.ps1 | 5 +- .../exports/Get-AzMobileNetworkSim.ps1 | 5 +- .../exports/Get-AzMobileNetworkSimGroup.ps1 | 5 +- .../exports/Get-AzMobileNetworkSimPolicy.ps1 | 5 +- .../exports/Get-AzMobileNetworkSite.ps1 | 5 +- .../exports/Get-AzMobileNetworkSlice.ps1 | 5 +- .../exports/New-AzMobileNetwork.ps1 | 5 +- ...New-AzMobileNetworkAttachedDataNetwork.ps1 | 5 +- .../New-AzMobileNetworkDataNetwork.ps1 | 5 +- ...eNetworkDataNetworkConfigurationObject.ps1 | 2 +- ...-AzMobileNetworkPacketCoreControlPlane.ps1 | 5 +- ...New-AzMobileNetworkPacketCoreDataPlane.ps1 | 5 +- ...obileNetworkPccRuleConfigurationObject.ps1 | 2 +- .../exports/New-AzMobileNetworkService.ps1 | 13 +- ...leNetworkServiceDataFlowTemplateObject.ps1 | 2 +- ...AzMobileNetworkServiceResourceIdObject.ps1 | 2 +- .../exports/New-AzMobileNetworkSim.ps1 | 5 +- .../exports/New-AzMobileNetworkSimGroup.ps1 | 21 +- .../exports/New-AzMobileNetworkSimPolicy.ps1 | 7 +- ...bileNetworkSimStaticIPPropertiesObject.ps1 | 2 +- .../exports/New-AzMobileNetworkSite.ps1 | 5 +- ...ew-AzMobileNetworkSiteResourceIdObject.ps1 | 2 +- .../exports/New-AzMobileNetworkSlice.ps1 | 5 +- ...zMobileNetworkSliceConfigurationObject.ps1 | 4 +- .../exports/ProxyCmdletDefinitions.ps1 | 2967 +++++++------ .../exports/Remove-AzMobileNetwork.ps1 | 5 +- ...ove-AzMobileNetworkAttachedDataNetwork.ps1 | 5 +- .../Remove-AzMobileNetworkDataNetwork.ps1 | 5 +- ...-AzMobileNetworkPacketCoreControlPlane.ps1 | 5 +- ...ove-AzMobileNetworkPacketCoreDataPlane.ps1 | 5 +- .../exports/Remove-AzMobileNetworkService.ps1 | 5 +- .../exports/Remove-AzMobileNetworkSim.ps1 | 5 +- .../Remove-AzMobileNetworkSimGroup.ps1 | 5 +- .../Remove-AzMobileNetworkSimPolicy.ps1 | 5 +- .../exports/Remove-AzMobileNetworkSite.ps1 | 5 +- .../exports/Remove-AzMobileNetworkSlice.ps1 | 5 +- .../exports/Update-AzMobileNetwork.ps1 | 5 +- ...ate-AzMobileNetworkAttachedDataNetwork.ps1 | 161 +- .../Update-AzMobileNetworkDataNetwork.ps1 | 52 +- ...-AzMobileNetworkPacketCoreControlPlane.ps1 | 172 +- ...ate-AzMobileNetworkPacketCoreDataPlane.ps1 | 71 +- .../exports/Update-AzMobileNetworkService.ps1 | 139 +- .../Update-AzMobileNetworkSimGroup.ps1 | 83 +- .../Update-AzMobileNetworkSimPolicy.ps1 | 107 +- .../exports/Update-AzMobileNetworkSite.ps1 | 5 +- .../exports/Update-AzMobileNetworkSlice.ps1 | 76 +- src/MobileNetwork/generate-info.json | 4 +- .../generated/api/MobileNetwork.cs | 3932 ++++++++--------- .../Api20221101/DataNetworkConfiguration.cs | 23 +- .../Api20221101/PccRuleConfiguration.cs | 20 +- .../Models/Api20221101/PccRuleQosPolicy.cs | 6 +- .../api/Models/Api20221101/QosPolicy.cs | 20 +- .../api/Models/Api20221101/Service.cs | 20 +- .../Api20221101/ServicePropertiesFormat.cs | 20 +- .../api/Support/BillingSku.Completer.cs | 8 - .../generated/api/Support/BillingSku.cs | 12 +- ...tAzMobileNetworkAttachedDataNetwork_Get.cs | 5 +- ...tworkAttachedDataNetwork_GetViaIdentity.cs | 5 +- ...AzMobileNetworkAttachedDataNetwork_List.cs | 5 +- .../GetAzMobileNetworkDataNetwork_Get.cs | 5 +- ...MobileNetworkDataNetwork_GetViaIdentity.cs | 5 +- .../GetAzMobileNetworkDataNetwork_List.cs | 5 +- .../GetAzMobileNetworkOperation_List.cs | 5 +- ...etworkPacketCoreControlPlaneVersion_Get.cs | 5 +- ...tCoreControlPlaneVersion_GetViaIdentity.cs | 5 +- ...tworkPacketCoreControlPlaneVersion_List.cs | 5 +- ...MobileNetworkPacketCoreControlPlane_Get.cs | 5 +- ...rkPacketCoreControlPlane_GetViaIdentity.cs | 5 +- ...obileNetworkPacketCoreControlPlane_List.cs | 5 +- ...bileNetworkPacketCoreControlPlane_List1.cs | 5 +- ...tAzMobileNetworkPacketCoreDataPlane_Get.cs | 5 +- ...tworkPacketCoreDataPlane_GetViaIdentity.cs | 5 +- ...AzMobileNetworkPacketCoreDataPlane_List.cs | 5 +- .../cmdlets/GetAzMobileNetworkService_Get.cs | 5 +- ...etAzMobileNetworkService_GetViaIdentity.cs | 5 +- .../cmdlets/GetAzMobileNetworkService_List.cs | 5 +- .../cmdlets/GetAzMobileNetworkSimGroup_Get.cs | 5 +- ...tAzMobileNetworkSimGroup_GetViaIdentity.cs | 5 +- .../GetAzMobileNetworkSimGroup_List.cs | 5 +- .../GetAzMobileNetworkSimGroup_List1.cs | 5 +- .../GetAzMobileNetworkSimPolicy_Get.cs | 5 +- ...AzMobileNetworkSimPolicy_GetViaIdentity.cs | 5 +- .../GetAzMobileNetworkSimPolicy_List.cs | 5 +- .../cmdlets/GetAzMobileNetworkSim_Get.cs | 5 +- .../GetAzMobileNetworkSim_GetViaIdentity.cs | 5 +- .../cmdlets/GetAzMobileNetworkSim_List.cs | 5 +- .../cmdlets/GetAzMobileNetworkSite_Get.cs | 5 +- .../GetAzMobileNetworkSite_GetViaIdentity.cs | 5 +- .../cmdlets/GetAzMobileNetworkSite_List.cs | 5 +- .../cmdlets/GetAzMobileNetworkSlice_Get.cs | 5 +- .../GetAzMobileNetworkSlice_GetViaIdentity.cs | 5 +- .../cmdlets/GetAzMobileNetworkSlice_List.cs | 5 +- .../cmdlets/GetAzMobileNetwork_Get.cs | 5 +- .../GetAzMobileNetwork_GetViaIdentity.cs | 5 +- .../cmdlets/GetAzMobileNetwork_List.cs | 5 +- .../cmdlets/GetAzMobileNetwork_List1.cs | 5 +- ...tworkAttachedDataNetwork_CreateExpanded.cs | 5 +- ...MobileNetworkDataNetwork_CreateExpanded.cs | 5 +- ...rkPacketCoreControlPlane_CreateExpanded.cs | 5 +- ...tworkPacketCoreDataPlane_CreateExpanded.cs | 5 +- ...ewAzMobileNetworkService_CreateExpanded.cs | 15 +- ...wAzMobileNetworkSimGroup_CreateExpanded.cs | 6 +- ...AzMobileNetworkSimPolicy_CreateExpanded.cs | 5 +- .../NewAzMobileNetworkSim_CreateExpanded.cs | 5 +- .../NewAzMobileNetworkSite_CreateExpanded.cs | 5 +- .../NewAzMobileNetworkSlice_CreateExpanded.cs | 5 +- .../NewAzMobileNetwork_CreateExpanded.cs | 5 +- ...MobileNetworkAttachedDataNetwork_Delete.cs | 5 +- ...rkAttachedDataNetwork_DeleteViaIdentity.cs | 5 +- ...RemoveAzMobileNetworkDataNetwork_Delete.cs | 5 +- ...ileNetworkDataNetwork_DeleteViaIdentity.cs | 5 +- ...ileNetworkPacketCoreControlPlane_Delete.cs | 5 +- ...acketCoreControlPlane_DeleteViaIdentity.cs | 5 +- ...MobileNetworkPacketCoreDataPlane_Delete.cs | 5 +- ...rkPacketCoreDataPlane_DeleteViaIdentity.cs | 5 +- .../RemoveAzMobileNetworkService_Delete.cs | 5 +- ...zMobileNetworkService_DeleteViaIdentity.cs | 5 +- .../RemoveAzMobileNetworkSimGroup_Delete.cs | 5 +- ...MobileNetworkSimGroup_DeleteViaIdentity.cs | 5 +- .../RemoveAzMobileNetworkSimPolicy_Delete.cs | 5 +- ...obileNetworkSimPolicy_DeleteViaIdentity.cs | 5 +- .../RemoveAzMobileNetworkSim_Delete.cs | 5 +- ...oveAzMobileNetworkSim_DeleteViaIdentity.cs | 5 +- .../RemoveAzMobileNetworkSite_Delete.cs | 5 +- ...veAzMobileNetworkSite_DeleteViaIdentity.cs | 5 +- .../RemoveAzMobileNetworkSlice_Delete.cs | 5 +- ...eAzMobileNetworkSlice_DeleteViaIdentity.cs | 5 +- .../cmdlets/RemoveAzMobileNetwork_Delete.cs | 5 +- ...RemoveAzMobileNetwork_DeleteViaIdentity.cs | 5 +- ...tworkAttachedDataNetwork_UpdateExpanded.cs | 6 +- ...edDataNetwork_UpdateViaIdentityExpanded.cs | 409 -- ...MobileNetworkDataNetwork_UpdateExpanded.cs | 6 +- ...rkDataNetwork_UpdateViaIdentityExpanded.cs | 404 -- ...rkPacketCoreControlPlane_UpdateExpanded.cs | 6 +- ...eControlPlane_UpdateViaIdentityExpanded.cs | 401 -- ...tworkPacketCoreDataPlane_UpdateExpanded.cs | 6 +- ...CoreDataPlane_UpdateViaIdentityExpanded.cs | 405 -- ...teAzMobileNetworkService_UpdateExpanded.cs | 6 +- ...etworkService_UpdateViaIdentityExpanded.cs | 404 -- ...eAzMobileNetworkSimGroup_UpdateExpanded.cs | 6 +- ...tworkSimGroup_UpdateViaIdentityExpanded.cs | 400 -- ...AzMobileNetworkSimPolicy_UpdateExpanded.cs | 6 +- ...workSimPolicy_UpdateViaIdentityExpanded.cs | 404 -- ...pdateAzMobileNetworkSite_UpdateExpanded.cs | 5 +- ...leNetworkSite_UpdateViaIdentityExpanded.cs | 5 +- ...dateAzMobileNetworkSlice_UpdateExpanded.cs | 6 +- ...eNetworkSlice_UpdateViaIdentityExpanded.cs | 404 -- .../UpdateAzMobileNetwork_UpdateExpanded.cs | 5 +- ...MobileNetwork_UpdateViaIdentityExpanded.cs | 5 +- .../BuildTime/Models/PsProxyOutputs.cs | 2 +- .../runtime/MessageAttributeHelper.cs | 6 +- src/MobileNetwork/help/Az.MobileNetwork.md | 16 +- src/MobileNetwork/help/Get-AzMobileNetwork.md | 3 +- .../Get-AzMobileNetworkAttachedDataNetwork.md | 3 +- .../help/Get-AzMobileNetworkDataNetwork.md | 3 +- ...t-AzMobileNetworkPacketCoreControlPlane.md | 7 +- ...ileNetworkPacketCoreControlPlaneVersion.md | 3 +- .../Get-AzMobileNetworkPacketCoreDataPlane.md | 3 +- .../help/Get-AzMobileNetworkService.md | 3 +- .../help/Get-AzMobileNetworkSim.md | 3 +- .../help/Get-AzMobileNetworkSimGroup.md | 3 +- .../help/Get-AzMobileNetworkSimPolicy.md | 3 +- .../help/Get-AzMobileNetworkSite.md | 3 +- .../help/Get-AzMobileNetworkSlice.md | 3 +- src/MobileNetwork/help/New-AzMobileNetwork.md | 3 +- .../New-AzMobileNetworkAttachedDataNetwork.md | 3 +- .../help/New-AzMobileNetworkDataNetwork.md | 3 +- ...w-AzMobileNetworkPacketCoreControlPlane.md | 3 +- .../New-AzMobileNetworkPacketCoreDataPlane.md | 3 +- .../help/New-AzMobileNetworkService.md | 11 +- .../help/New-AzMobileNetworkSim.md | 3 +- .../help/New-AzMobileNetworkSimGroup.md | 11 +- .../help/New-AzMobileNetworkSimPolicy.md | 5 +- .../help/New-AzMobileNetworkSite.md | 3 +- .../help/New-AzMobileNetworkSlice.md | 3 +- ...AzMobileNetworkSliceConfigurationObject.md | 2 +- .../help/Remove-AzMobileNetwork.md | 3 +- ...move-AzMobileNetworkAttachedDataNetwork.md | 3 +- .../help/Remove-AzMobileNetworkDataNetwork.md | 3 +- ...e-AzMobileNetworkPacketCoreControlPlane.md | 3 +- ...move-AzMobileNetworkPacketCoreDataPlane.md | 3 +- .../help/Remove-AzMobileNetworkService.md | 3 +- .../help/Remove-AzMobileNetworkSim.md | 3 +- .../help/Remove-AzMobileNetworkSimGroup.md | 3 +- .../help/Remove-AzMobileNetworkSimPolicy.md | 3 +- .../help/Remove-AzMobileNetworkSite.md | 3 +- .../help/Remove-AzMobileNetworkSlice.md | 3 +- .../help/Update-AzMobileNetwork.md | 3 +- ...date-AzMobileNetworkAttachedDataNetwork.md | 309 +- .../help/Update-AzMobileNetworkDataNetwork.md | 63 +- ...e-AzMobileNetworkPacketCoreControlPlane.md | 345 +- ...date-AzMobileNetworkPacketCoreDataPlane.md | 127 +- .../help/Update-AzMobileNetworkService.md | 201 +- .../help/Update-AzMobileNetworkSimGroup.md | 109 +- .../help/Update-AzMobileNetworkSimPolicy.md | 155 +- .../help/Update-AzMobileNetworkSite.md | 3 +- .../help/Update-AzMobileNetworkSlice.md | 95 +- .../internal/Get-AzMobileNetworkOperation.ps1 | 3 +- .../internal/ProxyCmdletDefinitions.ps1 | 1063 ++++- ...te-AzMobileNetworkAttachedDataNetwork.ps1} | 89 +- ... => Update-AzMobileNetworkDataNetwork.ps1} | 85 +- ...-AzMobileNetworkPacketCoreControlPlane.ps1 | 153 + ...ate-AzMobileNetworkPacketCoreDataPlane.ps1 | 159 + .../Update-AzMobileNetworkService.ps1 | 160 + .../Update-AzMobileNetworkSimGroup.ps1 | 153 + .../Update-AzMobileNetworkSimPolicy.ps1 | 159 + .../internal/Update-AzMobileNetworkSlice.ps1 | 159 + .../test/AzMobileNetwork.Recording.json | 198 +- .../AzMobileNetworkDataNetwork.Recording.json | 316 +- .../test/AzMobileNetworkDataNetwork.Tests.ps1 | 10 +- .../AzMobileNetworkService.Recording.json | 438 +- .../test/AzMobileNetworkService.Tests.ps1 | 12 +- .../AzMobileNetworkSimGroup.Recording.json | 553 ++- .../test/AzMobileNetworkSimGroup.Tests.ps1 | 10 +- .../AzMobileNetworkSimPolicy.Recording.json | 436 +- .../test/AzMobileNetworkSimPolicy.Tests.ps1 | 10 +- .../test/AzMobileNetworkSite.Recording.json | 214 +- .../test/AzMobileNetworkSlice.Recording.json | 446 +- .../test/AzMobileNetworkSlice.Tests.ps1 | 12 +- ...MobileNetworkAttachedDataNetwork.Tests.ps1 | 4 - ...pdate-AzMobileNetworkDataNetwork.Tests.ps1 | 4 - ...ileNetworkPacketCoreControlPlane.Tests.ps1 | 4 - ...MobileNetworkPacketCoreDataPlane.Tests.ps1 | 4 - .../Update-AzMobileNetworkService.Tests.ps1 | 4 - .../Update-AzMobileNetworkSimGroup.Tests.ps1 | 4 - .../Update-AzMobileNetworkSimPolicy.Tests.ps1 | 4 - .../Update-AzMobileNetworkSlice.Tests.ps1 | 4 - src/MobileNetwork/test/env.json | 16 +- 269 files changed, 12226 insertions(+), 9076 deletions(-) create mode 100644 src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-dataNetworks.json create mode 100644 src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-services.json create mode 100644 src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-simPolicies.json create mode 100644 src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-sites.json create mode 100644 src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-slices.json create mode 100644 src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks.json create mode 100644 src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlaneVersions.json create mode 100644 src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlanes-packetCoreDataPlanes-attachedDataNetworks.json create mode 100644 src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlanes-packetCoreDataPlanes.json create mode 100644 src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlanes.json create mode 100644 src/MobileNetwork/UX/Microsoft.MobileNetwork/simGroups-sims.json create mode 100644 src/MobileNetwork/UX/Microsoft.MobileNetwork/simGroups.json create mode 100644 src/MobileNetwork/custom/Update-AzMobileNetworkAttachedDataNetwork.ps1 create mode 100644 src/MobileNetwork/custom/Update-AzMobileNetworkDataNetwork.ps1 create mode 100644 src/MobileNetwork/custom/Update-AzMobileNetworkPacketCoreControlPlane.ps1 create mode 100644 src/MobileNetwork/custom/Update-AzMobileNetworkPacketCoreDataPlane.ps1 create mode 100644 src/MobileNetwork/custom/Update-AzMobileNetworkService.ps1 create mode 100644 src/MobileNetwork/custom/Update-AzMobileNetworkSimGroup.ps1 create mode 100644 src/MobileNetwork/custom/Update-AzMobileNetworkSimPolicy.ps1 create mode 100644 src/MobileNetwork/custom/Update-AzMobileNetworkSlice.ps1 delete mode 100644 src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkAttachedDataNetwork_UpdateViaIdentityExpanded.cs delete mode 100644 src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkDataNetwork_UpdateViaIdentityExpanded.cs delete mode 100644 src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreControlPlane_UpdateViaIdentityExpanded.cs delete mode 100644 src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreDataPlane_UpdateViaIdentityExpanded.cs delete mode 100644 src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkService_UpdateViaIdentityExpanded.cs delete mode 100644 src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimGroup_UpdateViaIdentityExpanded.cs delete mode 100644 src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimPolicy_UpdateViaIdentityExpanded.cs delete mode 100644 src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSlice_UpdateViaIdentityExpanded.cs rename src/MobileNetwork/{custom/New-AzMobileNetworkSimGroup.ps1 => internal/Update-AzMobileNetworkAttachedDataNetwork.ps1} (64%) rename src/MobileNetwork/internal/{New-AzMobileNetworkSimGroup.ps1 => Update-AzMobileNetworkDataNetwork.ps1} (61%) create mode 100644 src/MobileNetwork/internal/Update-AzMobileNetworkPacketCoreControlPlane.ps1 create mode 100644 src/MobileNetwork/internal/Update-AzMobileNetworkPacketCoreDataPlane.ps1 create mode 100644 src/MobileNetwork/internal/Update-AzMobileNetworkService.ps1 create mode 100644 src/MobileNetwork/internal/Update-AzMobileNetworkSimGroup.ps1 create mode 100644 src/MobileNetwork/internal/Update-AzMobileNetworkSimPolicy.ps1 create mode 100644 src/MobileNetwork/internal/Update-AzMobileNetworkSlice.ps1 diff --git a/src/MobileNetwork/Az.MobileNetwork.psd1 b/src/MobileNetwork/Az.MobileNetwork.psd1 index 446afcf58201..155e5ac5516b 100644 --- a/src/MobileNetwork/Az.MobileNetwork.psd1 +++ b/src/MobileNetwork/Az.MobileNetwork.psd1 @@ -3,7 +3,7 @@ # # Generated by: Microsoft Corporation # -# Generated on: 2/1/2023 +# Generated on: 4/10/2023 # @{ diff --git a/src/MobileNetwork/MobileNetwork.sln b/src/MobileNetwork/MobileNetwork.sln index ae4208245899..48bacfa1bc33 100644 --- a/src/MobileNetwork/MobileNetwork.sln +++ b/src/MobileNetwork/MobileNetwork.sln @@ -3,19 +3,19 @@ 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", "{62D908C1-8064-4DC9-AA6E-126A95B94F62}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{17CC7646-092F-413C-9A6C-3407CF1929A7}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{2B9D775B-B534-49E0-BBC1-47ED37F3ACC4}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{D78AB1F8-03B0-4D92-9142-E721F92DE7E2}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{05A00469-8B3F-4E2E-8F50-B4027F969CF8}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{9F12E822-DD68-468D-A82C-844E9C5CC39E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{50E7F83A-9EE2-4748-BDC3-8505983FCDEB}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{6EB2A327-BAF6-4BBC-B957-B7C6C01CED51}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{A02BCB94-999D-4E01-8212-E560777D7EF0}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{32BAEE06-ED3F-4CA3-9F68-A3C57F658C50}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{EE2686BF-993B-4CF3-BD65-501429BDBD16}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{FFCE7E00-C4CA-459C-A669-00651E8BC9EC}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MobileNetwork", "Az.MobileNetwork.csproj", "{B5E9C48E-04DE-4FAA-8284-78364D277868}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.MobileNetwork", "Az.MobileNetwork.csproj", "{B5FE95A8-5409-468E-96B9-87D6792DB2E9}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -26,33 +26,33 @@ Global HideSolutionNode = FALSE EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {62D908C1-8064-4DC9-AA6E-126A95B94F62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {62D908C1-8064-4DC9-AA6E-126A95B94F62}.Debug|Any CPU.Build.0 = Debug|Any CPU - {62D908C1-8064-4DC9-AA6E-126A95B94F62}.Release|Any CPU.ActiveCfg = Release|Any CPU - {62D908C1-8064-4DC9-AA6E-126A95B94F62}.Release|Any CPU.Build.0 = Release|Any CPU - {2B9D775B-B534-49E0-BBC1-47ED37F3ACC4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {2B9D775B-B534-49E0-BBC1-47ED37F3ACC4}.Debug|Any CPU.Build.0 = Debug|Any CPU - {2B9D775B-B534-49E0-BBC1-47ED37F3ACC4}.Release|Any CPU.ActiveCfg = Release|Any CPU - {2B9D775B-B534-49E0-BBC1-47ED37F3ACC4}.Release|Any CPU.Build.0 = Release|Any CPU - {05A00469-8B3F-4E2E-8F50-B4027F969CF8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {05A00469-8B3F-4E2E-8F50-B4027F969CF8}.Debug|Any CPU.Build.0 = Debug|Any CPU - {05A00469-8B3F-4E2E-8F50-B4027F969CF8}.Release|Any CPU.ActiveCfg = Release|Any CPU - {05A00469-8B3F-4E2E-8F50-B4027F969CF8}.Release|Any CPU.Build.0 = Release|Any CPU - {50E7F83A-9EE2-4748-BDC3-8505983FCDEB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {50E7F83A-9EE2-4748-BDC3-8505983FCDEB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {50E7F83A-9EE2-4748-BDC3-8505983FCDEB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {50E7F83A-9EE2-4748-BDC3-8505983FCDEB}.Release|Any CPU.Build.0 = Release|Any CPU - {A02BCB94-999D-4E01-8212-E560777D7EF0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A02BCB94-999D-4E01-8212-E560777D7EF0}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A02BCB94-999D-4E01-8212-E560777D7EF0}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A02BCB94-999D-4E01-8212-E560777D7EF0}.Release|Any CPU.Build.0 = Release|Any CPU - {EE2686BF-993B-4CF3-BD65-501429BDBD16}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {EE2686BF-993B-4CF3-BD65-501429BDBD16}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EE2686BF-993B-4CF3-BD65-501429BDBD16}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EE2686BF-993B-4CF3-BD65-501429BDBD16}.Release|Any CPU.Build.0 = Release|Any CPU - {B5E9C48E-04DE-4FAA-8284-78364D277868}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B5E9C48E-04DE-4FAA-8284-78364D277868}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B5E9C48E-04DE-4FAA-8284-78364D277868}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B5E9C48E-04DE-4FAA-8284-78364D277868}.Release|Any CPU.Build.0 = Release|Any CPU + {17CC7646-092F-413C-9A6C-3407CF1929A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {17CC7646-092F-413C-9A6C-3407CF1929A7}.Debug|Any CPU.Build.0 = Debug|Any CPU + {17CC7646-092F-413C-9A6C-3407CF1929A7}.Release|Any CPU.ActiveCfg = Release|Any CPU + {17CC7646-092F-413C-9A6C-3407CF1929A7}.Release|Any CPU.Build.0 = Release|Any CPU + {D78AB1F8-03B0-4D92-9142-E721F92DE7E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D78AB1F8-03B0-4D92-9142-E721F92DE7E2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D78AB1F8-03B0-4D92-9142-E721F92DE7E2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D78AB1F8-03B0-4D92-9142-E721F92DE7E2}.Release|Any CPU.Build.0 = Release|Any CPU + {9F12E822-DD68-468D-A82C-844E9C5CC39E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {9F12E822-DD68-468D-A82C-844E9C5CC39E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {9F12E822-DD68-468D-A82C-844E9C5CC39E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {9F12E822-DD68-468D-A82C-844E9C5CC39E}.Release|Any CPU.Build.0 = Release|Any CPU + {6EB2A327-BAF6-4BBC-B957-B7C6C01CED51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {6EB2A327-BAF6-4BBC-B957-B7C6C01CED51}.Debug|Any CPU.Build.0 = Debug|Any CPU + {6EB2A327-BAF6-4BBC-B957-B7C6C01CED51}.Release|Any CPU.ActiveCfg = Release|Any CPU + {6EB2A327-BAF6-4BBC-B957-B7C6C01CED51}.Release|Any CPU.Build.0 = Release|Any CPU + {32BAEE06-ED3F-4CA3-9F68-A3C57F658C50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {32BAEE06-ED3F-4CA3-9F68-A3C57F658C50}.Debug|Any CPU.Build.0 = Debug|Any CPU + {32BAEE06-ED3F-4CA3-9F68-A3C57F658C50}.Release|Any CPU.ActiveCfg = Release|Any CPU + {32BAEE06-ED3F-4CA3-9F68-A3C57F658C50}.Release|Any CPU.Build.0 = Release|Any CPU + {FFCE7E00-C4CA-459C-A669-00651E8BC9EC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FFCE7E00-C4CA-459C-A669-00651E8BC9EC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FFCE7E00-C4CA-459C-A669-00651E8BC9EC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FFCE7E00-C4CA-459C-A669-00651E8BC9EC}.Release|Any CPU.Build.0 = Release|Any CPU + {B5FE95A8-5409-468E-96B9-87D6792DB2E9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B5FE95A8-5409-468E-96B9-87D6792DB2E9}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B5FE95A8-5409-468E-96B9-87D6792DB2E9}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B5FE95A8-5409-468E-96B9-87D6792DB2E9}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/src/MobileNetwork/README.md b/src/MobileNetwork/README.md index dd135242f023..1ba30d3f99e0 100644 --- a/src/MobileNetwork/README.md +++ b/src/MobileNetwork/README.md @@ -30,7 +30,7 @@ For information on how to develop for `Az.MobileNetwork`, see [how-to.md](how-to > see https://aka.ms/autorest ``` yaml -branch: 63adf8a58565b729f70895b65aa7d1333b22d15f +branch: 933dbc070dda85e2d115dc42893f07b2ed5b74f6 require: - $(this-folder)/../readme.azure.noprofile.md input-file: @@ -91,11 +91,6 @@ directive: variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Update$|^UpdateViaIdentity$|^BulkViaIdentity$|^Bulk$|^Collect$|^CollectViaIdentity$ remove: true - - where: - verb: New - subject: SimGroup - hide: true - - where: verb: Set remove: true @@ -148,6 +143,16 @@ directive: set: parameter-name: DefaultSliceId + - where: + verb: Update + subject: ^AttachedDataNetwork$|^DataNetwork$|^PacketCoreControlPlane$|^PacketCoreDataPlane$|^Service$|^SimGroup$|^SimPolicy$|^Slice$ + variant: ^UpdateViaIdentityExpanded$ + remove: true + - where: + verb: Update + subject: ^AttachedDataNetwork$|^DataNetwork$|^PacketCoreControlPlane$|^PacketCoreDataPlane$|^Service$|^SimGroup$|^SimPolicy$|^Slice$ + hide: true + # - where: # verb: Invoke # subject: ^BulkSimDelete$ diff --git a/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-dataNetworks.json b/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-dataNetworks.json new file mode 100644 index 000000000000..0a31dcb8ac84 --- /dev/null +++ b/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-dataNetworks.json @@ -0,0 +1,95 @@ +{ + "resourceType": "mobileNetworks/dataNetworks", + "apiVersion": "2022-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork" + }, + "commands": [ + { + "name": "Get-AzMobileNetworkDataNetwork", + "description": "Gets information about the specified data network.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/dataNetworks/{dataNetworkName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkdatanetwork" + }, + "parameterSets": [ + { + "parameters": [ + "-MobileNetworkName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about the specified data network.", + "parameters": [ + { + "name": "-MobileNetworkName", + "value": "[Path.mobileNetworkName]" + }, + { + "name": "-Name", + "value": "[Path.dataNetworkName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMobileNetworkDataNetwork", + "description": "Deletes the specified data network.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/dataNetworks/{dataNetworkName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/remove-azmobilenetworkdatanetwork" + }, + "parameterSets": [ + { + "parameters": [ + "-MobileNetworkName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the specified data network.", + "parameters": [ + { + "name": "-MobileNetworkName", + "value": "[Path.mobileNetworkName]" + }, + { + "name": "-Name", + "value": "[Path.dataNetworkName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-services.json b/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-services.json new file mode 100644 index 000000000000..c8ebf347b4cf --- /dev/null +++ b/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-services.json @@ -0,0 +1,95 @@ +{ + "resourceType": "mobileNetworks/services", + "apiVersion": "2022-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork" + }, + "commands": [ + { + "name": "Get-AzMobileNetworkService", + "description": "Gets information about the specified service.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/services/{serviceName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkservice" + }, + "parameterSets": [ + { + "parameters": [ + "-MobileNetworkName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about the specified service.", + "parameters": [ + { + "name": "-MobileNetworkName", + "value": "[Path.mobileNetworkName]" + }, + { + "name": "-Name", + "value": "[Path.serviceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMobileNetworkService", + "description": "Deletes the specified service.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/services/{serviceName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/remove-azmobilenetworkservice" + }, + "parameterSets": [ + { + "parameters": [ + "-MobileNetworkName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the specified service.", + "parameters": [ + { + "name": "-MobileNetworkName", + "value": "[Path.mobileNetworkName]" + }, + { + "name": "-Name", + "value": "[Path.serviceName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-simPolicies.json b/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-simPolicies.json new file mode 100644 index 000000000000..3ffe17959f35 --- /dev/null +++ b/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-simPolicies.json @@ -0,0 +1,95 @@ +{ + "resourceType": "mobileNetworks/simPolicies", + "apiVersion": "2022-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork" + }, + "commands": [ + { + "name": "Get-AzMobileNetworkSimPolicy", + "description": "Gets information about the specified SIM policy.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/simPolicies/{simPolicyName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworksimpolicy" + }, + "parameterSets": [ + { + "parameters": [ + "-MobileNetworkName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about the specified SIM policy.", + "parameters": [ + { + "name": "-MobileNetworkName", + "value": "[Path.mobileNetworkName]" + }, + { + "name": "-Name", + "value": "[Path.simPolicyName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMobileNetworkSimPolicy", + "description": "Deletes the specified SIM policy.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/simPolicies/{simPolicyName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/remove-azmobilenetworksimpolicy" + }, + "parameterSets": [ + { + "parameters": [ + "-MobileNetworkName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the specified SIM policy.", + "parameters": [ + { + "name": "-MobileNetworkName", + "value": "[Path.mobileNetworkName]" + }, + { + "name": "-Name", + "value": "[Path.simPolicyName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-sites.json b/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-sites.json new file mode 100644 index 000000000000..cdb438c5149e --- /dev/null +++ b/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-sites.json @@ -0,0 +1,95 @@ +{ + "resourceType": "mobileNetworks/sites", + "apiVersion": "2022-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork" + }, + "commands": [ + { + "name": "Get-AzMobileNetworkSite", + "description": "Gets information about the specified mobile network site.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/sites/{siteName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworksite" + }, + "parameterSets": [ + { + "parameters": [ + "-MobileNetworkName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about the specified mobile network site.", + "parameters": [ + { + "name": "-MobileNetworkName", + "value": "[Path.mobileNetworkName]" + }, + { + "name": "-Name", + "value": "[Path.siteName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMobileNetworkSite", + "description": "Deletes the specified mobile network site.\nThis will also delete any network functions that are a part of this site.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/sites/{siteName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/remove-azmobilenetworksite" + }, + "parameterSets": [ + { + "parameters": [ + "-MobileNetworkName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the specified mobile network site. This will also delete any network functions that are a part of this site.", + "parameters": [ + { + "name": "-MobileNetworkName", + "value": "[Path.mobileNetworkName]" + }, + { + "name": "-Name", + "value": "[Path.siteName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-slices.json b/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-slices.json new file mode 100644 index 000000000000..8ed05ffe4466 --- /dev/null +++ b/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks-slices.json @@ -0,0 +1,95 @@ +{ + "resourceType": "mobileNetworks/slices", + "apiVersion": "2022-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork" + }, + "commands": [ + { + "name": "Get-AzMobileNetworkSlice", + "description": "Gets information about the specified network slice.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/slices/{sliceName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkslice" + }, + "parameterSets": [ + { + "parameters": [ + "-MobileNetworkName ", + "-ResourceGroupName ", + "-SliceName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about the specified network slice.", + "parameters": [ + { + "name": "-MobileNetworkName", + "value": "[Path.mobileNetworkName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SliceName", + "value": "[Path.sliceName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMobileNetworkSlice", + "description": "Deletes the specified network slice.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/slices/{sliceName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/remove-azmobilenetworkslice" + }, + "parameterSets": [ + { + "parameters": [ + "-MobileNetworkName ", + "-ResourceGroupName ", + "-SliceName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the specified network slice.", + "parameters": [ + { + "name": "-MobileNetworkName", + "value": "[Path.mobileNetworkName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SliceName", + "value": "[Path.sliceName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks.json b/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks.json new file mode 100644 index 000000000000..caa6ca0b90db --- /dev/null +++ b/src/MobileNetwork/UX/Microsoft.MobileNetwork/mobileNetworks.json @@ -0,0 +1,85 @@ +{ + "resourceType": "mobileNetworks", + "apiVersion": "2022-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork" + }, + "commands": [ + { + "name": "Get-AzMobileNetwork", + "description": "Gets information about the specified mobile network.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetwork" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about the specified mobile network.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.mobileNetworkName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMobileNetwork", + "description": "Deletes the specified mobile network.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/remove-azmobilenetwork" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the specified mobile network.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.mobileNetworkName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlaneVersions.json b/src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlaneVersions.json new file mode 100644 index 000000000000..4bc5e56d8bee --- /dev/null +++ b/src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlaneVersions.json @@ -0,0 +1,37 @@ +{ + "resourceType": "packetCoreControlPlaneVersions", + "apiVersion": "2022-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork" + }, + "commands": [ + { + "name": "Get-AzMobileNetworkPacketCoreControlPlaneVersion", + "description": "Gets information about the specified packet core control plane version.", + "path": "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions/{versionName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkpacketcorecontrolplaneversion" + }, + "parameterSets": [ + { + "parameters": [ + "-VersionName " + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about the specified packet core control plane version.", + "parameters": [ + { + "name": "-VersionName", + "value": "[Path.versionName]" + } + ] + } + ] + } + ] +} diff --git a/src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlanes-packetCoreDataPlanes-attachedDataNetworks.json b/src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlanes-packetCoreDataPlanes-attachedDataNetworks.json new file mode 100644 index 000000000000..005eeca944dc --- /dev/null +++ b/src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlanes-packetCoreDataPlanes-attachedDataNetworks.json @@ -0,0 +1,105 @@ +{ + "resourceType": "packetCoreControlPlanes/packetCoreDataPlanes/attachedDataNetworks", + "apiVersion": "2022-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork" + }, + "commands": [ + { + "name": "Get-AzMobileNetworkAttachedDataNetwork", + "description": "Gets information about the specified attached data network.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}/attachedDataNetworks/{attachedDataNetworkName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkattacheddatanetwork" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-PacketCoreControlPlaneName ", + "-PacketCoreDataPlaneName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about the specified attached data network.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.attachedDataNetworkName]" + }, + { + "name": "-PacketCoreControlPlaneName", + "value": "[Path.packetCoreControlPlaneName]" + }, + { + "name": "-PacketCoreDataPlaneName", + "value": "[Path.packetCoreDataPlaneName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMobileNetworkAttachedDataNetwork", + "description": "Deletes the specified attached data network.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}/attachedDataNetworks/{attachedDataNetworkName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/remove-azmobilenetworkattacheddatanetwork" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-PacketCoreControlPlaneName ", + "-PacketCoreDataPlaneName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the specified attached data network.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.attachedDataNetworkName]" + }, + { + "name": "-PacketCoreControlPlaneName", + "value": "[Path.packetCoreControlPlaneName]" + }, + { + "name": "-PacketCoreDataPlaneName", + "value": "[Path.packetCoreDataPlaneName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlanes-packetCoreDataPlanes.json b/src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlanes-packetCoreDataPlanes.json new file mode 100644 index 000000000000..fe608f18d3a8 --- /dev/null +++ b/src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlanes-packetCoreDataPlanes.json @@ -0,0 +1,95 @@ +{ + "resourceType": "packetCoreControlPlanes/packetCoreDataPlanes", + "apiVersion": "2022-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork" + }, + "commands": [ + { + "name": "Get-AzMobileNetworkPacketCoreDataPlane", + "description": "Gets information about the specified packet core data plane.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkpacketcoredataplane" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-PacketCoreControlPlaneName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about the specified packet core data plane.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.packetCoreDataPlaneName]" + }, + { + "name": "-PacketCoreControlPlaneName", + "value": "[Path.packetCoreControlPlaneName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMobileNetworkPacketCoreDataPlane", + "description": "Deletes the specified packet core data plane.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/remove-azmobilenetworkpacketcoredataplane" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-PacketCoreControlPlaneName ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the specified packet core data plane.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.packetCoreDataPlaneName]" + }, + { + "name": "-PacketCoreControlPlaneName", + "value": "[Path.packetCoreControlPlaneName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlanes.json b/src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlanes.json new file mode 100644 index 000000000000..0f54ba22cca3 --- /dev/null +++ b/src/MobileNetwork/UX/Microsoft.MobileNetwork/packetCoreControlPlanes.json @@ -0,0 +1,85 @@ +{ + "resourceType": "packetCoreControlPlanes", + "apiVersion": "2022-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork" + }, + "commands": [ + { + "name": "Get-AzMobileNetworkPacketCoreControlPlane", + "description": "Gets information about the specified packet core control plane.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworkpacketcorecontrolplane" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about the specified packet core control plane.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.packetCoreControlPlaneName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMobileNetworkPacketCoreControlPlane", + "description": "Deletes the specified packet core control plane.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/remove-azmobilenetworkpacketcorecontrolplane" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the specified packet core control plane.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.packetCoreControlPlaneName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MobileNetwork/UX/Microsoft.MobileNetwork/simGroups-sims.json b/src/MobileNetwork/UX/Microsoft.MobileNetwork/simGroups-sims.json new file mode 100644 index 000000000000..71946180db1f --- /dev/null +++ b/src/MobileNetwork/UX/Microsoft.MobileNetwork/simGroups-sims.json @@ -0,0 +1,95 @@ +{ + "resourceType": "simGroups/sims", + "apiVersion": "2022-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork" + }, + "commands": [ + { + "name": "Get-AzMobileNetworkSim", + "description": "Gets information about the specified SIM.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}/sims/{simName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworksim" + }, + "parameterSets": [ + { + "parameters": [ + "-GroupName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about the specified SIM.", + "parameters": [ + { + "name": "-GroupName", + "value": "[Path.simGroupName]" + }, + { + "name": "-Name", + "value": "[Path.simName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMobileNetworkSim", + "description": "Deletes the specified SIM.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}/sims/{simName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/remove-azmobilenetworksim" + }, + "parameterSets": [ + { + "parameters": [ + "-GroupName ", + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the specified SIM.", + "parameters": [ + { + "name": "-GroupName", + "value": "[Path.simGroupName]" + }, + { + "name": "-Name", + "value": "[Path.simName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MobileNetwork/UX/Microsoft.MobileNetwork/simGroups.json b/src/MobileNetwork/UX/Microsoft.MobileNetwork/simGroups.json new file mode 100644 index 000000000000..74da1401d7b1 --- /dev/null +++ b/src/MobileNetwork/UX/Microsoft.MobileNetwork/simGroups.json @@ -0,0 +1,85 @@ +{ + "resourceType": "simGroups", + "apiVersion": "2022-11-01", + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork" + }, + "commands": [ + { + "name": "Get-AzMobileNetworkSimGroup", + "description": "Gets information about the specified SIM group.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/get-azmobilenetworksimgroup" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Gets information about the specified SIM group.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.simGroupName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + }, + { + "name": "Remove-AzMobileNetworkSimGroup", + "description": "Deletes the specified SIM group.", + "path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}", + "help": { + "learnMore": { + "url": "https://learn.microsoft.com/powershell/module/az.mobilenetwork/remove-azmobilenetworksimgroup" + }, + "parameterSets": [ + { + "parameters": [ + "-Name ", + "-ResourceGroupName ", + "[-SubscriptionId ]" + ] + } + ] + }, + "examples": [ + { + "description": "Deletes the specified SIM group.", + "parameters": [ + { + "name": "-Name", + "value": "[Path.simGroupName]" + }, + { + "name": "-ResourceGroupName", + "value": "[Path.resourceGroupName]" + }, + { + "name": "-SubscriptionId", + "value": "[Path.subscriptionId]" + } + ] + } + ] + } + ] +} diff --git a/src/MobileNetwork/build-module.ps1 b/src/MobileNetwork/build-module.ps1 index a676bf542bb2..0067ac2958b6 100644 --- a/src/MobileNetwork/build-module.ps1 +++ b/src/MobileNetwork/build-module.ps1 @@ -123,6 +123,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...' $modelCmdlets = @() +$modelCmdletFolder = Join-Path (Join-Path $PSScriptRoot './custom') 'autogen-model-cmdlets' +if (Test-Path $modelCmdletFolder) { + $null = Remove-Item -Force -Recurse -Path $modelCmdletFolder +} if ($modelCmdlets.Count -gt 0) { . (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1') CreateModelCmdlet($modelCmdlets) diff --git a/src/MobileNetwork/create-model-cmdlets.ps1 b/src/MobileNetwork/create-model-cmdlets.ps1 index fca2ded5dc88..cbe4b6923d92 100644 --- a/src/MobileNetwork/create-model-cmdlets.ps1 +++ b/src/MobileNetwork/create-model-cmdlets.ps1 @@ -23,9 +23,13 @@ function CreateModelCmdlet { } $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 + if (''.length -gt 0) { + $ModuleName = '' + } else { + $ModuleName = 'Az.MobileNetwork' + } $CsFiles = Get-ChildItem -Path $ModelCsPath -Recurse -Filter *.cs $Content = '' @@ -64,10 +68,10 @@ function CreateModelCmdlet { $ObjectType = $Model $ObjectTypeWithNamespace = "${Namespace}.${ObjectType}" # remove duplicated module name - if ($ObjectType.StartsWith($ModuleName)) { + if ($ObjectType.StartsWith('MobileNetwork')) { $ModulePrefix = '' } else { - $ModulePrefix = $ModuleName + $ModulePrefix = 'MobileNetwork' } $OutputPath = Join-Path -ChildPath "New-Az${ModulePrefix}${ObjectType}Object.ps1" -Path $OutputDir @@ -158,7 +162,7 @@ Create an in-memory object for ${ObjectType}. .Outputs ${ObjectTypeWithNamespace} .Link -https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object +https://learn.microsoft.com/powershell/module/${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object #> function New-Az${ModulePrefix}${ObjectType}Object { [OutputType('${ObjectTypeWithNamespace}')] diff --git a/src/MobileNetwork/custom/Update-AzMobileNetworkAttachedDataNetwork.ps1 b/src/MobileNetwork/custom/Update-AzMobileNetworkAttachedDataNetwork.ps1 new file mode 100644 index 000000000000..104594181728 --- /dev/null +++ b/src/MobileNetwork/custom/Update-AzMobileNetworkAttachedDataNetwork.ps1 @@ -0,0 +1,322 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Updates an attached data network. +.Description +Updates an attached data network. +.Example +Update-AzMobileNetworkAttachedDataNetwork -AttachedDataNetworkName azps-mn-adn -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps_test_group -ResourceGroupName -Tag @{"abc"="123"} + +.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/update-azmobilenetworkattacheddatanetwork +#> +function Update-AzMobileNetworkAttachedDataNetwork { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the attached data network. + ${AttachedDataNetworkName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the packet core control plane. + ${PacketCoreControlPlaneName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the packet core data plane. + ${PacketCoreDataPlaneName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [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()] + [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()] + [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(ParameterSetName='UpdateExpanded')] + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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} +) + + process { + try { + $attachedDataNetwork = Get-AzMobileNetworkAttachedDataNetwork -PacketCoreControlPlaneName $PSBoundParameters.PacketCoreControlPlaneName -PacketCoreDataPlaneName $PSBoundParameters.PacketCoreDataPlaneName -ResourceGroupName $PSBoundParameters.ResourceGroupName -Name $PSBoundParameters.AttachedDataNetworkName + $PSBoundParameters.Add('Location', $attachedDataNetwork.Location) + + if (!$PSBoundParameters.ContainsKey('DnsAddress') -and $attachedDataNetwork.DnsAddress) { + $PSBoundParameters.DnsAddress = $attachedDataNetwork.DnsAddress + } + if (!$PSBoundParameters.ContainsKey('NaptConfigurationEnabled') -and $attachedDataNetwork.NaptConfigurationEnabled) { + $PSBoundParameters.NaptConfigurationEnabled = $attachedDataNetwork.NaptConfigurationEnabled + } + if (!$PSBoundParameters.ContainsKey('NaptConfigurationPinholeLimit') -and $attachedDataNetwork.NaptConfigurationPinholeLimit) { + $PSBoundParameters.NaptConfigurationPinholeLimit = $attachedDataNetwork.NaptConfigurationPinholeLimit + } + if (!$PSBoundParameters.ContainsKey('PinholeTimeoutIcmp') -and $attachedDataNetwork.PinholeTimeoutIcmp) { + $PSBoundParameters.PinholeTimeoutIcmp = $attachedDataNetwork.PinholeTimeoutIcmp + } + if (!$PSBoundParameters.ContainsKey('PinholeTimeoutTcp') -and $attachedDataNetwork.PinholeTimeoutTcp) { + $PSBoundParameters.PinholeTimeoutTcp = $attachedDataNetwork.PinholeTimeoutTcp + } + if (!$PSBoundParameters.ContainsKey('PinholeTimeoutUdp') -and $attachedDataNetwork.PinholeTimeoutUdp) { + $PSBoundParameters.PinholeTimeoutUdp = $attachedDataNetwork.PinholeTimeoutUdp + } + if (!$PSBoundParameters.ContainsKey('PortRangeMaxPort') -and $attachedDataNetwork.PortRangeMaxPort) { + $PSBoundParameters.PortRangeMaxPort = $attachedDataNetwork.PortRangeMaxPort + } + if (!$PSBoundParameters.ContainsKey('PortRangeMinPort') -and $attachedDataNetwork.PortRangeMinPort) { + $PSBoundParameters.PortRangeMinPort = $attachedDataNetwork.PortRangeMinPort + } + if (!$PSBoundParameters.ContainsKey('PortReuseHoldTimeTcp') -and $attachedDataNetwork.PortReuseHoldTimeTcp) { + $PSBoundParameters.PortReuseHoldTimeTcp = $attachedDataNetwork.PortReuseHoldTimeTcp + } + if (!$PSBoundParameters.ContainsKey('PortReuseHoldTimeUdp') -and $attachedDataNetwork.PortReuseHoldTimeUdp) { + $PSBoundParameters.PortReuseHoldTimeUdp = $attachedDataNetwork.PortReuseHoldTimeUdp + } + if (!$PSBoundParameters.ContainsKey('UserEquipmentAddressPoolPrefix') -and $attachedDataNetwork.UserEquipmentAddressPoolPrefix) { + $PSBoundParameters.UserEquipmentAddressPoolPrefix = $attachedDataNetwork.UserEquipmentAddressPoolPrefix + } + if (!$PSBoundParameters.ContainsKey('UserEquipmentStaticAddressPoolPrefix') -and $attachedDataNetwork.UserEquipmentStaticAddressPoolPrefix) { + $PSBoundParameters.UserEquipmentStaticAddressPoolPrefix = $attachedDataNetwork.UserEquipmentStaticAddressPoolPrefix + } + if (!$PSBoundParameters.ContainsKey('UserPlaneDataInterfaceIpv4Address') -and $attachedDataNetwork.UserPlaneDataInterfaceIpv4Address) { + $PSBoundParameters.UserPlaneDataInterfaceIpv4Address = $attachedDataNetwork.UserPlaneDataInterfaceIpv4Address + } + if (!$PSBoundParameters.ContainsKey('UserPlaneDataInterfaceIpv4Gateway') -and $attachedDataNetwork.UserPlaneDataInterfaceIpv4Gateway) { + $PSBoundParameters.UserPlaneDataInterfaceIpv4Gateway = $attachedDataNetwork.UserPlaneDataInterfaceIpv4Gateway + } + if (!$PSBoundParameters.ContainsKey('UserPlaneDataInterfaceIpv4Subnet') -and $attachedDataNetwork.UserPlaneDataInterfaceIpv4Subnet) { + $PSBoundParameters.UserPlaneDataInterfaceIpv4Subnet = $attachedDataNetwork.UserPlaneDataInterfaceIpv4Subnet + } + if (!$PSBoundParameters.ContainsKey('UserPlaneDataInterfaceName') -and $attachedDataNetwork.UserPlaneDataInterfaceName) { + $PSBoundParameters.UserPlaneDataInterfaceName = $attachedDataNetwork.UserPlaneDataInterfaceName + } + + if (!$PSBoundParameters.ContainsKey('Tag')) { + $PSBoundParameters.Tag = $attachedDataNetwork.Tag + } + + Az.MobileNetwork.private\New-AzMobileNetworkAttachedDataNetwork_CreateExpanded @PSBoundParameters + } + catch { + throw + } + } +} diff --git a/src/MobileNetwork/custom/Update-AzMobileNetworkDataNetwork.ps1 b/src/MobileNetwork/custom/Update-AzMobileNetworkDataNetwork.ps1 new file mode 100644 index 000000000000..9714fe37aa0a --- /dev/null +++ b/src/MobileNetwork/custom/Update-AzMobileNetworkDataNetwork.ps1 @@ -0,0 +1,164 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Updates data network. +.Description +Updates data network. +.Example +Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="`12"} + +.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/update-azmobilenetworkdatanetwork +#> +function Update-AzMobileNetworkDataNetwork { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the data network. + ${DataNetworkName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the mobile network. + ${MobileNetworkName}, + + [Parameter(ParameterSetName='UpdateExpanded', 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('Body')] + [System.String] + # An optional description for this data network. + ${Description}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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} +) + + process { + try { + $dataNetwork = Get-AzMobileNetworkDataNetwork -MobileNetworkName $PSBoundParameters.MobileNetworkName -ResourceGroupName $PSBoundParameters.ResourceGroupName -Name $PSBoundParameters.DataNetworkName + $PSBoundParameters.Add('Location', $dataNetwork.Location) + + if (!$PSBoundParameters.ContainsKey('Description') -and $dataNetwork.Description) { + $PSBoundParameters.Description = $dataNetwork.Description + } + + if (!$PSBoundParameters.ContainsKey('Tag')) { + $PSBoundParameters.Tag = $dataNetwork.Tag + } + + Az.MobileNetwork.private\New-AzMobileNetworkDataNetwork_CreateExpanded @PSBoundParameters + } + catch { + throw + } + } +} diff --git a/src/MobileNetwork/custom/Update-AzMobileNetworkPacketCoreControlPlane.ps1 b/src/MobileNetwork/custom/Update-AzMobileNetworkPacketCoreControlPlane.ps1 new file mode 100644 index 000000000000..25a5c0c68625 --- /dev/null +++ b/src/MobileNetwork/custom/Update-AzMobileNetworkPacketCoreControlPlane.ps1 @@ -0,0 +1,343 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Updates packet core control planes. +.Description +Updates packet core control planes. +.Example +Update-AzMobileNetworkPacketCoreControlPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Tag @{"abc"="123"} + +.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/update-azmobilenetworkpacketcorecontrolplane +#> +function Update-AzMobileNetworkPacketCoreControlPlane { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the packet core control plane. + ${PacketCoreControlPlaneName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, + + [Parameter()] + [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()] + [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()] + [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()] + [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.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings]))] + [System.Collections.Hashtable] + # Settings to allow interoperability with third party components e.g. + # RANs and UEs. + ${InteropSetting}, + + [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(ParameterSetName='UpdateExpanded')] + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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} +) + + process { + try { + $packetCoreControlPlane = Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroupName $PSBoundParameters.ResourceGroupName -Name $PSBoundParameters.PacketCoreControlPlaneName + $PSBoundParameters.Add('Location', $packetCoreControlPlane.Location) + + if (!$PSBoundParameters.ContainsKey('LocalDiagnosticAccessAuthenticationType') -and $packetCoreControlPlane.LocalDiagnosticAccessAuthenticationType) { + $PSBoundParameters.LocalDiagnosticAccessAuthenticationType = $packetCoreControlPlane.LocalDiagnosticAccessAuthenticationType + } + if (!$PSBoundParameters.ContainsKey('PlatformType') -and $packetCoreControlPlane.PlatformType) { + $PSBoundParameters.PlatformType = $packetCoreControlPlane.PlatformType + } + if (!$PSBoundParameters.ContainsKey('Site') -and $packetCoreControlPlane.Site) { + $PSBoundParameters.Site = $packetCoreControlPlane.Site + } + if (!$PSBoundParameters.ContainsKey('Sku') -and $packetCoreControlPlane.Sku) { + $PSBoundParameters.Sku = $packetCoreControlPlane.Sku + } + if (!$PSBoundParameters.ContainsKey('AzureStackEdgeDeviceId') -and $packetCoreControlPlane.AzureStackEdgeDeviceId) { + $PSBoundParameters.AzureStackEdgeDeviceId = $packetCoreControlPlane.AzureStackEdgeDeviceId + } + if (!$PSBoundParameters.ContainsKey('AzureStackHciClusterId') -and $packetCoreControlPlane.AzureStackHciClusterId) { + $PSBoundParameters.AzureStackHciClusterId = $packetCoreControlPlane.AzureStackHciClusterId + } + if (!$PSBoundParameters.ContainsKey('ConnectedClusterId') -and $packetCoreControlPlane.ConnectedClusterId) { + $PSBoundParameters.ConnectedClusterId = $packetCoreControlPlane.ConnectedClusterId + } + if (!$PSBoundParameters.ContainsKey('ControlPlaneAccessInterfaceIpv4Address') -and $packetCoreControlPlane.ControlPlaneAccessInterfaceIpv4Address) { + $PSBoundParameters.ControlPlaneAccessInterfaceIpv4Address = $packetCoreControlPlane.ControlPlaneAccessInterfaceIpv4Address + } + if (!$PSBoundParameters.ContainsKey('ControlPlaneAccessInterfaceIpv4Gateway') -and $packetCoreControlPlane.ControlPlaneAccessInterfaceIpv4Gateway) { + $PSBoundParameters.ControlPlaneAccessInterfaceIpv4Gateway = $packetCoreControlPlane.ControlPlaneAccessInterfaceIpv4Gateway + } + if (!$PSBoundParameters.ContainsKey('ControlPlaneAccessInterfaceIpv4Subnet') -and $packetCoreControlPlane.ControlPlaneAccessInterfaceIpv4Subnet) { + $PSBoundParameters.ControlPlaneAccessInterfaceIpv4Subnet = $packetCoreControlPlane.ControlPlaneAccessInterfaceIpv4Subnet + } + if (!$PSBoundParameters.ContainsKey('ControlPlaneAccessInterfaceName') -and $packetCoreControlPlane.ControlPlaneAccessInterfaceName) { + $PSBoundParameters.ControlPlaneAccessInterfaceName = $packetCoreControlPlane.ControlPlaneAccessInterfaceName + } + if (!$PSBoundParameters.ContainsKey('CoreNetworkTechnology') -and $packetCoreControlPlane.CoreNetworkTechnology) { + $PSBoundParameters.CoreNetworkTechnology = $packetCoreControlPlane.CoreNetworkTechnology + } + if (!$PSBoundParameters.ContainsKey('CustomLocationId') -and $packetCoreControlPlane.CustomLocationId) { + $PSBoundParameters.CustomLocationId = $packetCoreControlPlane.CustomLocationId + } + if (!$PSBoundParameters.ContainsKey('HttpsServerCertificateUrl') -and $packetCoreControlPlane.HttpsServerCertificateUrl) { + $PSBoundParameters.HttpsServerCertificateUrl = $packetCoreControlPlane.HttpsServerCertificateUrl + } + if (!$PSBoundParameters.ContainsKey('UeMtu') -and $packetCoreControlPlane.UeMtu) { + $PSBoundParameters.UeMtu = $packetCoreControlPlane.UeMtu + } + if (!$PSBoundParameters.ContainsKey('Version') -and $packetCoreControlPlane.Version) { + $PSBoundParameters.Version = $packetCoreControlPlane.Version + } + + if ('NONE' -ieq $IdentityType.ToString()) { + $PSBoundParameters.IdentityType = 'None' + $null = $PSBoundParameters.Remove('IdentityUserAssignedIdentity') + } else { + if (!$PSBoundParameters.ContainsKey('IdentityType') -and $packetCoreControlPlane.IdentityType) { + $PSBoundParameters.IdentityType = $packetCoreControlPlane.IdentityType + } + if (!$PSBoundParameters.ContainsKey('IdentityUserAssignedIdentity')) { + $PSBoundParameters.IdentityUserAssignedIdentity = $packetCoreControlPlane.IdentityUserAssignedIdentity + } + } + + if (!$PSBoundParameters.ContainsKey('InteropSetting')) { + $PSBoundParameters.InteropSetting = $packetCoreControlPlane.InteropSetting + } + if (!$PSBoundParameters.ContainsKey('Tag')) { + $PSBoundParameters.Tag = $packetCoreControlPlane.Tag + } + + Az.MobileNetwork.private\New-AzMobileNetworkPacketCoreControlPlane_CreateExpanded @PSBoundParameters + } + catch { + throw + } + } +} diff --git a/src/MobileNetwork/custom/Update-AzMobileNetworkPacketCoreDataPlane.ps1 b/src/MobileNetwork/custom/Update-AzMobileNetworkPacketCoreDataPlane.ps1 new file mode 100644 index 000000000000..a6e99506da97 --- /dev/null +++ b/src/MobileNetwork/custom/Update-AzMobileNetworkPacketCoreDataPlane.ps1 @@ -0,0 +1,192 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Updates packet core data planes. +.Description +Updates packet core data planes. +.Example +Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123} + +.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/update-azmobilenetworkpacketcoredataplane +#> +function Update-AzMobileNetworkPacketCoreDataPlane { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the packet core control plane. + ${PacketCoreControlPlaneName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the packet core data plane. + ${PacketCoreDataPlaneName}, + + [Parameter(ParameterSetName='UpdateExpanded', 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('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(ParameterSetName='UpdateExpanded')] + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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} +) + + process { + try { + $packetCoreDataPlane = Get-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName $PSBoundParameters.PacketCoreControlPlaneName -ResourceGroupName $PSBoundParameters.ResourceGroupName -Name $PSBoundParameters.PacketCoreDataPlaneName + $PSBoundParameters.Add('Location', $packetCoreDataPlane.Location) + + if (!$PSBoundParameters.ContainsKey('UserPlaneAccessInterfaceIpv4Address') -and $packetCoreDataPlane.UserPlaneAccessInterfaceIpv4Address) { + $PSBoundParameters.UserPlaneAccessInterfaceIpv4Address = $packetCoreDataPlane.UserPlaneAccessInterfaceIpv4Address + } + if (!$PSBoundParameters.ContainsKey('UserPlaneAccessInterfaceIpv4Gateway') -and $packetCoreDataPlane.UserPlaneAccessInterfaceIpv4Gateway) { + $PSBoundParameters.UserPlaneAccessInterfaceIpv4Gateway = $packetCoreDataPlane.UserPlaneAccessInterfaceIpv4Gateway + } + if (!$PSBoundParameters.ContainsKey('UserPlaneAccessInterfaceIpv4Subnet') -and $packetCoreDataPlane.UserPlaneAccessInterfaceIpv4Subnet) { + $PSBoundParameters.UserPlaneAccessInterfaceIpv4Subnet = $packetCoreDataPlane.UserPlaneAccessInterfaceIpv4Subnet + } + if (!$PSBoundParameters.ContainsKey('UserPlaneAccessInterfaceName') -and $packetCoreDataPlane.UserPlaneAccessInterfaceName) { + $PSBoundParameters.UserPlaneAccessInterfaceName = $packetCoreDataPlane.UserPlaneAccessInterfaceName + } + + if (!$PSBoundParameters.ContainsKey('Tag')) { + $PSBoundParameters.Tag = $packetCoreDataPlane.Tag + } + + Az.MobileNetwork.private\New-AzMobileNetworkPacketCoreDataPlane_CreateExpanded @PSBoundParameters + } + catch { + throw + } + } +} diff --git a/src/MobileNetwork/custom/Update-AzMobileNetworkService.ps1 b/src/MobileNetwork/custom/Update-AzMobileNetworkService.ps1 new file mode 100644 index 000000000000..c8852badf493 --- /dev/null +++ b/src/MobileNetwork/custom/Update-AzMobileNetworkService.ps1 @@ -0,0 +1,243 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Updates service. +.Description +Updates service. +.Example +Update-AzMobileNetworkService -MobileNetworkName azps-mn -ServiceName azps-mn-service -ResourceGroupName azps_test_group -Tag @{"abc"="123"} + +.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/update-azmobilenetworkservice +#> +function Update-AzMobileNetworkService { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the mobile network. + ${MobileNetworkName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [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' + ${ServiceName}, + + [Parameter(ParameterSetName='UpdateExpanded', 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('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()] + [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()] + [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(ParameterSetName='UpdateExpanded')] + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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} +) + + process { + try { + $service = Get-AzMobileNetworkService -MobileNetworkName $PSBoundParameters.MobileNetworkName -ResourceGroupName $PSBoundParameters.ResourceGroupName -Name $PSBoundParameters.ServiceName + $PSBoundParameters.Add('Location', $service.Location) + + if (!$PSBoundParameters.ContainsKey('PccRule') -and $service.PccRule) { + $PSBoundParameters.PccRule = $service.PccRule + } + if (!$PSBoundParameters.ContainsKey('MaximumBitRateDownlink') -and $service.MaximumBitRateDownlink) { + $PSBoundParameters.MaximumBitRateDownlink = $service.MaximumBitRateDownlink + } + if (!$PSBoundParameters.ContainsKey('MaximumBitRateUplink') -and $service.MaximumBitRateUplink) { + $PSBoundParameters.MaximumBitRateUplink = $service.MaximumBitRateUplink + } + if (!$PSBoundParameters.ContainsKey('ServiceQoPolicyAllocationAndRetentionPriorityLevel') -and $service.ServiceQoPolicyAllocationAndRetentionPriorityLevel) { + $PSBoundParameters.ServiceQoPolicyAllocationAndRetentionPriorityLevel = $service.ServiceQoPolicyAllocationAndRetentionPriorityLevel + } + if (!$PSBoundParameters.ContainsKey('ServiceQoPolicyFiveQi') -and $service.ServiceQoPolicyFiveQi) { + $PSBoundParameters.ServiceQoPolicyFiveQi = $service.ServiceQoPolicyFiveQi + } + if (!$PSBoundParameters.ContainsKey('ServiceQoPolicyPreemptionCapability') -and $service.ServiceQoPolicyPreemptionCapability) { + $PSBoundParameters.ServiceQoPolicyPreemptionCapability = $service.ServiceQoPolicyPreemptionCapability + } + if (!$PSBoundParameters.ContainsKey('ServiceQoPolicyPreemptionVulnerability') -and $service.ServiceQoPolicyPreemptionVulnerability) { + $PSBoundParameters.ServiceQoPolicyPreemptionVulnerability = $service.ServiceQoPolicyPreemptionVulnerability + } + + if (!$PSBoundParameters.ContainsKey('Tag')) { + $PSBoundParameters.Tag = $service.Tag + } + + Az.MobileNetwork.private\New-AzMobileNetworkService_CreateExpanded @PSBoundParameters + } + catch { + throw + } + } +} diff --git a/src/MobileNetwork/custom/Update-AzMobileNetworkSimGroup.ps1 b/src/MobileNetwork/custom/Update-AzMobileNetworkSimGroup.ps1 new file mode 100644 index 000000000000..7b3e21093b2c --- /dev/null +++ b/src/MobileNetwork/custom/Update-AzMobileNetworkSimGroup.ps1 @@ -0,0 +1,196 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Updates SIM group. +.Description +Updates SIM group. +.Example +Update-AzMobileNetworkSimGroup -SimGroupName azps-mn-simgroup -ResourceGroupName azps_test_group -Tag @{"abc"="123"} + +.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/update-azmobilenetworksimgroup +#> +function Update-AzMobileNetworkSimGroup { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the SIM Group. + ${SimGroupName}, + + [Parameter(ParameterSetName='UpdateExpanded', 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('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')] + [System.String] + # Mobile network resource ID. + ${MobileNetworkId}, + + [Parameter(ParameterSetName='UpdateExpanded')] + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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} +) + + process { + try { + $simGroup = Get-AzMobileNetworkSimGroup -ResourceGroupName $PSBoundParameters.ResourceGroupName -Name $PSBoundParameters.SimGroupName + $PSBoundParameters.Add('Location', $simGroup.Location) + + if (!$PSBoundParameters.ContainsKey('MobileNetworkId') -and $simGroup.MobileNetworkId) { + $PSBoundParameters.MobileNetworkId = $simGroup.MobileNetworkId + } + if (!$PSBoundParameters.ContainsKey('EncryptionKeyUrl') -and $simGroup.EncryptionKeyUrl) { + $PSBoundParameters.EncryptionKeyUrl = $simGroup.EncryptionKeyUrl + } + + if ('NONE' -ieq $IdentityType.ToString()) { + $PSBoundParameters.IdentityType = 'None' + $null = $PSBoundParameters.Remove('IdentityUserAssignedIdentity') + } else { + if (!$PSBoundParameters.ContainsKey('IdentityType') -and $simGroup.IdentityType) { + $PSBoundParameters.IdentityType = $simGroup.IdentityType + } + if (!$PSBoundParameters.ContainsKey('IdentityUserAssignedIdentity')) { + $PSBoundParameters.IdentityUserAssignedIdentity = $simGroup.IdentityUserAssignedIdentity + } + } + + if (!$PSBoundParameters.ContainsKey('Tag')) { + $PSBoundParameters.Tag = $simGroup.Tag + } + + Az.MobileNetwork.private\New-AzMobileNetworkSimGroup_CreateExpanded @PSBoundParameters + } + catch { + throw + } + } +} diff --git a/src/MobileNetwork/custom/Update-AzMobileNetworkSimPolicy.ps1 b/src/MobileNetwork/custom/Update-AzMobileNetworkSimPolicy.ps1 new file mode 100644 index 000000000000..11b2240aa71d --- /dev/null +++ b/src/MobileNetwork/custom/Update-AzMobileNetworkSimPolicy.ps1 @@ -0,0 +1,214 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Updates SIM policy. +.Description +Updates SIM policy. +.Example +Update-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -SimPolicyName azps-mn-simpolicy -ResourceGroupName azps_test_group -Tag @{"abc"="123"} + +.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/update-azmobilenetworksimpolicy +#> +function Update-AzMobileNetworkSimPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the mobile network. + ${MobileNetworkName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the SIM policy. + ${SimPolicyName}, + + [Parameter(ParameterSetName='UpdateExpanded', 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('Body')] + [System.String] + # Slice resource ID. + ${DefaultSliceId}, + + [Parameter()] + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [System.String] + # Downlink bit rate. + ${UeAmbrDownlink}, + + [Parameter()] + [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(ParameterSetName='UpdateExpanded')] + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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} +) + + process { + try { + $simPolicy = Get-AzMobileNetworkSimPolicy -MobileNetworkName $PSBoundParameters.MobileNetworkName -ResourceGroupName $PSBoundParameters.ResourceGroupName -Name $PSBoundParameters.SimPolicyName + $PSBoundParameters.Add('Location', $simPolicy.Location) + + # README.md file Line 142 ReNamed DefaultSlouseId -> DefaultSliceId + if (!$PSBoundParameters.ContainsKey('DefaultSliceId') -and $simPolicy.DefaultSlouseId) { + $PSBoundParameters.DefaultSliceId = $simPolicy.DefaultSlouseId + } + if (!$PSBoundParameters.ContainsKey('SliceConfiguration') -and $simPolicy.SliceConfiguration) { + $PSBoundParameters.SliceConfiguration = $simPolicy.SliceConfiguration + } + if (!$PSBoundParameters.ContainsKey('UeAmbrDownlink') -and $simPolicy.UeAmbrDownlink) { + $PSBoundParameters.UeAmbrDownlink = $simPolicy.UeAmbrDownlink + } + if (!$PSBoundParameters.ContainsKey('UeAmbrUplink') -and $simPolicy.UeAmbrUplink) { + $PSBoundParameters.UeAmbrUplink = $simPolicy.UeAmbrUplink + } + if (!$PSBoundParameters.ContainsKey('RegistrationTimer') -and "$simPolicy.RegistrationTimer") { + $PSBoundParameters.RegistrationTimer = $simPolicy.RegistrationTimer + } + if (!$PSBoundParameters.ContainsKey('RfspIndex') -and $simPolicy.RfspIndex) { + $PSBoundParameters.RfspIndex = $simPolicy.RfspIndex + } + + if (!$PSBoundParameters.ContainsKey('Tag')) { + $PSBoundParameters.Tag = $simPolicy.Tag + } + + Az.MobileNetwork.private\New-AzMobileNetworkSimPolicy_CreateExpanded @PSBoundParameters + } + catch { + throw + } + } +} diff --git a/src/MobileNetwork/custom/Update-AzMobileNetworkSlice.ps1 b/src/MobileNetwork/custom/Update-AzMobileNetworkSlice.ps1 new file mode 100644 index 000000000000..43eec8faa768 --- /dev/null +++ b/src/MobileNetwork/custom/Update-AzMobileNetworkSlice.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. +# ---------------------------------------------------------------------------------- + +<# +.Synopsis +Updates slice. +.Description +Updates slice. +.Example +Update-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Tag @{"abc"="123"} + +.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/update-azmobilenetworkslice +#> +function Update-AzMobileNetworkSlice { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the mobile network. + ${MobileNetworkName}, + + [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the network slice. + ${SliceName}, + + [Parameter(ParameterSetName='UpdateExpanded', 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('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(ParameterSetName='UpdateExpanded')] + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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} +) + + process { + try { + $mobileNetworkSlice = Get-AzMobileNetworkSlice -MobileNetworkName $PSBoundParameters.MobileNetworkName -ResourceGroupName $PSBoundParameters.ResourceGroupName -SliceName $PSBoundParameters.SliceName + $PSBoundParameters.Add('Location', $mobileNetworkSlice.Location) + + if (!$PSBoundParameters.ContainsKey('Description') -and $mobileNetworkSlice.Description) { + $PSBoundParameters.Description = $mobileNetworkSlice.Description + } + if (!$PSBoundParameters.ContainsKey('SnssaiSd') -and $mobileNetworkSlice.SnssaiSd) { + $PSBoundParameters.SnssaiSd = $mobileNetworkSlice.SnssaiSd + } + + if (!$PSBoundParameters.ContainsKey('Tag')) { + $PSBoundParameters.Tag = $mobileNetworkSlice.Tag + } + + Az.MobileNetwork.private\New-AzMobileNetworkSlice_CreateExpanded @PSBoundParameters + } + catch { + throw + } + } +} diff --git a/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlane.md b/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlane.md index 42b29d017350..23858465c991 100644 --- a/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlane.md +++ b/src/MobileNetwork/examples/Get-AzMobileNetworkPacketCoreControlPlane.md @@ -13,7 +13,7 @@ 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 +Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroupName azps_test_group ``` ```output @@ -26,7 +26,7 @@ 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 +Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroupName azps_test_group -Name azps-mn-pccp ``` ```output diff --git a/src/MobileNetwork/examples/New-AzMobileNetworkSimGroup.md b/src/MobileNetwork/examples/New-AzMobileNetworkSimGroup.md index 2b005eeda1f3..c6bc3ea419a3 100644 --- a/src/MobileNetwork/examples/New-AzMobileNetworkSimGroup.md +++ b/src/MobileNetwork/examples/New-AzMobileNetworkSimGroup.md @@ -1,7 +1,5 @@ ### 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" ``` diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkAttachedDataNetwork.md b/src/MobileNetwork/examples/Update-AzMobileNetworkAttachedDataNetwork.md index e2f0ff3c4c60..f6a9333155b1 100644 --- a/src/MobileNetwork/examples/Update-AzMobileNetworkAttachedDataNetwork.md +++ b/src/MobileNetwork/examples/Update-AzMobileNetworkAttachedDataNetwork.md @@ -1,4 +1,4 @@ -### Example 1: Updates an attached data network tags. +### Example 1: Updates an attached data network. ```powershell Update-AzMobileNetworkAttachedDataNetwork -AttachedDataNetworkName azps-mn-adn -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps_test_group -ResourceGroupName -Tag @{"abc"="123"} ``` @@ -9,4 +9,4 @@ Location Name ResourceGroupName ProvisioningState eastus azps-mn-adn azps_test_group Succeeded ``` -Updates an attached data network tags. \ No newline at end of file +Updates an attached data network. \ No newline at end of file diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkDataNetwork.md b/src/MobileNetwork/examples/Update-AzMobileNetworkDataNetwork.md index bf724518b70c..3cfa1b536df8 100644 --- a/src/MobileNetwork/examples/Update-AzMobileNetworkDataNetwork.md +++ b/src/MobileNetwork/examples/Update-AzMobileNetworkDataNetwork.md @@ -1,4 +1,4 @@ -### Example 1: Updates data network tags. +### Example 1: Updates data network. ```powershell Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="`12"} ``` @@ -9,4 +9,4 @@ Location Name ResourceGroupName ProvisioningState eastus azps-mn-datanetwork azps_test_group Succeeded ``` -Updates data network tags. \ No newline at end of file +Updates data network. \ No newline at end of file diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreControlPlane.md b/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreControlPlane.md index 8afddc84f2d1..342544a1433e 100644 --- a/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreControlPlane.md +++ b/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreControlPlane.md @@ -1,4 +1,4 @@ -### Example 1: Updates packet core control planes tags. +### Example 1: Updates packet core control planes. ```powershell Update-AzMobileNetworkPacketCoreControlPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Tag @{"abc"="123"} ``` @@ -9,4 +9,4 @@ Location Name ResourceGroupName ProvisioningState eastus azps-mn-pccp azps_test_group Succeeded ``` -Updates packet core control planes tags. \ No newline at end of file +Updates packet core control planes. \ No newline at end of file diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreDataPlane.md b/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreDataPlane.md index 001552d19763..0ccaa9885a95 100644 --- a/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreDataPlane.md +++ b/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreDataPlane.md @@ -1,4 +1,4 @@ -### Example 1: Updates packet core data planes tags. +### Example 1: Updates packet core data planes. ```powershell Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123} ``` @@ -9,4 +9,4 @@ Location Name ResourceGroupName ProvisioningState eastus azps-mn-pcdp azps_test_group Succeeded ``` -Updates packet core data planes tags. \ No newline at end of file +Updates packet core data planes. \ No newline at end of file diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkService.md b/src/MobileNetwork/examples/Update-AzMobileNetworkService.md index 95f1bdd71f78..b05504e85c89 100644 --- a/src/MobileNetwork/examples/Update-AzMobileNetworkService.md +++ b/src/MobileNetwork/examples/Update-AzMobileNetworkService.md @@ -1,6 +1,6 @@ -### Example 1: Updates service tags. +### Example 1: Updates service. ```powershell -Update-AzMobileNetworkService -MobileNetworkName azps-mn -ServiceName azps-mn-service -ResourceGroupName azps_test_group -Tag @{"abc"="123"} +Update-AzMobileNetworkService -MobileNetworkName azps-mn -ServiceName azps-mn-service -ResourceGroupName azps_test_group -Tag @{"abc"="123"} -ServicePrecedence 0 ``` ```output @@ -9,4 +9,4 @@ Location Name ResourceGroupName ProvisioningState Precedence MaximumB eastus azps-mn-service azps_test_group Succeeded 0 1 Gbps 500 Mbps 9 9 ``` -Updates service tags. \ No newline at end of file +Updates service. \ No newline at end of file diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkSimGroup.md b/src/MobileNetwork/examples/Update-AzMobileNetworkSimGroup.md index 82cb7f2f86a0..6a11f0ba68bd 100644 --- a/src/MobileNetwork/examples/Update-AzMobileNetworkSimGroup.md +++ b/src/MobileNetwork/examples/Update-AzMobileNetworkSimGroup.md @@ -1,4 +1,4 @@ -### Example 1: Updates SIM group tags. +### Example 1: Updates SIM group. ```powershell Update-AzMobileNetworkSimGroup -SimGroupName azps-mn-simgroup -ResourceGroupName azps_test_group -Tag @{"abc"="123"} ``` @@ -9,4 +9,4 @@ Location Name ResourceGroupName ProvisioningState eastus azps-mn-simgroup azps_test_group Succeeded ``` -Updates SIM group tags. \ No newline at end of file +Updates SIM group. \ No newline at end of file diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkSimPolicy.md b/src/MobileNetwork/examples/Update-AzMobileNetworkSimPolicy.md index 882cc8e8b160..43fa4c056b1e 100644 --- a/src/MobileNetwork/examples/Update-AzMobileNetworkSimPolicy.md +++ b/src/MobileNetwork/examples/Update-AzMobileNetworkSimPolicy.md @@ -1,4 +1,4 @@ -### Example 1: Updates SIM policy tags. +### Example 1: Updates SIM policy. ```powershell Update-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -SimPolicyName azps-mn-simpolicy -ResourceGroupName azps_test_group -Tag @{"abc"="123"} ``` @@ -9,4 +9,4 @@ Location Name ResourceGroupName ProvisioningState RegistrationTimer eastus azps-mn-simpolicy azps_test_group Succeeded 3240 1 Gbps 500 Mbps ``` -Updates SIM policy tags. \ No newline at end of file +Updates SIM policy. \ No newline at end of file diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkSlice.md b/src/MobileNetwork/examples/Update-AzMobileNetworkSlice.md index c01492a76569..d236e361b738 100644 --- a/src/MobileNetwork/examples/Update-AzMobileNetworkSlice.md +++ b/src/MobileNetwork/examples/Update-AzMobileNetworkSlice.md @@ -1,6 +1,6 @@ -### Example 1: Updates slice tags. +### Example 1: Updates slice. ```powershell -Update-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Tag @{"abc"="123"} +Update-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Tag @{"abc"="123"} -SnssaiSst 1 ``` ```output @@ -9,4 +9,4 @@ 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 +Updates slice. \ No newline at end of file diff --git a/src/MobileNetwork/exports/Get-AzMobileNetwork.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetwork.ps1 index 7f7f3342f811..567c58145669 100644 --- a/src/MobileNetwork/exports/Get-AzMobileNetwork.ps1 +++ b/src/MobileNetwork/exports/Get-AzMobileNetwork.ps1 @@ -94,7 +94,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -146,7 +147,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkAttachedDataNetwork.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkAttachedDataNetwork.ps1 index 4cc2c4dbe053..9e4a82446920 100644 --- a/src/MobileNetwork/exports/Get-AzMobileNetworkAttachedDataNetwork.ps1 +++ b/src/MobileNetwork/exports/Get-AzMobileNetworkAttachedDataNetwork.ps1 @@ -105,7 +105,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -157,7 +158,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkDataNetwork.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkDataNetwork.ps1 index 354655172653..791319c63b7c 100644 --- a/src/MobileNetwork/exports/Get-AzMobileNetworkDataNetwork.ps1 +++ b/src/MobileNetwork/exports/Get-AzMobileNetworkDataNetwork.ps1 @@ -98,7 +98,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -150,7 +151,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlane.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlane.ps1 index d8e506d856d8..d8c794d8fcad 100644 --- a/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlane.ps1 +++ b/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlane.ps1 @@ -22,9 +22,9 @@ Gets information about the specified packet core control plane. .Example Get-AzMobileNetworkPacketCoreControlPlane .Example -Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroup azps_test_group +Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroupName azps_test_group .Example -Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroup azps_test_group -Name azps-mn-pccp +Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroupName azps_test_group -Name azps-mn-pccp .Inputs Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity @@ -94,7 +94,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -146,7 +147,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlaneVersion.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlaneVersion.ps1 index 38363da37d47..f513e0e3002a 100644 --- a/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlaneVersion.ps1 +++ b/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreControlPlaneVersion.ps1 @@ -74,7 +74,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -126,7 +127,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreDataPlane.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreDataPlane.ps1 index f1c9eb75ea48..243bdc0b11d1 100644 --- a/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreDataPlane.ps1 +++ b/src/MobileNetwork/exports/Get-AzMobileNetworkPacketCoreDataPlane.ps1 @@ -98,7 +98,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -150,7 +151,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkService.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkService.ps1 index 453e61a4ad59..f0c3fcd0e03c 100644 --- a/src/MobileNetwork/exports/Get-AzMobileNetworkService.ps1 +++ b/src/MobileNetwork/exports/Get-AzMobileNetworkService.ps1 @@ -99,7 +99,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -151,7 +152,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkSim.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkSim.ps1 index 9aa962695631..e4fbec3dca48 100644 --- a/src/MobileNetwork/exports/Get-AzMobileNetworkSim.ps1 +++ b/src/MobileNetwork/exports/Get-AzMobileNetworkSim.ps1 @@ -99,7 +99,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -151,7 +152,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkSimGroup.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkSimGroup.ps1 index c14f87466ff9..890852a198b2 100644 --- a/src/MobileNetwork/exports/Get-AzMobileNetworkSimGroup.ps1 +++ b/src/MobileNetwork/exports/Get-AzMobileNetworkSimGroup.ps1 @@ -94,7 +94,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -146,7 +147,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkSimPolicy.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkSimPolicy.ps1 index ea6ea9b8342f..0636a74ac865 100644 --- a/src/MobileNetwork/exports/Get-AzMobileNetworkSimPolicy.ps1 +++ b/src/MobileNetwork/exports/Get-AzMobileNetworkSimPolicy.ps1 @@ -98,7 +98,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -150,7 +151,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkSite.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkSite.ps1 index facbd21e651d..11efefb301b6 100644 --- a/src/MobileNetwork/exports/Get-AzMobileNetworkSite.ps1 +++ b/src/MobileNetwork/exports/Get-AzMobileNetworkSite.ps1 @@ -98,7 +98,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -150,7 +151,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Get-AzMobileNetworkSlice.ps1 b/src/MobileNetwork/exports/Get-AzMobileNetworkSlice.ps1 index 3bd01c554ff8..6ad65a062a4c 100644 --- a/src/MobileNetwork/exports/Get-AzMobileNetworkSlice.ps1 +++ b/src/MobileNetwork/exports/Get-AzMobileNetworkSlice.ps1 @@ -97,7 +97,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -149,7 +150,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetwork.ps1 b/src/MobileNetwork/exports/New-AzMobileNetwork.ps1 index 7633d94e3b4f..ac8113c79014 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetwork.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetwork.ps1 @@ -82,7 +82,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -146,7 +147,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkAttachedDataNetwork.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkAttachedDataNetwork.ps1 index 51633727345f..a65197b277fe 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkAttachedDataNetwork.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkAttachedDataNetwork.ps1 @@ -199,7 +199,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -263,7 +264,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkDataNetwork.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkDataNetwork.ps1 index b08be0cb50fa..8d416e2e1689 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkDataNetwork.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkDataNetwork.ps1 @@ -84,7 +84,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -148,7 +149,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkDataNetworkConfigurationObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkDataNetworkConfigurationObject.ps1 index f496048d9979..0092fb2ac47c 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkDataNetworkConfigurationObject.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkDataNetworkConfigurationObject.ps1 @@ -138,7 +138,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreControlPlane.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreControlPlane.ps1 index efb3347ec4ca..5128803467eb 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreControlPlane.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreControlPlane.ps1 @@ -210,7 +210,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -274,7 +275,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreDataPlane.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreDataPlane.ps1 index b331ecca491a..2b340c042393 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreDataPlane.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkPacketCoreDataPlane.ps1 @@ -103,7 +103,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -167,7 +168,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkPccRuleConfigurationObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkPccRuleConfigurationObject.ps1 index b329dd85ab4e..9683823e6c73 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkPccRuleConfigurationObject.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkPccRuleConfigurationObject.ps1 @@ -146,7 +146,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkService.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkService.ps1 index 8ab3a1736f34..be7066892f52 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkService.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkService.ps1 @@ -47,7 +47,7 @@ PCCRULE : The set of data flow policy rules that make u [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. + [RuleQoPolicyFiveQi ]: 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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. @@ -135,11 +135,9 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.Int32] - # QoS Flow 5G QoS Indicator value. + # 5G QoS Flow 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. + # 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 the 5QI values. ${ServiceQoPolicyFiveQi}, [Parameter()] @@ -172,7 +170,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -236,7 +235,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkServiceDataFlowTemplateObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkServiceDataFlowTemplateObject.ps1 index 64770695482f..fb4ed9401ea7 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkServiceDataFlowTemplateObject.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkServiceDataFlowTemplateObject.ps1 @@ -87,7 +87,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkServiceResourceIdObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkServiceResourceIdObject.ps1 index 633510da2ad8..be55e8374fdd 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkServiceResourceIdObject.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkServiceResourceIdObject.ps1 @@ -47,7 +47,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSim.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSim.ps1 index c35832280f8e..6bae4b4a865d 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkSim.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkSim.ps1 @@ -121,7 +121,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -185,7 +186,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSimGroup.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSimGroup.ps1 index ffce330c8058..6b6a23ce4006 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkSimGroup.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkSimGroup.ps1 @@ -20,8 +20,6 @@ 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 @@ -60,12 +58,6 @@ param( # 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] @@ -89,6 +81,12 @@ param( # The dictionary values can be empty objects ({}) in requests. ${IdentityUserAssignedIdentity}, + [Parameter()] + [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]))] @@ -101,7 +99,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -165,7 +164,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -182,7 +181,7 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.MobileNetwork.custom\New-AzMobileNetworkSimGroup'; + CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkSimGroup_CreateExpanded'; } if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSimPolicy.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSimPolicy.ps1 index 65e130d53c74..29a9e5f2136f 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkSimPolicy.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkSimPolicy.ps1 @@ -47,7 +47,7 @@ SLICECONFIGURATION : The allowed slices and the settings [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. + [FiveQi ]: Default 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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. @@ -145,7 +145,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -209,7 +210,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSimStaticIPPropertiesObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSimStaticIPPropertiesObject.ps1 index d83cdc079b61..0d6c3eb457db 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkSimStaticIPPropertiesObject.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkSimStaticIPPropertiesObject.ps1 @@ -60,7 +60,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSite.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSite.ps1 index 9434658b5376..74a01c576dde 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkSite.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkSite.ps1 @@ -78,7 +78,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -142,7 +143,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSiteResourceIdObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSiteResourceIdObject.ps1 index 6cb1826e7453..c2d14e3e32ce 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkSiteResourceIdObject.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkSiteResourceIdObject.ps1 @@ -47,7 +47,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSlice.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSlice.ps1 index 5b892088ede2..9295a964f212 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkSlice.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkSlice.ps1 @@ -95,7 +95,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -159,7 +160,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/New-AzMobileNetworkSliceConfigurationObject.ps1 b/src/MobileNetwork/exports/New-AzMobileNetworkSliceConfigurationObject.ps1 index a3ef09acbeba..5360fd37e818 100644 --- a/src/MobileNetwork/exports/New-AzMobileNetworkSliceConfigurationObject.ps1 +++ b/src/MobileNetwork/exports/New-AzMobileNetworkSliceConfigurationObject.ps1 @@ -42,7 +42,7 @@ DATANETWORKCONFIGURATION : The allowed data network [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. + [FiveQi ]: Default 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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. @@ -83,7 +83,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/ProxyCmdletDefinitions.ps1 b/src/MobileNetwork/exports/ProxyCmdletDefinitions.ps1 index b79e082c3a86..7155bbc9a534 100644 --- a/src/MobileNetwork/exports/ProxyCmdletDefinitions.ps1 +++ b/src/MobileNetwork/exports/ProxyCmdletDefinitions.ps1 @@ -105,7 +105,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -157,7 +158,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -311,7 +312,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -363,7 +365,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -493,7 +495,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -545,7 +548,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -620,9 +623,9 @@ Gets information about the specified packet core control plane. .Example Get-AzMobileNetworkPacketCoreControlPlane .Example -Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroup azps_test_group +Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroupName azps_test_group .Example -Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroup azps_test_group -Name azps-mn-pccp +Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroupName azps_test_group -Name azps-mn-pccp .Inputs Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity @@ -692,7 +695,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -744,7 +748,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -899,7 +903,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -951,7 +956,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1106,7 +1111,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1158,7 +1164,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1308,7 +1314,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1360,7 +1367,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1515,7 +1522,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1567,7 +1575,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1722,7 +1730,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1774,7 +1783,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -1928,7 +1937,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -1980,7 +1990,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2133,7 +2143,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2185,7 +2196,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2335,7 +2346,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -2387,7 +2399,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2643,7 +2655,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -2707,7 +2720,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -2845,7 +2858,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -2909,7 +2923,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3173,7 +3187,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -3237,7 +3252,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3394,7 +3409,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -3458,7 +3474,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3559,7 +3575,7 @@ PCCRULE : The set of data flow policy rules that make u [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. + [RuleQoPolicyFiveQi ]: 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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. @@ -3647,11 +3663,9 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.Int32] - # QoS Flow 5G QoS Indicator value. + # 5G QoS Flow 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. + # 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 the 5QI values. ${ServiceQoPolicyFiveQi}, [Parameter()] @@ -3684,7 +3698,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -3748,7 +3763,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -3816,6 +3831,224 @@ end { } } +<# +.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()] + [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 DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 = $PSVersionTable.PSVersion.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-AzMobileNetworkSimGroup_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 + } +} +} + <# .Synopsis Creates or updates a SIM policy. @@ -3849,7 +4082,7 @@ SLICECONFIGURATION : The allowed slices and the settings [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. + [FiveQi ]: Default 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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. @@ -3947,7 +4180,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -4011,7 +4245,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4186,7 +4420,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -4250,7 +4485,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4382,7 +4617,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -4446,7 +4682,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4595,7 +4831,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -4659,7 +4896,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -4795,7 +5032,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -4859,7 +5097,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5012,7 +5250,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -5082,7 +5321,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5230,7 +5469,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -5300,7 +5540,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5442,7 +5682,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -5512,7 +5753,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5660,7 +5901,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -5730,7 +5972,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -5879,7 +6121,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -5949,7 +6192,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -6091,7 +6334,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -6161,7 +6405,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -6309,7 +6553,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -6379,7 +6624,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -6528,7 +6773,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -6598,7 +6844,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -6748,7 +6994,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -6818,7 +7065,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -6965,7 +7212,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -7035,7 +7283,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -7177,7 +7425,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -7247,7 +7496,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -7318,16 +7567,16 @@ end { <# .Synopsis -Updates an attached data network tags. +Updates site tags. .Description -Updates an attached data network tags. +Updates site tags. .Example -Update-AzMobileNetworkAttachedDataNetwork -AttachedDataNetworkName azps-mn-adn -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps_test_group -ResourceGroupName -Tag @{"abc"="123"} +Update-AzMobileNetworkSite -MobileNetworkName azps-mn -SiteName azps-mn-site -ResourceGroupName azps_test_group -Tag @{"site"="123"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISite .Notes COMPLEX PARAMETER PROPERTIES @@ -7350,36 +7599,30 @@ INPUTOBJECT : Identity Parameter [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/update-azmobilenetworkattacheddatanetwork +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworksite #> -function Update-AzMobileNetworkAttachedDataNetwork { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork])] +function Update-AzMobileNetworkSite { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISite])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The name of the attached data network. - ${AttachedDataNetworkName}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [System.String] - # The name of the packet core control plane. - ${PacketCoreControlPlaneName}, + # The name of the mobile network. + ${MobileNetworkName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The name of the packet core data plane. - ${PacketCoreDataPlaneName}, + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, + # The name of the mobile network site. + ${SiteName}, [Parameter(ParameterSetName='UpdateExpanded')] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] @@ -7407,7 +7650,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -7459,7 +7703,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -7476,8 +7720,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkAttachedDataNetwork_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkAttachedDataNetwork_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSite_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSite_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -7530,16 +7774,16 @@ end { <# .Synopsis -Updates data network tags. +Updates mobile network tags. .Description -Updates data network tags. +Updates mobile network tags. .Example -Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="`12"} +Update-AzMobileNetwork -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -Tag @{"123"="abc"} .Inputs Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IMobileNetwork .Notes COMPLEX PARAMETER PROPERTIES @@ -7562,18 +7806,12 @@ INPUTOBJECT : Identity Parameter [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/update-azmobilenetworkdatanetwork +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetwork #> -function Update-AzMobileNetworkDataNetwork { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork])] +function Update-AzMobileNetwork { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IMobileNetwork])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [System.String] - # The name of the data network. - ${DataNetworkName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] @@ -7613,7 +7851,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -7665,7 +7904,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -7682,8 +7921,8 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkDataNetwork_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkDataNetwork_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetwork_UpdateExpanded'; + UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetwork_UpdateViaIdentityExpanded'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -7736,124 +7975,117 @@ end { <# .Synopsis -Updates packet core control planes tags. +Create an in-memory object for DataNetworkConfiguration. .Description -Updates packet core control planes tags. +Create an in-memory object for DataNetworkConfiguration. .Example -Update-AzMobileNetworkPacketCoreControlPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Tag @{"abc"="123"} +$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' -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane +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. -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. +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/update-azmobilenetworkpacketcorecontrolplane +https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkDataNetworkConfigurationObject #> -function Update-AzMobileNetworkPacketCoreControlPlane { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzMobileNetworkDataNetworkConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkConfiguration])] +[CmdletBinding(PositionalBinding=$false)] param( - [Parameter(ParameterSetName='UpdateExpanded', 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('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(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, + # Data network resource ID. + ${DataNetworkId}, - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.String] - # The ID of the target subscription. - ${SubscriptionId}, + # Downlink bit rate. + ${SessionAmbrDownlink}, - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', 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(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.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, + [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()] - [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}, + [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(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()] + [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(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('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(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, + [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(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()] + [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(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} + [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 { @@ -7865,7 +8097,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -7882,11 +8114,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkPacketCoreControlPlane_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkPacketCoreControlPlane_UpdateViaIdentityExpanded'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkDataNetworkConfigurationObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -7936,130 +8164,125 @@ end { <# .Synopsis -Updates packet core data planes tags. +Create an in-memory object for PccRuleConfiguration. .Description -Updates packet core data planes tags. +Create an in-memory object for PccRuleConfiguration. .Example -Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123} +$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" -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane +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. -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. +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/update-azmobilenetworkpacketcoredataplane +https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkPccRuleConfigurationObject #> -function Update-AzMobileNetworkPacketCoreDataPlane { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzMobileNetworkPccRuleConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PccRuleConfiguration])] +[CmdletBinding(PositionalBinding=$false)] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.String] - # The name of the packet core control plane. - ${PacketCoreControlPlaneName}, + # 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(ParameterSetName='UpdateExpanded', 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('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(ParameterSetName='UpdateExpanded', 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('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(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', 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}, + # Downlink bit rate. + ${GuaranteedBitRateDownlink}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, + [System.String] + # Uplink bit rate. + ${GuaranteedBitRateUplink}, [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}, + [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(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, + [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(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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [System.String] + # Downlink bit rate. + ${RuleQoPolicyMaximumBitRateDownlink}, - [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('Body')] + [System.String] + # Uplink bit rate. + ${RuleQoPolicyMaximumBitRateUplink}, - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, + [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(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()] + [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(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} + [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 { @@ -8071,7 +8294,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -8088,11 +8311,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkPacketCoreDataPlane_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkPacketCoreDataPlane_UpdateViaIdentityExpanded'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkPccRuleConfigurationObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8142,131 +8361,164 @@ end { <# .Synopsis -Updates service tags. +Create an in-memory object for ServiceDataFlowTemplate. .Description -Updates service tags. +Create an in-memory object for ServiceDataFlowTemplate. .Example -Update-AzMobileNetworkService -MobileNetworkName azps-mn -ServiceName azps-mn-service -ResourceGroupName azps_test_group -Tag @{"abc"="123"} +New-AzMobileNetworkServiceDataFlowTemplateObject -Direction "Bidirectional" -Protocol "255" -RemoteIPList "any" -TemplateName azps-mn-flow-template -.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. +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceDataFlowTemplate .Link -https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkservice +https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkServiceDataFlowTemplateObject #> -function Update-AzMobileNetworkService { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzMobileNetworkServiceDataFlowTemplateObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceDataFlowTemplate])] +[CmdletBinding(PositionalBinding=$false)] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [System.String] - # The name of the mobile network. - ${MobileNetworkName}, + [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(ParameterSetName='UpdateExpanded', 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('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(ParameterSetName='UpdateExpanded', Mandatory)] - [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' - ${ServiceName}, + [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(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', 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}, + # 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')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] - [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}, + [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} +) - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Wait for .NET debugger to attach - ${Break}, +begin { + try { + $outBuffer = $null + if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { + $PSBoundParameters['OutBuffer'] = 1 + } + $parameterSet = $PSCmdlet.ParameterSetName - [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}, + if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.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' + } - [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}, + $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 + } +} - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] - [System.Uri] - # The URI for the proxy server to use - ${Proxy}, +process { + try { + $steppablePipeline.Process($_) + } catch { + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + throw + } - [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}, + finally { + $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId + $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets + [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() + } - [Parameter(DontShow)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] - [System.Management.Automation.SwitchParameter] - # Use the default credentials for the proxy - ${ProxyUseDefaultCredentials} +} +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 + } +} +} + +<# +.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 { @@ -8278,7 +8530,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -8295,11 +8547,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkService_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkService_UpdateViaIdentityExpanded'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkServiceResourceIdObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8349,124 +8597,39 @@ end { <# .Synopsis -Updates SIM group tags. +Create an in-memory object for SimStaticIPProperties. .Description -Updates SIM group tags. +Create an in-memory object for SimStaticIPProperties. .Example -Update-AzMobileNetworkSimGroup -SimGroupName azps-mn-simgroup -ResourceGroupName azps_test_group -Tag @{"abc"="123"} +New-AzMobileNetworkSimStaticIPPropertiesObject -StaticIPIpv4Address 10.0.0.20 -.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. +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimStaticIPProperties .Link -https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworksimgroup +https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkSimStaticIPPropertiesObject #> -function Update-AzMobileNetworkSimGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzMobileNetworkSimStaticIPPropertiesObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimStaticIPProperties])] +[CmdletBinding(PositionalBinding=$false)] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [System.String] - # The name of the SIM Group. - ${SimGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', 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}, + # Attached data network resource ID. + ${AttachedDataNetworkId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] - [System.Collections.Hashtable] - # Resource tags. - ${Tag}, + [System.String] + # Slice resource ID. + ${SliceId}, [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} + [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 { @@ -8478,7 +8641,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -8495,11 +8658,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSimGroup_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSimGroup_UpdateViaIdentityExpanded'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkSimStaticIPPropertiesObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8549,130 +8708,26 @@ end { <# .Synopsis -Updates SIM policy tags. +Create an in-memory object for SiteResourceId. .Description -Updates SIM policy tags. +Create an in-memory object for SiteResourceId. .Example -Update-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -SimPolicyName azps-mn-simpolicy -ResourceGroupName azps_test_group -Tag @{"abc"="123"} +New-AzMobileNetworkSiteResourceIdObject -Id "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/sites/azps-mn-site" -.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. +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteResourceId .Link -https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworksimpolicy +https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkSiteResourceIdObject #> -function Update-AzMobileNetworkSimPolicy { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzMobileNetworkSiteResourceIdObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteResourceId])] +[CmdletBinding(PositionalBinding=$false)] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [System.String] - # The name of the mobile network. - ${MobileNetworkName}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [System.String] - # The name of the SIM policy. - ${SimPolicyName}, - - [Parameter(ParameterSetName='UpdateExpanded')] - [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='UpdateViaIdentityExpanded', 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()] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] - [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(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} + [System.String] + # Site resource ID. + ${Id} ) begin { @@ -8684,7 +8739,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -8701,11 +8756,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSimPolicy_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSimPolicy_UpdateViaIdentityExpanded'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkSiteResourceIdObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8755,130 +8806,62 @@ end { <# .Synopsis -Updates site tags. +Create an in-memory object for SliceConfiguration. .Description -Updates site tags. +Create an in-memory object for SliceConfiguration. .Example -Update-AzMobileNetworkSite -MobileNetworkName azps-mn -SiteName azps-mn-site -ResourceGroupName azps_test_group -Tag @{"site"="123"} +$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" -.Inputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISite +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. -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. +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 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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. .Link -https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworksite +https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkSliceConfigurationObject #> -function Update-AzMobileNetworkSite { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISite])] -[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function New-AzMobileNetworkSliceConfigurationObject { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SliceConfiguration])] +[CmdletBinding(PositionalBinding=$false)] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [System.String] - # The name of the mobile network. - ${MobileNetworkName}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [System.String] - # The name of the mobile network site. - ${SiteName}, + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetworkConfiguration[]] + # 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. + # To construct, see NOTES section for DATANETWORKCONFIGURATION properties and create a hash table. + ${DataNetworkConfiguration}, - [Parameter(ParameterSetName='UpdateExpanded')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.String] - # The ID of the target subscription. - ${SubscriptionId}, - - [Parameter(ParameterSetName='UpdateViaIdentityExpanded', 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}, + # Data network resource ID. + ${DefaultDataNetworkId}, - [Parameter()] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] - [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(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} + [System.String] + # Slice resource ID. + ${SliceId} ) begin { @@ -8890,7 +8873,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -8907,11 +8890,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSite_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSite_UpdateViaIdentityExpanded'; - } - if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { - $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id + __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkSliceConfigurationObject'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) @@ -8961,76 +8940,167 @@ end { <# .Synopsis -Updates slice tags. +Updates an attached data network. .Description -Updates slice tags. +Updates an attached data network. .Example -Update-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Tag @{"abc"="123"} +Update-AzMobileNetworkAttachedDataNetwork -AttachedDataNetworkName azps-mn-adn -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps_test_group -ResourceGroupName -Tag @{"abc"="123"} .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. +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork .Link -https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkslice +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkattacheddatanetwork #> -function Update-AzMobileNetworkSlice { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice])] +function Update-AzMobileNetworkAttachedDataNetwork { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The name of the mobile network. - ${MobileNetworkName}, + # The name of the attached data network. + ${AttachedDataNetworkName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, + # The name of the packet core control plane. + ${PacketCoreControlPlaneName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The name of the network slice. - ${SliceName}, + # The name of the packet core data plane. + ${PacketCoreDataPlaneName}, - [Parameter(ParameterSetName='UpdateExpanded')] + [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(ParameterSetName='UpdateViaIdentityExpanded', 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()] + [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()] + [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()] + [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()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] @@ -9044,7 +9114,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -9096,7 +9167,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -9113,8 +9184,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSlice_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSlice_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkAttachedDataNetwork'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -9167,70 +9237,54 @@ end { <# .Synopsis -Updates mobile network tags. +Updates data network. .Description -Updates mobile network tags. +Updates data network. .Example -Update-AzMobileNetwork -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -Tag @{"123"="abc"} +Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="`12"} .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. +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork .Link -https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetwork +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkdatanetwork #> -function Update-AzMobileNetwork { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IMobileNetwork])] +function Update-AzMobileNetworkDataNetwork { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the data network. + ${DataNetworkName}, + + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the mobile network. ${MobileNetworkName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='UpdateExpanded')] + [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(ParameterSetName='UpdateViaIdentityExpanded', 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()] + [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')] @@ -9244,7 +9298,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -9296,7 +9351,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -9313,8 +9368,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetwork_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetwork_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkDataNetwork'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id @@ -9367,117 +9421,235 @@ end { <# .Synopsis -Create an in-memory object for DataNetworkConfiguration. +Updates packet core control planes. .Description -Create an in-memory object for DataNetworkConfiguration. +Updates packet core control planes. .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' +Update-AzMobileNetworkPacketCoreControlPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Tag @{"abc"="123"} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkConfiguration +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. -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. +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-AzMobileNetworkDataNetworkConfigurationObject +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkpacketcorecontrolplane #> -function New-AzMobileNetworkDataNetworkConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.DataNetworkConfiguration])] -[CmdletBinding(PositionalBinding=$false)] +function Update-AzMobileNetworkPacketCoreControlPlane { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] 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}, + [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()] + [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()] + [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()] + [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()] + [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] - # Data network resource ID. - ${DataNetworkId}, + # Azure Stack Edge device resource ID. + ${AzureStackEdgeDeviceId}, - [Parameter(Mandatory)] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.String] - # Downlink bit rate. - ${SessionAmbrDownlink}, + # Azure Stack HCI cluster resource ID. + ${AzureStackHciClusterId}, - [Parameter(Mandatory)] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.String] - # Uplink bit rate. - ${SessionAmbrUplink}, + # Azure Arc connected cluster resource ID. + ${ConnectedClusterId}, [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}, + [System.String] + # The IPv4 address. + ${ControlPlaneAccessInterfaceIpv4Address}, [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}, + [System.String] + # The default IPv4 gateway (router). + ${ControlPlaneAccessInterfaceIpv4Gateway}, [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}, + [System.String] + # The IPv4 subnet. + ${ControlPlaneAccessInterfaceIpv4Subnet}, [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}, + [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.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings]))] + [System.Collections.Hashtable] + # Settings to allow interoperability with third party components e.g. + # RANs and UEs. + ${InteropSetting}, [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}, + # 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()] - [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}, + [System.String] + # The version of the packet core software that is deployed. + ${Version}, [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} + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 { @@ -9489,7 +9661,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -9506,7 +9678,10 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkDataNetworkConfigurationObject'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkPacketCoreControlPlane'; + } + if (('UpdateExpanded') -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) @@ -9556,125 +9731,128 @@ end { <# .Synopsis -Create an in-memory object for PccRuleConfiguration. +Updates packet core data planes. .Description -Create an in-memory object for PccRuleConfiguration. +Updates packet core data planes. .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" +Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity .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`]. +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane .Link -https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkPccRuleConfigurationObject +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkpacketcoredataplane #> -function New-AzMobileNetworkPccRuleConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PccRuleConfiguration])] -[CmdletBinding(PositionalBinding=$false)] +function Update-AzMobileNetworkPacketCoreDataPlane { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [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}, + # The name of the packet core control plane. + ${PacketCoreControlPlaneName}, [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}, + [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('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')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # Downlink bit rate. - ${GuaranteedBitRateDownlink}, + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Uplink bit rate. - ${GuaranteedBitRateUplink}, + # The ID of the target subscription. + ${SubscriptionId}, [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}, + [System.String] + # The IPv4 address. + ${UserPlaneAccessInterfaceIpv4Address}, [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}, + [System.String] + # The default IPv4 gateway (router). + ${UserPlaneAccessInterfaceIpv4Gateway}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.String] - # Downlink bit rate. - ${RuleQoPolicyMaximumBitRateDownlink}, + # The IPv4 subnet. + ${UserPlaneAccessInterfaceIpv4Subnet}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.String] - # Uplink bit rate. - ${RuleQoPolicyMaximumBitRateUplink}, + # The logical name for this interface. + # This should match one of the interfaces configured on your Azure Stack Edge device. + ${UserPlaneAccessInterfaceName}, [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}, + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, [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}, + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, - [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} + [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 { @@ -9686,7 +9864,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -9703,7 +9881,10 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkPccRuleConfigurationObject'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkPacketCoreDataPlane'; + } + if (('UpdateExpanded') -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) @@ -9753,164 +9934,193 @@ end { <# .Synopsis -Create an in-memory object for ServiceDataFlowTemplate. +Updates service. .Description -Create an in-memory object for ServiceDataFlowTemplate. +Updates service. .Example -New-AzMobileNetworkServiceDataFlowTemplateObject -Direction "Bidirectional" -Protocol "255" -RemoteIPList "any" -TemplateName azps-mn-flow-template +Update-AzMobileNetworkService -MobileNetworkName azps-mn -ServiceName azps-mn-service -ResourceGroupName azps_test_group -Tag @{"abc"="123"} -ServicePrecedence 0 +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceDataFlowTemplate +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 ]: 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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-AzMobileNetworkServiceDataFlowTemplateObject +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkservice #> -function New-AzMobileNetworkServiceDataFlowTemplateObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ServiceDataFlowTemplate])] -[CmdletBinding(PositionalBinding=$false)] +function Update-AzMobileNetworkService { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] 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}, + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the mobile network. + ${MobileNetworkName}, [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}, + [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' + ${ServiceName}, [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}, + [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.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()] + [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()] + [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}, + # Downlink bit rate. + ${MaximumBitRateDownlink}, [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} -) + [System.String] + # Uplink bit rate. + ${MaximumBitRateUplink}, -begin { - try { - $outBuffer = $null - if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { - $PSBoundParameters['OutBuffer'] = 1 - } - $parameterSet = $PSCmdlet.ParameterSetName + [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}, - 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' - } + [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}, - $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 - } -} + [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}, -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } + [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}, - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, -} -end { - try { - $steppablePipeline.End() + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, - [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 + [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}, - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} + [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}, -<# -.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" + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, -.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} + [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 { @@ -9922,7 +10132,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -9939,7 +10149,10 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkServiceResourceIdObject'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkService'; + } + if (('UpdateExpanded') -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) @@ -9989,29 +10202,28 @@ end { <# .Synopsis -Creates or updates a SIM group. +Updates SIM group. .Description -Creates or updates a SIM group. +Updates 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" +Update-AzMobileNetworkSimGroup -SimGroupName azps-mn-simgroup -ResourceGroupName azps_test_group -Tag @{"abc"="123"} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity .Outputs Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup .Link -https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworksimgroup +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworksimgroup #> -function New-AzMobileNetworkSimGroup { +function Update-AzMobileNetworkSimGroup { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', 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}, + ${SimGroupName}, [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] @@ -10027,18 +10239,6 @@ param( # 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] @@ -10064,7 +10264,13 @@ param( [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.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.Api20221101.ITagsObjectTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -10074,15 +10280,10 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${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] @@ -10103,12 +10304,6 @@ param( # 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] @@ -10138,7 +10333,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -10155,9 +10350,9 @@ begin { } $mapping = @{ - CreateExpanded = 'Az.MobileNetwork.custom\New-AzMobileNetworkSimGroup'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkSimGroup'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } $cmdInfo = Get-Command -Name $mapping[$parameterSet] @@ -10208,39 +10403,164 @@ end { <# .Synopsis -Create an in-memory object for SimStaticIPProperties. +Updates SIM policy. .Description -Create an in-memory object for SimStaticIPProperties. +Updates SIM policy. .Example -New-AzMobileNetworkSimStaticIPPropertiesObject -StaticIPIpv4Address 10.0.0.20 +Update-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -SimPolicyName azps-mn-simpolicy -ResourceGroupName azps_test_group -Tag @{"abc"="123"} +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimStaticIPProperties +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 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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-AzMobileNetworkSimStaticIPPropertiesObject +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworksimpolicy #> -function New-AzMobileNetworkSimStaticIPPropertiesObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimStaticIPProperties])] -[CmdletBinding(PositionalBinding=$false)] +function Update-AzMobileNetworkSimPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', 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 SIM policy. + ${SimPolicyName}, + + [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()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] [System.String] - # Attached data network resource ID. - ${AttachedDataNetworkId}, + # Slice resource ID. + ${DefaultSliceId}, + + [Parameter()] + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [System.String] + # Downlink bit rate. + ${UeAmbrDownlink}, + + [Parameter()] + [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.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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()] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] - [System.String] - # Slice resource ID. - ${SliceId}, + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, - [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} + [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 { @@ -10252,7 +10572,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -10269,7 +10589,10 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkSimStaticIPPropertiesObject'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkSimPolicy'; + } + if (('UpdateExpanded') -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) @@ -10319,160 +10642,121 @@ end { <# .Synopsis -Create an in-memory object for SiteResourceId. +Updates slice. .Description -Create an in-memory object for SiteResourceId. +Updates slice. .Example -New-AzMobileNetworkSiteResourceIdObject -Id "/subscriptions/{subId}/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn/sites/azps-mn-site" +Update-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Tag @{"abc"="123"} -SnssaiSst 1 +.Inputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteResourceId +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice .Link -https://learn.microsoft.com/powershell/module/az.MobileNetwork/new-AzMobileNetworkSiteResourceIdObject +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkslice #> -function New-AzMobileNetworkSiteResourceIdObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SiteResourceId])] -[CmdletBinding(PositionalBinding=$false)] +function Update-AzMobileNetworkSlice { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [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' - } + # The name of the mobile network. + ${MobileNetworkName}, - $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 - } -} + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the network slice. + ${SliceName}, -process { - try { - $steppablePipeline.Process($_) - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, - finally { - $backupTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId - $backupInternalCalledCmdlets = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::InternalCalledCmdlets - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - } + [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}, -} -end { - try { - $steppablePipeline.End() + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [System.Int32] + # Slice/service type (SST). + ${SnssaiSst}, - [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 + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [System.String] + # An optional description for this network slice. + ${Description}, - } catch { - [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::ClearTelemetryContext() - throw - } -} -} + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [System.String] + # Slice differentiator (SD). + ${SnssaiSd}, -<# -.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" + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, -$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' + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, -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" + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Wait for .NET debugger to attach + ${Break}, -.Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SliceConfiguration -.Notes -COMPLEX PARAMETER PROPERTIES + [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}, -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. + [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}, -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. -.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)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetworkConfiguration[]] - # 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. - # To construct, see NOTES section for DATANETWORKCONFIGURATION properties and create a hash table. - ${DataNetworkConfiguration}, + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] + [System.Uri] + # The URI for the proxy server to use + ${Proxy}, - [Parameter(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] - [System.String] - # Data network resource ID. - ${DefaultDataNetworkId}, + [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(Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] - [System.String] - # Slice resource ID. - ${SliceId} + [Parameter(DontShow)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] + [System.Management.Automation.SwitchParameter] + # Use the default credentials for the proxy + ${ProxyUseDefaultCredentials} ) begin { @@ -10484,7 +10768,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -10501,7 +10785,10 @@ begin { } $mapping = @{ - __AllParameterSets = 'Az.MobileNetwork.custom\New-AzMobileNetworkSliceConfigurationObject'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkSlice'; + } + if (('UpdateExpanded') -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) diff --git a/src/MobileNetwork/exports/Remove-AzMobileNetwork.ps1 b/src/MobileNetwork/exports/Remove-AzMobileNetwork.ps1 index 3b2c7ff338fa..fdb9b12ac457 100644 --- a/src/MobileNetwork/exports/Remove-AzMobileNetwork.ps1 +++ b/src/MobileNetwork/exports/Remove-AzMobileNetwork.ps1 @@ -87,7 +87,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -157,7 +158,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Remove-AzMobileNetworkAttachedDataNetwork.ps1 b/src/MobileNetwork/exports/Remove-AzMobileNetworkAttachedDataNetwork.ps1 index 76a5bee1e7a0..4bf7b556ab12 100644 --- a/src/MobileNetwork/exports/Remove-AzMobileNetworkAttachedDataNetwork.ps1 +++ b/src/MobileNetwork/exports/Remove-AzMobileNetworkAttachedDataNetwork.ps1 @@ -99,7 +99,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -169,7 +170,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Remove-AzMobileNetworkDataNetwork.ps1 b/src/MobileNetwork/exports/Remove-AzMobileNetworkDataNetwork.ps1 index def3bd92e2b9..24e08562df4d 100644 --- a/src/MobileNetwork/exports/Remove-AzMobileNetworkDataNetwork.ps1 +++ b/src/MobileNetwork/exports/Remove-AzMobileNetworkDataNetwork.ps1 @@ -93,7 +93,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -163,7 +164,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Remove-AzMobileNetworkPacketCoreControlPlane.ps1 b/src/MobileNetwork/exports/Remove-AzMobileNetworkPacketCoreControlPlane.ps1 index fdaf077dc689..d3df5c15c9f9 100644 --- a/src/MobileNetwork/exports/Remove-AzMobileNetworkPacketCoreControlPlane.ps1 +++ b/src/MobileNetwork/exports/Remove-AzMobileNetworkPacketCoreControlPlane.ps1 @@ -87,7 +87,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -157,7 +158,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Remove-AzMobileNetworkPacketCoreDataPlane.ps1 b/src/MobileNetwork/exports/Remove-AzMobileNetworkPacketCoreDataPlane.ps1 index f8679dd50e56..0f18b7cc3a7a 100644 --- a/src/MobileNetwork/exports/Remove-AzMobileNetworkPacketCoreDataPlane.ps1 +++ b/src/MobileNetwork/exports/Remove-AzMobileNetworkPacketCoreDataPlane.ps1 @@ -93,7 +93,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -163,7 +164,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Remove-AzMobileNetworkService.ps1 b/src/MobileNetwork/exports/Remove-AzMobileNetworkService.ps1 index ef61113cfe6f..66b6a41f43ca 100644 --- a/src/MobileNetwork/exports/Remove-AzMobileNetworkService.ps1 +++ b/src/MobileNetwork/exports/Remove-AzMobileNetworkService.ps1 @@ -94,7 +94,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -164,7 +165,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Remove-AzMobileNetworkSim.ps1 b/src/MobileNetwork/exports/Remove-AzMobileNetworkSim.ps1 index 44317d9fc664..36be2a214e1d 100644 --- a/src/MobileNetwork/exports/Remove-AzMobileNetworkSim.ps1 +++ b/src/MobileNetwork/exports/Remove-AzMobileNetworkSim.ps1 @@ -94,7 +94,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -164,7 +165,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Remove-AzMobileNetworkSimGroup.ps1 b/src/MobileNetwork/exports/Remove-AzMobileNetworkSimGroup.ps1 index 835313787760..d38d3edbd1b0 100644 --- a/src/MobileNetwork/exports/Remove-AzMobileNetworkSimGroup.ps1 +++ b/src/MobileNetwork/exports/Remove-AzMobileNetworkSimGroup.ps1 @@ -87,7 +87,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -157,7 +158,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Remove-AzMobileNetworkSimPolicy.ps1 b/src/MobileNetwork/exports/Remove-AzMobileNetworkSimPolicy.ps1 index 5159bff0f7b6..6a8e0cbb1fa5 100644 --- a/src/MobileNetwork/exports/Remove-AzMobileNetworkSimPolicy.ps1 +++ b/src/MobileNetwork/exports/Remove-AzMobileNetworkSimPolicy.ps1 @@ -93,7 +93,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -163,7 +164,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Remove-AzMobileNetworkSite.ps1 b/src/MobileNetwork/exports/Remove-AzMobileNetworkSite.ps1 index cf319ee0d451..f015db29c012 100644 --- a/src/MobileNetwork/exports/Remove-AzMobileNetworkSite.ps1 +++ b/src/MobileNetwork/exports/Remove-AzMobileNetworkSite.ps1 @@ -95,7 +95,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -165,7 +166,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Remove-AzMobileNetworkSlice.ps1 b/src/MobileNetwork/exports/Remove-AzMobileNetworkSlice.ps1 index fdd74053e706..dcbaf14dda04 100644 --- a/src/MobileNetwork/exports/Remove-AzMobileNetworkSlice.ps1 +++ b/src/MobileNetwork/exports/Remove-AzMobileNetworkSlice.ps1 @@ -92,7 +92,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter()] @@ -162,7 +163,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Update-AzMobileNetwork.ps1 b/src/MobileNetwork/exports/Update-AzMobileNetwork.ps1 index e0bd9f1506ea..5baf02b8c5d3 100644 --- a/src/MobileNetwork/exports/Update-AzMobileNetwork.ps1 +++ b/src/MobileNetwork/exports/Update-AzMobileNetwork.ps1 @@ -93,7 +93,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -145,7 +146,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Update-AzMobileNetworkAttachedDataNetwork.ps1 b/src/MobileNetwork/exports/Update-AzMobileNetworkAttachedDataNetwork.ps1 index 3f09627ab5c1..abd3d38ab6d6 100644 --- a/src/MobileNetwork/exports/Update-AzMobileNetworkAttachedDataNetwork.ps1 +++ b/src/MobileNetwork/exports/Update-AzMobileNetworkAttachedDataNetwork.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Updates an attached data network tags. +Updates an attached data network. .Description -Updates an attached data network tags. +Updates an attached data network. .Example Update-AzMobileNetworkAttachedDataNetwork -AttachedDataNetworkName azps-mn-adn -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps_test_group -ResourceGroupName -Tag @{"abc"="123"} @@ -26,27 +26,6 @@ Update-AzMobileNetworkAttachedDataNetwork -AttachedDataNetworkName azps-mn-adn - 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/update-azmobilenetworkattacheddatanetwork #> @@ -54,44 +33,150 @@ function Update-AzMobileNetworkAttachedDataNetwork { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the attached data network. ${AttachedDataNetworkName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the packet core control plane. ${PacketCoreControlPlaneName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the packet core data plane. ${PacketCoreDataPlaneName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='UpdateExpanded')] + [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(ParameterSetName='UpdateViaIdentityExpanded', 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()] + [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()] + [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()] + [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()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] @@ -105,7 +190,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -157,7 +243,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -174,8 +260,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkAttachedDataNetwork_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkAttachedDataNetwork_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkAttachedDataNetwork'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/MobileNetwork/exports/Update-AzMobileNetworkDataNetwork.ps1 b/src/MobileNetwork/exports/Update-AzMobileNetworkDataNetwork.ps1 index 478a2c3e8542..8a9644a7961f 100644 --- a/src/MobileNetwork/exports/Update-AzMobileNetworkDataNetwork.ps1 +++ b/src/MobileNetwork/exports/Update-AzMobileNetworkDataNetwork.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Updates data network tags. +Updates data network. .Description -Updates data network tags. +Updates data network. .Example Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="`12"} @@ -26,27 +26,6 @@ Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName az 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/update-azmobilenetworkdatanetwork #> @@ -54,38 +33,37 @@ function Update-AzMobileNetworkDataNetwork { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the data network. ${DataNetworkName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the mobile network. ${MobileNetworkName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='UpdateExpanded')] + [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(ParameterSetName='UpdateViaIdentityExpanded', 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()] + [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')] @@ -99,7 +77,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -151,7 +130,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -168,8 +147,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkDataNetwork_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkDataNetwork_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkDataNetwork'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/MobileNetwork/exports/Update-AzMobileNetworkPacketCoreControlPlane.ps1 b/src/MobileNetwork/exports/Update-AzMobileNetworkPacketCoreControlPlane.ps1 index 2b8753348e25..161f0b3b8461 100644 --- a/src/MobileNetwork/exports/Update-AzMobileNetworkPacketCoreControlPlane.ps1 +++ b/src/MobileNetwork/exports/Update-AzMobileNetworkPacketCoreControlPlane.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Updates packet core control planes tags. +Updates packet core control planes. .Description -Updates packet core control planes tags. +Updates packet core control planes. .Example Update-AzMobileNetworkPacketCoreControlPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Tag @{"abc"="123"} @@ -31,22 +31,8 @@ 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. +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/update-azmobilenetworkpacketcorecontrolplane #> @@ -54,32 +40,156 @@ function Update-AzMobileNetworkPacketCoreControlPlane { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the packet core control plane. ${PacketCoreControlPlaneName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='UpdateExpanded')] + [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(ParameterSetName='UpdateViaIdentityExpanded', 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()] + [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()] + [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()] + [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()] + [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.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlanePropertiesFormatInteropSettings]))] + [System.Collections.Hashtable] + # Settings to allow interoperability with third party components e.g. + # RANs and UEs. + ${InteropSetting}, + + [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()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] @@ -93,7 +203,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -145,7 +256,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -162,8 +273,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkPacketCoreControlPlane_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkPacketCoreControlPlane_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkPacketCoreControlPlane'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/MobileNetwork/exports/Update-AzMobileNetworkPacketCoreDataPlane.ps1 b/src/MobileNetwork/exports/Update-AzMobileNetworkPacketCoreDataPlane.ps1 index 3a411a1cad46..cdf1a312bd15 100644 --- a/src/MobileNetwork/exports/Update-AzMobileNetworkPacketCoreDataPlane.ps1 +++ b/src/MobileNetwork/exports/Update-AzMobileNetworkPacketCoreDataPlane.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Updates packet core data planes tags. +Updates packet core data planes. .Description -Updates packet core data planes tags. +Updates packet core data planes. .Example Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123} @@ -26,27 +26,6 @@ Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pc 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/update-azmobilenetworkpacketcoredataplane #> @@ -54,38 +33,56 @@ function Update-AzMobileNetworkPacketCoreDataPlane { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the packet core control plane. ${PacketCoreControlPlaneName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the packet core data plane. ${PacketCoreDataPlaneName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the resource group. # The name is case insensitive. ${ResourceGroupName}, - [Parameter(ParameterSetName='UpdateExpanded')] + [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(ParameterSetName='UpdateViaIdentityExpanded', 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()] + [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()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] @@ -99,7 +96,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -151,7 +149,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -168,8 +166,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkPacketCoreDataPlane_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkPacketCoreDataPlane_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkPacketCoreDataPlane'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/MobileNetwork/exports/Update-AzMobileNetworkService.ps1 b/src/MobileNetwork/exports/Update-AzMobileNetworkService.ps1 index a50cc2436f25..df16e56ba2a8 100644 --- a/src/MobileNetwork/exports/Update-AzMobileNetworkService.ps1 +++ b/src/MobileNetwork/exports/Update-AzMobileNetworkService.ps1 @@ -16,11 +16,11 @@ <# .Synopsis -Updates service tags. +Updates service. .Description -Updates service tags. +Updates service. .Example -Update-AzMobileNetworkService -MobileNetworkName azps-mn -ServiceName azps-mn-service -ResourceGroupName azps_test_group -Tag @{"abc"="123"} +Update-AzMobileNetworkService -MobileNetworkName azps-mn -ServiceName azps-mn-service -ResourceGroupName azps_test_group -Tag @{"abc"="123"} -ServicePrecedence 0 .Inputs Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity @@ -31,22 +31,24 @@ 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. +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 ]: 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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/update-azmobilenetworkservice #> @@ -54,39 +56,98 @@ function Update-AzMobileNetworkService { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the mobile network. ${MobileNetworkName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] - [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, - - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [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' ${ServiceName}, - [Parameter(ParameterSetName='UpdateExpanded')] + [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(ParameterSetName='UpdateViaIdentityExpanded', 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(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()] + [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()] + [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')] @@ -100,7 +161,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -152,7 +214,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -169,8 +231,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkService_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkService_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkService'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/MobileNetwork/exports/Update-AzMobileNetworkSimGroup.ps1 b/src/MobileNetwork/exports/Update-AzMobileNetworkSimGroup.ps1 index 73b2a72d2a3f..79ad1e74f5f3 100644 --- a/src/MobileNetwork/exports/Update-AzMobileNetworkSimGroup.ps1 +++ b/src/MobileNetwork/exports/Update-AzMobileNetworkSimGroup.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Updates SIM group tags. +Updates SIM group. .Description -Updates SIM group tags. +Updates SIM group. .Example Update-AzMobileNetworkSimGroup -SimGroupName azps-mn-simgroup -ResourceGroupName azps_test_group -Tag @{"abc"="123"} @@ -26,27 +26,6 @@ Update-AzMobileNetworkSimGroup -SimGroupName azps-mn-simgroup -ResourceGroupName 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/update-azmobilenetworksimgroup #> @@ -54,32 +33,54 @@ function Update-AzMobileNetworkSimGroup { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, + # The name of the SIM Group. + ${SimGroupName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The name of the SIM Group. - ${SimGroupName}, + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, - [Parameter(ParameterSetName='UpdateExpanded')] + [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(ParameterSetName='UpdateViaIdentityExpanded', 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()] + [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')] + [System.String] + # Mobile network resource ID. + ${MobileNetworkId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] @@ -93,7 +94,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -145,7 +147,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -162,8 +164,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSimGroup_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSimGroup_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkSimGroup'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/MobileNetwork/exports/Update-AzMobileNetworkSimPolicy.ps1 b/src/MobileNetwork/exports/Update-AzMobileNetworkSimPolicy.ps1 index 10f297d35f3a..e0028e267140 100644 --- a/src/MobileNetwork/exports/Update-AzMobileNetworkSimPolicy.ps1 +++ b/src/MobileNetwork/exports/Update-AzMobileNetworkSimPolicy.ps1 @@ -16,9 +16,9 @@ <# .Synopsis -Updates SIM policy tags. +Updates SIM policy. .Description -Updates SIM policy tags. +Updates SIM policy. .Example Update-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -SimPolicyName azps-mn-simpolicy -ResourceGroupName azps_test_group -Tag @{"abc"="123"} @@ -31,22 +31,22 @@ 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. +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 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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/update-azmobilenetworksimpolicy #> @@ -54,38 +54,71 @@ function Update-AzMobileNetworkSimPolicy { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the mobile network. ${MobileNetworkName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, + # The name of the SIM policy. + ${SimPolicyName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The name of the SIM policy. - ${SimPolicyName}, + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, - [Parameter(ParameterSetName='UpdateExpanded')] + [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(ParameterSetName='UpdateViaIdentityExpanded', 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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [System.String] + # Slice resource ID. + ${DefaultSliceId}, + + [Parameter()] + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [System.String] + # Downlink bit rate. + ${UeAmbrDownlink}, + + [Parameter()] + [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')] @@ -99,7 +132,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -151,7 +185,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -168,8 +202,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSimPolicy_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSimPolicy_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkSimPolicy'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/MobileNetwork/exports/Update-AzMobileNetworkSite.ps1 b/src/MobileNetwork/exports/Update-AzMobileNetworkSite.ps1 index 3d189945064e..959942a09b76 100644 --- a/src/MobileNetwork/exports/Update-AzMobileNetworkSite.ps1 +++ b/src/MobileNetwork/exports/Update-AzMobileNetworkSite.ps1 @@ -99,7 +99,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -151,7 +152,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { diff --git a/src/MobileNetwork/exports/Update-AzMobileNetworkSlice.ps1 b/src/MobileNetwork/exports/Update-AzMobileNetworkSlice.ps1 index c26a78424a6e..f1d713a1104b 100644 --- a/src/MobileNetwork/exports/Update-AzMobileNetworkSlice.ps1 +++ b/src/MobileNetwork/exports/Update-AzMobileNetworkSlice.ps1 @@ -16,37 +16,16 @@ <# .Synopsis -Updates slice tags. +Updates slice. .Description -Updates slice tags. +Updates slice. .Example -Update-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Tag @{"abc"="123"} +Update-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Tag @{"abc"="123"} -SnssaiSst 1 .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/update-azmobilenetworkslice #> @@ -54,38 +33,49 @@ function Update-AzMobileNetworkSlice { [OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] # The name of the mobile network. ${MobileNetworkName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The name of the resource group. - # The name is case insensitive. - ${ResourceGroupName}, + # The name of the network slice. + ${SliceName}, - [Parameter(ParameterSetName='UpdateExpanded', Mandatory)] + [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The name of the network slice. - ${SliceName}, + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, - [Parameter(ParameterSetName='UpdateExpanded')] + [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(ParameterSetName='UpdateViaIdentityExpanded', 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(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')] @@ -99,7 +89,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -151,7 +142,7 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) { - [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() + [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() } $preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId if ($preTelemetryId -eq '') { @@ -168,8 +159,7 @@ begin { } $mapping = @{ - UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSlice_UpdateExpanded'; - UpdateViaIdentityExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSlice_UpdateViaIdentityExpanded'; + UpdateExpanded = 'Az.MobileNetwork.custom\Update-AzMobileNetworkSlice'; } if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id diff --git a/src/MobileNetwork/generate-info.json b/src/MobileNetwork/generate-info.json index 20e7c72afb14..9d5f129017d4 100644 --- a/src/MobileNetwork/generate-info.json +++ b/src/MobileNetwork/generate-info.json @@ -1,8 +1,8 @@ { - "swagger_commit": "dea4d453ca250eae677d69751d909df00d6b6b05", + "swagger_commit": "6b992c049ed7d6a95465d5c0a2234fc54c87b9bf", "node": "v14.15.5", "autorest": "`-- (empty)", "autorest_core": "3.9.4", "autorest_modelerfour": "4.15.414", - "autorest_powershell": "3.0.498" + "autorest_powershell": "3.0.504" } diff --git a/src/MobileNetwork/generated/api/MobileNetwork.cs b/src/MobileNetwork/generated/api/MobileNetwork.cs index 37ff7e9ee6ad..b61112171713 100644 --- a/src/MobileNetwork/generated/api/MobileNetwork.cs +++ b/src/MobileNetwork/generated/api/MobileNetwork.cs @@ -3698,14 +3698,8 @@ public partial class MobileNetwork } } - /// - /// Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to - /// a storage account. - /// - /// The name of the resource group. The name is case insensitive. - /// The name of the packet core control plane. - /// The ID of the target subscription. - /// Parameters supplied to the packet core control plane collect diagnostics package operation. + /// Gets information about the specified packet core control plane version. + /// The name of the packet core control plane version. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3714,7 +3708,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlaneCollectDiagnosticsPackage(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneCollectDiagnosticsPackage body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsGet(string versionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -3722,13 +3716,8 @@ public partial class MobileNetwork { // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" - + global::System.Uri.EscapeDataString(packetCoreControlPlaneName) - + "/collectDiagnosticsPackage" + "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions/" + + global::System.Uri.EscapeDataString(versionName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3737,25 +3726,17 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlaneCollectDiagnosticsPackage_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlaneVersionsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to - /// a storage account. - /// + /// Gets information about the specified packet core control plane version. /// - /// Parameters supplied to the packet core control plane collect diagnostics package operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -3764,7 +3745,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlaneCollectDiagnosticsPackageViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneCollectDiagnosticsPackage body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -3772,25 +3753,18 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/collectDiagnosticsPackage'"); + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions/{versionName}'"); } // replace URI parameters with values from identity - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var packetCoreControlPlaneName = _match.Groups["packetCoreControlPlaneName"].Value; - var subscriptionId = _match.Groups["subscriptionId"].Value; + var versionName = _match.Groups["versionName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" - + packetCoreControlPlaneName - + "/collectDiagnosticsPackage" + "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions/" + + versionName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -3799,22 +3773,16 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlaneCollectDiagnosticsPackage_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlaneVersionsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -3824,7 +3792,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneCollectDiagnosticsPackage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3835,103 +3803,6 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -3939,7 +3810,7 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AsyncOperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneVersion.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -3961,41 +3832,23 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual - /// call, but you will get validation events back. + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. /// - /// The name of the resource group. The name is case insensitive. - /// The name of the packet core control plane. - /// The ID of the target subscription. - /// Parameters supplied to the packet core control plane collect diagnostics package operation. + /// The name of the packet core control plane version. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneCollectDiagnosticsPackage_Validate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneCollectDiagnosticsPackage body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsGet_Validate(string versionName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName); - await eventListener.AssertMaximumLength(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,64); - await eventListener.AssertRegEx(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertNotNull(nameof(versionName),versionName); } } - /// - /// Reinstall the specified packet core control plane. This action will remove any transaction state from the packet core - /// to return it to a known state. This action will cause a service outage. - /// - /// The name of the resource group. The name is case insensitive. - /// The name of the packet core control plane. - /// The ID of the target subscription. + /// Lists all supported packet core control planes versions. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4004,7 +3857,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlaneReinstall(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -4012,13 +3865,7 @@ public partial class MobileNetwork { // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" - + global::System.Uri.EscapeDataString(packetCoreControlPlaneName) - + "/reinstall" + "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4027,19 +3874,16 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlaneReinstall_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlaneVersionsList_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Reinstall the specified packet core control plane. This action will remove any transaction state from the packet core - /// to return it to a known state. This action will cause a service outage. - /// + /// Lists all supported packet core control planes versions. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4049,7 +3893,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlaneReinstallViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -4057,25 +3901,16 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/reinstall'"); + throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions'"); } // replace URI parameters with values from identity - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var packetCoreControlPlaneName = _match.Groups["packetCoreControlPlaneName"].Value; - var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" - + packetCoreControlPlaneName - + "/reinstall" + "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4084,16 +3919,16 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlaneReinstall_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlaneVersionsList_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4103,7 +3938,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneReinstall_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4114,28 +3949,209 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + var _contentType = _response.Content.Headers.ContentType?.MediaType; - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneVersionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. + /// + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + + } + } + + /// + /// Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to + /// a storage account. + /// + /// The name of the resource group. The name is case insensitive. + /// The name of the packet core control plane. + /// The ID of the target subscription. + /// Parameters supplied to the packet core control plane collect diagnostics package operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesCollectDiagnosticsPackage(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneCollectDiagnosticsPackage body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" + + global::System.Uri.EscapeDataString(packetCoreControlPlaneName) + + "/collectDiagnosticsPackage" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PacketCoreControlPlanesCollectDiagnosticsPackage_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Collect a diagnostics package for the specified packet core control plane. This action will upload the diagnostics to + /// a storage account. + /// + /// + /// Parameters supplied to the packet core control plane collect diagnostics package operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesCollectDiagnosticsPackageViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneCollectDiagnosticsPackage body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/collectDiagnosticsPackage'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var packetCoreControlPlaneName = _match.Groups["packetCoreControlPlaneName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" + + packetCoreControlPlaneName + + "/collectDiagnosticsPackage" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.PacketCoreControlPlanesCollectDiagnosticsPackage_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Actual wire call for method. + /// + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesCollectDiagnosticsPackage_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); } var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); @@ -4240,17 +4256,18 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual + /// call, but you will get validation events back. /// /// The name of the resource group. The name is case insensitive. /// The name of the packet core control plane. /// The ID of the target subscription. + /// Parameters supplied to the packet core control plane collect diagnostics package operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneReinstall_Validate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesCollectDiagnosticsPackage_Validate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlaneCollectDiagnosticsPackage body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4262,16 +4279,16 @@ public partial class MobileNetwork await eventListener.AssertRegEx(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// - /// Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple consecutive rollbacks - /// are not possible. This action may cause a service outage. - /// + /// Creates or updates a packet core control plane. /// The name of the resource group. The name is case insensitive. /// The name of the packet core control plane. /// The ID of the target subscription. + /// Parameters supplied to the create or update packet core control plane operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4280,7 +4297,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlaneRollback(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesCreateOrUpdate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -4294,7 +4311,6 @@ public partial class MobileNetwork + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" + global::System.Uri.EscapeDataString(packetCoreControlPlaneName) - + "/rollback" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4303,20 +4319,22 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlaneRollback_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple consecutive rollbacks - /// are not possible. This action may cause a service outage. - /// + /// Creates or updates a packet core control plane. /// + /// Parameters supplied to the create or update packet core control plane operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4325,7 +4343,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlaneRollbackViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -4336,7 +4354,7 @@ public partial class MobileNetwork var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/rollback'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}'"); } // replace URI parameters with values from identity @@ -4351,7 +4369,6 @@ public partial class MobileNetwork + resourceGroupName + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" + packetCoreControlPlaneName - + "/rollback" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4360,16 +4377,22 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlaneRollback_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4379,7 +4402,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneRollback_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4392,8 +4415,7 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -4477,7 +4499,7 @@ public partial class MobileNetwork } // we are done polling, do a request on final target? // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); // drop the old response _response?.Dispose(); @@ -4494,7 +4516,7 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AsyncOperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlane.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -4516,17 +4538,18 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but + /// you will get validation events back. /// /// The name of the resource group. The name is case insensitive. /// The name of the packet core control plane. /// The ID of the target subscription. + /// Parameters supplied to the create or update packet core control plane operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneRollback_Validate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesCreateOrUpdate_Validate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -4538,12 +4561,17 @@ public partial class MobileNetwork await eventListener.AssertRegEx(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Gets information about the specified packet core control plane version. - /// The name of the packet core control plane version. + /// Deletes the specified packet core control plane. + /// The name of the resource group. The name is case insensitive. + /// The name of the packet core control plane. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4551,7 +4579,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsGet(string versionName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesDelete(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -4559,28 +4587,33 @@ public partial class MobileNetwork { // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions/" - + global::System.Uri.EscapeDataString(versionName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" + + global::System.Uri.EscapeDataString(packetCoreControlPlaneName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlaneVersionsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// Gets information about the specified packet core control plane version. + /// Deletes the specified packet core control plane. /// /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4588,7 +4621,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -4596,18 +4629,24 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions/{versionName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}'"); } // replace URI parameters with values from identity - var versionName = _match.Groups["versionName"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var packetCoreControlPlaneName = _match.Groups["packetCoreControlPlaneName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions/" - + versionName + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" + + packetCoreControlPlaneName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4616,18 +4655,19 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlaneVersionsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -4635,7 +4675,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4646,6 +4686,103 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -4653,7 +4790,13 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneVersion.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); break; } default: @@ -4675,23 +4818,35 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// - /// The name of the packet core control plane version. + /// The name of the resource group. The name is case insensitive. + /// The name of the packet core control plane. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsGet_Validate(string versionName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesDelete_Validate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(versionName),versionName); + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName); + await eventListener.AssertMaximumLength(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,64); + await eventListener.AssertRegEx(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } - /// Lists all supported packet core control planes versions. + /// Gets information about the specified packet core control plane. + /// The name of the resource group. The name is case insensitive. + /// The name of the packet core control plane. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4700,7 +4855,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesGet(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -4708,7 +4863,12 @@ public partial class MobileNetwork { // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions" + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" + + global::System.Uri.EscapeDataString(packetCoreControlPlaneName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4722,11 +4882,11 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlaneVersionsList_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists all supported packet core control planes versions. + /// Gets information about the specified packet core control plane. /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4736,7 +4896,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -4744,16 +4904,24 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}'"); } // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var packetCoreControlPlaneName = _match.Groups["packetCoreControlPlaneName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/providers/Microsoft.MobileNetwork/packetCoreControlPlaneVersions" + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" + + packetCoreControlPlaneName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4767,11 +4935,11 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlaneVersionsList_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -4781,7 +4949,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4799,7 +4967,7 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneVersionListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlane.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -4821,26 +4989,34 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you - /// will get validation events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// + /// The name of the resource group. The name is case insensitive. + /// The name of the packet core control plane. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlaneVersionsList_Validate(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesGet_Validate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName); + await eventListener.AssertMaximumLength(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,64); + await eventListener.AssertRegEx(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } - /// Creates or updates a packet core control plane. + /// Lists all the packet core control planes in a resource group. /// The name of the resource group. The name is case insensitive. - /// The name of the packet core control plane. /// The ID of the target subscription. - /// Parameters supplied to the create or update packet core control plane operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4849,7 +5025,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlanesCreateOrUpdate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesListByResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -4861,8 +5037,7 @@ public partial class MobileNetwork + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" - + global::System.Uri.EscapeDataString(packetCoreControlPlaneName) + + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4871,22 +5046,17 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlanesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } } - /// Creates or updates a packet core control plane. + /// Lists all the packet core control planes in a resource group. /// - /// Parameters supplied to the create or update packet core control plane operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -4895,7 +5065,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlanesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -4903,15 +5073,14 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes'"); } // replace URI parameters with values from identity var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var packetCoreControlPlaneName = _match.Groups["packetCoreControlPlaneName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( @@ -4919,8 +5088,7 @@ public partial class MobileNetwork + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" - + packetCoreControlPlaneName + + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -4929,21 +5097,17 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlanesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } } /// - /// Actual wire call for method. + /// Actual wire call for method. /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). @@ -4954,7 +5118,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -4965,102 +5129,6 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -5068,7 +5136,7 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlane.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -5090,40 +5158,30 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but - /// you will get validation events back. + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. /// /// The name of the resource group. The name is case insensitive. - /// The name of the packet core control plane. /// The ID of the target subscription. - /// Parameters supplied to the create or update packet core control plane operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesCreateOrUpdate_Validate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesListByResourceGroup_Validate(string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName); - await eventListener.AssertMaximumLength(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,64); - await eventListener.AssertRegEx(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Deletes the specified packet core control plane. - /// The name of the resource group. The name is case insensitive. - /// The name of the packet core control plane. + /// Lists all the packet core control planes in a subscription. /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5131,7 +5189,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlanesDelete(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -5141,10 +5199,7 @@ public partial class MobileNetwork var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" - + global::System.Uri.EscapeDataString(packetCoreControlPlaneName) + + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5153,19 +5208,18 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlanesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesListBySubscription_Call(request,onOk,onDefault,eventListener,sender); } } - /// Deletes the specified packet core control plane. + /// Lists all the packet core control planes in a subscription. /// /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5173,7 +5227,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlanesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -5181,24 +5235,19 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes'"); } // replace URI parameters with values from identity - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var packetCoreControlPlaneName = _match.Groups["packetCoreControlPlaneName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" - + packetCoreControlPlaneName + + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5207,19 +5256,20 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlanesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesListBySubscription_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// + /// Actual wire call for method. + /// /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -5227,7 +5277,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5238,167 +5288,59 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + var _contentType = _response.Content.Headers.ContentType?.MediaType; - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } + /// + /// Validation method for method. Call this like the actual call, + /// but you will get validation events back. + /// + /// The ID of the target subscription. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesListBySubscription_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + } + } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Reinstall the specified packet core control plane. This action will remove any transaction state from the packet core + /// to return it to a known state. This action will cause a service outage. /// /// The name of the resource group. The name is case insensitive. /// The name of the packet core control plane. /// The ID of the target subscription. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesDelete_Validate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName); - await eventListener.AssertMaximumLength(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,64); - await eventListener.AssertRegEx(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - } - } - - /// Gets information about the specified packet core control plane. - /// The name of the resource group. The name is case insensitive. - /// The name of the packet core control plane. - /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -5407,7 +5349,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlanesGet(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesReinstall(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -5421,6 +5363,7 @@ public partial class MobileNetwork + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" + global::System.Uri.EscapeDataString(packetCoreControlPlaneName) + + "/reinstall" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5429,16 +5372,19 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlanesGet_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesReinstall_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets information about the specified packet core control plane. + /// + /// Reinstall the specified packet core control plane. This action will remove any transaction state from the packet core + /// to return it to a known state. This action will cause a service outage. + /// /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5448,7 +5394,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlanesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesReinstallViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -5459,7 +5405,7 @@ public partial class MobileNetwork var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/reinstall'"); } // replace URI parameters with values from identity @@ -5474,6 +5420,7 @@ public partial class MobileNetwork + resourceGroupName + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" + packetCoreControlPlaneName + + "/reinstall" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5482,16 +5429,16 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlanesGet_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesReinstall_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5501,7 +5448,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesReinstall_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5512,6 +5459,103 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -5519,7 +5563,7 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlane.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AsyncOperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -5541,8 +5585,8 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you + /// will get validation events back. /// /// The name of the resource group. The name is case insensitive. /// The name of the packet core control plane. @@ -5551,7 +5595,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesGet_Validate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesReinstall_Validate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -5566,8 +5610,12 @@ public partial class MobileNetwork } } - /// Lists all the packet core control planes in a resource group. + /// + /// Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple consecutive rollbacks + /// are not possible. This action may cause a service outage. + /// /// The name of the resource group. The name is case insensitive. + /// The name of the packet core control plane. /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5577,7 +5625,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlanesListByResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesRollback(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -5589,7 +5637,9 @@ public partial class MobileNetwork + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes" + + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" + + global::System.Uri.EscapeDataString(packetCoreControlPlaneName) + + "/rollback" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5598,16 +5648,19 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlanesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesRollback_Call(request,onOk,onDefault,eventListener,sender); } } - /// Lists all the packet core control planes in a resource group. + /// + /// Roll back the specified packet core control plane to the previous version, "rollbackVersion". Multiple consecutive rollbacks + /// are not possible. This action may cause a service outage. + /// /// /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5617,7 +5670,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlanesListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task PacketCoreControlPlanesRollbackViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -5625,14 +5678,15 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/rollback'"); } // replace URI parameters with values from identity var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var packetCoreControlPlaneName = _match.Groups["packetCoreControlPlaneName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( @@ -5640,7 +5694,9 @@ public partial class MobileNetwork + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes" + + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/" + + packetCoreControlPlaneName + + "/rollback" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -5649,18 +5705,16 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.PacketCoreControlPlanesListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + await this.PacketCoreControlPlanesRollback_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Actual wire call for method. - /// + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -5670,7 +5724,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesRollback_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -5681,165 +5735,103 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - /// - /// Validation method for method. Call this like the actual call, - /// but you will get validation events back. - /// - /// The name of the resource group. The name is case insensitive. - /// The ID of the target subscription. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesListByResourceGroup_Validate(string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - } - } + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - /// Lists all the packet core control planes in a subscription. - /// The ID of the target subscription. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlanesListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) - { - var apiVersion = @"2022-11-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PacketCoreControlPlanesListBySubscription_Call(request,onOk,onDefault,eventListener,sender); - } - } + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } - /// Lists all the packet core control planes in a subscription. - /// - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task PacketCoreControlPlanesListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) - { - var apiVersion = @"2022-11-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri + // drop the old response + _response?.Dispose(); - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.MobileNetwork/packetCoreControlPlanes$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes'"); - } + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/providers/Microsoft.MobileNetwork/packetCoreControlPlanes" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); + } + } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.PacketCoreControlPlanesListBySubscription_Call(request,onOk,onDefault,eventListener,sender); - } - } + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - /// - /// Actual wire call for method. - /// - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -5847,7 +5839,7 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.PacketCoreControlPlaneListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AsyncOperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -5869,18 +5861,26 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, - /// but you will get validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// + /// The name of the resource group. The name is case insensitive. + /// The name of the packet core control plane. /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesListBySubscription_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task PacketCoreControlPlanesRollback_Validate(string resourceGroupName, string packetCoreControlPlaneName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName); + await eventListener.AssertMaximumLength(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,64); + await eventListener.AssertRegEx(nameof(packetCoreControlPlaneName),packetCoreControlPlaneName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } @@ -8342,13 +8342,12 @@ public partial class MobileNetwork } } - /// Bulk delete SIMs from a SIM group. - /// The name of the resource group. The name is case insensitive. + /// Creates or updates a SIM group. /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the SIM Group. - /// Parameters supplied to the bulk SIM delete operation. + /// Parameters supplied to the create or update SIM group operation. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -8356,7 +8355,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimBulkDelete(string resourceGroupName, string subscriptionId, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimDeleteList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimGroupsCreateOrUpdate(string subscriptionId, string resourceGroupName, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -8370,7 +8369,6 @@ public partial class MobileNetwork + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.MobileNetwork/simGroups/" + global::System.Uri.EscapeDataString(simGroupName) - + "/deleteSims" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -8379,7 +8377,7 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -8388,15 +8386,14 @@ public partial class MobileNetwork request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimBulkDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.SimGroupsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Bulk delete SIMs from a SIM group. + /// Creates or updates a SIM group. /// - /// Parameters supplied to the bulk SIM delete operation. + /// Parameters supplied to the create or update SIM group operation. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -8404,7 +8401,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimBulkDeleteViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimDeleteList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimGroupsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -8415,12 +8412,12 @@ public partial class MobileNetwork var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}/deleteSims'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}'"); } // replace URI parameters with values from identity - var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; var simGroupName = _match.Groups["simGroupName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( @@ -8430,7 +8427,6 @@ public partial class MobileNetwork + resourceGroupName + "/providers/Microsoft.MobileNetwork/simGroups/" + simGroupName - + "/deleteSims" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -8439,7 +8435,7 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -8448,14 +8444,13 @@ public partial class MobileNetwork request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimBulkDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.SimGroupsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -8463,7 +8458,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimBulkDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SimGroupsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8476,8 +8471,7 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } // this operation supports x-ms-long-running-operation var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); + // declared final-state-via: azure-async-operation var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); var location = _response.GetFirstHeader(@"Location"); while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) @@ -8561,7 +8555,7 @@ public partial class MobileNetwork } // we are done polling, do a request on final target? // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); // drop the old response _response?.Dispose(); @@ -8578,13 +8572,7 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AsyncOperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -8606,26 +8594,26 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// - /// The name of the resource group. The name is case insensitive. /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the SIM Group. - /// Parameters supplied to the bulk SIM delete operation. + /// Parameters supplied to the create or update SIM group operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimBulkDelete_Validate(string resourceGroupName, string subscriptionId, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimDeleteList body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimGroupsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(simGroupName),simGroupName); await eventListener.AssertMaximumLength(nameof(simGroupName),simGroupName,64); await eventListener.AssertRegEx(nameof(simGroupName),simGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); @@ -8634,63 +8622,12 @@ public partial class MobileNetwork } } - /// Bulk upload SIMs to a SIM group. - /// The name of the resource group. The name is case insensitive. + /// Deletes the specified SIM group. /// The ID of the target subscription. - /// The name of the SIM Group. - /// Parameters supplied to the bulk SIM upload operation. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task SimBulkUpload(string resourceGroupName, string subscriptionId, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimUploadList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) - { - var apiVersion = @"2022-11-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.MobileNetwork/simGroups/" - + global::System.Uri.EscapeDataString(simGroupName) - + "/uploadSims" - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.SimBulkUpload_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// - /// Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. - /// /// The name of the resource group. The name is case insensitive. - /// The ID of the target subscription. /// The name of the SIM Group. - /// Parameters supplied to the encrypted SIMs upload operation. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -8698,7 +8635,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimBulkUploadEncrypted(string resourceGroupName, string subscriptionId, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IEncryptedSimUploadList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimGroupsDelete(string subscriptionId, string resourceGroupName, string simGroupName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -8712,7 +8649,6 @@ public partial class MobileNetwork + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.MobileNetwork/simGroups/" + global::System.Uri.EscapeDataString(simGroupName) - + "/uploadEncryptedSims" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -8721,25 +8657,19 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimBulkUploadEncrypted_Call(request,onOk,onDefault,eventListener,sender); + await this.SimGroupsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// - /// Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. - /// + /// Deletes the specified SIM group. /// - /// Parameters supplied to the encrypted SIMs upload operation. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -8747,7 +8677,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimBulkUploadEncryptedViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IEncryptedSimUploadList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimGroupsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -8758,12 +8688,12 @@ public partial class MobileNetwork var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}/uploadEncryptedSims'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}'"); } // replace URI parameters with values from identity - var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; var simGroupName = _match.Groups["simGroupName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( @@ -8773,7 +8703,6 @@ public partial class MobileNetwork + resourceGroupName + "/providers/Microsoft.MobileNetwork/simGroups/" + simGroupName - + "/uploadEncryptedSims" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -8782,22 +8711,19 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimBulkUploadEncrypted_Call(request,onOk,onDefault,eventListener,sender); + await this.SimGroupsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -8805,7 +8731,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimBulkUploadEncrypted_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SimGroupsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -8920,7 +8846,13 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AsyncOperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); break; } default: @@ -8942,37 +8874,76 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. The name is case insensitive. /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the SIM Group. - /// Parameters supplied to the encrypted SIMs upload operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimBulkUploadEncrypted_Validate(string resourceGroupName, string subscriptionId, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IEncryptedSimUploadList body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimGroupsDelete_Validate(string subscriptionId, string resourceGroupName, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(simGroupName),simGroupName); await eventListener.AssertMaximumLength(nameof(simGroupName),simGroupName,64); await eventListener.AssertRegEx(nameof(simGroupName),simGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Bulk upload SIMs to a SIM group. + /// Gets information about the specified SIM group. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the SIM Group. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task SimGroupsGet(string subscriptionId, string resourceGroupName, string simGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.MobileNetwork/simGroups/" + + global::System.Uri.EscapeDataString(simGroupName) + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.SimGroupsGet_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Gets information about the specified SIM group. /// - /// Parameters supplied to the bulk SIM upload operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -8981,7 +8952,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimBulkUploadViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimUploadList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimGroupsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -8992,12 +8963,12 @@ public partial class MobileNetwork var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}/uploadSims'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}'"); } // replace URI parameters with values from identity - var resourceGroupName = _match.Groups["resourceGroupName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; + var resourceGroupName = _match.Groups["resourceGroupName"].Value; var simGroupName = _match.Groups["simGroupName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( @@ -9007,7 +8978,6 @@ public partial class MobileNetwork + resourceGroupName + "/providers/Microsoft.MobileNetwork/simGroups/" + simGroupName - + "/uploadSims" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -9016,20 +8986,16 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimBulkUpload_Call(request,onOk,onDefault,eventListener,sender); + await this.SimGroupsGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -9039,7 +9005,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimBulkUpload_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SimGroupsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9050,118 +9016,21 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + var _contentType = _response.Content.Headers.ContentType?.MediaType; - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AsyncOperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } } } @@ -9176,39 +9045,34 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The name of the resource group. The name is case insensitive. /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. /// The name of the SIM Group. - /// Parameters supplied to the bulk SIM upload operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimBulkUpload_Validate(string resourceGroupName, string subscriptionId, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimUploadList body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimGroupsGet_Validate(string subscriptionId, string resourceGroupName, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(simGroupName),simGroupName); await eventListener.AssertMaximumLength(nameof(simGroupName),simGroupName,64); await eventListener.AssertRegEx(nameof(simGroupName),simGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Creates or updates a SIM group. - /// The ID of the target subscription. + /// Gets all the SIM groups in a resource group. /// The name of the resource group. The name is case insensitive. - /// The name of the SIM Group. - /// Parameters supplied to the create or update SIM group operation. + /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -9217,7 +9081,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimGroupsCreateOrUpdate(string subscriptionId, string resourceGroupName, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimGroupsListByResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -9229,8 +9093,7 @@ public partial class MobileNetwork + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.MobileNetwork/simGroups/" - + global::System.Uri.EscapeDataString(simGroupName) + + "/providers/Microsoft.MobileNetwork/simGroups" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -9239,22 +9102,17 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimGroupsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.SimGroupsListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } } - /// Creates or updates a SIM group. + /// Gets all the SIM groups in a resource group. /// - /// Parameters supplied to the create or update SIM group operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -9263,7 +9121,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimGroupsCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimGroupsListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -9271,24 +9129,22 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups'"); } // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var simGroupName = _match.Groups["simGroupName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.MobileNetwork/simGroups/" - + simGroupName + + "/providers/Microsoft.MobileNetwork/simGroups" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -9297,20 +9153,16 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimGroupsCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.SimGroupsListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -9320,7 +9172,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimGroupsCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SimGroupsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9331,102 +9183,6 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -9434,7 +9190,7 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroupListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -9456,40 +9212,30 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// - /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the SIM Group. - /// Parameters supplied to the create or update SIM group operation. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimGroupsCreateOrUpdate_Validate(string subscriptionId, string resourceGroupName, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimGroupsListByResourceGroup_Validate(string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(simGroupName),simGroupName); - await eventListener.AssertMaximumLength(nameof(simGroupName),simGroupName,64); - await eventListener.AssertRegEx(nameof(simGroupName),simGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } - /// Deletes the specified SIM group. + /// Gets all the SIM groups in a subscription. /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the SIM Group. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -9497,7 +9243,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimGroupsDelete(string subscriptionId, string resourceGroupName, string simGroupName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimGroupsListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -9507,10 +9253,7 @@ public partial class MobileNetwork var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.MobileNetwork/simGroups/" - + global::System.Uri.EscapeDataString(simGroupName) + + "/providers/Microsoft.MobileNetwork/simGroups" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -9519,19 +9262,18 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimGroupsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.SimGroupsListBySubscription_Call(request,onOk,onDefault,eventListener,sender); } } - /// Deletes the specified SIM group. + /// Gets all the SIM groups in a subscription. /// /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -9539,7 +9281,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimGroupsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimGroupsListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -9547,24 +9289,19 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.MobileNetwork/simGroups'"); } // replace URI parameters with values from identity var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var simGroupName = _match.Groups["simGroupName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.MobileNetwork/simGroups/" - + simGroupName + + "/providers/Microsoft.MobileNetwork/simGroups" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -9573,19 +9310,18 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimGroupsDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.SimGroupsListBySubscription_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -9593,7 +9329,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimGroupsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SimGroupsListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9604,103 +9340,6 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -9708,13 +9347,7 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroupListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -9736,35 +9369,28 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the SIM Group. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimGroupsDelete_Validate(string subscriptionId, string resourceGroupName, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimGroupsListBySubscription_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); - await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); - await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(simGroupName),simGroupName); - await eventListener.AssertMaximumLength(nameof(simGroupName),simGroupName,64); - await eventListener.AssertRegEx(nameof(simGroupName),simGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); } } - /// Gets information about the specified SIM group. + /// Updates SIM group tags. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the SIM Group. + /// Parameters supplied to update SIM group tags. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -9773,7 +9399,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimGroupsGet(string subscriptionId, string resourceGroupName, string simGroupName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimGroupsUpdateTags(string subscriptionId, string resourceGroupName, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -9795,17 +9421,22 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimGroupsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.SimGroupsUpdateTags_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets information about the specified SIM group. + /// Updates SIM group tags. /// + /// Parameters supplied to update SIM group tags. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -9814,7 +9445,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimGroupsGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimGroupsUpdateTagsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -9848,16 +9479,20 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimGroupsGet_Call(request,onOk,onDefault,eventListener,sender); + await this.SimGroupsUpdateTags_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -9867,7 +9502,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimGroupsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SimGroupsUpdateTags_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -9907,17 +9542,18 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the SIM Group. + /// Parameters supplied to update SIM group tags. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimGroupsGet_Validate(string subscriptionId, string resourceGroupName, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimGroupsUpdateTags_Validate(string subscriptionId, string resourceGroupName, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -9929,12 +9565,19 @@ public partial class MobileNetwork await eventListener.AssertNotNull(nameof(simGroupName),simGroupName); await eventListener.AssertMaximumLength(nameof(simGroupName),simGroupName,64); await eventListener.AssertRegEx(nameof(simGroupName),simGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Gets all the SIM groups in a resource group. + /// + /// Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. + /// /// The name of the resource group. The name is case insensitive. + /// The name of the mobile network. + /// The name of the SIM policy. /// The ID of the target subscription. + /// Parameters supplied to the create or update SIM policy operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -9943,7 +9586,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimGroupsListByResourceGroup(string resourceGroupName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimPoliciesCreateOrUpdate(string resourceGroupName, string mobileNetworkName, string simPolicyName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -9955,7 +9598,10 @@ public partial class MobileNetwork + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.MobileNetwork/simGroups" + + "/providers/Microsoft.MobileNetwork/mobileNetworks/" + + global::System.Uri.EscapeDataString(mobileNetworkName) + + "/simPolicies/" + + global::System.Uri.EscapeDataString(simPolicyName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -9964,17 +9610,24 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimGroupsListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + await this.SimPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets all the SIM groups in a resource group. + /// + /// Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. + /// /// + /// Parameters supplied to the create or update SIM policy operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -9983,7 +9636,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimGroupsListByResourceGroupViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimPoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -9991,14 +9644,16 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/mobileNetworks/(?[^/]+)/simPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/simPolicies/{simPolicyName}'"); } // replace URI parameters with values from identity var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var mobileNetworkName = _match.Groups["mobileNetworkName"].Value; + var simPolicyName = _match.Groups["simPolicyName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( @@ -10006,7 +9661,10 @@ public partial class MobileNetwork + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.MobileNetwork/simGroups" + + "/providers/Microsoft.MobileNetwork/mobileNetworks/" + + mobileNetworkName + + "/simPolicies/" + + simPolicyName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -10015,16 +9673,20 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Put, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimGroupsListByResourceGroup_Call(request,onOk,onDefault,eventListener,sender); + await this.SimPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -10034,7 +9696,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimGroupsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SimPoliciesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10045,14 +9707,110 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: azure-async-operation + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { - case global::System.Net.HttpStatusCode.OK: + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroupListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -10074,30 +9832,45 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// /// The name of the resource group. The name is case insensitive. + /// The name of the mobile network. + /// The name of the SIM policy. /// The ID of the target subscription. + /// Parameters supplied to the create or update SIM policy operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimGroupsListByResourceGroup_Validate(string resourceGroupName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimPoliciesCreateOrUpdate_Validate(string resourceGroupName, string mobileNetworkName, string simPolicyName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); + await eventListener.AssertNotNull(nameof(mobileNetworkName),mobileNetworkName); + await eventListener.AssertMaximumLength(nameof(mobileNetworkName),mobileNetworkName,64); + await eventListener.AssertRegEx(nameof(mobileNetworkName),mobileNetworkName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); + await eventListener.AssertNotNull(nameof(simPolicyName),simPolicyName); + await eventListener.AssertMaximumLength(nameof(simPolicyName),simPolicyName,64); + await eventListener.AssertRegEx(nameof(simPolicyName),simPolicyName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Gets all the SIM groups in a subscription. + /// Deletes the specified SIM policy. + /// The name of the resource group. The name is case insensitive. + /// The name of the mobile network. + /// The name of the SIM policy. /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -10105,7 +9878,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimGroupsListBySubscription(string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimPoliciesDelete(string resourceGroupName, string mobileNetworkName, string simPolicyName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -10115,7 +9888,12 @@ public partial class MobileNetwork var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + global::System.Uri.EscapeDataString(subscriptionId) - + "/providers/Microsoft.MobileNetwork/simGroups" + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.MobileNetwork/mobileNetworks/" + + global::System.Uri.EscapeDataString(mobileNetworkName) + + "/simPolicies/" + + global::System.Uri.EscapeDataString(simPolicyName) + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -10124,18 +9902,19 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimGroupsListBySubscription_Call(request,onOk,onDefault,eventListener,sender); + await this.SimPoliciesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// Gets all the SIM groups in a subscription. + /// Deletes the specified SIM policy. /// /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -10143,7 +9922,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimGroupsListBySubscriptionViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimPoliciesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -10151,19 +9930,27 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/mobileNetworks/(?[^/]+)/simPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/providers/Microsoft.MobileNetwork/simGroups'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/simPolicies/{simPolicyName}'"); } // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var mobileNetworkName = _match.Groups["mobileNetworkName"].Value; + var simPolicyName = _match.Groups["simPolicyName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId - + "/providers/Microsoft.MobileNetwork/simGroups" + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.MobileNetwork/mobileNetworks/" + + mobileNetworkName + + "/simPolicies/" + + simPolicyName + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -10172,18 +9959,19 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Delete, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimGroupsListBySubscription_Call(request,onOk,onDefault,eventListener,sender); + await this.SimPoliciesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -10191,7 +9979,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimGroupsListBySubscription_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SimPoliciesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10202,179 +9990,103 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroupListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - } - } - finally - { - // finally statements - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Finally, request, _response); - _response?.Dispose(); - request?.Dispose(); - } - } - } - /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. - /// - /// The ID of the target subscription. - /// an instance that will receive events. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task SimGroupsListBySubscription_Validate(string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) - { - using( NoSynchronizationContext ) - { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - } - } + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - /// Updates SIM group tags. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the SIM Group. - /// Parameters supplied to update SIM group tags. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task SimGroupsUpdateTags(string subscriptionId, string resourceGroupName, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) - { - var apiVersion = @"2022-11-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.MobileNetwork/simGroups/" - + global::System.Uri.EscapeDataString(simGroupName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.SimGroupsUpdateTags_Call(request,onOk,onDefault,eventListener,sender); - } - } + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } - /// Updates SIM group tags. - /// - /// Parameters supplied to update SIM group tags. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task SimGroupsUpdateTagsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) - { - var apiVersion = @"2022-11-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // verify that Identity format is an exact match for uri + // drop the old response + _response?.Dispose(); - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); - if (!_match.Success) - { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}'"); - } + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; - var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var simGroupName = _match.Groups["simGroupName"].Value; - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + subscriptionId - + "/resourceGroups/" - + resourceGroupName - + "/providers/Microsoft.MobileNetwork/simGroups/" - + simGroupName - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); + } + } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.SimGroupsUpdateTags_Call(request,onOk,onDefault,eventListener,sender); - } - } + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task SimGroupsUpdateTags_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -10382,7 +10094,13 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimGroup.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); break; } default: @@ -10404,42 +10122,40 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the SIM Group. - /// Parameters supplied to update SIM group tags. + /// The name of the mobile network. + /// The name of the SIM policy. + /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimGroupsUpdateTags_Validate(string subscriptionId, string resourceGroupName, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimPoliciesDelete_Validate(string resourceGroupName, string mobileNetworkName, string simPolicyName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(simGroupName),simGroupName); - await eventListener.AssertMaximumLength(nameof(simGroupName),simGroupName,64); - await eventListener.AssertRegEx(nameof(simGroupName),simGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); + await eventListener.AssertNotNull(nameof(mobileNetworkName),mobileNetworkName); + await eventListener.AssertMaximumLength(nameof(mobileNetworkName),mobileNetworkName,64); + await eventListener.AssertRegEx(nameof(mobileNetworkName),mobileNetworkName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); + await eventListener.AssertNotNull(nameof(simPolicyName),simPolicyName); + await eventListener.AssertMaximumLength(nameof(simPolicyName),simPolicyName,64); + await eventListener.AssertRegEx(nameof(simPolicyName),simPolicyName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } - /// - /// Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. - /// + /// Gets information about the specified SIM policy. /// The name of the resource group. The name is case insensitive. /// The name of the mobile network. /// The name of the SIM policy. /// The ID of the target subscription. - /// Parameters supplied to the create or update SIM policy operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -10448,7 +10164,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimPoliciesCreateOrUpdate(string resourceGroupName, string mobileNetworkName, string simPolicyName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimPoliciesGet(string resourceGroupName, string mobileNetworkName, string simPolicyName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -10472,24 +10188,17 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.SimPoliciesGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// - /// Creates or updates a SIM policy. Must be created in the same location as its parent mobile network. - /// + /// Gets information about the specified SIM policy. /// - /// Parameters supplied to the create or update SIM policy operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -10498,7 +10207,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimPoliciesCreateOrUpdateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -10535,20 +10244,16 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Put, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimPoliciesCreateOrUpdate_Call(request,onOk,onDefault,eventListener,sender); + await this.SimPoliciesGet_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -10558,7 +10263,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimPoliciesCreateOrUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SimPoliciesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10569,117 +10274,21 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: azure-async-operation - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + var _contentType = _response.Content.Headers.ContentType?.MediaType; - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_originalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } - var _contentType = _response.Content.Headers.ContentType?.MediaType; - - switch ( _response.StatusCode ) - { - case global::System.Net.HttpStatusCode.OK: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; - } - default: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); - break; + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; } } } @@ -10694,19 +10303,18 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will get - /// validation events back. + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. /// /// The name of the resource group. The name is case insensitive. /// The name of the mobile network. /// The name of the SIM policy. /// The ID of the target subscription. - /// Parameters supplied to the create or update SIM policy operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimPoliciesCreateOrUpdate_Validate(string resourceGroupName, string mobileNetworkName, string simPolicyName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimPoliciesGet_Validate(string resourceGroupName, string mobileNetworkName, string simPolicyName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -10721,18 +10329,14 @@ public partial class MobileNetwork await eventListener.AssertRegEx(nameof(simPolicyName),simPolicyName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); - await eventListener.AssertNotNull(nameof(body), body); - await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Deletes the specified SIM policy. + /// Gets all the SIM policies in a mobile network. /// The name of the resource group. The name is case insensitive. /// The name of the mobile network. - /// The name of the SIM policy. /// The ID of the target subscription. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -10740,7 +10344,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimPoliciesDelete(string resourceGroupName, string mobileNetworkName, string simPolicyName, string subscriptionId, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimPoliciesListByMobileNetwork(string resourceGroupName, string mobileNetworkName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -10754,8 +10358,7 @@ public partial class MobileNetwork + global::System.Uri.EscapeDataString(resourceGroupName) + "/providers/Microsoft.MobileNetwork/mobileNetworks/" + global::System.Uri.EscapeDataString(mobileNetworkName) - + "/simPolicies/" - + global::System.Uri.EscapeDataString(simPolicyName) + + "/simPolicies" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -10764,19 +10367,18 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimPoliciesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.SimPoliciesListByMobileNetwork_Call(request,onOk,onDefault,eventListener,sender); } } - /// Deletes the specified SIM policy. + /// Gets all the SIM policies in a mobile network. /// /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -10784,7 +10386,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimPoliciesDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimPoliciesListByMobileNetworkViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -10792,16 +10394,15 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/mobileNetworks/(?[^/]+)/simPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/mobileNetworks/(?[^/]+)/simPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/simPolicies/{simPolicyName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/simPolicies'"); } // replace URI parameters with values from identity var resourceGroupName = _match.Groups["resourceGroupName"].Value; var mobileNetworkName = _match.Groups["mobileNetworkName"].Value; - var simPolicyName = _match.Groups["simPolicyName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( @@ -10811,8 +10412,7 @@ public partial class MobileNetwork + resourceGroupName + "/providers/Microsoft.MobileNetwork/mobileNetworks/" + mobileNetworkName - + "/simPolicies/" - + simPolicyName + + "/simPolicies" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -10821,19 +10421,18 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Delete, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimPoliciesDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + await this.SimPoliciesListByMobileNetwork_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns 204 (NoContent). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). /// an instance that will receive events. @@ -10841,7 +10440,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimPoliciesDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SimPoliciesListByMobileNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -10852,103 +10451,6 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - // this operation supports x-ms-long-running-operation - var _originalUri = request.RequestUri.AbsoluteUri; - // declared final-state-via: location - var _finalUri = _response.GetFirstHeader(@"Location"); - var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - var location = _response.GetFirstHeader(@"Location"); - while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - - // get the delay before polling. (default to 30 seconds if not present) - int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // start the delay timer (we'll await later...) - var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); - - // while we wait, let's grab the headers and get ready to poll. - if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { - asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); - } - if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { - location = _response.GetFirstHeader(@"Location"); - } - var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; - request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // and let's look at the current response body and see if we have some information we can give back to the listener - var content = await _response.Content.ReadAsStringAsync(); - await waiting; - - // check for cancellation - if( eventListener.Token.IsCancellationRequested ) { return; } - - // drop the old response - _response?.Dispose(); - - // make the polling call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - - // if we got back an OK, take a peek inside and see if it's done - if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) - { - var error = false; - try { - if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) - { - var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); - if( state is null ) - { - // the body doesn't contain any information that has the state of the LRO - // we're going to just get out, and let the consumer have the result - break; - } - - switch( state?.ToString()?.ToLower() ) - { - case "failed": - error = true; - break; - case "succeeded": - case "canceled": - // we're done polling. - break; - - default: - // need to keep polling! - _response.StatusCode = global::System.Net.HttpStatusCode.Created; - continue; - } - } - } catch { - // if we run into a problem peeking into the result, - // we really don't want to do anything special. - } - if (error) { - throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); - } - } - - // check for terminal status code - if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) - { - continue; - } - // we are done polling, do a request on final target? - // create a new request with the final uri - request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); - - // drop the old response - _response?.Dispose(); - - // make the final call - _response = await sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - break; - } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -10956,13 +10458,7 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response); - break; - } - case global::System.Net.HttpStatusCode.NoContent: - { - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onNoContent(_response); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -10984,18 +10480,17 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will get validation - /// events back. + /// Validation method for method. Call this like the actual call, but you will + /// get validation events back. /// /// The name of the resource group. The name is case insensitive. /// The name of the mobile network. - /// The name of the SIM policy. /// The ID of the target subscription. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimPoliciesDelete_Validate(string resourceGroupName, string mobileNetworkName, string simPolicyName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimPoliciesListByMobileNetwork_Validate(string resourceGroupName, string mobileNetworkName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -11005,19 +10500,17 @@ public partial class MobileNetwork await eventListener.AssertNotNull(nameof(mobileNetworkName),mobileNetworkName); await eventListener.AssertMaximumLength(nameof(mobileNetworkName),mobileNetworkName,64); await eventListener.AssertRegEx(nameof(mobileNetworkName),mobileNetworkName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); - await eventListener.AssertNotNull(nameof(simPolicyName),simPolicyName); - await eventListener.AssertMaximumLength(nameof(simPolicyName),simPolicyName,64); - await eventListener.AssertRegEx(nameof(simPolicyName),simPolicyName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); } } - /// Gets information about the specified SIM policy. + /// Updates SIM policy tags. + /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the mobile network. /// The name of the SIM policy. - /// The ID of the target subscription. + /// Parameters supplied to update SIM policy tags. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -11026,7 +10519,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimPoliciesGet(string resourceGroupName, string mobileNetworkName, string simPolicyName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimPoliciesUpdateTags(string subscriptionId, string resourceGroupName, string mobileNetworkName, string simPolicyName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -11050,17 +10543,22 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimPoliciesGet_Call(request,onOk,onDefault,eventListener,sender); + await this.SimPoliciesUpdateTags_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets information about the specified SIM policy. + /// Updates SIM policy tags. /// + /// Parameters supplied to update SIM policy tags. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -11069,7 +10567,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimPoliciesGetViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimPoliciesUpdateTagsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -11084,10 +10582,10 @@ public partial class MobileNetwork } // replace URI parameters with values from identity + var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; var mobileNetworkName = _match.Groups["mobileNetworkName"].Value; var simPolicyName = _match.Groups["simPolicyName"].Value; - var subscriptionId = _match.Groups["subscriptionId"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" @@ -11106,16 +10604,20 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Patch, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimPoliciesGet_Call(request,onOk,onDefault,eventListener,sender); + await this.SimPoliciesUpdateTags_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -11125,7 +10627,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimPoliciesGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SimPoliciesUpdateTags_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11165,21 +10667,24 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// + /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The name of the mobile network. /// The name of the SIM policy. - /// The ID of the target subscription. + /// Parameters supplied to update SIM policy tags. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimPoliciesGet_Validate(string resourceGroupName, string mobileNetworkName, string simPolicyName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimPoliciesUpdateTags_Validate(string subscriptionId, string resourceGroupName, string mobileNetworkName, string simPolicyName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); @@ -11189,15 +10694,308 @@ public partial class MobileNetwork await eventListener.AssertNotNull(nameof(simPolicyName),simPolicyName); await eventListener.AssertMaximumLength(nameof(simPolicyName),simPolicyName,64); await eventListener.AssertRegEx(nameof(simPolicyName),simPolicyName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); + } + } + + /// Bulk delete SIMs from a SIM group. + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. + /// The name of the SIM Group. + /// Parameters supplied to the bulk SIM delete operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task SimsBulkDelete(string resourceGroupName, string subscriptionId, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimDeleteList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.MobileNetwork/simGroups/" + + global::System.Uri.EscapeDataString(simGroupName) + + "/deleteSims" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.SimsBulkDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Bulk delete SIMs from a SIM group. + /// + /// Parameters supplied to the bulk SIM delete operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task SimsBulkDeleteViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimDeleteList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // verify that Identity format is an exact match for uri + + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + if (!_match.Success) + { + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}/deleteSims'"); + } + + // replace URI parameters with values from identity + var resourceGroupName = _match.Groups["resourceGroupName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + var simGroupName = _match.Groups["simGroupName"].Value; + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + subscriptionId + + "/resourceGroups/" + + resourceGroupName + + "/providers/Microsoft.MobileNetwork/simGroups/" + + simGroupName + + "/deleteSims" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.SimsBulkDelete_Call(request,onOk,onNoContent,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns 204 (NoContent). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task SimsBulkDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } + var _contentType = _response.Content.Headers.ContentType?.MediaType; + + switch ( _response.StatusCode ) + { + case global::System.Net.HttpStatusCode.OK: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AsyncOperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + case global::System.Net.HttpStatusCode.NoContent: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onNoContent(_response); + break; + } + default: + { + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ErrorResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + break; + } + } + } + finally + { + // finally statements + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Finally, request, _response); + _response?.Dispose(); + request?.Dispose(); + } + } + } + + /// + /// Validation method for method. Call this like the actual call, but you will get validation + /// events back. + /// + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. + /// The name of the SIM Group. + /// Parameters supplied to the bulk SIM delete operation. + /// an instance that will receive events. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task SimsBulkDelete_Validate(string resourceGroupName, string subscriptionId, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimDeleteList body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + { + using( NoSynchronizationContext ) + { + await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); + await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); + await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(simGroupName),simGroupName); + await eventListener.AssertMaximumLength(nameof(simGroupName),simGroupName,64); + await eventListener.AssertRegEx(nameof(simGroupName),simGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Gets all the SIM policies in a mobile network. + /// Bulk upload SIMs to a SIM group. /// The name of the resource group. The name is case insensitive. - /// The name of the mobile network. /// The ID of the target subscription. + /// The name of the SIM Group. + /// Parameters supplied to the bulk SIM upload operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -11206,7 +11004,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimPoliciesListByMobileNetwork(string resourceGroupName, string mobileNetworkName, string subscriptionId, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimsBulkUpload(string resourceGroupName, string subscriptionId, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimUploadList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -11218,9 +11016,9 @@ public partial class MobileNetwork + global::System.Uri.EscapeDataString(subscriptionId) + "/resourceGroups/" + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.MobileNetwork/mobileNetworks/" - + global::System.Uri.EscapeDataString(mobileNetworkName) - + "/simPolicies" + + "/providers/Microsoft.MobileNetwork/simGroups/" + + global::System.Uri.EscapeDataString(simGroupName) + + "/uploadSims" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -11229,17 +11027,75 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimPoliciesListByMobileNetwork_Call(request,onOk,onDefault,eventListener,sender); + await this.SimsBulkUpload_Call(request,onOk,onDefault,eventListener,sender); } } - /// Gets all the SIM policies in a mobile network. + /// + /// Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + /// + /// The name of the resource group. The name is case insensitive. + /// The ID of the target subscription. + /// The name of the SIM Group. + /// Parameters supplied to the encrypted SIMs upload operation. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + public async global::System.Threading.Tasks.Task SimsBulkUploadEncrypted(string resourceGroupName, string subscriptionId, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IEncryptedSimUploadList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + { + var apiVersion = @"2022-11-01"; + // Constant Parameters + using( NoSynchronizationContext ) + { + // construct URL + var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( + "/subscriptions/" + + global::System.Uri.EscapeDataString(subscriptionId) + + "/resourceGroups/" + + global::System.Uri.EscapeDataString(resourceGroupName) + + "/providers/Microsoft.MobileNetwork/simGroups/" + + global::System.Uri.EscapeDataString(simGroupName) + + "/uploadEncryptedSims" + + "?" + + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) + ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + // generate request object + var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } + + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.SimsBulkUploadEncrypted_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// + /// Bulk upload SIMs in encrypted form to a SIM group. The SIM credentials must be encrypted. + /// /// + /// Parameters supplied to the encrypted SIMs upload operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -11248,7 +11104,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimPoliciesListByMobileNetworkViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimsBulkUploadEncryptedViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IEncryptedSimUploadList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -11256,25 +11112,25 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/mobileNetworks/(?[^/]+)/simPolicies$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/simPolicies'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}/uploadEncryptedSims'"); } // replace URI parameters with values from identity var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var mobileNetworkName = _match.Groups["mobileNetworkName"].Value; var subscriptionId = _match.Groups["subscriptionId"].Value; + var simGroupName = _match.Groups["simGroupName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.MobileNetwork/mobileNetworks/" - + mobileNetworkName - + "/simPolicies" + + "/providers/Microsoft.MobileNetwork/simGroups/" + + simGroupName + + "/uploadEncryptedSims" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -11283,36 +11139,137 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.SimPoliciesListByMobileNetwork_Call(request,onOk,onDefault,eventListener,sender); - } - } + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } + // set body content + request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); + request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the call + await this.SimsBulkUploadEncrypted_Call(request,onOk,onDefault,eventListener,sender); + } + } + + /// Actual wire call for method. + /// the prepared HttpRequestMessage to send. + /// a delegate that is called when the remote service returns 200 (OK). + /// a delegate that is called when the remote service returns default (any response code not handled + /// elsewhere). + /// an instance that will receive events. + /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. + /// + /// A that will be complete when handling of the response is completed. + /// + internal async global::System.Threading.Tasks.Task SimsBulkUploadEncrypted_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + { + using( NoSynchronizationContext ) + { + global::System.Net.Http.HttpResponseMessage _response = null; + try + { + var sendTask = sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } + _response = await sendTask; + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); - /// Actual wire call for method. - /// the prepared HttpRequestMessage to send. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - internal async global::System.Threading.Tasks.Task SimPoliciesListByMobileNetwork_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) - { - using( NoSynchronizationContext ) - { - global::System.Net.Http.HttpResponseMessage _response = null; - try - { - var sendTask = sender.SendAsync(request, eventListener); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } - _response = await sendTask; - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -11320,7 +11277,7 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPolicyListResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AsyncOperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -11342,85 +11299,37 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will - /// get validation events back. + /// Validation method for method. Call this like the actual call, but you will get + /// validation events back. /// /// The name of the resource group. The name is case insensitive. - /// The name of the mobile network. /// The ID of the target subscription. + /// The name of the SIM Group. + /// Parameters supplied to the encrypted SIMs upload operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimPoliciesListByMobileNetwork_Validate(string resourceGroupName, string mobileNetworkName, string subscriptionId, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimsBulkUploadEncrypted_Validate(string resourceGroupName, string subscriptionId, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IEncryptedSimUploadList body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(mobileNetworkName),mobileNetworkName); - await eventListener.AssertMaximumLength(nameof(mobileNetworkName),mobileNetworkName,64); - await eventListener.AssertRegEx(nameof(mobileNetworkName),mobileNetworkName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(simGroupName),simGroupName); + await eventListener.AssertMaximumLength(nameof(simGroupName),simGroupName,64); + await eventListener.AssertRegEx(nameof(simGroupName),simGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); + await eventListener.AssertNotNull(nameof(body), body); + await eventListener.AssertObjectIsValid(nameof(body), body); } } - /// Updates SIM policy tags. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the mobile network. - /// The name of the SIM policy. - /// Parameters supplied to update SIM policy tags. - /// a delegate that is called when the remote service returns 200 (OK). - /// a delegate that is called when the remote service returns default (any response code not handled - /// elsewhere). - /// an instance that will receive events. - /// an instance of an Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync pipeline to use to make the request. - /// - /// A that will be complete when handling of the response is completed. - /// - public async global::System.Threading.Tasks.Task SimPoliciesUpdateTags(string subscriptionId, string resourceGroupName, string mobileNetworkName, string simPolicyName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) - { - var apiVersion = @"2022-11-01"; - // Constant Parameters - using( NoSynchronizationContext ) - { - // construct URL - var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( - "/subscriptions/" - + global::System.Uri.EscapeDataString(subscriptionId) - + "/resourceGroups/" - + global::System.Uri.EscapeDataString(resourceGroupName) - + "/providers/Microsoft.MobileNetwork/mobileNetworks/" - + global::System.Uri.EscapeDataString(mobileNetworkName) - + "/simPolicies/" - + global::System.Uri.EscapeDataString(simPolicyName) - + "?" - + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) - ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.URLCreated, pathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - // generate request object - var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Patch, _url); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } - - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } - // set body content - request.Content = new global::System.Net.Http.StringContent(null != body ? body.ToJson(null).ToString() : @"{}", global::System.Text.Encoding.UTF8); - request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); - await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } - // make the call - await this.SimPoliciesUpdateTags_Call(request,onOk,onDefault,eventListener,sender); - } - } - - /// Updates SIM policy tags. + /// Bulk upload SIMs to a SIM group. /// - /// Parameters supplied to update SIM policy tags. + /// Parameters supplied to the bulk SIM upload operation. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled /// elsewhere). @@ -11429,7 +11338,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task SimPoliciesUpdateTagsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task SimsBulkUploadViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimUploadList body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { var apiVersion = @"2022-11-01"; // Constant Parameters @@ -11437,27 +11346,25 @@ public partial class MobileNetwork { // verify that Identity format is an exact match for uri - var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/mobileNetworks/(?[^/]+)/simPolicies/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); + var _match = new global::System.Text.RegularExpressions.Regex("^/subscriptions/(?[^/]+)/resourceGroups/(?[^/]+)/providers/Microsoft.MobileNetwork/simGroups/(?[^/]+)$", global::System.Text.RegularExpressions.RegexOptions.IgnoreCase).Match(viaIdentity); if (!_match.Success) { - throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/simPolicies/{simPolicyName}'"); + throw new global::System.Exception("Invalid identity for URI '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}/uploadSims'"); } // replace URI parameters with values from identity - var subscriptionId = _match.Groups["subscriptionId"].Value; var resourceGroupName = _match.Groups["resourceGroupName"].Value; - var mobileNetworkName = _match.Groups["mobileNetworkName"].Value; - var simPolicyName = _match.Groups["simPolicyName"].Value; + var subscriptionId = _match.Groups["subscriptionId"].Value; + var simGroupName = _match.Groups["simGroupName"].Value; // construct URL var pathAndQuery = global::System.Text.RegularExpressions.Regex.Replace( "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroupName - + "/providers/Microsoft.MobileNetwork/mobileNetworks/" - + mobileNetworkName - + "/simPolicies/" - + simPolicyName + + "/providers/Microsoft.MobileNetwork/simGroups/" + + simGroupName + + "/uploadSims" + "?" + "api-version=" + global::System.Uri.EscapeDataString(apiVersion) ,"\\?&*$|&*$|(\\?)&+|(&)&+","$1$2"); @@ -11466,7 +11373,7 @@ public partial class MobileNetwork // generate request object var _url = new global::System.Uri($"https://management.azure.com{pathAndQuery}"); - var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Patch, _url); + var request = new global::System.Net.Http.HttpRequestMessage(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Post, _url); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.RequestCreated, request.RequestUri.PathAndQuery); if( eventListener.Token.IsCancellationRequested ) { return; } await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.HeaderParametersAdded); if( eventListener.Token.IsCancellationRequested ) { return; } @@ -11475,11 +11382,11 @@ public partial class MobileNetwork request.Content.Headers.ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json"); await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BodyContentSet); if( eventListener.Token.IsCancellationRequested ) { return; } // make the call - await this.SimPoliciesUpdateTags_Call(request,onOk,onDefault,eventListener,sender); + await this.SimsBulkUpload_Call(request,onOk,onDefault,eventListener,sender); } } - /// Actual wire call for method. + /// Actual wire call for method. /// the prepared HttpRequestMessage to send. /// a delegate that is called when the remote service returns 200 (OK). /// a delegate that is called when the remote service returns default (any response code not handled @@ -11489,7 +11396,7 @@ public partial class MobileNetwork /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimPoliciesUpdateTags_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task SimsBulkUpload_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -11500,6 +11407,103 @@ public partial class MobileNetwork await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeCall, request); if( eventListener.Token.IsCancellationRequested ) { return; } _response = await sendTask; await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.ResponseCreated, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + // this operation supports x-ms-long-running-operation + var _originalUri = request.RequestUri.AbsoluteUri; + // declared final-state-via: location + var _finalUri = _response.GetFirstHeader(@"Location"); + var asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + var location = _response.GetFirstHeader(@"Location"); + while (request.Method == System.Net.Http.HttpMethod.Put && _response.StatusCode == global::System.Net.HttpStatusCode.OK || _response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + + // get the delay before polling. (default to 30 seconds if not present) + int delay = (int)(_response.Headers.RetryAfter?.Delta?.TotalSeconds ?? 30); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.DelayBeforePolling, $"Delaying {delay} seconds before polling.", _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // start the delay timer (we'll await later...) + var waiting = global::System.Threading.Tasks.Task.Delay(delay * 1000, eventListener.Token ); + + // while we wait, let's grab the headers and get ready to poll. + if (!System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Azure-AsyncOperation"))) { + asyncOperation = _response.GetFirstHeader(@"Azure-AsyncOperation"); + } + if (!global::System.String.IsNullOrEmpty(_response.GetFirstHeader(@"Location"))) { + location = _response.GetFirstHeader(@"Location"); + } + var _uri = global::System.String.IsNullOrEmpty(asyncOperation) ? global::System.String.IsNullOrEmpty(location) ? _originalUri : location : asyncOperation; + request = request.CloneAndDispose(new global::System.Uri(_uri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + + // and let's look at the current response body and see if we have some information we can give back to the listener + var content = await _response.Content.ReadAsStringAsync(); + await waiting; + + // check for cancellation + if( eventListener.Token.IsCancellationRequested ) { return; } + + // drop the old response + _response?.Dispose(); + + // make the polling call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + + // if we got back an OK, take a peek inside and see if it's done + if( _response.StatusCode == global::System.Net.HttpStatusCode.OK) + { + var error = false; + try { + if( Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(await _response.Content.ReadAsStringAsync()) is Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonObject json) + { + var state = json.Property("properties")?.PropertyT("provisioningState") ?? json.PropertyT("status"); + if( state is null ) + { + // the body doesn't contain any information that has the state of the LRO + // we're going to just get out, and let the consumer have the result + break; + } + + switch( state?.ToString()?.ToLower() ) + { + case "failed": + error = true; + break; + case "succeeded": + case "canceled": + // we're done polling. + break; + + default: + // need to keep polling! + _response.StatusCode = global::System.Net.HttpStatusCode.Created; + continue; + } + } + } catch { + // if we run into a problem peeking into the result, + // we really don't want to do anything special. + } + if (error) { + throw new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException(_response); + } + } + + // check for terminal status code + if (_response.StatusCode == global::System.Net.HttpStatusCode.Created || _response.StatusCode == global::System.Net.HttpStatusCode.Accepted ) + { + continue; + } + // we are done polling, do a request on final target? + // create a new request with the final uri + request = request.CloneAndDispose(new global::System.Uri(_finalUri), Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Method.Get); + + // drop the old response + _response?.Dispose(); + + // make the final call + _response = await sender.SendAsync(request, eventListener); + await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Polling, _response); if( eventListener.Token.IsCancellationRequested ) { return; } + break; + } var _contentType = _response.Content.Headers.ContentType?.MediaType; switch ( _response.StatusCode ) @@ -11507,7 +11511,7 @@ public partial class MobileNetwork case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.SimPolicy.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.AsyncOperationStatus.FromJson(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: @@ -11529,33 +11533,29 @@ public partial class MobileNetwork } /// - /// Validation method for method. Call this like the actual call, but you will get validation + /// Validation method for method. Call this like the actual call, but you will get validation /// events back. /// - /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the mobile network. - /// The name of the SIM policy. - /// Parameters supplied to update SIM policy tags. + /// The ID of the target subscription. + /// The name of the SIM Group. + /// Parameters supplied to the bulk SIM upload operation. /// an instance that will receive events. /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task SimPoliciesUpdateTags_Validate(string subscriptionId, string resourceGroupName, string mobileNetworkName, string simPolicyName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task SimsBulkUpload_Validate(string resourceGroupName, string subscriptionId, string simGroupName, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimUploadList body, Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { - await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); - await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); await eventListener.AssertNotNull(nameof(resourceGroupName),resourceGroupName); await eventListener.AssertMinimumLength(nameof(resourceGroupName),resourceGroupName,1); await eventListener.AssertMaximumLength(nameof(resourceGroupName),resourceGroupName,90); - await eventListener.AssertNotNull(nameof(mobileNetworkName),mobileNetworkName); - await eventListener.AssertMaximumLength(nameof(mobileNetworkName),mobileNetworkName,64); - await eventListener.AssertRegEx(nameof(mobileNetworkName),mobileNetworkName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); - await eventListener.AssertNotNull(nameof(simPolicyName),simPolicyName); - await eventListener.AssertMaximumLength(nameof(simPolicyName),simPolicyName,64); - await eventListener.AssertRegEx(nameof(simPolicyName),simPolicyName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); + await eventListener.AssertNotNull(nameof(subscriptionId),subscriptionId); + await eventListener.AssertMinimumLength(nameof(subscriptionId),subscriptionId,1); + await eventListener.AssertNotNull(nameof(simGroupName),simGroupName); + await eventListener.AssertMaximumLength(nameof(simGroupName),simGroupName,64); + await eventListener.AssertRegEx(nameof(simGroupName),simGroupName,@"^[a-zA-Z0-9][a-zA-Z0-9_-]*$"); await eventListener.AssertNotNull(nameof(body), body); await eventListener.AssertObjectIsValid(nameof(body), body); } diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/DataNetworkConfiguration.cs b/src/MobileNetwork/generated/api/Models/Api20221101/DataNetworkConfiguration.cs index 5e3a64e3e558..2f76f0c7e901 100644 --- a/src/MobileNetwork/generated/api/Models/Api20221101/DataNetworkConfiguration.cs +++ b/src/MobileNetwork/generated/api/Models/Api20221101/DataNetworkConfiguration.cs @@ -71,10 +71,9 @@ public partial class DataNetworkConfiguration : private int? _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. + /// Default 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. + /// 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 the + /// 5QI values. /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Origin(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.PropertyOrigin.Owned)] public int? FiveQi { get => this._fiveQi; set => this._fiveQi = value; } @@ -197,15 +196,14 @@ public partial interface IDataNetworkConfiguration : PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PduSessionType) })] Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PduSessionType? DefaultSessionType { get; set; } /// - /// 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. + /// Default 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. + /// 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 the + /// 5QI values. /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( Required = false, ReadOnly = false, - Description = @"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.", + Description = @"Default 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values.", SerializedName = @"5qi", PossibleTypes = new [] { typeof(int) })] int? FiveQi { get; set; } @@ -293,10 +291,9 @@ internal partial interface IDataNetworkConfigurationInternal /// Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PduSessionType? DefaultSessionType { get; set; } /// - /// 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. + /// Default 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. + /// 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 the + /// 5QI values. /// int? FiveQi { get; set; } /// diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/PccRuleConfiguration.cs b/src/MobileNetwork/generated/api/Models/Api20221101/PccRuleConfiguration.cs index 9d7893af01c7..b89f32ec5b74 100644 --- a/src/MobileNetwork/generated/api/Models/Api20221101/PccRuleConfiguration.cs +++ b/src/MobileNetwork/generated/api/Models/Api20221101/PccRuleConfiguration.cs @@ -61,10 +61,8 @@ public partial class PccRuleConfiguration : public int? RuleQoPolicyAllocationAndRetentionPriorityLevel { get => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IQosPolicyInternal)RuleQosPolicy).AllocationAndRetentionPriorityLevel; set => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IQosPolicyInternal)RuleQosPolicy).AllocationAndRetentionPriorityLevel = value ?? default(int); } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Origin(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.PropertyOrigin.Inlined)] public int? RuleQoPolicyFiveQi { get => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IQosPolicyInternal)RuleQosPolicy).FiveQi; set => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IQosPolicyInternal)RuleQosPolicy).FiveQi = value ?? default(int); } @@ -178,15 +176,13 @@ public partial interface IPccRuleConfiguration : PossibleTypes = new [] { typeof(int) })] int? RuleQoPolicyAllocationAndRetentionPriorityLevel { get; set; } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( Required = false, ReadOnly = false, - Description = @"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.", + Description = @"5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values.", SerializedName = @"5qi", PossibleTypes = new [] { typeof(int) })] int? RuleQoPolicyFiveQi { get; set; } @@ -273,10 +269,8 @@ internal partial interface IPccRuleConfigurationInternal /// int? RuleQoPolicyAllocationAndRetentionPriorityLevel { get; set; } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// int? RuleQoPolicyFiveQi { get; set; } /// diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/PccRuleQosPolicy.cs b/src/MobileNetwork/generated/api/Models/Api20221101/PccRuleQosPolicy.cs index 6ce2674fd1d1..bdb6ad866209 100644 --- a/src/MobileNetwork/generated/api/Models/Api20221101/PccRuleQosPolicy.cs +++ b/src/MobileNetwork/generated/api/Models/Api20221101/PccRuleQosPolicy.cs @@ -29,10 +29,8 @@ public partial class PccRuleQosPolicy : public int? AllocationAndRetentionPriorityLevel { get => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IQosPolicyInternal)__qosPolicy).AllocationAndRetentionPriorityLevel; set => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IQosPolicyInternal)__qosPolicy).AllocationAndRetentionPriorityLevel = value ?? default(int); } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Origin(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.PropertyOrigin.Inherited)] public int? FiveQi { get => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IQosPolicyInternal)__qosPolicy).FiveQi; set => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IQosPolicyInternal)__qosPolicy).FiveQi = value ?? default(int); } diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/QosPolicy.cs b/src/MobileNetwork/generated/api/Models/Api20221101/QosPolicy.cs index 08d3bbc80d7b..04144f987687 100644 --- a/src/MobileNetwork/generated/api/Models/Api20221101/QosPolicy.cs +++ b/src/MobileNetwork/generated/api/Models/Api20221101/QosPolicy.cs @@ -29,10 +29,8 @@ public partial class QosPolicy : private int? _fiveQi; /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Origin(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.PropertyOrigin.Owned)] public int? FiveQi { get => this._fiveQi; set => this._fiveQi = value; } @@ -101,15 +99,13 @@ public partial interface IQosPolicy : PossibleTypes = new [] { typeof(int) })] int? AllocationAndRetentionPriorityLevel { get; set; } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( Required = false, ReadOnly = false, - Description = @"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.", + Description = @"5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values.", SerializedName = @"5qi", PossibleTypes = new [] { typeof(int) })] int? FiveQi { get; set; } @@ -165,10 +161,8 @@ internal partial interface IQosPolicyInternal /// int? AllocationAndRetentionPriorityLevel { get; set; } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// int? FiveQi { get; set; } /// diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/Service.cs b/src/MobileNetwork/generated/api/Models/Api20221101/Service.cs index 4b6f3e584311..01a3632bbfe0 100644 --- a/src/MobileNetwork/generated/api/Models/Api20221101/Service.cs +++ b/src/MobileNetwork/generated/api/Models/Api20221101/Service.cs @@ -109,10 +109,8 @@ public partial class Service : public int? QoPolicyAllocationAndRetentionPriorityLevel { get => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IServicePropertiesFormatInternal)Property).ServiceQoPolicyAllocationAndRetentionPriorityLevel; set => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IServicePropertiesFormatInternal)Property).ServiceQoPolicyAllocationAndRetentionPriorityLevel = value ?? default(int); } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Origin(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.FormatTable(Index = 8)] @@ -268,15 +266,13 @@ public partial interface IService : PossibleTypes = new [] { typeof(int) })] int? QoPolicyAllocationAndRetentionPriorityLevel { get; set; } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( Required = false, ReadOnly = false, - Description = @"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.", + Description = @"5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values.", SerializedName = @"5qi", PossibleTypes = new [] { typeof(int) })] int? QoPolicyFiveQi { get; set; } @@ -331,10 +327,8 @@ internal partial interface IServiceInternal : /// int? QoPolicyAllocationAndRetentionPriorityLevel { get; set; } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// int? QoPolicyFiveQi { get; set; } /// diff --git a/src/MobileNetwork/generated/api/Models/Api20221101/ServicePropertiesFormat.cs b/src/MobileNetwork/generated/api/Models/Api20221101/ServicePropertiesFormat.cs index 8a97623aec42..1aebb457212c 100644 --- a/src/MobileNetwork/generated/api/Models/Api20221101/ServicePropertiesFormat.cs +++ b/src/MobileNetwork/generated/api/Models/Api20221101/ServicePropertiesFormat.cs @@ -64,10 +64,8 @@ public partial class ServicePropertiesFormat : public int? ServiceQoPolicyAllocationAndRetentionPriorityLevel { get => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IQosPolicyInternal)ServiceQosPolicy).AllocationAndRetentionPriorityLevel; set => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IQosPolicyInternal)ServiceQosPolicy).AllocationAndRetentionPriorityLevel = value ?? default(int); } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Origin(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.PropertyOrigin.Inlined)] public int? ServiceQoPolicyFiveQi { get => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IQosPolicyInternal)ServiceQosPolicy).FiveQi; set => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IQosPolicyInternal)ServiceQosPolicy).FiveQi = value ?? default(int); } @@ -163,15 +161,13 @@ public partial interface IServicePropertiesFormat : PossibleTypes = new [] { typeof(int) })] int? ServiceQoPolicyAllocationAndRetentionPriorityLevel { get; set; } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( Required = false, ReadOnly = false, - Description = @"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.", + Description = @"5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values.", SerializedName = @"5qi", PossibleTypes = new [] { typeof(int) })] int? ServiceQoPolicyFiveQi { get; set; } @@ -224,10 +220,8 @@ internal partial interface IServicePropertiesFormatInternal /// int? ServiceQoPolicyAllocationAndRetentionPriorityLevel { get; set; } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// int? ServiceQoPolicyFiveQi { get; set; } /// diff --git a/src/MobileNetwork/generated/api/Support/BillingSku.Completer.cs b/src/MobileNetwork/generated/api/Support/BillingSku.Completer.cs index 993d13adcc0a..14e717c2c3df 100644 --- a/src/MobileNetwork/generated/api/Support/BillingSku.Completer.cs +++ b/src/MobileNetwork/generated/api/Support/BillingSku.Completer.cs @@ -41,14 +41,6 @@ public partial struct BillingSku : { yield return new global::System.Management.Automation.CompletionResult("'G2'", "G2", global::System.Management.Automation.CompletionResultType.ParameterValue, "G2"); } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "G3".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'G3'", "G3", global::System.Management.Automation.CompletionResultType.ParameterValue, "G3"); - } - if (global::System.String.IsNullOrEmpty(wordToComplete) || "G4".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) - { - yield return new global::System.Management.Automation.CompletionResult("'G4'", "G4", global::System.Management.Automation.CompletionResultType.ParameterValue, "G4"); - } if (global::System.String.IsNullOrEmpty(wordToComplete) || "G5".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) { yield return new global::System.Management.Automation.CompletionResult("'G5'", "G5", global::System.Management.Automation.CompletionResultType.ParameterValue, "G5"); diff --git a/src/MobileNetwork/generated/api/Support/BillingSku.cs b/src/MobileNetwork/generated/api/Support/BillingSku.cs index 07a33821aa5e..c6e66c14534e 100644 --- a/src/MobileNetwork/generated/api/Support/BillingSku.cs +++ b/src/MobileNetwork/generated/api/Support/BillingSku.cs @@ -13,24 +13,18 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support public partial struct BillingSku : System.IEquatable { - /// 100 Mbps, 20 active SIMs plan + /// 100 Mbps, 20 active SIMs plan, 2 RANs public static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.BillingSku G0 = @"G0"; - /// 1 Gbps, 100 active SIMs plan + /// 1 Gbps, 100 active SIMs plan, 5 RANs public static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.BillingSku G1 = @"G1"; /// 10 Gbps, 1000 active SIMs plan public static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.BillingSku G10 = @"G10"; - /// 2 Gbps, 200 active SIMs plan + /// 2 Gbps, 200 active SIMs plan, 10 RANs public static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.BillingSku G2 = @"G2"; - /// 3 Gbps, 300 active SIMs plan - public static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.BillingSku G3 = @"G3"; - - /// 4 Gbps, 400 active SIMs plan - public static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.BillingSku G4 = @"G4"; - /// 5 Gbps, 500 active SIMs plan public static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.BillingSku G5 = @"G5"; diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkAttachedDataNetwork_Get.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkAttachedDataNetwork_Get.cs index a90bf7bb028b..5ac0f81a2d07 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkAttachedDataNetwork_Get.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkAttachedDataNetwork_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkAttachedDataNetwork_Get : global::System. public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkAttachedDataNetwork_GetViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkAttachedDataNetwork_GetViaIdentity.cs index 19d4ece39938..439d33f953a5 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkAttachedDataNetwork_GetViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkAttachedDataNetwork_GetViaIdentity.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkAttachedDataNetwork_GetViaIdentity : glob public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkAttachedDataNetwork_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkAttachedDataNetwork_List.cs index 98b74a89f36c..b5161633b807 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkAttachedDataNetwork_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkAttachedDataNetwork_List.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetworkAttachedDataNetwork_List : global::System public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkDataNetwork_Get.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkDataNetwork_Get.cs index 71e435a5262e..42cd98e61648 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkDataNetwork_Get.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkDataNetwork_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkDataNetwork_Get : global::System.Manageme public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkDataNetwork_GetViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkDataNetwork_GetViaIdentity.cs index be4cfb568a83..2eac035e97a6 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkDataNetwork_GetViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkDataNetwork_GetViaIdentity.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkDataNetwork_GetViaIdentity : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkDataNetwork_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkDataNetwork_List.cs index a2752550937b..68bb38859f5c 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkDataNetwork_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkDataNetwork_List.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetworkDataNetwork_List : global::System.Managem public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkOperation_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkOperation_List.cs index 267d2188d476..5efebc2f738f 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkOperation_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkOperation_List.cs @@ -49,9 +49,10 @@ public partial class GetAzMobileNetworkOperation_List : global::System.Managemen public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlaneVersion_Get.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlaneVersion_Get.cs index c0f4a839de2f..770c42afec07 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlaneVersion_Get.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlaneVersion_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkPacketCoreControlPlaneVersion_Get : globa public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlaneVersion_GetViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlaneVersion_GetViaIdentity.cs index 98a09e7ecf79..e328bfd7f50e 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlaneVersion_GetViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlaneVersion_GetViaIdentity.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkPacketCoreControlPlaneVersion_GetViaIdent public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlaneVersion_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlaneVersion_List.cs index 2aaf730f2f2d..6a702fa535b2 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlaneVersion_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlaneVersion_List.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetworkPacketCoreControlPlaneVersion_List : glob public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_Get.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_Get.cs index 497d6dcc5484..eb819eec0a9b 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_Get.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkPacketCoreControlPlane_Get : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_GetViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_GetViaIdentity.cs index a9ab249ad682..e1363d20c2ca 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_GetViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_GetViaIdentity.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkPacketCoreControlPlane_GetViaIdentity : g public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_List.cs index e4fd8f66c605..c7909b1c34d5 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_List.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetworkPacketCoreControlPlane_List : global::Sys public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_List1.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_List1.cs index c0983316b5bc..07cb482ff007 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_List1.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreControlPlane_List1.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetworkPacketCoreControlPlane_List1 : global::Sy public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreDataPlane_Get.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreDataPlane_Get.cs index b62c917a7877..8c55aa744068 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreDataPlane_Get.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreDataPlane_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkPacketCoreDataPlane_Get : global::System. public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreDataPlane_GetViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreDataPlane_GetViaIdentity.cs index 497b9179e5e3..d9976c3fc8ac 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreDataPlane_GetViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreDataPlane_GetViaIdentity.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkPacketCoreDataPlane_GetViaIdentity : glob public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreDataPlane_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreDataPlane_List.cs index 83a2c06ba7a3..5dcb70209ceb 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreDataPlane_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkPacketCoreDataPlane_List.cs @@ -50,9 +50,10 @@ public partial class GetAzMobileNetworkPacketCoreDataPlane_List : global::System public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkService_Get.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkService_Get.cs index 95b9410d993e..64d0b84df74a 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkService_Get.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkService_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkService_Get : global::System.Management.A public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkService_GetViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkService_GetViaIdentity.cs index dd3de801249b..adff8630e610 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkService_GetViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkService_GetViaIdentity.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkService_GetViaIdentity : global::System.M public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkService_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkService_List.cs index 14b5b6f773d4..2222c1e65f3e 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkService_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkService_List.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetworkService_List : global::System.Management. public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_Get.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_Get.cs index 656e5cc554e4..69114f86e666 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_Get.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkSimGroup_Get : global::System.Management. public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_GetViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_GetViaIdentity.cs index 56bbd035b115..1d97b5ffa4a6 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_GetViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_GetViaIdentity.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkSimGroup_GetViaIdentity : global::System. public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_List.cs index 10c52c1864d7..c02bc1c043fa 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_List.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetworkSimGroup_List : global::System.Management public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_List1.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_List1.cs index bea54a6915ac..a9622d70bc5b 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_List1.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimGroup_List1.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetworkSimGroup_List1 : global::System.Managemen public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimPolicy_Get.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimPolicy_Get.cs index 1e1ca6a73a71..7e15e5812bda 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimPolicy_Get.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimPolicy_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkSimPolicy_Get : global::System.Management public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimPolicy_GetViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimPolicy_GetViaIdentity.cs index c78451f6625d..c74aa3e4a6e8 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimPolicy_GetViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimPolicy_GetViaIdentity.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkSimPolicy_GetViaIdentity : global::System public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimPolicy_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimPolicy_List.cs index c644393dcf89..f99e1c5e287c 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimPolicy_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSimPolicy_List.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetworkSimPolicy_List : global::System.Managemen public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSim_Get.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSim_Get.cs index 67adee6450d0..3025cabed693 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSim_Get.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSim_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkSim_Get : global::System.Management.Autom public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSim_GetViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSim_GetViaIdentity.cs index 1a987019ad2e..f9e293bd8545 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSim_GetViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSim_GetViaIdentity.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkSim_GetViaIdentity : global::System.Manag public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSim_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSim_List.cs index 66513f23a41d..8378fa20fbc7 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSim_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSim_List.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetworkSim_List : global::System.Management.Auto public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSite_Get.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSite_Get.cs index 29d9b59f6182..755415058765 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSite_Get.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSite_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkSite_Get : global::System.Management.Auto public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSite_GetViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSite_GetViaIdentity.cs index 4a8a0687ec99..abb4b758f8f0 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSite_GetViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSite_GetViaIdentity.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkSite_GetViaIdentity : global::System.Mana public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSite_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSite_List.cs index 50fc9a0473a4..2942eede8b35 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSite_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSite_List.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetworkSite_List : global::System.Management.Aut public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSlice_Get.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSlice_Get.cs index c417892813c5..2f83c6b50a53 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSlice_Get.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSlice_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkSlice_Get : global::System.Management.Aut public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSlice_GetViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSlice_GetViaIdentity.cs index 4622efafc629..668c1e5b2272 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSlice_GetViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSlice_GetViaIdentity.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetworkSlice_GetViaIdentity : global::System.Man public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSlice_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSlice_List.cs index a8bdbdce028b..3714a603d1b9 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSlice_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetworkSlice_List.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetworkSlice_List : global::System.Management.Au public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_Get.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_Get.cs index 44faf3d21718..a878b86e19bc 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_Get.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_Get.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetwork_Get : global::System.Management.Automati public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_GetViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_GetViaIdentity.cs index b875767c597e..a56d19e881d3 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_GetViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_GetViaIdentity.cs @@ -42,9 +42,10 @@ public partial class GetAzMobileNetwork_GetViaIdentity : global::System.Manageme public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_List.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_List.cs index eebaec767124..928d08cc07f5 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_List.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_List.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetwork_List : global::System.Management.Automat public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_List1.cs b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_List1.cs index d34c495b460f..68205bb31f0a 100644 --- a/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_List1.cs +++ b/src/MobileNetwork/generated/cmdlets/GetAzMobileNetwork_List1.cs @@ -48,9 +48,10 @@ public partial class GetAzMobileNetwork_List1 : global::System.Management.Automa public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkAttachedDataNetwork_CreateExpanded.cs b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkAttachedDataNetwork_CreateExpanded.cs index fe4790370ba2..bff1ae85ad62 100644 --- a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkAttachedDataNetwork_CreateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkAttachedDataNetwork_CreateExpanded.cs @@ -54,9 +54,10 @@ public partial class NewAzMobileNetworkAttachedDataNetwork_CreateExpanded : glob public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkDataNetwork_CreateExpanded.cs b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkDataNetwork_CreateExpanded.cs index 70795051bb97..db77c2bae0d7 100644 --- a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkDataNetwork_CreateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkDataNetwork_CreateExpanded.cs @@ -54,9 +54,10 @@ public partial class NewAzMobileNetworkDataNetwork_CreateExpanded : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkPacketCoreControlPlane_CreateExpanded.cs b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkPacketCoreControlPlane_CreateExpanded.cs index 2be9628252a3..2f8208679d5d 100644 --- a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkPacketCoreControlPlane_CreateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkPacketCoreControlPlane_CreateExpanded.cs @@ -152,9 +152,10 @@ public partial class NewAzMobileNetworkPacketCoreControlPlane_CreateExpanded : g public string CustomLocationId { get => _parametersBody.CustomLocationId ?? null; set => _parametersBody.CustomLocationId = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkPacketCoreDataPlane_CreateExpanded.cs b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkPacketCoreDataPlane_CreateExpanded.cs index 5c8dce1c00e6..e2f7aba705ee 100644 --- a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkPacketCoreDataPlane_CreateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkPacketCoreDataPlane_CreateExpanded.cs @@ -54,9 +54,10 @@ public partial class NewAzMobileNetworkPacketCoreDataPlane_CreateExpanded : glob public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkService_CreateExpanded.cs b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkService_CreateExpanded.cs index a16dfb2bd2bb..5632373345cc 100644 --- a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkService_CreateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkService_CreateExpanded.cs @@ -54,9 +54,10 @@ public partial class NewAzMobileNetworkService_CreateExpanded : global::System.M public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] @@ -235,17 +236,15 @@ public partial class NewAzMobileNetworkService_CreateExpanded : global::System.M public int ServiceQoPolicyAllocationAndRetentionPriorityLevel { get => _parametersBody.QoPolicyAllocationAndRetentionPriorityLevel ?? default(int); set => _parametersBody.QoPolicyAllocationAndRetentionPriorityLevel = value; } /// - /// 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. + /// 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values. /// - [global::System.Management.Automation.Parameter(Mandatory = false, 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.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values.")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Body)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( Required = false, ReadOnly = false, - Description = @"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.", + Description = @"5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 5QI values.", SerializedName = @"5qi", PossibleTypes = new [] { typeof(int) })] public int ServiceQoPolicyFiveQi { get => _parametersBody.QoPolicyFiveQi ?? default(int); set => _parametersBody.QoPolicyFiveQi = value; } diff --git a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSimGroup_CreateExpanded.cs b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSimGroup_CreateExpanded.cs index 4ff79472d1ff..f49c31124f21 100644 --- a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSimGroup_CreateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSimGroup_CreateExpanded.cs @@ -12,7 +12,6 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets /// /// [OpenAPI] CreateOrUpdate=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}" /// - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzMobileNetworkSimGroup_CreateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Creates or updates a SIM group.")] @@ -51,9 +50,10 @@ public partial class NewAzMobileNetworkSimGroup_CreateExpanded : global::System. public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSimPolicy_CreateExpanded.cs b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSimPolicy_CreateExpanded.cs index e31cffbb50a9..55f6adaa964a 100644 --- a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSimPolicy_CreateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSimPolicy_CreateExpanded.cs @@ -52,9 +52,10 @@ public partial class NewAzMobileNetworkSimPolicy_CreateExpanded : global::System public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSim_CreateExpanded.cs b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSim_CreateExpanded.cs index 54df3037dd97..fbb0ebea4868 100644 --- a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSim_CreateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSim_CreateExpanded.cs @@ -61,9 +61,10 @@ public partial class NewAzMobileNetworkSim_CreateExpanded : global::System.Manag public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSite_CreateExpanded.cs b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSite_CreateExpanded.cs index 049e9c5afd7e..1fa409380d00 100644 --- a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSite_CreateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSite_CreateExpanded.cs @@ -54,9 +54,10 @@ public partial class NewAzMobileNetworkSite_CreateExpanded : global::System.Mana public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSlice_CreateExpanded.cs b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSlice_CreateExpanded.cs index 3aa9e1abd312..ebb9c302a79d 100644 --- a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSlice_CreateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetworkSlice_CreateExpanded.cs @@ -54,9 +54,10 @@ public partial class NewAzMobileNetworkSlice_CreateExpanded : global::System.Man public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetwork_CreateExpanded.cs b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetwork_CreateExpanded.cs index d035b94879e3..5a59de3cbac5 100644 --- a/src/MobileNetwork/generated/cmdlets/NewAzMobileNetwork_CreateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/NewAzMobileNetwork_CreateExpanded.cs @@ -50,9 +50,10 @@ public partial class NewAzMobileNetwork_CreateExpanded : global::System.Manageme public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkAttachedDataNetwork_Delete.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkAttachedDataNetwork_Delete.cs index 75bf00906f06..a0d0f2128a38 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkAttachedDataNetwork_Delete.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkAttachedDataNetwork_Delete.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkAttachedDataNetwork_Delete : global::S public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkAttachedDataNetwork_DeleteViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkAttachedDataNetwork_DeleteViaIdentity.cs index afb215660eca..da868a94ffd2 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkAttachedDataNetwork_DeleteViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkAttachedDataNetwork_DeleteViaIdentity.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkAttachedDataNetwork_DeleteViaIdentity public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkDataNetwork_Delete.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkDataNetwork_Delete.cs index 0921a4fd8761..fcd5e843084f 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkDataNetwork_Delete.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkDataNetwork_Delete.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkDataNetwork_Delete : global::System.Ma public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkDataNetwork_DeleteViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkDataNetwork_DeleteViaIdentity.cs index 93f7e5b26fcd..b7bfd9796e4c 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkDataNetwork_DeleteViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkDataNetwork_DeleteViaIdentity.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkDataNetwork_DeleteViaIdentity : global public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreControlPlane_Delete.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreControlPlane_Delete.cs index 49954cfdb9ea..02d9646944a1 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreControlPlane_Delete.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreControlPlane_Delete.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkPacketCoreControlPlane_Delete : global public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreControlPlane_DeleteViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreControlPlane_DeleteViaIdentity.cs index f75e21076598..9464d08db519 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreControlPlane_DeleteViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreControlPlane_DeleteViaIdentity.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkPacketCoreControlPlane_DeleteViaIdenti public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreDataPlane_Delete.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreDataPlane_Delete.cs index b0cf61f3a193..77110c236547 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreDataPlane_Delete.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreDataPlane_Delete.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkPacketCoreDataPlane_Delete : global::S public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreDataPlane_DeleteViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreDataPlane_DeleteViaIdentity.cs index e7389f2860cc..af6f4fada7a5 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreDataPlane_DeleteViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkPacketCoreDataPlane_DeleteViaIdentity.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkPacketCoreDataPlane_DeleteViaIdentity public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkService_Delete.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkService_Delete.cs index c7ff23b9fae5..e3b9875a0ba2 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkService_Delete.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkService_Delete.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkService_Delete : global::System.Manage public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkService_DeleteViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkService_DeleteViaIdentity.cs index 50054e182024..a49a1f2617cb 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkService_DeleteViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkService_DeleteViaIdentity.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkService_DeleteViaIdentity : global::Sy public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimGroup_Delete.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimGroup_Delete.cs index 80dc8efbe80f..78db2f2fdd79 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimGroup_Delete.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimGroup_Delete.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkSimGroup_Delete : global::System.Manag public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimGroup_DeleteViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimGroup_DeleteViaIdentity.cs index db3cd090b0c3..b42ecd74b0e0 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimGroup_DeleteViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimGroup_DeleteViaIdentity.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkSimGroup_DeleteViaIdentity : global::S public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimPolicy_Delete.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimPolicy_Delete.cs index 76bc23edb832..bda05b0745d6 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimPolicy_Delete.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimPolicy_Delete.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkSimPolicy_Delete : global::System.Mana public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimPolicy_DeleteViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimPolicy_DeleteViaIdentity.cs index fea68c61a115..f11962671fdc 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimPolicy_DeleteViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSimPolicy_DeleteViaIdentity.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkSimPolicy_DeleteViaIdentity : global:: public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSim_Delete.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSim_Delete.cs index e36fa1a176b7..21bbe33d0c89 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSim_Delete.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSim_Delete.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkSim_Delete : global::System.Management public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSim_DeleteViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSim_DeleteViaIdentity.cs index 18b4d1409dc7..b7e0be998942 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSim_DeleteViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSim_DeleteViaIdentity.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkSim_DeleteViaIdentity : global::System public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSite_Delete.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSite_Delete.cs index f0af8d884b52..4a620c9301c4 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSite_Delete.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSite_Delete.cs @@ -49,9 +49,10 @@ public partial class RemoveAzMobileNetworkSite_Delete : global::System.Managemen public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSite_DeleteViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSite_DeleteViaIdentity.cs index 39b3dbb9a019..5ce1dd6c7940 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSite_DeleteViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSite_DeleteViaIdentity.cs @@ -49,9 +49,10 @@ public partial class RemoveAzMobileNetworkSite_DeleteViaIdentity : global::Syste public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSlice_Delete.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSlice_Delete.cs index 38df0f68c20f..5c09192e77ae 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSlice_Delete.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSlice_Delete.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkSlice_Delete : global::System.Manageme public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSlice_DeleteViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSlice_DeleteViaIdentity.cs index 52ceef8272a0..a7e471e7c1a8 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSlice_DeleteViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetworkSlice_DeleteViaIdentity.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetworkSlice_DeleteViaIdentity : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetwork_Delete.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetwork_Delete.cs index 5804acb36caf..b0e0f0e68fe7 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetwork_Delete.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetwork_Delete.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetwork_Delete : global::System.Management.Au public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetwork_DeleteViaIdentity.cs b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetwork_DeleteViaIdentity.cs index ee38f2d1ff09..074f2fc640ad 100644 --- a/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetwork_DeleteViaIdentity.cs +++ b/src/MobileNetwork/generated/cmdlets/RemoveAzMobileNetwork_DeleteViaIdentity.cs @@ -47,9 +47,10 @@ public partial class RemoveAzMobileNetwork_DeleteViaIdentity : global::System.Ma public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkAttachedDataNetwork_UpdateExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkAttachedDataNetwork_UpdateExpanded.cs index aeb3011b9741..eaad372b4f63 100644 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkAttachedDataNetwork_UpdateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkAttachedDataNetwork_UpdateExpanded.cs @@ -12,6 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets /// /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}/attachedDataNetworks/{attachedDataNetworkName}" /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkAttachedDataNetwork_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork))] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates an attached data network tags.")] @@ -59,9 +60,10 @@ public partial class UpdateAzMobileNetworkAttachedDataNetwork_UpdateExpanded : g public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkAttachedDataNetwork_UpdateViaIdentityExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkAttachedDataNetwork_UpdateViaIdentityExpanded.cs deleted file mode 100644 index 076d319c2904..000000000000 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkAttachedDataNetwork_UpdateViaIdentityExpanded.cs +++ /dev/null @@ -1,409 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Extensions; - using System; - - /// Updates an attached data network tags. - /// - /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}/attachedDataNetworks/{attachedDataNetworkName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkAttachedDataNetwork_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates an attached data network tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Generated] - public partial class UpdateAzMobileNetworkAttachedDataNetwork_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Tags object for patch operations. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.TagsObject(); - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'AttachedDataNetworksUpdateTags' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.AttachedDataNetworksUpdateTagsViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.PacketCoreControlPlaneName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PacketCoreControlPlaneName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.PacketCoreDataPlaneName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PacketCoreDataPlaneName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.AttachedDataNetworkName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.AttachedDataNetworkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.AttachedDataNetworksUpdateTags(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.PacketCoreControlPlaneName ?? null, InputObject.PacketCoreDataPlaneName ?? null, InputObject.AttachedDataNetworkName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Intializes a new instance of the cmdlet - /// class. - /// - public UpdateAzMobileNetworkAttachedDataNetwork_UpdateViaIdentityExpanded() - { - - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkDataNetwork_UpdateExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkDataNetwork_UpdateExpanded.cs index c15e57c11a6b..3944b0afb65d 100644 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkDataNetwork_UpdateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkDataNetwork_UpdateExpanded.cs @@ -12,6 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets /// /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/dataNetworks/{dataNetworkName}" /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkDataNetwork_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork))] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates data network tags.")] @@ -59,9 +60,10 @@ public partial class UpdateAzMobileNetworkDataNetwork_UpdateExpanded : global::S public string DataNetworkName { get => this._dataNetworkName; set => this._dataNetworkName = value; } /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkDataNetwork_UpdateViaIdentityExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkDataNetwork_UpdateViaIdentityExpanded.cs deleted file mode 100644 index a63c80eb0e69..000000000000 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkDataNetwork_UpdateViaIdentityExpanded.cs +++ /dev/null @@ -1,404 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Extensions; - using System; - - /// Updates data network tags. - /// - /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/dataNetworks/{dataNetworkName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkDataNetwork_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork))] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates data network tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Generated] - public partial class UpdateAzMobileNetworkDataNetwork_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Tags object for patch operations. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.TagsObject(); - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'DataNetworksUpdateTags' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.DataNetworksUpdateTagsViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.MobileNetworkName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.MobileNetworkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.DataNetworkName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.DataNetworkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.DataNetworksUpdateTags(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.MobileNetworkName ?? null, InputObject.DataNetworkName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Intializes a new instance of the cmdlet class. - /// - public UpdateAzMobileNetworkDataNetwork_UpdateViaIdentityExpanded() - { - - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreControlPlane_UpdateExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreControlPlane_UpdateExpanded.cs index 94969c4ad5cd..4c59d9283f34 100644 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreControlPlane_UpdateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreControlPlane_UpdateExpanded.cs @@ -12,6 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets /// /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}" /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkPacketCoreControlPlane_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane))] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates packet core control planes tags.")] @@ -45,9 +46,10 @@ public partial class UpdateAzMobileNetworkPacketCoreControlPlane_UpdateExpanded public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreControlPlane_UpdateViaIdentityExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreControlPlane_UpdateViaIdentityExpanded.cs deleted file mode 100644 index 94ec5b4311c4..000000000000 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreControlPlane_UpdateViaIdentityExpanded.cs +++ /dev/null @@ -1,401 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Extensions; - using System; - - /// Updates packet core control planes tags. - /// - /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkPacketCoreControlPlane_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane))] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates packet core control planes tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Generated] - public partial class UpdateAzMobileNetworkPacketCoreControlPlane_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Tags object for patch operations. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.TagsObject(); - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'PacketCoreControlPlanesUpdateTags' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.PacketCoreControlPlanesUpdateTagsViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.PacketCoreControlPlaneName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PacketCoreControlPlaneName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.PacketCoreControlPlanesUpdateTags(InputObject.ResourceGroupName ?? null, InputObject.PacketCoreControlPlaneName ?? null, InputObject.SubscriptionId ?? null, _parametersBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Intializes a new instance of the - /// cmdlet class. - /// - public UpdateAzMobileNetworkPacketCoreControlPlane_UpdateViaIdentityExpanded() - { - - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreDataPlane_UpdateExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreDataPlane_UpdateExpanded.cs index 1979023a4cbc..12d927d6c546 100644 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreDataPlane_UpdateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreDataPlane_UpdateExpanded.cs @@ -12,6 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets /// /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}" /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkPacketCoreDataPlane_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane))] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates packet core data planes tags.")] @@ -45,9 +46,10 @@ public partial class UpdateAzMobileNetworkPacketCoreDataPlane_UpdateExpanded : g public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreDataPlane_UpdateViaIdentityExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreDataPlane_UpdateViaIdentityExpanded.cs deleted file mode 100644 index a8395c575602..000000000000 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkPacketCoreDataPlane_UpdateViaIdentityExpanded.cs +++ /dev/null @@ -1,405 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Extensions; - using System; - - /// Updates packet core data planes tags. - /// - /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/packetCoreControlPlanes/{packetCoreControlPlaneName}/packetCoreDataPlanes/{packetCoreDataPlaneName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkPacketCoreDataPlane_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane))] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates packet core data planes tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Generated] - public partial class UpdateAzMobileNetworkPacketCoreDataPlane_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Tags object for patch operations. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.TagsObject(); - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'PacketCoreDataPlanesUpdateTags' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.PacketCoreDataPlanesUpdateTagsViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.PacketCoreControlPlaneName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PacketCoreControlPlaneName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.PacketCoreDataPlaneName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PacketCoreDataPlaneName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.PacketCoreDataPlanesUpdateTags(InputObject.ResourceGroupName ?? null, InputObject.PacketCoreControlPlaneName ?? null, InputObject.PacketCoreDataPlaneName ?? null, InputObject.SubscriptionId ?? null, _parametersBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Intializes a new instance of the cmdlet - /// class. - /// - public UpdateAzMobileNetworkPacketCoreDataPlane_UpdateViaIdentityExpanded() - { - - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkService_UpdateExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkService_UpdateExpanded.cs index c03cc234485b..471d36134f22 100644 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkService_UpdateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkService_UpdateExpanded.cs @@ -12,6 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets /// /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/services/{serviceName}" /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkService_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService))] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates service tags.")] @@ -45,9 +46,10 @@ public partial class UpdateAzMobileNetworkService_UpdateExpanded : global::Syste public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkService_UpdateViaIdentityExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkService_UpdateViaIdentityExpanded.cs deleted file mode 100644 index a981b0440964..000000000000 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkService_UpdateViaIdentityExpanded.cs +++ /dev/null @@ -1,404 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Extensions; - using System; - - /// Updates service tags. - /// - /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/services/{serviceName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkService_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService))] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates service tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Generated] - public partial class UpdateAzMobileNetworkService_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Tags object for patch operations. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.TagsObject(); - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'ServicesUpdateTags' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.ServicesUpdateTagsViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.MobileNetworkName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.MobileNetworkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ServiceName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ServiceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.ServicesUpdateTags(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.MobileNetworkName ?? null, InputObject.ServiceName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Intializes a new instance of the cmdlet class. - /// - public UpdateAzMobileNetworkService_UpdateViaIdentityExpanded() - { - - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimGroup_UpdateExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimGroup_UpdateExpanded.cs index 3ea9d08adb71..178a8f967335 100644 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimGroup_UpdateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimGroup_UpdateExpanded.cs @@ -12,6 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets /// /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}" /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkSimGroup_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup))] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates SIM group tags.")] @@ -45,9 +46,10 @@ public partial class UpdateAzMobileNetworkSimGroup_UpdateExpanded : global::Syst public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimGroup_UpdateViaIdentityExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimGroup_UpdateViaIdentityExpanded.cs deleted file mode 100644 index edab7725b2a6..000000000000 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimGroup_UpdateViaIdentityExpanded.cs +++ /dev/null @@ -1,400 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Extensions; - using System; - - /// Updates SIM group tags. - /// - /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/simGroups/{simGroupName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkSimGroup_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup))] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates SIM group tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Generated] - public partial class UpdateAzMobileNetworkSimGroup_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Tags object for patch operations. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.TagsObject(); - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'SimGroupsUpdateTags' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.SimGroupsUpdateTagsViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.SimGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SimGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.SimGroupsUpdateTags(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.SimGroupName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Intializes a new instance of the cmdlet class. - /// - public UpdateAzMobileNetworkSimGroup_UpdateViaIdentityExpanded() - { - - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimPolicy_UpdateExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimPolicy_UpdateExpanded.cs index 9fef31b3a18e..74f1fa29e4c4 100644 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimPolicy_UpdateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimPolicy_UpdateExpanded.cs @@ -12,6 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets /// /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/simPolicies/{simPolicyName}" /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkSimPolicy_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy))] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates SIM policy tags.")] @@ -45,9 +46,10 @@ public partial class UpdateAzMobileNetworkSimPolicy_UpdateExpanded : global::Sys public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimPolicy_UpdateViaIdentityExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimPolicy_UpdateViaIdentityExpanded.cs deleted file mode 100644 index 0c84d0863d8c..000000000000 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSimPolicy_UpdateViaIdentityExpanded.cs +++ /dev/null @@ -1,404 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Extensions; - using System; - - /// Updates SIM policy tags. - /// - /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/simPolicies/{simPolicyName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkSimPolicy_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy))] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates SIM policy tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Generated] - public partial class UpdateAzMobileNetworkSimPolicy_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Tags object for patch operations. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.TagsObject(); - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'SimPoliciesUpdateTags' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.SimPoliciesUpdateTagsViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.MobileNetworkName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.MobileNetworkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.SimPolicyName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SimPolicyName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.SimPoliciesUpdateTags(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.MobileNetworkName ?? null, InputObject.SimPolicyName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Intializes a new instance of the cmdlet class. - /// - public UpdateAzMobileNetworkSimPolicy_UpdateViaIdentityExpanded() - { - - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSite_UpdateExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSite_UpdateExpanded.cs index 7dba45d58cd1..d7b44a7292f2 100644 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSite_UpdateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSite_UpdateExpanded.cs @@ -45,9 +45,10 @@ public partial class UpdateAzMobileNetworkSite_UpdateExpanded : global::System.M public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSite_UpdateViaIdentityExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSite_UpdateViaIdentityExpanded.cs index 117fd15e9fc9..f46220439092 100644 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSite_UpdateViaIdentityExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSite_UpdateViaIdentityExpanded.cs @@ -45,9 +45,10 @@ public partial class UpdateAzMobileNetworkSite_UpdateViaIdentityExpanded : globa public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSlice_UpdateExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSlice_UpdateExpanded.cs index 6bc46c77f8ed..838245b870e9 100644 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSlice_UpdateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSlice_UpdateExpanded.cs @@ -12,6 +12,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets /// /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/slices/{sliceName}" /// + [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkSlice_UpdateExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice))] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates slice tags.")] @@ -45,9 +46,10 @@ public partial class UpdateAzMobileNetworkSlice_UpdateExpanded : global::System. public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSlice_UpdateViaIdentityExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSlice_UpdateViaIdentityExpanded.cs deleted file mode 100644 index c668278abc6e..000000000000 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetworkSlice_UpdateViaIdentityExpanded.cs +++ /dev/null @@ -1,404 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Cmdlets -{ - using static Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Extensions; - using System; - - /// Updates slice tags. - /// - /// [OpenAPI] UpdateTags=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MobileNetwork/mobileNetworks/{mobileNetworkName}/slices/{sliceName}" - /// - [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzMobileNetworkSlice_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice))] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Description(@"Updates slice tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Generated] - public partial class UpdateAzMobileNetworkSlice_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener - { - /// A unique id generatd for the this cmdlet when it is instantiated. - private string __correlationId = System.Guid.NewGuid().ToString(); - - /// A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet) - private global::System.Management.Automation.InvocationInfo __invocationInfo; - - /// A unique id generatd for the this cmdlet when ProcessRecord() is called. - private string __processRecordId; - - /// - /// The for this operation. - /// - private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); - - /// Tags object for patch operations. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObject _parametersBody = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.TagsObject(); - - /// Wait for .NET debugger to attach - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter Break { get; set; } - - /// The reference to the client API class. - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; - - /// - /// The credentials, account, tenant, and subscription used for communication with Azure - /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] - [global::System.Management.Automation.ValidateNotNull] - [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] - public global::System.Management.Automation.PSObject DefaultProfile { get; set; } - - /// SendAsync Pipeline Steps to be appended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } - - /// SendAsync Pipeline Steps to be prepended to the front of the pipeline - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity _inputObject; - - /// Identity Parameter - [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Path)] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } - - /// Accessor for our copy of the InvocationInfo. - public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } - - /// - /// cancellation delegate. Stops the cmdlet when called. - /// - global::System.Action Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; - - /// cancellation token. - global::System.Threading.CancellationToken Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Token => _cancellationTokenSource.Token; - - /// - /// The instance of the that the remote call will use. - /// - private Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.HttpPipeline Pipeline { get; set; } - - /// The URI for the proxy server to use - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Uri Proxy { get; set; } - - /// Credentials for a proxy server to use for the remote call - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] - [global::System.Management.Automation.ValidateNotNull] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } - - /// Use the default credentials for the proxy - [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Runtime)] - public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } - - /// Resource tags. - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ExportAs(typeof(global::System.Collections.Hashtable))] - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Resource tags.")] - [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Body)] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Resource tags.", - SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags Tag { get => _parametersBody.Tag ?? null /* object */; set => _parametersBody.Tag = value; } - - /// - /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what - /// happens on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// /// Determines if the rest of the onDefault method should be processed, or if the method should - /// return immediately (set to true to skip further processing ) - - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens - /// on that response. Implement this method in a partial class to enable this behavior - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice - /// from the remote call - /// /// Determines if the rest of the onOk method should be processed, or if the method should return - /// immediately (set to true to skip further processing ) - - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); - - /// - /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) - /// - protected override void BeginProcessing() - { - var telemetryId = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.GetTelemetryId.Invoke(); - if (telemetryId != "" && telemetryId != "internal") - { - __correlationId = telemetryId; - } - Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); - if (Break) - { - Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.AttachDebugger.Break(); - } - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - - /// Performs clean-up after the command execution - protected override void EndProcessing() - { - - } - - /// Handles/Dispatches events during the call to the REST service. - /// The message id - /// The message cancellation token. When this call is cancelled, this should be true - /// Detailed message data for the message event. - /// - /// A that will be complete when handling of the message is completed. - /// - async global::System.Threading.Tasks.Task Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func messageData) - { - using( NoSynchronizationContext ) - { - if (token.IsCancellationRequested) - { - return ; - } - - switch ( id ) - { - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Verbose: - { - WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Warning: - { - WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Information: - { - var data = messageData(); - WriteInformation(data.Message, new string[]{}); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Debug: - { - WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); - return ; - } - case Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.Error: - { - WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); - return ; - } - } - await Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.Signal(id, token, messageData, (i,t,m) => ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(i,t,()=> Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventDataConverter.ConvertFrom( m() ) as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.EventData ), InvocationInformation, this.ParameterSetName, __correlationId, __processRecordId, null ); - if (token.IsCancellationRequested) - { - return ; - } - WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); - } - } - - /// Performs execution of the command. - protected override void ProcessRecord() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - __processRecordId = System.Guid.NewGuid().ToString(); - try - { - // work - if (ShouldProcess($"Call remote 'SlicesUpdateTags' operation")) - { - using( var asyncCommandRuntime = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.AsyncCommandRuntime(this, ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token) ) - { - asyncCommandRuntime.Wait( ProcessRecordAsync(),((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token); - } - } - } - catch (global::System.AggregateException aggregateException) - { - // unroll the inner exceptions to get the root cause - foreach( var innerException in aggregateException.Flatten().InnerExceptions ) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - } - catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - // Write exception out to error channel. - WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); - } - finally - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordEnd).Wait(); - } - } - - /// Performs execution of the command, working asynchronously if required. - /// - /// A that will be complete when handling of the method is completed. - /// - protected async global::System.Threading.Tasks.Task ProcessRecordAsync() - { - using( NoSynchronizationContext ) - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletGetPipeline); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - Pipeline = Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.CreatePipeline(InvocationInformation, __correlationId, __processRecordId, this.ParameterSetName); - if (null != HttpPipelinePrepend) - { - Pipeline.Prepend((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); - } - if (null != HttpPipelineAppend) - { - Pipeline.Append((this.CommandRuntime as Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); - } - // get the client instance - try - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletBeforeAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - if (InputObject?.Id != null) - { - await this.Client.SlicesUpdateTagsViaIdentity(InputObject.Id, _parametersBody, onOk, onDefault, this, Pipeline); - } - else - { - // try to call with PATH parameters from Input Object - if (null == InputObject.SubscriptionId) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SubscriptionId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.ResourceGroupName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.ResourceGroupName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.MobileNetworkName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.MobileNetworkName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - if (null == InputObject.SliceName) - { - ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.SliceName"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); - } - await this.Client.SlicesUpdateTags(InputObject.SubscriptionId ?? null, InputObject.ResourceGroupName ?? null, InputObject.MobileNetworkName ?? null, InputObject.SliceName ?? null, _parametersBody, onOk, onDefault, this, Pipeline); - } - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletAfterAPICall); if( ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } - } - catch (Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.UndeclaredResponseException urexception) - { - WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody}) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } - }); - } - finally - { - await ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Signal(Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Events.CmdletProcessRecordAsyncEnd); - } - } - } - - /// Interrupts currently running code within the command. - protected override void StopProcessing() - { - ((Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.IEventListener)this).Cancel(); - base.StopProcessing(); - } - - /// - /// Intializes a new instance of the cmdlet class. - /// - public UpdateAzMobileNetworkSlice_UpdateViaIdentityExpanded() - { - - } - - /// - /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). - /// - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.IErrorResponse - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnDefault(responseMessage, response, ref _returnNow); - // if overrideOnDefault has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // Error Response : default - var code = (await response)?.Code; - var message = (await response)?.Message; - if ((null == code || null == message)) - { - // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.RestException(responseMessage, await response); - WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } - }); - } - else - { - WriteError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception($"[{code}] : {message}"), code?.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { body=_parametersBody }) - { - ErrorDetails = new global::System.Management.Automation.ErrorDetails(message) { RecommendedAction = global::System.String.Empty } - }); - } - } - } - - /// a delegate that is called when the remote service returns 200 (OK). - /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice - /// from the remote call - /// - /// A that will be complete when handling of the method is completed. - /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) - { - using( NoSynchronizationContext ) - { - var _returnNow = global::System.Threading.Tasks.Task.FromResult(false); - overrideOnOk(responseMessage, response, ref _returnNow); - // if overrideOnOk has returned true, then return right away. - if ((null != _returnNow && await _returnNow)) - { - return ; - } - // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice - WriteObject((await response)); - } - } - } -} \ No newline at end of file diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetwork_UpdateExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetwork_UpdateExpanded.cs index 8709de60f598..0a3e56921cee 100644 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetwork_UpdateExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetwork_UpdateExpanded.cs @@ -45,9 +45,10 @@ public partial class UpdateAzMobileNetwork_UpdateExpanded : global::System.Manag public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetwork_UpdateViaIdentityExpanded.cs b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetwork_UpdateViaIdentityExpanded.cs index a7270c81b491..bc34eb139f3b 100644 --- a/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetwork_UpdateViaIdentityExpanded.cs +++ b/src/MobileNetwork/generated/cmdlets/UpdateAzMobileNetwork_UpdateViaIdentityExpanded.cs @@ -45,9 +45,10 @@ public partial class UpdateAzMobileNetwork_UpdateViaIdentityExpanded : global::S public Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.MobileNetwork Client => Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Module.Instance.ClientAPI; /// - /// The credentials, account, tenant, and subscription used for communication with Azure + /// The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet + /// against a different subscription /// - [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The credentials, account, tenant, and subscription used for communication with Azure.")] + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.")] [global::System.Management.Automation.ValidateNotNull] [global::System.Management.Automation.Alias("AzureRMContext", "AzureCredential")] [global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category(global::Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.ParameterCategory.Azure)] diff --git a/src/MobileNetwork/generated/runtime/BuildTime/Models/PsProxyOutputs.cs b/src/MobileNetwork/generated/runtime/BuildTime/Models/PsProxyOutputs.cs index e4965873ecb6..a89df09c299c 100644 --- a/src/MobileNetwork/generated/runtime/BuildTime/Models/PsProxyOutputs.cs +++ b/src/MobileNetwork/generated/runtime/BuildTime/Models/PsProxyOutputs.cs @@ -199,7 +199,7 @@ private string GetTelemetry() { return $@" {Indent}{Indent}if ($null -eq [Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion) {{ -{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $Host.Version.ToString() +{Indent}{Indent}{Indent}[Microsoft.WindowsAzure.Commands.Utilities.Common.AzurePSCmdlet]::PowerShellVersion = $PSVersionTable.PSVersion.ToString() {Indent}{Indent}}} {Indent}{Indent}$preTelemetryId = [Microsoft.WindowsAzure.Commands.Common.MetricHelper]::TelemetryId {Indent}{Indent}if ($preTelemetryId -eq '') {{ diff --git a/src/MobileNetwork/generated/runtime/MessageAttributeHelper.cs b/src/MobileNetwork/generated/runtime/MessageAttributeHelper.cs index 12a5a9d5fce1..d1ab22b25b6c 100644 --- a/src/MobileNetwork/generated/runtime/MessageAttributeHelper.cs +++ b/src/MobileNetwork/generated/runtime/MessageAttributeHelper.cs @@ -23,6 +23,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime using System.Threading.Tasks; public class MessageAttributeHelper { + private static readonly bool IsAzure = Convert.ToBoolean(@"true"); public const string BREAKING_CHANGE_ATTRIBUTE_INFORMATION_LINK = "https://aka.ms/azps-changewarnings"; public const string SUPPRESS_ERROR_OR_WARNING_MESSAGE_ENV_VARIABLE_NAME = "SuppressAzurePowerShellBreakingChangeWarnings"; @@ -52,7 +53,10 @@ public static void ProcessCustomAttributesAtRuntime(CommandInfo commandInfo, Inv //Do not process the attributes at runtime... The env variable to override the warning messages is set return; } - + if (IsAzure && invocationInfo.BoundParameters.ContainsKey("DefaultProfile")) + { + psCmdlet.WriteWarning("The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription."); + } List attributes = new List(GetAllBreakingChangeAttributesInType(commandInfo, invocationInfo, parameterSet)); StringBuilder sb = new StringBuilder(); Action appendBreakingChangeInfo = (string s) => sb.Append(s); diff --git a/src/MobileNetwork/help/Az.MobileNetwork.md b/src/MobileNetwork/help/Az.MobileNetwork.md index c58317bbeb41..1aa359daa82e 100644 --- a/src/MobileNetwork/help/Az.MobileNetwork.md +++ b/src/MobileNetwork/help/Az.MobileNetwork.md @@ -146,29 +146,29 @@ Deletes the specified network slice. Updates mobile network tags. ### [Update-AzMobileNetworkAttachedDataNetwork](Update-AzMobileNetworkAttachedDataNetwork.md) -Updates an attached data network tags. +Updates an attached data network. ### [Update-AzMobileNetworkDataNetwork](Update-AzMobileNetworkDataNetwork.md) -Updates data network tags. +Updates data network. ### [Update-AzMobileNetworkPacketCoreControlPlane](Update-AzMobileNetworkPacketCoreControlPlane.md) -Updates packet core control planes tags. +Updates packet core control planes. ### [Update-AzMobileNetworkPacketCoreDataPlane](Update-AzMobileNetworkPacketCoreDataPlane.md) -Updates packet core data planes tags. +Updates packet core data planes. ### [Update-AzMobileNetworkService](Update-AzMobileNetworkService.md) -Updates service tags. +Updates service. ### [Update-AzMobileNetworkSimGroup](Update-AzMobileNetworkSimGroup.md) -Updates SIM group tags. +Updates SIM group. ### [Update-AzMobileNetworkSimPolicy](Update-AzMobileNetworkSimPolicy.md) -Updates SIM policy tags. +Updates SIM policy. ### [Update-AzMobileNetworkSite](Update-AzMobileNetworkSite.md) Updates site tags. ### [Update-AzMobileNetworkSlice](Update-AzMobileNetworkSlice.md) -Updates slice tags. +Updates slice. diff --git a/src/MobileNetwork/help/Get-AzMobileNetwork.md b/src/MobileNetwork/help/Get-AzMobileNetwork.md index 15f7e8d3f597..86ae929be57a 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetwork.md +++ b/src/MobileNetwork/help/Get-AzMobileNetwork.md @@ -83,7 +83,8 @@ Get information about the specified mobile network. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Get-AzMobileNetworkAttachedDataNetwork.md b/src/MobileNetwork/help/Get-AzMobileNetworkAttachedDataNetwork.md index 7623bd4a9698..52aa13d442ac 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetworkAttachedDataNetwork.md +++ b/src/MobileNetwork/help/Get-AzMobileNetworkAttachedDataNetwork.md @@ -65,7 +65,8 @@ Get information about the specified attached data network by Name. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Get-AzMobileNetworkDataNetwork.md b/src/MobileNetwork/help/Get-AzMobileNetworkDataNetwork.md index 3b10e3b6ff61..353c6152523e 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetworkDataNetwork.md +++ b/src/MobileNetwork/help/Get-AzMobileNetworkDataNetwork.md @@ -64,7 +64,8 @@ Get information about the specified data network. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreControlPlane.md b/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreControlPlane.md index 3c092293c49a..795b2f09b5ae 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreControlPlane.md +++ b/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreControlPlane.md @@ -56,7 +56,7 @@ 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 +Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroupName azps_test_group ``` ```output @@ -69,7 +69,7 @@ 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 +Get-AzMobileNetworkPacketCoreControlPlane -ResourceGroupName azps_test_group -Name azps-mn-pccp ``` ```output @@ -83,7 +83,8 @@ Get information about the specified packet core control plane by Name. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md b/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md index d65687b7fe12..290f148aad9c 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md +++ b/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreControlPlaneVersion.md @@ -64,7 +64,8 @@ Get information about the specified packet core control plane version by Version ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreDataPlane.md b/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreDataPlane.md index 885d8d97729c..f703cc63a7c0 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreDataPlane.md +++ b/src/MobileNetwork/help/Get-AzMobileNetworkPacketCoreDataPlane.md @@ -64,7 +64,8 @@ Get information about the specified packet core data plane by Name. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Get-AzMobileNetworkService.md b/src/MobileNetwork/help/Get-AzMobileNetworkService.md index 7804a02dc68f..ec044cc34a68 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetworkService.md +++ b/src/MobileNetwork/help/Get-AzMobileNetworkService.md @@ -64,7 +64,8 @@ Get information about the specified service. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Get-AzMobileNetworkSim.md b/src/MobileNetwork/help/Get-AzMobileNetworkSim.md index dbf1ea8df9f1..d72b749742c1 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetworkSim.md +++ b/src/MobileNetwork/help/Get-AzMobileNetworkSim.md @@ -63,7 +63,8 @@ Get information about the specified SIM by Name. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Get-AzMobileNetworkSimGroup.md b/src/MobileNetwork/help/Get-AzMobileNetworkSimGroup.md index 992927df4013..9f41f9e42c76 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetworkSimGroup.md +++ b/src/MobileNetwork/help/Get-AzMobileNetworkSimGroup.md @@ -82,7 +82,8 @@ Get information about the specified SIM group. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Get-AzMobileNetworkSimPolicy.md b/src/MobileNetwork/help/Get-AzMobileNetworkSimPolicy.md index 1ecb86b063bd..a573170951ff 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetworkSimPolicy.md +++ b/src/MobileNetwork/help/Get-AzMobileNetworkSimPolicy.md @@ -64,7 +64,8 @@ Get information about the specified SIM policy. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Get-AzMobileNetworkSite.md b/src/MobileNetwork/help/Get-AzMobileNetworkSite.md index 71aa28cd5576..9a92a1d4bf43 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetworkSite.md +++ b/src/MobileNetwork/help/Get-AzMobileNetworkSite.md @@ -64,7 +64,8 @@ Get information about the specified mobile network site. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Get-AzMobileNetworkSlice.md b/src/MobileNetwork/help/Get-AzMobileNetworkSlice.md index 7ac7185eac76..9e76981e3585 100644 --- a/src/MobileNetwork/help/Get-AzMobileNetworkSlice.md +++ b/src/MobileNetwork/help/Get-AzMobileNetworkSlice.md @@ -64,7 +64,8 @@ Get information about the specified network slice. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/New-AzMobileNetwork.md b/src/MobileNetwork/help/New-AzMobileNetwork.md index 52fc523fe9c7..910ce26b2c1c 100644 --- a/src/MobileNetwork/help/New-AzMobileNetwork.md +++ b/src/MobileNetwork/help/New-AzMobileNetwork.md @@ -55,7 +55,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/New-AzMobileNetworkAttachedDataNetwork.md b/src/MobileNetwork/help/New-AzMobileNetworkAttachedDataNetwork.md index a4b8ea23c5a8..d9dc6a678950 100644 --- a/src/MobileNetwork/help/New-AzMobileNetworkAttachedDataNetwork.md +++ b/src/MobileNetwork/help/New-AzMobileNetworkAttachedDataNetwork.md @@ -66,7 +66,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/New-AzMobileNetworkDataNetwork.md b/src/MobileNetwork/help/New-AzMobileNetworkDataNetwork.md index 8fe8395ea51c..6bc775b27d85 100644 --- a/src/MobileNetwork/help/New-AzMobileNetworkDataNetwork.md +++ b/src/MobileNetwork/help/New-AzMobileNetworkDataNetwork.md @@ -57,7 +57,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/New-AzMobileNetworkPacketCoreControlPlane.md b/src/MobileNetwork/help/New-AzMobileNetworkPacketCoreControlPlane.md index 94bb6ac830e9..ecc49b247ddc 100644 --- a/src/MobileNetwork/help/New-AzMobileNetworkPacketCoreControlPlane.md +++ b/src/MobileNetwork/help/New-AzMobileNetworkPacketCoreControlPlane.md @@ -199,7 +199,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/New-AzMobileNetworkPacketCoreDataPlane.md b/src/MobileNetwork/help/New-AzMobileNetworkPacketCoreDataPlane.md index fc8a6c1ba80f..4d3290061c15 100644 --- a/src/MobileNetwork/help/New-AzMobileNetworkPacketCoreDataPlane.md +++ b/src/MobileNetwork/help/New-AzMobileNetworkPacketCoreDataPlane.md @@ -59,7 +59,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/New-AzMobileNetworkService.md b/src/MobileNetwork/help/New-AzMobileNetworkService.md index 9864204885b7..9f16e7e2a83c 100644 --- a/src/MobileNetwork/help/New-AzMobileNetworkService.md +++ b/src/MobileNetwork/help/New-AzMobileNetworkService.md @@ -65,7 +65,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -239,11 +240,9 @@ Accept wildcard characters: False ``` ### -ServiceQoPolicyFiveQi -QoS Flow 5G QoS Indicator value. +5G QoS Flow 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. +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 the 5QI values. ```yaml Type: System.Int32 @@ -382,7 +381,7 @@ To create the parameters described below, construct a hash table containing the - `[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. + - `[RuleQoPolicyFiveQi ]`: 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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. diff --git a/src/MobileNetwork/help/New-AzMobileNetworkSim.md b/src/MobileNetwork/help/New-AzMobileNetworkSim.md index a0c92cf25109..689c3f453826 100644 --- a/src/MobileNetwork/help/New-AzMobileNetworkSim.md +++ b/src/MobileNetwork/help/New-AzMobileNetworkSim.md @@ -73,7 +73,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/New-AzMobileNetworkSimGroup.md b/src/MobileNetwork/help/New-AzMobileNetworkSimGroup.md index f2bfbc890f3f..229555932e8a 100644 --- a/src/MobileNetwork/help/New-AzMobileNetworkSimGroup.md +++ b/src/MobileNetwork/help/New-AzMobileNetworkSimGroup.md @@ -14,8 +14,8 @@ Creates or updates a SIM group. ``` New-AzMobileNetworkSimGroup -Name -ResourceGroupName -Location - -MobileNetworkId [-SubscriptionId ] [-EncryptionKeyUrl ] - [-IdentityType ] [-IdentityUserAssignedIdentity ] [-Tag ] + [-SubscriptionId ] [-EncryptionKeyUrl ] [-IdentityType ] + [-IdentityUserAssignedIdentity ] [-MobileNetworkId ] [-Tag ] [-DefaultProfile ] [-AsJob] [-NoWait] [-Confirm] [-WhatIf] [] ``` @@ -26,8 +26,6 @@ Creates or updates a SIM group. ### 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" ``` @@ -58,7 +56,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -143,7 +142,7 @@ Type: System.String Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False diff --git a/src/MobileNetwork/help/New-AzMobileNetworkSimPolicy.md b/src/MobileNetwork/help/New-AzMobileNetworkSimPolicy.md index b8e15bae0d61..8997d52aae71 100644 --- a/src/MobileNetwork/help/New-AzMobileNetworkSimPolicy.md +++ b/src/MobileNetwork/help/New-AzMobileNetworkSimPolicy.md @@ -65,7 +65,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -337,7 +338,7 @@ To create the parameters described below, construct a hash table containing the - `[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. + - `[FiveQi ]`: Default 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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. diff --git a/src/MobileNetwork/help/New-AzMobileNetworkSite.md b/src/MobileNetwork/help/New-AzMobileNetworkSite.md index 68b740b056b8..495124908d27 100644 --- a/src/MobileNetwork/help/New-AzMobileNetworkSite.md +++ b/src/MobileNetwork/help/New-AzMobileNetworkSite.md @@ -57,7 +57,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/New-AzMobileNetworkSlice.md b/src/MobileNetwork/help/New-AzMobileNetworkSlice.md index f5c5af54f7a5..a15e7b58dfea 100644 --- a/src/MobileNetwork/help/New-AzMobileNetworkSlice.md +++ b/src/MobileNetwork/help/New-AzMobileNetworkSlice.md @@ -57,7 +57,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/New-AzMobileNetworkSliceConfigurationObject.md b/src/MobileNetwork/help/New-AzMobileNetworkSliceConfigurationObject.md index a7efcef263b5..d9a83b0f2fc4 100644 --- a/src/MobileNetwork/help/New-AzMobileNetworkSliceConfigurationObject.md +++ b/src/MobileNetwork/help/New-AzMobileNetworkSliceConfigurationObject.md @@ -115,7 +115,7 @@ To create the parameters described below, construct a hash table containing the - `[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. + - `[FiveQi ]`: Default 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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. diff --git a/src/MobileNetwork/help/Remove-AzMobileNetwork.md b/src/MobileNetwork/help/Remove-AzMobileNetwork.md index 8886c7b44b9f..b08890966259 100644 --- a/src/MobileNetwork/help/Remove-AzMobileNetwork.md +++ b/src/MobileNetwork/help/Remove-AzMobileNetwork.md @@ -54,7 +54,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Remove-AzMobileNetworkAttachedDataNetwork.md b/src/MobileNetwork/help/Remove-AzMobileNetworkAttachedDataNetwork.md index 93156fce8844..d7c48a9273d5 100644 --- a/src/MobileNetwork/help/Remove-AzMobileNetworkAttachedDataNetwork.md +++ b/src/MobileNetwork/help/Remove-AzMobileNetworkAttachedDataNetwork.md @@ -55,7 +55,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Remove-AzMobileNetworkDataNetwork.md b/src/MobileNetwork/help/Remove-AzMobileNetworkDataNetwork.md index 1761309613e4..e3822253cc63 100644 --- a/src/MobileNetwork/help/Remove-AzMobileNetworkDataNetwork.md +++ b/src/MobileNetwork/help/Remove-AzMobileNetworkDataNetwork.md @@ -55,7 +55,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Remove-AzMobileNetworkPacketCoreControlPlane.md b/src/MobileNetwork/help/Remove-AzMobileNetworkPacketCoreControlPlane.md index ec890fbde0e1..0b7560596956 100644 --- a/src/MobileNetwork/help/Remove-AzMobileNetworkPacketCoreControlPlane.md +++ b/src/MobileNetwork/help/Remove-AzMobileNetworkPacketCoreControlPlane.md @@ -55,7 +55,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Remove-AzMobileNetworkPacketCoreDataPlane.md b/src/MobileNetwork/help/Remove-AzMobileNetworkPacketCoreDataPlane.md index 63c4a717bc00..2a7cb49fb614 100644 --- a/src/MobileNetwork/help/Remove-AzMobileNetworkPacketCoreDataPlane.md +++ b/src/MobileNetwork/help/Remove-AzMobileNetworkPacketCoreDataPlane.md @@ -55,7 +55,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Remove-AzMobileNetworkService.md b/src/MobileNetwork/help/Remove-AzMobileNetworkService.md index 040b0573cecc..8f617a41fc82 100644 --- a/src/MobileNetwork/help/Remove-AzMobileNetworkService.md +++ b/src/MobileNetwork/help/Remove-AzMobileNetworkService.md @@ -55,7 +55,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Remove-AzMobileNetworkSim.md b/src/MobileNetwork/help/Remove-AzMobileNetworkSim.md index 3f32fe0403d3..0067110f8f49 100644 --- a/src/MobileNetwork/help/Remove-AzMobileNetworkSim.md +++ b/src/MobileNetwork/help/Remove-AzMobileNetworkSim.md @@ -55,7 +55,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Remove-AzMobileNetworkSimGroup.md b/src/MobileNetwork/help/Remove-AzMobileNetworkSimGroup.md index cde14067a920..06fe8f21de06 100644 --- a/src/MobileNetwork/help/Remove-AzMobileNetworkSimGroup.md +++ b/src/MobileNetwork/help/Remove-AzMobileNetworkSimGroup.md @@ -54,7 +54,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Remove-AzMobileNetworkSimPolicy.md b/src/MobileNetwork/help/Remove-AzMobileNetworkSimPolicy.md index 681900fb0c49..32cddd691f26 100644 --- a/src/MobileNetwork/help/Remove-AzMobileNetworkSimPolicy.md +++ b/src/MobileNetwork/help/Remove-AzMobileNetworkSimPolicy.md @@ -55,7 +55,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Remove-AzMobileNetworkSite.md b/src/MobileNetwork/help/Remove-AzMobileNetworkSite.md index 7fda8267d6d4..0da06d378ea4 100644 --- a/src/MobileNetwork/help/Remove-AzMobileNetworkSite.md +++ b/src/MobileNetwork/help/Remove-AzMobileNetworkSite.md @@ -58,7 +58,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Remove-AzMobileNetworkSlice.md b/src/MobileNetwork/help/Remove-AzMobileNetworkSlice.md index acf0d298d3b7..cb2bac9e18e1 100644 --- a/src/MobileNetwork/help/Remove-AzMobileNetworkSlice.md +++ b/src/MobileNetwork/help/Remove-AzMobileNetworkSlice.md @@ -55,7 +55,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Update-AzMobileNetwork.md b/src/MobileNetwork/help/Update-AzMobileNetwork.md index 6b4be3898b5d..417253ef1165 100644 --- a/src/MobileNetwork/help/Update-AzMobileNetwork.md +++ b/src/MobileNetwork/help/Update-AzMobileNetwork.md @@ -45,7 +45,8 @@ Updates mobile network tags. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Update-AzMobileNetworkAttachedDataNetwork.md b/src/MobileNetwork/help/Update-AzMobileNetworkAttachedDataNetwork.md index 1493636d5910..d6e39e828f43 100644 --- a/src/MobileNetwork/help/Update-AzMobileNetworkAttachedDataNetwork.md +++ b/src/MobileNetwork/help/Update-AzMobileNetworkAttachedDataNetwork.md @@ -8,30 +8,29 @@ schema: 2.0.0 # Update-AzMobileNetworkAttachedDataNetwork ## SYNOPSIS -Updates an attached data network tags. +Updates an attached data network. ## SYNTAX -### UpdateExpanded (Default) ``` Update-AzMobileNetworkAttachedDataNetwork -AttachedDataNetworkName -PacketCoreControlPlaneName -PacketCoreDataPlaneName -ResourceGroupName - [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzMobileNetworkAttachedDataNetwork -InputObject [-Tag ] + [-SubscriptionId ] [-DnsAddress ] [-NaptConfigurationEnabled ] + [-NaptConfigurationPinholeLimit ] [-PinholeTimeoutIcmp ] [-PinholeTimeoutTcp ] + [-PinholeTimeoutUdp ] [-PortRangeMaxPort ] [-PortRangeMinPort ] + [-PortReuseHoldTimeTcp ] [-PortReuseHoldTimeUdp ] [-Tag ] + [-UserEquipmentAddressPoolPrefix ] [-UserEquipmentStaticAddressPoolPrefix ] + [-UserPlaneDataInterfaceIpv4Address ] [-UserPlaneDataInterfaceIpv4Gateway ] + [-UserPlaneDataInterfaceIpv4Subnet ] [-UserPlaneDataInterfaceName ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Updates an attached data network tags. +Updates an attached data network. ## EXAMPLES -### Example 1: Updates an attached data network tags. +### Example 1: Updates an attached data network. ```powershell Update-AzMobileNetworkAttachedDataNetwork -AttachedDataNetworkName azps-mn-adn -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps_test_group -ResourceGroupName -Tag @{"abc"="123"} ``` @@ -42,7 +41,7 @@ Location Name ResourceGroupName ProvisioningState eastus azps-mn-adn azps_test_group Succeeded ``` -Updates an attached data network tags. +Updates an attached data network. ## PARAMETERS @@ -51,7 +50,7 @@ The name of the attached data network. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -62,7 +61,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -76,19 +76,51 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -DnsAddress +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. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity -Parameter Sets: UpdateViaIdentityExpanded +Type: System.String[] +Parameter Sets: (All) Aliases: -Required: True +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NaptConfigurationEnabled +Whether NAPT is enabled for connections to this attached data network. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.NaptEnabled +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -NaptConfigurationPinholeLimit +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. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -97,7 +129,7 @@ The name of the packet core control plane. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -112,7 +144,7 @@ The name of the packet core data plane. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -122,13 +154,123 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -PinholeTimeoutIcmp +Pinhole timeout for ICMP pinholes in seconds. +Default for ICMP Echo is 30 seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PinholeTimeoutTcp +Pinhole timeout for TCP pinholes in seconds. +Default for TCP is 3 minutes. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PinholeTimeoutUdp +Pinhole timeout for UDP pinholes in seconds. +Default for UDP is 30 seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PortRangeMaxPort +The maximum port number + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PortRangeMinPort +The minimum port number + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PortReuseHoldTimeTcp +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. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -PortReuseHoldTimeUdp +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. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -143,7 +285,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -168,6 +310,101 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -UserEquipmentAddressPoolPrefix +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. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserEquipmentStaticAddressPoolPrefix +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. + +```yaml +Type: System.String[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserPlaneDataInterfaceIpv4Address +The IPv4 address. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserPlaneDataInterfaceIpv4Gateway +The default IPv4 gateway (router). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserPlaneDataInterfaceIpv4Subnet +The IPv4 subnet. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserPlaneDataInterfaceName +The logical name for this interface. +This should match one of the interfaces configured on your Azure Stack Edge device. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -214,27 +451,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES -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. - ## RELATED LINKS diff --git a/src/MobileNetwork/help/Update-AzMobileNetworkDataNetwork.md b/src/MobileNetwork/help/Update-AzMobileNetworkDataNetwork.md index 1222b6c52cb6..950a917eb0f4 100644 --- a/src/MobileNetwork/help/Update-AzMobileNetworkDataNetwork.md +++ b/src/MobileNetwork/help/Update-AzMobileNetworkDataNetwork.md @@ -8,29 +8,22 @@ schema: 2.0.0 # Update-AzMobileNetworkDataNetwork ## SYNOPSIS -Updates data network tags. +Updates data network. ## SYNTAX -### UpdateExpanded (Default) ``` Update-AzMobileNetworkDataNetwork -DataNetworkName -MobileNetworkName - -ResourceGroupName [-SubscriptionId ] [-Tag ] [-DefaultProfile ] - [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzMobileNetworkDataNetwork -InputObject [-Tag ] + -ResourceGroupName [-SubscriptionId ] [-Description ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Updates data network tags. +Updates data network. ## EXAMPLES -### Example 1: Updates data network tags. +### Example 1: Updates data network. ```powershell Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="`12"} ``` @@ -41,7 +34,7 @@ Location Name ResourceGroupName ProvisioningState eastus azps-mn-datanetwork azps_test_group Succeeded ``` -Updates data network tags. +Updates data network. ## PARAMETERS @@ -50,7 +43,7 @@ The name of the data network. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -61,7 +54,8 @@ Accept wildcard characters: False ``` ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -75,19 +69,18 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -Description +An optional description for this data network. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity -Parameter Sets: UpdateViaIdentityExpanded +Type: System.String +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -96,7 +89,7 @@ The name of the mobile network. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -112,7 +105,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -127,7 +120,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -198,27 +191,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES -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. - ## RELATED LINKS diff --git a/src/MobileNetwork/help/Update-AzMobileNetworkPacketCoreControlPlane.md b/src/MobileNetwork/help/Update-AzMobileNetworkPacketCoreControlPlane.md index b049c28646c2..ada370b8689a 100644 --- a/src/MobileNetwork/help/Update-AzMobileNetworkPacketCoreControlPlane.md +++ b/src/MobileNetwork/help/Update-AzMobileNetworkPacketCoreControlPlane.md @@ -8,29 +8,29 @@ schema: 2.0.0 # Update-AzMobileNetworkPacketCoreControlPlane ## SYNOPSIS -Updates packet core control planes tags. +Updates packet core control planes. ## SYNTAX -### UpdateExpanded (Default) ``` Update-AzMobileNetworkPacketCoreControlPlane -PacketCoreControlPlaneName -ResourceGroupName - [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzMobileNetworkPacketCoreControlPlane -InputObject [-Tag ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + [-SubscriptionId ] [-AzureStackEdgeDeviceId ] [-AzureStackHciClusterId ] + [-ConnectedClusterId ] [-ControlPlaneAccessInterfaceIpv4Address ] + [-ControlPlaneAccessInterfaceIpv4Gateway ] [-ControlPlaneAccessInterfaceIpv4Subnet ] + [-ControlPlaneAccessInterfaceName ] [-CoreNetworkTechnology ] + [-CustomLocationId ] [-HttpsServerCertificateUrl ] + [-IdentityType ] [-IdentityUserAssignedIdentity ] + [-InteropSetting ] [-LocalDiagnosticAccessAuthenticationType ] + [-PlatformType ] [-Site ] [-Sku ] [-Tag ] + [-UeMtu ] [-Version ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Updates packet core control planes tags. +Updates packet core control planes. ## EXAMPLES -### Example 1: Updates packet core control planes tags. +### Example 1: Updates packet core control planes. ```powershell Update-AzMobileNetworkPacketCoreControlPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Tag @{"abc"="123"} ``` @@ -41,12 +41,149 @@ Location Name ResourceGroupName ProvisioningState eastus azps-mn-pccp azps_test_group Succeeded ``` -Updates packet core control planes tags. +Updates packet core control planes. ## PARAMETERS +### -AzureStackEdgeDeviceId +Azure Stack Edge device resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -AzureStackHciClusterId +Azure Stack HCI cluster resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ConnectedClusterId +Azure Arc connected cluster resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ControlPlaneAccessInterfaceIpv4Address +The IPv4 address. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ControlPlaneAccessInterfaceIpv4Gateway +The default IPv4 gateway (router). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ControlPlaneAccessInterfaceIpv4Subnet +The IPv4 subnet. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ControlPlaneAccessInterfaceName +The logical name for this interface. +This should match one of the interfaces configured on your Azure Stack Edge device. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CoreNetworkTechnology +The core network technology generation (5G core or EPC / 4G core). + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.CoreNetworkType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -CustomLocationId +Azure Arc custom location resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -60,19 +197,82 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -HttpsServerCertificateUrl +The certificate URL, unversioned. +For example: https://contosovault.vault.azure.net/certificates/ingress. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity -Parameter Sets: UpdateViaIdentityExpanded +Type: System.String +Parameter Sets: (All) Aliases: -Required: True +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityType +Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.ManagedServiceIdentityType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityUserAssignedIdentity +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. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InteropSetting +Settings to allow interoperability with third party components e.g. +RANs and UEs. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -LocalDiagnosticAccessAuthenticationType +How to authenticate users who access local diagnostics APIs. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.AuthenticationType +Parameter Sets: (All) +Aliases: + +Required: False Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -81,7 +281,7 @@ The name of the packet core control plane. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -91,13 +291,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -PlatformType +The platform type where packet core is deployed. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PlatformType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -107,12 +322,44 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -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. +To construct, see NOTES section for SITE properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISiteResourceId[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Sku +The SKU defining the throughput and SIM allowances for this packet core control plane deployment. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.BillingSku +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -137,6 +384,38 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -UeMtu +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. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -Version +The version of the packet core software that is deployed. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -188,22 +467,8 @@ 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. +`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. ## RELATED LINKS diff --git a/src/MobileNetwork/help/Update-AzMobileNetworkPacketCoreDataPlane.md b/src/MobileNetwork/help/Update-AzMobileNetworkPacketCoreDataPlane.md index 557cd66fd892..76fde02577e8 100644 --- a/src/MobileNetwork/help/Update-AzMobileNetworkPacketCoreDataPlane.md +++ b/src/MobileNetwork/help/Update-AzMobileNetworkPacketCoreDataPlane.md @@ -8,29 +8,24 @@ schema: 2.0.0 # Update-AzMobileNetworkPacketCoreDataPlane ## SYNOPSIS -Updates packet core data planes tags. +Updates packet core data planes. ## SYNTAX -### UpdateExpanded (Default) ``` Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName -PacketCoreDataPlaneName -ResourceGroupName [-SubscriptionId ] [-Tag ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzMobileNetworkPacketCoreDataPlane -InputObject [-Tag ] + [-UserPlaneAccessInterfaceIpv4Address ] [-UserPlaneAccessInterfaceIpv4Gateway ] + [-UserPlaneAccessInterfaceIpv4Subnet ] [-UserPlaneAccessInterfaceName ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Updates packet core data planes tags. +Updates packet core data planes. ## EXAMPLES -### Example 1: Updates packet core data planes tags. +### Example 1: Updates packet core data planes. ```powershell Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123} ``` @@ -41,12 +36,13 @@ Location Name ResourceGroupName ProvisioningState eastus azps-mn-pcdp azps_test_group Succeeded ``` -Updates packet core data planes tags. +Updates packet core data planes. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -60,28 +56,12 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. - -```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity -Parameter Sets: UpdateViaIdentityExpanded -Aliases: - -Required: True -Position: Named -Default value: None -Accept pipeline input: True (ByValue) -Accept wildcard characters: False -``` - ### -PacketCoreControlPlaneName The name of the packet core control plane. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -96,7 +76,7 @@ The name of the packet core data plane. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -112,7 +92,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -127,7 +107,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -152,6 +132,67 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -UserPlaneAccessInterfaceIpv4Address +The IPv4 address. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserPlaneAccessInterfaceIpv4Gateway +The default IPv4 gateway (router). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserPlaneAccessInterfaceIpv4Subnet +The IPv4 subnet. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UserPlaneAccessInterfaceName +The logical name for this interface. +This should match one of the interfaces configured on your Azure Stack Edge device. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -198,27 +239,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES -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. - ## RELATED LINKS diff --git a/src/MobileNetwork/help/Update-AzMobileNetworkService.md b/src/MobileNetwork/help/Update-AzMobileNetworkService.md index b61ce37ed364..90b13320bfc0 100644 --- a/src/MobileNetwork/help/Update-AzMobileNetworkService.md +++ b/src/MobileNetwork/help/Update-AzMobileNetworkService.md @@ -8,31 +8,28 @@ schema: 2.0.0 # Update-AzMobileNetworkService ## SYNOPSIS -Updates service tags. +Updates service. ## SYNTAX -### UpdateExpanded (Default) ``` Update-AzMobileNetworkService -MobileNetworkName -ResourceGroupName -ServiceName - [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzMobileNetworkService -InputObject [-Tag ] + -ServicePrecedence [-SubscriptionId ] [-MaximumBitRateDownlink ] + [-MaximumBitRateUplink ] [-PccRule ] + [-ServiceQoPolicyAllocationAndRetentionPriorityLevel ] [-ServiceQoPolicyFiveQi ] + [-ServiceQoPolicyPreemptionCapability ] + [-ServiceQoPolicyPreemptionVulnerability ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Updates service tags. +Updates service. ## EXAMPLES -### Example 1: Updates service tags. +### Example 1: Updates service. ```powershell -Update-AzMobileNetworkService -MobileNetworkName azps-mn -ServiceName azps-mn-service -ResourceGroupName azps_test_group -Tag @{"abc"="123"} +Update-AzMobileNetworkService -MobileNetworkName azps-mn -ServiceName azps-mn-service -ResourceGroupName azps_test_group -Tag @{"abc"="123"} -ServicePrecedence 0 ``` ```output @@ -41,12 +38,13 @@ Location Name ResourceGroupName ProvisioningState Precedence MaximumB eastus azps-mn-service azps_test_group Succeeded 0 1 Gbps 500 Mbps 9 9 ``` -Updates service tags. +Updates service. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -60,19 +58,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -MaximumBitRateDownlink +Downlink bit rate. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity -Parameter Sets: UpdateViaIdentityExpanded +Type: System.String +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MaximumBitRateUplink +Uplink bit rate. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False Accept wildcard characters: False ``` @@ -81,7 +93,7 @@ The name of the mobile network. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -91,13 +103,29 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -PccRule +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. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPccRuleConfiguration[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -113,7 +141,24 @@ You must not use any of the following reserved strings - 'default', 'requested' ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServicePrecedence +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. + +```yaml +Type: System.Int32 +Parameter Sets: (All) Aliases: Required: True @@ -123,12 +168,84 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ServiceQoPolicyAllocationAndRetentionPriorityLevel +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. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServiceQoPolicyFiveQi +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. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServiceQoPolicyPreemptionCapability +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. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionCapability +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ServiceQoPolicyPreemptionVulnerability +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. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.PreemptionVulnerability +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -204,22 +321,24 @@ 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. +`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 ]`: 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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. ## RELATED LINKS diff --git a/src/MobileNetwork/help/Update-AzMobileNetworkSimGroup.md b/src/MobileNetwork/help/Update-AzMobileNetworkSimGroup.md index 49f2310c847f..fb531cdd5f23 100644 --- a/src/MobileNetwork/help/Update-AzMobileNetworkSimGroup.md +++ b/src/MobileNetwork/help/Update-AzMobileNetworkSimGroup.md @@ -8,28 +8,23 @@ schema: 2.0.0 # Update-AzMobileNetworkSimGroup ## SYNOPSIS -Updates SIM group tags. +Updates SIM group. ## SYNTAX -### UpdateExpanded (Default) ``` Update-AzMobileNetworkSimGroup -ResourceGroupName -SimGroupName [-SubscriptionId ] - [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzMobileNetworkSimGroup -InputObject [-Tag ] + [-EncryptionKeyUrl ] [-IdentityType ] + [-IdentityUserAssignedIdentity ] [-MobileNetworkId ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Updates SIM group tags. +Updates SIM group. ## EXAMPLES -### Example 1: Updates SIM group tags. +### Example 1: Updates SIM group. ```powershell Update-AzMobileNetworkSimGroup -SimGroupName azps-mn-simgroup -ResourceGroupName azps_test_group -Tag @{"abc"="123"} ``` @@ -40,12 +35,13 @@ Location Name ResourceGroupName ProvisioningState eastus azps-mn-simgroup azps_test_group Succeeded ``` -Updates SIM group tags. +Updates SIM group. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -59,19 +55,66 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -EncryptionKeyUrl +The key URL, unversioned. +For example: https://contosovault.vault.azure.net/keys/azureKey. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity -Parameter Sets: UpdateViaIdentityExpanded +Type: System.String +Parameter Sets: (All) Aliases: -Required: True +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityType +Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Support.ManagedServiceIdentityType +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -IdentityUserAssignedIdentity +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. + +```yaml +Type: System.Collections.Hashtable +Parameter Sets: (All) +Aliases: + +Required: False Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -MobileNetworkId +Mobile network resource ID. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False Accept wildcard characters: False ``` @@ -81,7 +124,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -96,7 +139,7 @@ The name of the SIM Group. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -111,7 +154,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -182,27 +225,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES -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. - ## RELATED LINKS diff --git a/src/MobileNetwork/help/Update-AzMobileNetworkSimPolicy.md b/src/MobileNetwork/help/Update-AzMobileNetworkSimPolicy.md index b3c094ed5a33..f4ae58796706 100644 --- a/src/MobileNetwork/help/Update-AzMobileNetworkSimPolicy.md +++ b/src/MobileNetwork/help/Update-AzMobileNetworkSimPolicy.md @@ -8,29 +8,24 @@ schema: 2.0.0 # Update-AzMobileNetworkSimPolicy ## SYNOPSIS -Updates SIM policy tags. +Updates SIM policy. ## SYNTAX -### UpdateExpanded (Default) ``` Update-AzMobileNetworkSimPolicy -MobileNetworkName -ResourceGroupName - -SimPolicyName [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-Confirm] - [-WhatIf] [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzMobileNetworkSimPolicy -InputObject [-Tag ] - [-DefaultProfile ] [-Confirm] [-WhatIf] [] + -SimPolicyName [-SubscriptionId ] [-DefaultSliceId ] [-RegistrationTimer ] + [-RfspIndex ] [-SliceConfiguration ] [-Tag ] + [-UeAmbrDownlink ] [-UeAmbrUplink ] [-DefaultProfile ] [-Confirm] [-WhatIf] + [] ``` ## DESCRIPTION -Updates SIM policy tags. +Updates SIM policy. ## EXAMPLES -### Example 1: Updates SIM policy tags. +### Example 1: Updates SIM policy. ```powershell Update-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -SimPolicyName azps-mn-simpolicy -ResourceGroupName azps_test_group -Tag @{"abc"="123"} ``` @@ -41,12 +36,13 @@ Location Name ResourceGroupName ProvisioningState RegistrationTimer eastus azps-mn-simpolicy azps_test_group Succeeded 3240 1 Gbps 500 Mbps ``` -Updates SIM policy tags. +Updates SIM policy. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -60,19 +56,18 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -DefaultSliceId +Slice resource ID. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity -Parameter Sets: UpdateViaIdentityExpanded +Type: System.String +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -81,7 +76,7 @@ The name of the mobile network. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -91,13 +86,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RegistrationTimer +Interval for the UE periodic registration update procedure, in seconds. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ResourceGroupName The name of the resource group. The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -107,12 +117,28 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RfspIndex +RAT/Frequency Selection Priority Index, defined in 3GPP TS 36.413. +This is an optional setting and by default is unspecified. + +```yaml +Type: System.Int32 +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SimPolicyName The name of the SIM policy. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -122,12 +148,29 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -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. +To construct, see NOTES section for SLICECONFIGURATION properties and create a hash table. + +```yaml +Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISliceConfiguration[] +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SubscriptionId The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -152,6 +195,36 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -UeAmbrDownlink +Downlink bit rate. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -UeAmbrUplink +Uplink bit rate. + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -Confirm Prompts you for confirmation before running the cmdlet. @@ -203,22 +276,22 @@ 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. +`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 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. 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 the 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. ## RELATED LINKS diff --git a/src/MobileNetwork/help/Update-AzMobileNetworkSite.md b/src/MobileNetwork/help/Update-AzMobileNetworkSite.md index 104a370c4a06..c01e807fd8d6 100644 --- a/src/MobileNetwork/help/Update-AzMobileNetworkSite.md +++ b/src/MobileNetwork/help/Update-AzMobileNetworkSite.md @@ -46,7 +46,8 @@ Updates site tags. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject diff --git a/src/MobileNetwork/help/Update-AzMobileNetworkSlice.md b/src/MobileNetwork/help/Update-AzMobileNetworkSlice.md index ddc57e01a105..7f29335bf58a 100644 --- a/src/MobileNetwork/help/Update-AzMobileNetworkSlice.md +++ b/src/MobileNetwork/help/Update-AzMobileNetworkSlice.md @@ -8,31 +8,24 @@ schema: 2.0.0 # Update-AzMobileNetworkSlice ## SYNOPSIS -Updates slice tags. +Updates slice. ## SYNTAX -### UpdateExpanded (Default) ``` Update-AzMobileNetworkSlice -MobileNetworkName -ResourceGroupName -SliceName - [-SubscriptionId ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] - [] -``` - -### UpdateViaIdentityExpanded -``` -Update-AzMobileNetworkSlice -InputObject [-Tag ] + -SnssaiSst [-SubscriptionId ] [-Description ] [-SnssaiSd ] [-Tag ] [-DefaultProfile ] [-Confirm] [-WhatIf] [] ``` ## DESCRIPTION -Updates slice tags. +Updates slice. ## EXAMPLES -### Example 1: Updates slice tags. +### Example 1: Updates slice. ```powershell -Update-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Tag @{"abc"="123"} +Update-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Tag @{"abc"="123"} -SnssaiSst 1 ``` ```output @@ -41,12 +34,13 @@ Location Name ResourceGroupName ProvisioningState SnssaiSst SnssaiSd eastus azps-mn-slice azps_test_group Succeeded 1 1abcde ``` -Updates slice tags. +Updates slice. ## PARAMETERS ### -DefaultProfile -The credentials, account, tenant, and subscription used for communication with Azure. +The DefaultProfile parameter is not functional. +Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ```yaml Type: System.Management.Automation.PSObject @@ -60,19 +54,18 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -InputObject -Identity Parameter -To construct, see NOTES section for INPUTOBJECT properties and create a hash table. +### -Description +An optional description for this network slice. ```yaml -Type: Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.IMobileNetworkIdentity -Parameter Sets: UpdateViaIdentityExpanded +Type: System.String +Parameter Sets: (All) Aliases: -Required: True +Required: False Position: Named Default value: None -Accept pipeline input: True (ByValue) +Accept pipeline input: False Accept wildcard characters: False ``` @@ -81,7 +74,7 @@ The name of the mobile network. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -97,7 +90,7 @@ The name is case insensitive. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: True @@ -112,7 +105,37 @@ The name of the network slice. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SnssaiSd +Slice differentiator (SD). + +```yaml +Type: System.String +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -SnssaiSst +Slice/service type (SST). + +```yaml +Type: System.Int32 +Parameter Sets: (All) Aliases: Required: True @@ -127,7 +150,7 @@ The ID of the target subscription. ```yaml Type: System.String -Parameter Sets: UpdateExpanded +Parameter Sets: (All) Aliases: Required: False @@ -198,27 +221,5 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable ALIASES -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. - ## RELATED LINKS diff --git a/src/MobileNetwork/internal/Get-AzMobileNetworkOperation.ps1 b/src/MobileNetwork/internal/Get-AzMobileNetworkOperation.ps1 index 8ca203d2e2aa..b09d6b1e70e1 100644 --- a/src/MobileNetwork/internal/Get-AzMobileNetworkOperation.ps1 +++ b/src/MobileNetwork/internal/Get-AzMobileNetworkOperation.ps1 @@ -38,7 +38,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] diff --git a/src/MobileNetwork/internal/ProxyCmdletDefinitions.ps1 b/src/MobileNetwork/internal/ProxyCmdletDefinitions.ps1 index d883852c055d..f17431058359 100644 --- a/src/MobileNetwork/internal/ProxyCmdletDefinitions.ps1 +++ b/src/MobileNetwork/internal/ProxyCmdletDefinitions.ps1 @@ -38,7 +38,8 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${DefaultProfile}, [Parameter(DontShow)] @@ -125,29 +126,38 @@ end { <# .Synopsis -Creates or updates a SIM group. +Updates an attached data network tags. .Description -Creates or updates a SIM group. +Updates an attached data network tags. .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" +Update-AzMobileNetworkAttachedDataNetwork -AttachedDataNetworkName azps-mn-adn -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps_test_group -ResourceGroupName -Tag @{"abc"="123"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork .Link -https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworksimgroup +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkattacheddatanetwork #> -function New-AzMobileNetworkSimGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzMobileNetworkAttachedDataNetwork { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', 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}, + # The name of the attached data network. + ${AttachedDataNetworkName}, + + [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')] @@ -163,44 +173,153 @@ param( # The ID of the target subscription. ${SubscriptionId}, - [Parameter(Mandatory)] + [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] - [System.String] - # The geo-location where the resource lives - ${Location}, + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkAttachedDataNetwork_UpdateExpanded'; + } + if (('UpdateExpanded') -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 + } +} +} + +<# +.Synopsis +Updates data network tags. +.Description +Updates data network tags. +.Example +Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="`12"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkdatanetwork +#> +function Update-AzMobileNetworkDataNetwork { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [Parameter(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] [System.String] - # The key URL, unversioned. - # For example: https://contosovault.vault.azure.net/keys/azureKey. - ${EncryptionKeyUrl}, + # The name of the data network. + ${DataNetworkName}, - [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(Mandatory)] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [System.String] + # The name of the mobile network. + ${MobileNetworkName}, - [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('Path')] + [System.String] + # The name of the resource group. + # The name is case insensitive. + ${ResourceGroupName}, [Parameter()] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Path')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')] [System.String] - # Mobile network resource ID. - ${MobileNetworkId}, + # The ID of the target subscription. + ${SubscriptionId}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api30.ITrackedResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -210,15 +329,10 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${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] @@ -239,11 +353,858 @@ param( # 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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkDataNetwork_UpdateExpanded'; + } + if (('UpdateExpanded') -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 + } +} +} + +<# +.Synopsis +Updates packet core control planes tags. +.Description +Updates packet core control planes tags. +.Example +Update-AzMobileNetworkPacketCoreControlPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Tag @{"abc"="123"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkpacketcorecontrolplane +#> +function Update-AzMobileNetworkPacketCoreControlPlane { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${DefaultProfile}, + + [Parameter(DontShow)] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Runtime')] [System.Management.Automation.SwitchParameter] - # Run the command asynchronously - ${NoWait}, + # 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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkPacketCoreControlPlane_UpdateExpanded'; + } + if (('UpdateExpanded') -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 + } +} +} + +<# +.Synopsis +Updates packet core data planes tags. +.Description +Updates packet core data planes tags. +.Example +Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkpacketcoredataplane +#> +function Update-AzMobileNetworkPacketCoreDataPlane { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkPacketCoreDataPlane_UpdateExpanded'; + } + if (('UpdateExpanded') -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 + } +} +} + +<# +.Synopsis +Updates service tags. +.Description +Updates service tags. +.Example +Update-AzMobileNetworkService -MobileNetworkName azps-mn -ServiceName azps-mn-service -ResourceGroupName azps_test_group -Tag @{"abc"="123"} -ServicePrecedence 0 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkservice +#> +function Update-AzMobileNetworkService { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', 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 service. + # You must not use any of the following reserved strings - 'default', 'requested' or 'service' + ${ServiceName}, + + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkService_UpdateExpanded'; + } + if (('UpdateExpanded') -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 + } +} +} + +<# +.Synopsis +Updates SIM group tags. +.Description +Updates SIM group tags. +.Example +Update-AzMobileNetworkSimGroup -SimGroupName azps-mn-simgroup -ResourceGroupName azps_test_group -Tag @{"abc"="123"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworksimgroup +#> +function Update-AzMobileNetworkSimGroup { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [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 SIM Group. + ${SimGroupName}, + + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSimGroup_UpdateExpanded'; + } + if (('UpdateExpanded') -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 + } +} +} + +<# +.Synopsis +Updates SIM policy tags. +.Description +Updates SIM policy tags. +.Example +Update-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -SimPolicyName azps-mn-simpolicy -ResourceGroupName azps_test_group -Tag @{"abc"="123"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworksimpolicy +#> +function Update-AzMobileNetworkSimPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', 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 SIM policy. + ${SimPolicyName}, + + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSimPolicy_UpdateExpanded'; + } + if (('UpdateExpanded') -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 + } +} +} + +<# +.Synopsis +Updates slice tags. +.Description +Updates slice tags. +.Example +Update-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Tag @{"abc"="123"} -SnssaiSst 1 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkslice +#> +function Update-AzMobileNetworkSlice { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', 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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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')] @@ -274,9 +1235,9 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkSimGroup_CreateExpanded'; + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSlice_UpdateExpanded'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } diff --git a/src/MobileNetwork/custom/New-AzMobileNetworkSimGroup.ps1 b/src/MobileNetwork/internal/Update-AzMobileNetworkAttachedDataNetwork.ps1 similarity index 64% rename from src/MobileNetwork/custom/New-AzMobileNetworkSimGroup.ps1 rename to src/MobileNetwork/internal/Update-AzMobileNetworkAttachedDataNetwork.ps1 index 53efc710dfab..7edbe76beb94 100644 --- a/src/MobileNetwork/custom/New-AzMobileNetworkSimGroup.ps1 +++ b/src/MobileNetwork/internal/Update-AzMobileNetworkAttachedDataNetwork.ps1 @@ -16,27 +16,38 @@ <# .Synopsis -Creates or updates a SIM group. +Updates an attached data network tags. .Description -Creates or updates a SIM group. +Updates an attached data network tags. .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" +Update-AzMobileNetworkAttachedDataNetwork -AttachedDataNetworkName azps-mn-adn -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps_test_group -ResourceGroupName -Tag @{"abc"="123"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork .Link -https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworksimgroup +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkattacheddatanetwork #> -function New-AzMobileNetworkSimGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzMobileNetworkAttachedDataNetwork { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IAttachedDataNetwork])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', 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}, + # The name of the attached data network. + ${AttachedDataNetworkName}, + + [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')] @@ -52,44 +63,9 @@ param( # 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]))] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -99,15 +75,10 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${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] @@ -128,12 +99,6 @@ param( # 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] @@ -163,9 +128,9 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkSimGroup_CreateExpanded'; + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkAttachedDataNetwork_UpdateExpanded'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } diff --git a/src/MobileNetwork/internal/New-AzMobileNetworkSimGroup.ps1 b/src/MobileNetwork/internal/Update-AzMobileNetworkDataNetwork.ps1 similarity index 61% rename from src/MobileNetwork/internal/New-AzMobileNetworkSimGroup.ps1 rename to src/MobileNetwork/internal/Update-AzMobileNetworkDataNetwork.ps1 index 3a24770f192f..09b2fd9845f3 100644 --- a/src/MobileNetwork/internal/New-AzMobileNetworkSimGroup.ps1 +++ b/src/MobileNetwork/internal/Update-AzMobileNetworkDataNetwork.ps1 @@ -16,29 +16,32 @@ <# .Synopsis -Creates or updates a SIM group. +Updates data network tags. .Description -Creates or updates a SIM group. +Updates data network tags. .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" +Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="`12"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork .Link -https://learn.microsoft.com/powershell/module/az.mobilenetwork/new-azmobilenetworksimgroup +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkdatanetwork #> -function New-AzMobileNetworkSimGroup { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])] -[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +function Update-AzMobileNetworkDataNetwork { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IDataNetwork])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', 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}, + # The name of the data network. + ${DataNetworkName}, + + [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')] @@ -54,44 +57,9 @@ param( # 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()] - [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]))] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] [System.Collections.Hashtable] # Resource tags. ${Tag}, @@ -101,15 +69,10 @@ param( [ValidateNotNull()] [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] [System.Management.Automation.PSObject] - # The credentials, account, tenant, and subscription used for communication with Azure. + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. ${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] @@ -130,12 +93,6 @@ param( # 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] @@ -165,9 +122,9 @@ begin { $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ - CreateExpanded = 'Az.MobileNetwork.private\New-AzMobileNetworkSimGroup_CreateExpanded'; + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkDataNetwork_UpdateExpanded'; } - if (('CreateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { + if (('UpdateExpanded') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) { $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id } diff --git a/src/MobileNetwork/internal/Update-AzMobileNetworkPacketCoreControlPlane.ps1 b/src/MobileNetwork/internal/Update-AzMobileNetworkPacketCoreControlPlane.ps1 new file mode 100644 index 000000000000..bf1f09cacec6 --- /dev/null +++ b/src/MobileNetwork/internal/Update-AzMobileNetworkPacketCoreControlPlane.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 +Updates packet core control planes tags. +.Description +Updates packet core control planes tags. +.Example +Update-AzMobileNetworkPacketCoreControlPlane -PacketCoreControlPlaneName azps-mn-pccp -ResourceGroupName azps_test_group -Tag @{"abc"="123"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkpacketcorecontrolplane +#> +function Update-AzMobileNetworkPacketCoreControlPlane { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreControlPlane])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkPacketCoreControlPlane_UpdateExpanded'; + } + if (('UpdateExpanded') -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/internal/Update-AzMobileNetworkPacketCoreDataPlane.ps1 b/src/MobileNetwork/internal/Update-AzMobileNetworkPacketCoreDataPlane.ps1 new file mode 100644 index 000000000000..556f03cd16de --- /dev/null +++ b/src/MobileNetwork/internal/Update-AzMobileNetworkPacketCoreDataPlane.ps1 @@ -0,0 +1,159 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Updates packet core data planes tags. +.Description +Updates packet core data planes tags. +.Example +Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkpacketcoredataplane +#> +function Update-AzMobileNetworkPacketCoreDataPlane { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IPacketCoreDataPlane])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkPacketCoreDataPlane_UpdateExpanded'; + } + if (('UpdateExpanded') -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/internal/Update-AzMobileNetworkService.ps1 b/src/MobileNetwork/internal/Update-AzMobileNetworkService.ps1 new file mode 100644 index 000000000000..d79dad2b9dc6 --- /dev/null +++ b/src/MobileNetwork/internal/Update-AzMobileNetworkService.ps1 @@ -0,0 +1,160 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Updates service tags. +.Description +Updates service tags. +.Example +Update-AzMobileNetworkService -MobileNetworkName azps-mn -ServiceName azps-mn-service -ResourceGroupName azps_test_group -Tag @{"abc"="123"} -ServicePrecedence 0 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkservice +#> +function Update-AzMobileNetworkService { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.IService])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', 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 service. + # You must not use any of the following reserved strings - 'default', 'requested' or 'service' + ${ServiceName}, + + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkService_UpdateExpanded'; + } + if (('UpdateExpanded') -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/internal/Update-AzMobileNetworkSimGroup.ps1 b/src/MobileNetwork/internal/Update-AzMobileNetworkSimGroup.ps1 new file mode 100644 index 000000000000..e94490b21eb2 --- /dev/null +++ b/src/MobileNetwork/internal/Update-AzMobileNetworkSimGroup.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 +Updates SIM group tags. +.Description +Updates SIM group tags. +.Example +Update-AzMobileNetworkSimGroup -SimGroupName azps-mn-simgroup -ResourceGroupName azps_test_group -Tag @{"abc"="123"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworksimgroup +#> +function Update-AzMobileNetworkSimGroup { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimGroup])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] +param( + [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 SIM Group. + ${SimGroupName}, + + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSimGroup_UpdateExpanded'; + } + if (('UpdateExpanded') -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/internal/Update-AzMobileNetworkSimPolicy.ps1 b/src/MobileNetwork/internal/Update-AzMobileNetworkSimPolicy.ps1 new file mode 100644 index 000000000000..6a90b42c3504 --- /dev/null +++ b/src/MobileNetwork/internal/Update-AzMobileNetworkSimPolicy.ps1 @@ -0,0 +1,159 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Updates SIM policy tags. +.Description +Updates SIM policy tags. +.Example +Update-AzMobileNetworkSimPolicy -MobileNetworkName azps-mn -SimPolicyName azps-mn-simpolicy -ResourceGroupName azps_test_group -Tag @{"abc"="123"} + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworksimpolicy +#> +function Update-AzMobileNetworkSimPolicy { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISimPolicy])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', 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 SIM policy. + ${SimPolicyName}, + + [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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSimPolicy_UpdateExpanded'; + } + if (('UpdateExpanded') -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/internal/Update-AzMobileNetworkSlice.ps1 b/src/MobileNetwork/internal/Update-AzMobileNetworkSlice.ps1 new file mode 100644 index 000000000000..caf0c407533f --- /dev/null +++ b/src/MobileNetwork/internal/Update-AzMobileNetworkSlice.ps1 @@ -0,0 +1,159 @@ + +# ---------------------------------------------------------------------------------- +# 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 +Updates slice tags. +.Description +Updates slice tags. +.Example +Update-AzMobileNetworkSlice -MobileNetworkName azps-mn -ResourceGroupName azps_test_group -SliceName azps-mn-slice -Tag @{"abc"="123"} -SnssaiSst 1 + +.Outputs +Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice +.Link +https://learn.microsoft.com/powershell/module/az.mobilenetwork/update-azmobilenetworkslice +#> +function Update-AzMobileNetworkSlice { +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ISlice])] +[CmdletBinding(DefaultParameterSetName='UpdateExpanded', 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()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Models.Api20221101.ITagsObjectTags]))] + [System.Collections.Hashtable] + # Resource tags. + ${Tag}, + + [Parameter()] + [Alias('AzureRMContext', 'AzureCredential')] + [ValidateNotNull()] + [Microsoft.Azure.PowerShell.Cmdlets.MobileNetwork.Category('Azure')] + [System.Management.Automation.PSObject] + # The DefaultProfile parameter is not functional. + # Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription. + ${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 + + $mapping = @{ + UpdateExpanded = 'Az.MobileNetwork.private\Update-AzMobileNetworkSlice_UpdateExpanded'; + } + if (('UpdateExpanded') -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/test/AzMobileNetwork.Recording.json b/src/MobileNetwork/test/AzMobileNetwork.Recording.json index af7714515d62..cb94429bb57b 100644 --- a/src/MobileNetwork/test/AzMobileNetwork.Recording.json +++ b/src/MobileNetwork/test/AzMobileNetwork.Recording.json @@ -17,24 +17,24 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"dc009bb6-0000-0100-0000-63bd70640000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1199" ], + "ETag": [ "\"96010538-0000-0100-0000-641adc200000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "8456b305-f832-4ae5-a4ff-54619fbacbe1" ], - "x-ms-request-id": [ "1fe3fe71-397f-44ed-b9a1-e7a125b2a365" ], + "mise-correlation-id": [ "1f94018a-283b-4158-b556-4bc49c2dd823" ], + "x-ms-request-id": [ "99155757-c9de-4206-88d0-0d5a0ea19d5d" ], "x-ms-build-version": [ "1.0.1" ], - "x-ms-correlation-request-id": [ "94b9aaf7-6f65-4e02-9f2b-e30fee792d73" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140420Z:94b9aaf7-6f65-4e02-9f2b-e30fee792d73" ], + "x-ms-correlation-request-id": [ "689ef531-66e7-4ae0-8f88-ebbfe635c5fb" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104449Z:689ef531-66e7-4ae0-8f88-ebbfe635c5fb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:04:20 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:44:48 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "637" ], + "Content-Length": [ "639" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:04:19.060169Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:04:19.060169Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"40421297-cc86-4498-95f1-c86187ca03ae\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:44:47.7953048Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:44:47.7953048Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"57261fec-ed68-4592-9317-af6914f2541b\"}}", "isContentBase64": false } }, @@ -46,12 +46,12 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "2" ], - "x-ms-client-request-id": [ "24fa0d9a-940d-411d-81c1-7689c1e871c0" ], + "x-ms-unique-id": [ "22" ], + "x-ms-client-request-id": [ "3fd5cca5-14be-49d3-a069-19e4b7b73383" ], "CommandName": [ "New-AzMobileNetwork" ], "FullCommandName": [ "New-AzMobileNetwork_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -61,22 +61,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"dc009bb6-0000-0100-0000-63bd70640000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11999" ], + "ETag": [ "\"96010538-0000-0100-0000-641adc200000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "cc0d5d8d-058f-4463-ad1d-907a9636ea5e" ], - "x-ms-correlation-request-id": [ "d1eb2fca-34b2-40ec-a216-932458708cc0" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140451Z:d1eb2fca-34b2-40ec-a216-932458708cc0" ], + "x-ms-request-id": [ "57e92882-db74-411d-8e8d-1e6d2818af7a" ], + "x-ms-correlation-request-id": [ "515aeedf-4ad7-4159-946d-da8561aad1ae" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104519Z:515aeedf-4ad7-4159-946d-da8561aad1ae" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:04:51 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:45:19 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "637" ], + "Content-Length": [ "639" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:04:19.060169Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:04:19.060169Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"40421297-cc86-4498-95f1-c86187ca03ae\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:44:47.7953048Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:44:47.7953048Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"57261fec-ed68-4592-9317-af6914f2541b\"}}", "isContentBase64": false } }, @@ -88,12 +88,12 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "3" ], - "x-ms-client-request-id": [ "24fa0d9a-940d-411d-81c1-7689c1e871c0" ], + "x-ms-unique-id": [ "23" ], + "x-ms-client-request-id": [ "3fd5cca5-14be-49d3-a069-19e4b7b73383" ], "CommandName": [ "New-AzMobileNetwork" ], "FullCommandName": [ "New-AzMobileNetwork_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -103,22 +103,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"dc009bb6-0000-0100-0000-63bd70640000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11998" ], + "ETag": [ "\"96010538-0000-0100-0000-641adc200000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "2ff628c8-9876-4e1a-9a89-abed07056892" ], - "x-ms-correlation-request-id": [ "52e1b990-6324-4f8e-8229-207e23844d6e" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140451Z:52e1b990-6324-4f8e-8229-207e23844d6e" ], + "x-ms-request-id": [ "50fd1c70-36f1-4937-ba48-2264e93a531b" ], + "x-ms-correlation-request-id": [ "ceca7d63-a31e-46a6-b6df-0a36718fb7b4" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104519Z:ceca7d63-a31e-46a6-b6df-0a36718fb7b4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:04:51 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:45:19 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "637" ], + "Content-Length": [ "639" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:04:19.060169Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:04:19.060169Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"40421297-cc86-4498-95f1-c86187ca03ae\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:44:47.7953048Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:44:47.7953048Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"57261fec-ed68-4592-9317-af6914f2541b\"}}", "isContentBase64": false } }, @@ -129,12 +129,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "4" ], - "x-ms-client-request-id": [ "a1bd1549-fe30-4230-833b-e9c9a9ef5aa9" ], + "x-ms-unique-id": [ "24" ], + "x-ms-client-request-id": [ "01cc620d-1ca0-421d-a76c-13ddf547a4a7" ], "CommandName": [ "Get-AzMobileNetwork" ], "FullCommandName": [ "Get-AzMobileNetwork_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -145,21 +145,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "2c8f027a-bc7b-4761-91f2-9429eda9f187", "45bf7ab8-0a30-47ef-883f-a5086f46cc0b", "40b44ad2-eb97-49c4-ba8a-19165ab0557a" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11997" ], - "x-ms-request-id": [ "18521956-7757-4ceb-8056-8e023142f867" ], - "x-ms-correlation-request-id": [ "18521956-7757-4ceb-8056-8e023142f867" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140452Z:18521956-7757-4ceb-8056-8e023142f867" ], + "x-ms-original-request-ids": [ "94dfd177-9604-4ba2-82f9-2234324e7a68", "9bc4f215-2a39-40df-9423-13b0511bbcde", "ea358f1d-3f54-4ff2-8849-bb03de5c553b", "271d1786-727e-4a71-91ab-5efca4967949" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], + "x-ms-request-id": [ "c168aae2-9b1f-4677-a6ca-b2366a963812" ], + "x-ms-correlation-request-id": [ "c168aae2-9b1f-4677-a6ca-b2366a963812" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104521Z:c168aae2-9b1f-4677-a6ca-b2366a963812" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:04:52 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:45:21 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Content-Length": [ "2622" ] + "Content-Length": [ "2585" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\",\"name\":\"test-mn2\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-12-30T10:09:14.588678Z\",\"lastModifiedBy\":\"54b9b9be-c365-4548-95c6-d2f2011f48f4\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-12-30T10:52:34.9062003Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"03974b80-8080-44b2-978a-ea6438f2200d\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3\",\"name\":\"test-mn3\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-12-30T10:09:49.510763Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-12-30T10:09:49.510763Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"99c3ffab-8bda-4c61-ad8d-8258bca0ecbe\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn\",\"name\":\"azps-mn\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"tags\":{\"china\":\"move\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T13:38:50.5363895Z\",\"lastModifiedBy\":\"54b9b9be-c365-4548-95c6-d2f2011f48f4\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2023-01-10T13:40:11.4173094Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"d193c180-d2ad-4325-bc87-570eddb983a8\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:04:19.060169Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:04:19.060169Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"40421297-cc86-4498-95f1-c86187ca03ae\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn\",\"name\":\"azps-mn\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"tags\":{\"china\":\"move\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-20T09:51:49.4106873Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-20T09:51:49.4106873Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"de2db742-e3c8-45bd-a2eb-ab2a17d7daf0\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\",\"name\":\"test-mn2\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-20T16:09:20.5369623Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:39:50.2295876Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"ed247904-1fb8-4f70-b0e4-7133ab0abc6c\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3\",\"name\":\"test-mn3\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:40:25.3706171Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:40:25.3706171Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"684cac06-6456-4515-8aac-6f59b1ab7d50\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:44:47.7953048Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:44:47.7953048Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"57261fec-ed68-4592-9317-af6914f2541b\"}}]}", "isContentBase64": false } }, @@ -170,12 +170,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "5" ], - "x-ms-client-request-id": [ "d9d5f02c-7a5f-41b4-a797-e2d10dda140c" ], + "x-ms-unique-id": [ "25" ], + "x-ms-client-request-id": [ "89c48c70-f7d2-4e33-a09a-83b3810805cc" ], "CommandName": [ "Get-AzMobileNetwork" ], "FullCommandName": [ "Get-AzMobileNetwork_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -186,22 +186,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"dc009bb6-0000-0100-0000-63bd70640000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11996" ], + "ETag": [ "\"96010538-0000-0100-0000-641adc200000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "5f4f1bf4-fd09-4319-9e43-d83dbf51f6b2" ], - "x-ms-correlation-request-id": [ "96f2ed14-5430-4f14-a87c-b5c0ec6c9aee" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140453Z:96f2ed14-5430-4f14-a87c-b5c0ec6c9aee" ], + "x-ms-request-id": [ "57b66091-5b8c-4c65-9c2b-ed5237cd7d75" ], + "x-ms-correlation-request-id": [ "1c77b88b-f8f0-4341-adf3-20fc97461bb1" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104521Z:1c77b88b-f8f0-4341-adf3-20fc97461bb1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:04:53 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:45:21 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "637" ], + "Content-Length": [ "639" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:04:19.060169Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:04:19.060169Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"40421297-cc86-4498-95f1-c86187ca03ae\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:44:47.7953048Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:44:47.7953048Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"57261fec-ed68-4592-9317-af6914f2541b\"}}", "isContentBase64": false } }, @@ -212,12 +212,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "6" ], - "x-ms-client-request-id": [ "0a073b49-d27f-45f3-8b50-10092b70c31c" ], + "x-ms-unique-id": [ "26" ], + "x-ms-client-request-id": [ "330bff42-c5af-4c8e-a943-bcdeea835068" ], "CommandName": [ "Get-AzMobileNetwork" ], "FullCommandName": [ "Get-AzMobileNetwork_List1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -228,21 +228,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "d820111d-cb43-4bb9-8596-92be32953af0", "599b023e-3240-436e-95ec-4e269a731b87", "6d165c6c-153b-43d9-96ca-b4628741c281" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11995" ], - "x-ms-request-id": [ "a0c2d384-7aa8-4aeb-a85a-6a59e33dc49c" ], - "x-ms-correlation-request-id": [ "a0c2d384-7aa8-4aeb-a85a-6a59e33dc49c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140453Z:a0c2d384-7aa8-4aeb-a85a-6a59e33dc49c" ], + "x-ms-original-request-ids": [ "56f66d24-9892-4732-a770-3551dad91a21", "5a3f74bc-d763-4a62-9616-a4018f556567", "83604b03-0806-4ec0-9475-fc47bb4f36f0", "36f5ba46-861c-4eb6-b8c0-803549fed92b" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], + "x-ms-request-id": [ "5830dba6-e6c8-4b02-a9c4-433a11c2d381" ], + "x-ms-correlation-request-id": [ "5830dba6-e6c8-4b02-a9c4-433a11c2d381" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104522Z:5830dba6-e6c8-4b02-a9c4-433a11c2d381" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:04:53 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:45:22 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Content-Length": [ "1947" ] + "Content-Length": [ "1931" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\",\"name\":\"test-mn2\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-12-30T10:09:14.588678Z\",\"lastModifiedBy\":\"54b9b9be-c365-4548-95c6-d2f2011f48f4\",\"lastModifiedByType\":\"Application\",\"lastModifiedAt\":\"2022-12-30T10:52:34.9062003Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"03974b80-8080-44b2-978a-ea6438f2200d\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3\",\"name\":\"test-mn3\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2022-12-30T10:09:49.510763Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2022-12-30T10:09:49.510763Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"99c3ffab-8bda-4c61-ad8d-8258bca0ecbe\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:04:19.060169Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:04:19.060169Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"40421297-cc86-4498-95f1-c86187ca03ae\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\",\"name\":\"test-mn2\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-20T16:09:20.5369623Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:39:50.2295876Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"ed247904-1fb8-4f70-b0e4-7133ab0abc6c\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3\",\"name\":\"test-mn3\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:40:25.3706171Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:40:25.3706171Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"684cac06-6456-4515-8aac-6f59b1ab7d50\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:44:47.7953048Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:44:47.7953048Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"57261fec-ed68-4592-9317-af6914f2541b\"}}]}", "isContentBase64": false } }, @@ -264,22 +264,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"dc009fb9-0000-0100-0000-63bd70860000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1198" ], + "ETag": [ "\"96019741-0000-0100-0000-641adc420000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "7f499c77-a065-4f24-838c-f0717406f4c5" ], - "x-ms-correlation-request-id": [ "bde43f5b-6c43-4f94-9119-3440b562b5a0" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140455Z:bde43f5b-6c43-4f94-9119-3440b562b5a0" ], + "x-ms-request-id": [ "d835533d-ce6c-4e32-a7e9-b34a823aecdf" ], + "x-ms-correlation-request-id": [ "204ea5b1-0dd1-4eb4-9aa2-18ae8396f656" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104524Z:204ea5b1-0dd1-4eb4-9aa2-18ae8396f656" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:04:55 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:45:23 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "658" ], + "Content-Length": [ "660" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"tags\":{\"123\":\"abc\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:04:19.060169Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:04:54.171824Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"40421297-cc86-4498-95f1-c86187ca03ae\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"tags\":{\"123\":\"abc\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:44:47.7953048Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:45:22.8269321Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"57261fec-ed68-4592-9317-af6914f2541b\"}}", "isContentBase64": false } }, @@ -290,12 +290,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "8" ], - "x-ms-client-request-id": [ "8bc7d125-834c-43ae-a80f-23ec5a1aec1c" ], + "x-ms-unique-id": [ "28" ], + "x-ms-client-request-id": [ "e9523635-8537-4d15-9816-992f2d5eb979" ], "CommandName": [ "Get-AzMobileNetwork" ], "FullCommandName": [ "Get-AzMobileNetwork_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -306,22 +306,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"dc009fb9-0000-0100-0000-63bd70860000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11994" ], + "ETag": [ "\"96019741-0000-0100-0000-641adc420000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "1cb1f6d6-87cd-479b-b7d8-c602923051db" ], - "x-ms-correlation-request-id": [ "e651db2f-e2e7-4d9c-b0eb-2a2ac7e802bc" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140456Z:e651db2f-e2e7-4d9c-b0eb-2a2ac7e802bc" ], + "x-ms-request-id": [ "3717069d-409b-4a04-bd4b-c0577f3a1628" ], + "x-ms-correlation-request-id": [ "a44c32d7-9b44-44a5-90cd-e88a2f83fdfe" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104524Z:a44c32d7-9b44-44a5-90cd-e88a2f83fdfe" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:04:56 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:45:24 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "658" ], + "Content-Length": [ "660" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"tags\":{\"123\":\"abc\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:04:19.060169Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:04:54.171824Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"40421297-cc86-4498-95f1-c86187ca03ae\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"tags\":{\"123\":\"abc\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:44:47.7953048Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:45:22.8269321Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"57261fec-ed68-4592-9317-af6914f2541b\"}}", "isContentBase64": false } }, @@ -343,22 +343,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"dc00cfb9-0000-0100-0000-63bd70880000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1197" ], + "ETag": [ "\"9601fc41-0000-0100-0000-641adc450000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "9eeb2e7e-c4d3-4da2-bccf-5d3eddccee82" ], - "x-ms-correlation-request-id": [ "b6154cc9-04a0-473f-9cfa-88182c0ce955" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140457Z:b6154cc9-04a0-473f-9cfa-88182c0ce955" ], + "x-ms-request-id": [ "942dd397-2e84-4e8b-96bc-cbe0e1eb6039" ], + "x-ms-correlation-request-id": [ "252209c4-a036-4a9b-b563-78e25cca0696" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104526Z:252209c4-a036-4a9b-b563-78e25cca0696" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:04:57 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:45:25 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "659" ], + "Content-Length": [ "660" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"tags\":{\"123\":\"abc\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:04:19.060169Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:04:56.5007269Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"40421297-cc86-4498-95f1-c86187ca03ae\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn1\",\"name\":\"test-mn1\",\"type\":\"microsoft.mobilenetwork/mobilenetworks\",\"location\":\"eastus\",\"tags\":{\"123\":\"abc\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:44:47.7953048Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:45:25.2175376Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"publicLandMobileNetworkIdentifier\":{\"mcc\":\"001\",\"mnc\":\"01\"},\"serviceKey\":\"57261fec-ed68-4592-9317-af6914f2541b\"}}", "isContentBase64": false } }, @@ -369,12 +369,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "10" ], - "x-ms-client-request-id": [ "79e70e62-f175-4195-b192-28c1ca8cfa6a" ], + "x-ms-unique-id": [ "30" ], + "x-ms-client-request-id": [ "6c565b8a-9e52-45de-92e8-6fc6a21f1db8" ], "CommandName": [ "Remove-AzMobileNetwork" ], "FullCommandName": [ "Remove-AzMobileNetwork_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -386,15 +386,15 @@ "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "60365319-92d9-4f23-a72d-b5c301012e23" ], - "x-ms-request-id": [ "4ed2acd5-e15b-425c-a374-0454aa488162" ], + "mise-correlation-id": [ "f0b7a7ae-94b8-4d1f-ad61-2a0b46606c10" ], + "x-ms-request-id": [ "4781ebd9-2beb-4d20-a144-e2c9667c8406" ], "x-ms-build-version": [ "1.0.1" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14999" ], - "x-ms-correlation-request-id": [ "f4649612-6ba8-44e8-ba19-d851453d5dd9" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140500Z:f4649612-6ba8-44e8-ba19-d851453d5dd9" ], + "x-ms-correlation-request-id": [ "450c2bb1-4a26-47db-9265-d6893efb8850" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104529Z:450c2bb1-4a26-47db-9265-d6893efb8850" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:05:00 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:45:28 GMT" ] }, "ContentHeaders": { "Expires": [ "-1" ], diff --git a/src/MobileNetwork/test/AzMobileNetworkDataNetwork.Recording.json b/src/MobileNetwork/test/AzMobileNetworkDataNetwork.Recording.json index 1609fd34e0ef..198a033087d0 100644 --- a/src/MobileNetwork/test/AzMobileNetworkDataNetwork.Recording.json +++ b/src/MobileNetwork/test/AzMobileNetworkDataNetwork.Recording.json @@ -17,41 +17,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"5e00313f-0000-0100-0000-63bd708f0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1196" ], + "ETag": [ "\"0d0032ac-0000-0100-0000-641adc4c0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], "x-ms-providerhub-traffic": [ "True" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "83309b32-bb24-47ab-a9b8-7db467b123da" ], + "x-ms-request-id": [ "d3f89c19-6d6f-430f-a7f1-4abe610e3eb2" ], "x-ms-build-version": [ "1.0.1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e3143577-815b-4b17-b8d5-4336a77049e8*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01" ], - "x-ms-correlation-request-id": [ "5d586a01-7055-45f8-9573-4abe17196429" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140504Z:5d586a01-7055-45f8-9573-4abe17196429" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/04f107f1-e816-4b5f-85c1-41f7d64a1ead*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "e33327be-7b2d-46f7-8e47-71be0fa207cd" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104533Z:e33327be-7b2d-46f7-8e47-71be0fa207cd" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:05:03 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:45:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "582" ], + "Content-Length": [ "580" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:05:02.2535266Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:05:02.2535266Z\"},\"properties\":{\"provisioningState\":\"Accepted\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:45:31.311386Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:45:31.311386Z\"},\"properties\":{\"provisioningState\":\"Accepted\"}}", "isContentBase64": false } }, - "AzMobileNetworkDataNetwork+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e3143577-815b-4b17-b8d5-4336a77049e8*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01+2": { + "AzMobileNetworkDataNetwork+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/04f107f1-e816-4b5f-85c1-41f7d64a1ead*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e3143577-815b-4b17-b8d5-4336a77049e8*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/04f107f1-e816-4b5f-85c1-41f7d64a1ead*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "12" ], - "x-ms-client-request-id": [ "e237a02b-b457-4223-8559-6b934936792c" ], + "x-ms-unique-id": [ "32" ], + "x-ms-client-request-id": [ "1e6ca1f4-87af-45ce-bdd5-8a9554311bc7" ], "CommandName": [ "New-AzMobileNetworkDataNetwork" ], "FullCommandName": [ "New-AzMobileNetworkDataNetwork_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -61,21 +61,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"1a00395d-0000-0600-0000-63bd70950000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11998" ], - "x-ms-request-id": [ "10b91063-4480-4e78-b45b-e0f4431e0c5b" ], - "x-ms-correlation-request-id": [ "883b89e8-49a3-462b-a0ff-1b9a1c06f128" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140534Z:883b89e8-49a3-462b-a0ff-1b9a1c06f128" ], + "ETag": [ "\"8c004154-0000-0600-0000-641adc520000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11992" ], + "x-ms-request-id": [ "3a3da044-68b3-4658-b5a9-42c6ee21a7a3" ], + "x-ms-correlation-request-id": [ "10d39c6a-2b6c-491b-a0b9-6d37073d8c5c" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104603Z:10d39c6a-2b6c-491b-a0b9-6d37073d8c5c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:05:33 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:46:03 GMT" ] }, "ContentHeaders": { "Content-Length": [ "570" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e3143577-815b-4b17-b8d5-4336a77049e8*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"name\":\"e3143577-815b-4b17-b8d5-4336a77049e8*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:05:02.9174733Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/04f107f1-e816-4b5f-85c1-41f7d64a1ead*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"name\":\"04f107f1-e816-4b5f-85c1-41f7d64a1ead*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:45:32.1371118Z\",\"properties\":null}", "isContentBase64": false } }, @@ -87,12 +87,12 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "13" ], - "x-ms-client-request-id": [ "e237a02b-b457-4223-8559-6b934936792c" ], + "x-ms-unique-id": [ "33" ], + "x-ms-client-request-id": [ "1e6ca1f4-87af-45ce-bdd5-8a9554311bc7" ], "CommandName": [ "New-AzMobileNetworkDataNetwork" ], "FullCommandName": [ "New-AzMobileNetworkDataNetwork_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -102,22 +102,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"2500ccc1-0000-0600-0000-63bd70950000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11993" ], + "ETag": [ "\"0100114b-0000-0600-0000-641adc520000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "d7c2d82b-ba9d-4251-a52b-0a917b2877e7" ], - "x-ms-correlation-request-id": [ "24da390d-3bd3-4dcd-9883-3eb8b04197b0" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140534Z:24da390d-3bd3-4dcd-9883-3eb8b04197b0" ], + "x-ms-request-id": [ "f2eaec9b-4724-404c-b025-34b1e1251590" ], + "x-ms-correlation-request-id": [ "bfe83c10-e142-4730-bee3-bcb75835ca9f" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104604Z:bfe83c10-e142-4730-bee3-bcb75835ca9f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:05:34 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:46:03 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "583" ], + "Content-Length": [ "581" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:05:02.2535266Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:05:02.2535266Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:45:31.311386Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:45:31.311386Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -128,12 +128,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "14" ], - "x-ms-client-request-id": [ "131e5145-effe-4265-a0ab-a8f0e4faba9a" ], + "x-ms-unique-id": [ "34" ], + "x-ms-client-request-id": [ "526ef445-8211-4de0-9839-bb021c613a31" ], "CommandName": [ "Get-AzMobileNetworkDataNetwork" ], "FullCommandName": [ "Get-AzMobileNetworkDataNetwork_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -144,21 +144,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "c7499e10-92f0-431e-af84-51f07977567a", "8edf821b-923b-4fcf-b1d2-42b654faa8b6", "38d3d993-1442-4fbc-95a0-6d452e1be455" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11992" ], - "x-ms-request-id": [ "2c66e7b4-7da6-4e18-89c5-2646c8a4629d" ], - "x-ms-correlation-request-id": [ "2c66e7b4-7da6-4e18-89c5-2646c8a4629d" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140535Z:2c66e7b4-7da6-4e18-89c5-2646c8a4629d" ], + "x-ms-original-request-ids": [ "80fd3516-396f-4a7b-ac7a-d5af4bdf208f", "5b3da7ee-1ca2-4237-a523-0d4a4346e1dd", "67c8b10f-5cbc-43c6-b60f-249c7060b86c", "f36744c1-da22-4095-b5b2-694a8c91e67d" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "x-ms-request-id": [ "8cbf4ad3-6d38-453e-ad04-e19fab3d0965" ], + "x-ms-correlation-request-id": [ "8cbf4ad3-6d38-453e-ad04-e19fab3d0965" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104605Z:8cbf4ad3-6d38-453e-ad04-e19fab3d0965" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:05:34 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:46:04 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Content-Length": [ "595" ] + "Content-Length": [ "593" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:05:02.2535266Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:05:02.2535266Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:45:31.311386Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:45:31.311386Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, @@ -169,12 +169,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "15" ], - "x-ms-client-request-id": [ "0ba00f55-716b-430c-8678-d50f8bc84361" ], + "x-ms-unique-id": [ "35" ], + "x-ms-client-request-id": [ "7c446bbb-8201-4e90-a7da-4437eeb3b447" ], "CommandName": [ "Get-AzMobileNetworkDataNetwork" ], "FullCommandName": [ "Get-AzMobileNetworkDataNetwork_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -185,76 +185,78 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"2500ccc1-0000-0600-0000-63bd70950000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11991" ], + "ETag": [ "\"0100114b-0000-0600-0000-641adc520000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "87cc765b-8765-49ad-a9b4-71ba384a8b45" ], - "x-ms-correlation-request-id": [ "38dceb95-55da-4872-8faa-1a2275079897" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140535Z:38dceb95-55da-4872-8faa-1a2275079897" ], + "x-ms-request-id": [ "44989501-4561-47a9-950a-0ea5514eaa66" ], + "x-ms-correlation-request-id": [ "4b06a197-fbb4-42be-add7-ccfed6d0a537" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104606Z:4b06a197-fbb4-42be-add7-ccfed6d0a537" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:05:35 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:46:05 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "583" ], + "Content-Length": [ "581" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:05:02.2535266Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:05:02.2535266Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:45:31.311386Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:45:31.311386Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "AzMobileNetworkDataNetwork+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork?api-version=2022-11-01+1": { + "AzMobileNetworkDataNetwork+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork?api-version=2022-11-01+1": { "Request": { - "Method": "PATCH", + "Method": "PUT", "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork?api-version=2022-11-01", - "Content": "{\r\n \"tags\": {\r\n \"abc\": \"12\"\r\n }\r\n}", + "Content": "{\r\n \"tags\": {\r\n \"abc\": \"12\"\r\n },\r\n \"location\": \"eastus\"\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "39" ] + "Content-Length": [ "64" ] } }, "Response": { - "StatusCode": 200, + "StatusCode": 201, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"5e004c3f-0000-0100-0000-63bd70b00000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1195" ], + "ETag": [ "\"0d0035ac-0000-0100-0000-641adc6f0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "fb29a3b5-7708-4c27-9f7f-b8fb6fe1372f" ], - "x-ms-correlation-request-id": [ "b8f47829-93d3-474c-8daf-c56ee43b04c0" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140537Z:b8f47829-93d3-474c-8daf-c56ee43b04c0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "793cfbd4-c362-4b6b-96fc-15aa0158404f" ], + "x-ms-build-version": [ "1.0.1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/211db485-5715-4503-8952-c033178d3509*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "08f12108-1dfd-4e09-bd17-49b26d8a291a" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104608Z:08f12108-1dfd-4e09-bd17-49b26d8a291a" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:05:36 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:46:07 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "602" ], + "Content-Length": [ "601" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"tags\":{\"abc\":\"12\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:05:02.2535266Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:05:36.157586Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"tags\":{\"abc\":\"12\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:45:31.311386Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:46:07.0773543Z\"},\"properties\":{\"provisioningState\":\"Accepted\"}}", "isContentBase64": false } }, - "AzMobileNetworkDataNetwork+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork?api-version=2022-11-01+1": { + "AzMobileNetworkDataNetwork+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/211db485-5715-4503-8952-c033178d3509*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/211db485-5715-4503-8952-c033178d3509*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "17" ], - "x-ms-client-request-id": [ "45e2170b-ebf0-452d-9c58-bf7cf44aeb56" ], - "CommandName": [ "Get-AzMobileNetworkDataNetwork" ], - "FullCommandName": [ "Get-AzMobileNetworkDataNetwork_Get" ], + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "38" ], + "x-ms-client-request-id": [ "ac8eacd7-d9b8-48e7-a03c-2a4965c437a9" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkDataNetwork_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkDataNetwork_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -264,36 +266,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"5e004c3f-0000-0100-0000-63bd70b00000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11990" ], - "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "aa41c022-5e1c-4f5e-ba17-043bc58976af" ], - "x-ms-correlation-request-id": [ "c23f2c6b-3232-4f1d-a31a-f56d10e728fd" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140537Z:c23f2c6b-3232-4f1d-a31a-f56d10e728fd" ], + "ETag": [ "\"0f0056ab-0000-0100-0000-641adc750000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11991" ], + "x-ms-request-id": [ "65a1dd7e-444a-477a-9ab8-329c1e59089f" ], + "x-ms-correlation-request-id": [ "ad35f271-67f5-4ba5-80b2-c8209f11ca00" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104639Z:ad35f271-67f5-4ba5-80b2-c8209f11ca00" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:05:37 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:46:38 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "602" ], + "Content-Length": [ "570" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"tags\":{\"abc\":\"12\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:05:02.2535266Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:05:36.157586Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/211db485-5715-4503-8952-c033178d3509*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"name\":\"211db485-5715-4503-8952-c033178d3509*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:46:07.3339791Z\",\"properties\":null}", "isContentBase64": false } }, - "AzMobileNetworkDataNetwork+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork?api-version=2022-11-01+2": { + "AzMobileNetworkDataNetwork+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork?api-version=2022-11-01+3": { "Request": { - "Method": "PATCH", + "Method": "GET", "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork?api-version=2022-11-01", - "Content": "{\r\n \"tags\": {\r\n \"abc\": \"12\"\r\n }\r\n}", + "Content": null, "isContentBase64": false, "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "39" ], + "x-ms-client-request-id": [ "ac8eacd7-d9b8-48e7-a03c-2a4965c437a9" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkDataNetwork_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkDataNetwork_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "39" ] } }, "Response": { @@ -301,22 +307,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"5e004d3f-0000-0100-0000-63bd70b20000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1194" ], + "ETag": [ "\"0d0036ac-0000-0100-0000-641adc750000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "a64b22bf-05ca-41ab-88d7-d5e2901f84d3" ], - "x-ms-correlation-request-id": [ "b5c531dc-7fc4-4bec-84f6-624823f5db19" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140538Z:b5c531dc-7fc4-4bec-84f6-624823f5db19" ], + "x-ms-request-id": [ "5f39bbe5-2931-4d37-bde3-a09c5ec2b023" ], + "x-ms-correlation-request-id": [ "7c52a9f4-08bd-4c32-b093-dfdb52d2fc8a" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104639Z:7c52a9f4-08bd-4c32-b093-dfdb52d2fc8a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:05:38 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:46:39 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "603" ], + "Content-Length": [ "602" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"tags\":{\"abc\":\"12\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:05:02.2535266Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:05:37.9588721Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"name\":\"test-mn-datanetwork\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/datanetworks\",\"location\":\"eastus\",\"tags\":{\"abc\":\"12\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:45:31.311386Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:46:07.0773543Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -327,12 +333,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "19" ], - "x-ms-client-request-id": [ "950f25bb-563c-4851-9bc9-b5da617f5b04" ], + "x-ms-unique-id": [ "40" ], + "x-ms-client-request-id": [ "8e3fbfa9-bf0f-4270-90c8-db2f2772f7e3" ], "CommandName": [ "Remove-AzMobileNetworkDataNetwork" ], "FullCommandName": [ "Remove-AzMobileNetworkDataNetwork_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -343,18 +349,18 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"5e004e3f-0000-0100-0000-63bd70b40000\"" ], - "Location": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01" ], + "ETag": [ "\"0d003bac-0000-0100-0000-641adc910000\"" ], + "Location": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14998" ], "x-ms-providerhub-traffic": [ "True" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "17c6ec15-8d7e-40b0-923f-6eb0220e31ed" ], + "x-ms-request-id": [ "f6fe614b-beef-4cbb-97cf-a63b73d14e85" ], "x-ms-build-version": [ "1.0.1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01" ], - "x-ms-correlation-request-id": [ "d000266e-a0b6-49a9-8384-5bc062267cdc" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140540Z:d000266e-a0b6-49a9-8384-5bc062267cdc" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "813576ed-261f-4a52-8ece-7cca06a1250b" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104641Z:813576ed-261f-4a52-8ece-7cca06a1250b" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:05:39 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:46:41 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], @@ -365,20 +371,20 @@ "isContentBase64": false } }, - "AzMobileNetworkDataNetwork+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01+2": { + "AzMobileNetworkDataNetwork+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "20" ], - "x-ms-client-request-id": [ "950f25bb-563c-4851-9bc9-b5da617f5b04" ], + "x-ms-unique-id": [ "41" ], + "x-ms-client-request-id": [ "8e3fbfa9-bf0f-4270-90c8-db2f2772f7e3" ], "CommandName": [ "Remove-AzMobileNetworkDataNetwork" ], "FullCommandName": [ "Remove-AzMobileNetworkDataNetwork_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -388,38 +394,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae004f06-0000-0100-0000-63bd70b30000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11997" ], - "x-ms-request-id": [ "1663357b-7040-4fe6-a2df-54802ec755ed" ], - "x-ms-correlation-request-id": [ "84cbbff9-c4f4-45c8-9401-ba74d74ae8ec" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140610Z:84cbbff9-c4f4-45c8-9401-ba74d74ae8ec" ], + "ETag": [ "\"0f0078ab-0000-0100-0000-641adc900000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11990" ], + "x-ms-request-id": [ "972423b8-b7b6-4a00-9ba3-7d984841528a" ], + "x-ms-correlation-request-id": [ "1e38f5f3-8735-4520-a10b-2763c0cfadaf" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104712Z:1e38f5f3-8735-4520-a10b-2763c0cfadaf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:06:09 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:47:11 GMT" ] }, "ContentHeaders": { "Content-Length": [ "551" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"name\":\"2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"status\":\"Deleting\",\"startTime\":\"2023-01-10T14:05:39.6427982Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"name\":\"dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"status\":\"Deleting\",\"startTime\":\"2023-03-22T10:46:40.8099153Z\"}", "isContentBase64": false } }, - "AzMobileNetworkDataNetwork+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01+3": { + "AzMobileNetworkDataNetwork+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "21" ], - "x-ms-client-request-id": [ "950f25bb-563c-4851-9bc9-b5da617f5b04" ], + "x-ms-unique-id": [ "42" ], + "x-ms-client-request-id": [ "8e3fbfa9-bf0f-4270-90c8-db2f2772f7e3" ], "CommandName": [ "Remove-AzMobileNetworkDataNetwork" ], "FullCommandName": [ "Remove-AzMobileNetworkDataNetwork_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -429,38 +435,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae004f06-0000-0100-0000-63bd70b30000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11996" ], - "x-ms-request-id": [ "8b6164b6-e748-4ee1-8b16-30994b937286" ], - "x-ms-correlation-request-id": [ "75b6b2c8-3ea1-4b5c-b3cf-67d1fa59205d" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140640Z:75b6b2c8-3ea1-4b5c-b3cf-67d1fa59205d" ], + "ETag": [ "\"0f0078ab-0000-0100-0000-641adc900000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11989" ], + "x-ms-request-id": [ "a41dff19-f026-4fd4-9c7e-4b6392b37964" ], + "x-ms-correlation-request-id": [ "9d2bfd1e-a307-4990-93e4-34d24b15fa00" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104742Z:9d2bfd1e-a307-4990-93e4-34d24b15fa00" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:06:40 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:47:42 GMT" ] }, "ContentHeaders": { "Content-Length": [ "551" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"name\":\"2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"status\":\"Deleting\",\"startTime\":\"2023-01-10T14:05:39.6427982Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"name\":\"dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"status\":\"Deleting\",\"startTime\":\"2023-03-22T10:46:40.8099153Z\"}", "isContentBase64": false } }, - "AzMobileNetworkDataNetwork+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01+4": { + "AzMobileNetworkDataNetwork+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "22" ], - "x-ms-client-request-id": [ "950f25bb-563c-4851-9bc9-b5da617f5b04" ], + "x-ms-unique-id": [ "43" ], + "x-ms-client-request-id": [ "8e3fbfa9-bf0f-4270-90c8-db2f2772f7e3" ], "CommandName": [ "Remove-AzMobileNetworkDataNetwork" ], "FullCommandName": [ "Remove-AzMobileNetworkDataNetwork_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -470,38 +476,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"1a00495d-0000-0600-0000-63bd70f60000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11995" ], - "x-ms-request-id": [ "4c758748-1223-43f4-91a7-511b96d4a4fc" ], - "x-ms-correlation-request-id": [ "af4b2321-6b39-488f-a6b4-48a138cf9339" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140711Z:af4b2321-6b39-488f-a6b4-48a138cf9339" ], + "ETag": [ "\"0f00a6ab-0000-0100-0000-641adcd30000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11988" ], + "x-ms-request-id": [ "9b71dc6d-c934-4317-a116-f374e31c1501" ], + "x-ms-correlation-request-id": [ "f11cebc4-7d7c-4f47-a236-102d42776c10" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104813Z:f11cebc4-7d7c-4f47-a236-102d42776c10" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:07:10 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:48:13 GMT" ] }, "ContentHeaders": { "Content-Length": [ "570" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"name\":\"2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:05:39.6427982Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"name\":\"dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:46:40.8099153Z\",\"properties\":null}", "isContentBase64": false } }, - "AzMobileNetworkDataNetwork+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01+5": { + "AzMobileNetworkDataNetwork+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "23" ], - "x-ms-client-request-id": [ "950f25bb-563c-4851-9bc9-b5da617f5b04" ], + "x-ms-unique-id": [ "44" ], + "x-ms-client-request-id": [ "8e3fbfa9-bf0f-4270-90c8-db2f2772f7e3" ], "CommandName": [ "Remove-AzMobileNetworkDataNetwork" ], "FullCommandName": [ "Remove-AzMobileNetworkDataNetwork_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -511,21 +517,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"1a00495d-0000-0600-0000-63bd70f60000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11994" ], - "x-ms-request-id": [ "9069e93b-8994-4388-a5f5-8bb3a73d4f8e" ], - "x-ms-correlation-request-id": [ "c3a91552-4279-4627-b1e5-30a7286386cc" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140711Z:c3a91552-4279-4627-b1e5-30a7286386cc" ], + "ETag": [ "\"0f00a6ab-0000-0100-0000-641adcd30000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11987" ], + "x-ms-request-id": [ "bc8e5223-09ea-4c36-9225-80a00bdf912b" ], + "x-ms-correlation-request-id": [ "ac8b3d4c-3bb0-4444-8168-ed634707a91d" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104814Z:ac8b3d4c-3bb0-4444-8168-ed634707a91d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:07:10 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:48:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "570" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"name\":\"2fc43d5c-9905-4f31-b90e-208d94f2f2e5*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:05:39.6427982Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"name\":\"dc777460-acb9-454f-bf93-bc0c70b76c23*156D8163ED1F02783DE97317B8E9D60B8A964244947EB496673E25C53BFBFC11\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/dataNetworks/test-mn-datanetwork\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:46:40.8099153Z\",\"properties\":null}", "isContentBase64": false } } diff --git a/src/MobileNetwork/test/AzMobileNetworkDataNetwork.Tests.ps1 b/src/MobileNetwork/test/AzMobileNetworkDataNetwork.Tests.ps1 index 540fa8b140fc..d6723e2381e3 100644 --- a/src/MobileNetwork/test/AzMobileNetworkDataNetwork.Tests.ps1 +++ b/src/MobileNetwork/test/AzMobileNetworkDataNetwork.Tests.ps1 @@ -36,21 +36,13 @@ Describe 'AzMobileNetworkDataNetwork' { } | Should -Not -Throw } - It 'UpdateExpanded' { + It 'UpdateExpanded' -skip { { $config = Update-AzMobileNetworkDataNetwork -MobileNetworkName $env.testNetwork3 -ResourceGroupName $env.resourceGroup -DataNetworkName $env.testDataNetwork -Tag @{"abc"="`12"} $config.Name | Should -Be $env.testDataNetwork } | Should -Not -Throw } - It 'UpdateViaIdentityExpanded' { - { - $config = Get-AzMobileNetworkDataNetwork -MobileNetworkName $env.testNetwork3 -ResourceGroupName $env.resourceGroup -Name $env.testDataNetwork - $config = Update-AzMobileNetworkDataNetwork -InputObject $config -Tag @{"abc"="`12"} - $config.Name | Should -Be $env.testDataNetwork - } | Should -Not -Throw - } - It 'Delete' { { Remove-AzMobileNetworkDataNetwork -MobileNetworkName $env.testNetwork3 -ResourceGroupName $env.resourceGroup -Name $env.testDataNetwork diff --git a/src/MobileNetwork/test/AzMobileNetworkService.Recording.json b/src/MobileNetwork/test/AzMobileNetworkService.Recording.json index 89897a48f173..f8e39dc13c52 100644 --- a/src/MobileNetwork/test/AzMobileNetworkService.Recording.json +++ b/src/MobileNetwork/test/AzMobileNetworkService.Recording.json @@ -17,41 +17,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"1700955d-0000-0100-0000-63bd71120000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1193" ], + "ETag": [ "\"6300d5e3-0000-0100-0000-641adcf20000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], "x-ms-providerhub-traffic": [ "True" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "f87d1fcd-1e59-47ae-8050-f5e0439f7f6d" ], + "x-ms-request-id": [ "80ccadc2-01f7-4c39-b13f-283056a20a98" ], "x-ms-build-version": [ "1.0.1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01" ], - "x-ms-correlation-request-id": [ "f378818c-6e43-4bff-9ff4-a35fd8dc86fe" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140715Z:f378818c-6e43-4bff-9ff4-a35fd8dc86fe" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "a9c2ffcc-e7d0-4fac-b2aa-f7be73748ce3" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104818Z:a9c2ffcc-e7d0-4fac-b2aa-f7be73748ce3" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:07:15 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:48:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1220" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:07:13.6757432Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:07:13.6757432Z\"},\"properties\":{\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"MayPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}],\"provisioningState\":\"Accepted\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:48:16.7663581Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:48:16.7663581Z\"},\"properties\":{\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"MayPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}],\"provisioningState\":\"Accepted\"}}", "isContentBase64": false } }, - "AzMobileNetworkService+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+2": { + "AzMobileNetworkService+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "25" ], - "x-ms-client-request-id": [ "b266eac3-5d9b-41ed-9dd6-1d39499c6f1c" ], + "x-ms-unique-id": [ "46" ], + "x-ms-client-request-id": [ "6e1be875-84d6-4666-bb56-bf7bb755a3e2" ], "CommandName": [ "New-AzMobileNetworkService" ], "FullCommandName": [ "New-AzMobileNetworkService_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -61,38 +61,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae007f06-0000-0100-0000-63bd71120000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11993" ], - "x-ms-request-id": [ "0336dec1-223e-407c-be72-e62918c1b799" ], - "x-ms-correlation-request-id": [ "8b8affab-82fd-4e3a-9a43-60b8cb5dd2cf" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140746Z:8b8affab-82fd-4e3a-9a43-60b8cb5dd2cf" ], + "ETag": [ "\"0f00d3ab-0000-0100-0000-641adcf10000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11986" ], + "x-ms-request-id": [ "31fdd1fa-2fca-4911-9c0a-eaf3cc550a62" ], + "x-ms-correlation-request-id": [ "72f20627-66e6-4578-881e-7f666b8ba9c5" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104849Z:72f20627-66e6-4578-881e-7f666b8ba9c5" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:07:45 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:48:48 GMT" ] }, "ContentHeaders": { "Content-Length": [ "543" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Accepted\",\"startTime\":\"2023-01-10T14:07:14.4701503Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T10:48:17.6101903Z\"}", "isContentBase64": false } }, - "AzMobileNetworkService+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+3": { + "AzMobileNetworkService+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "26" ], - "x-ms-client-request-id": [ "b266eac3-5d9b-41ed-9dd6-1d39499c6f1c" ], + "x-ms-unique-id": [ "47" ], + "x-ms-client-request-id": [ "6e1be875-84d6-4666-bb56-bf7bb755a3e2" ], "CommandName": [ "New-AzMobileNetworkService" ], "FullCommandName": [ "New-AzMobileNetworkService_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -102,38 +102,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae007f06-0000-0100-0000-63bd71120000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11992" ], - "x-ms-request-id": [ "f21d2122-4e93-4c9f-b34b-cdc9c8d77e1b" ], - "x-ms-correlation-request-id": [ "7168eb0d-c460-42e3-8e40-7ffce831dbd6" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140816Z:7168eb0d-c460-42e3-8e40-7ffce831dbd6" ], + "ETag": [ "\"0f00d3ab-0000-0100-0000-641adcf10000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11985" ], + "x-ms-request-id": [ "4cc9c42c-6767-43cf-8f35-375f1460d863" ], + "x-ms-correlation-request-id": [ "43eef247-b14e-46e6-b23a-8ab086b7f7aa" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104920Z:43eef247-b14e-46e6-b23a-8ab086b7f7aa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:08:16 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:49:20 GMT" ] }, "ContentHeaders": { "Content-Length": [ "543" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Accepted\",\"startTime\":\"2023-01-10T14:07:14.4701503Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T10:48:17.6101903Z\"}", "isContentBase64": false } }, - "AzMobileNetworkService+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+4": { + "AzMobileNetworkService+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "27" ], - "x-ms-client-request-id": [ "b266eac3-5d9b-41ed-9dd6-1d39499c6f1c" ], + "x-ms-unique-id": [ "48" ], + "x-ms-client-request-id": [ "6e1be875-84d6-4666-bb56-bf7bb755a3e2" ], "CommandName": [ "New-AzMobileNetworkService" ], "FullCommandName": [ "New-AzMobileNetworkService_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -143,21 +143,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"1a005e5d-0000-0600-0000-63bd71550000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11991" ], - "x-ms-request-id": [ "28e1e9f1-a52b-4dd4-9fa0-d061c1543246" ], - "x-ms-correlation-request-id": [ "f2c7c4f7-8a77-4bef-b1af-be52d5deb3ab" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140846Z:f2c7c4f7-8a77-4bef-b1af-be52d5deb3ab" ], + "ETag": [ "\"8c00436b-0000-0600-0000-641add330000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11984" ], + "x-ms-request-id": [ "8e6116bc-1fd2-42c3-9e5c-9c9ff976ec25" ], + "x-ms-correlation-request-id": [ "c9ae9d8e-ca07-47a4-8758-54b99d555d82" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104950Z:c9ae9d8e-ca07-47a4-8758-54b99d555d82" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:08:46 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:49:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "562" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"ec5cb64c-b6a1-40af-a5f5-175d4a16d345*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:07:14.4701503Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"e2408958-3523-4a5a-a5ca-0d2dda1bf299*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:48:17.6101903Z\",\"properties\":null}", "isContentBase64": false } }, @@ -169,12 +169,12 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "28" ], - "x-ms-client-request-id": [ "b266eac3-5d9b-41ed-9dd6-1d39499c6f1c" ], + "x-ms-unique-id": [ "49" ], + "x-ms-client-request-id": [ "6e1be875-84d6-4666-bb56-bf7bb755a3e2" ], "CommandName": [ "New-AzMobileNetworkService" ], "FullCommandName": [ "New-AzMobileNetworkService_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -184,22 +184,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"17009a5d-0000-0100-0000-63bd712e0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11989" ], + "ETag": [ "\"63005ee4-0000-0100-0000-641adcf80000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "a6a6ec4c-dc18-4361-bcd3-02ba1e64031f" ], - "x-ms-correlation-request-id": [ "f69e94c3-eaec-4e0e-bb9c-5600a847172c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140847Z:f69e94c3-eaec-4e0e-bb9c-5600a847172c" ], + "x-ms-request-id": [ "fd589fac-f1b9-4e92-b295-3bb5fa592b6a" ], + "x-ms-correlation-request-id": [ "c949148d-b4de-4931-9c1f-1ae841e3df1c" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104951Z:c949148d-b4de-4931-9c1f-1ae841e3df1c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:08:46 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:49:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1221" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:07:13.6757432Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:07:13.6757432Z\"},\"properties\":{\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"MayPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}],\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:48:16.7663581Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:48:16.7663581Z\"},\"properties\":{\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"MayPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}],\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -210,12 +210,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "29" ], - "x-ms-client-request-id": [ "ea4b8c94-9a33-4ebc-9c27-ced4b609ce17" ], + "x-ms-unique-id": [ "50" ], + "x-ms-client-request-id": [ "a8e1a4a6-d259-43c1-b872-e6f5b069fbfc" ], "CommandName": [ "Get-AzMobileNetworkService" ], "FullCommandName": [ "Get-AzMobileNetworkService_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -226,21 +226,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "185255d3-654c-4a03-bdbf-f6f8a82d6414", "2263ce5b-6382-460a-ad76-3f8b05b31425", "fa7dfc7b-173a-40fa-84e4-ada1818e5ac1" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11988" ], - "x-ms-request-id": [ "e35088b5-4064-4980-b6ad-d53a4485fd63" ], - "x-ms-correlation-request-id": [ "e35088b5-4064-4980-b6ad-d53a4485fd63" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140848Z:e35088b5-4064-4980-b6ad-d53a4485fd63" ], + "x-ms-original-request-ids": [ "2e5769e1-e506-48c6-8a8b-8d27a19bbf20", "c5d35d9a-aa48-4dde-b984-7f8a0edaae07", "46a28a9c-a452-48e0-910d-971822e16940", "c36d0a1b-0fcb-4023-8183-0c12f6996465" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "x-ms-request-id": [ "96717a66-e7cc-4686-b02d-293a0018d096" ], + "x-ms-correlation-request-id": [ "96717a66-e7cc-4686-b02d-293a0018d096" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104952Z:96717a66-e7cc-4686-b02d-293a0018d096" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:08:47 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:49:51 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], "Content-Length": [ "1233" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:07:13.6757432Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:07:13.6757432Z\"},\"properties\":{\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"MayPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}],\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:48:16.7663581Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:48:16.7663581Z\"},\"properties\":{\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"MayPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}],\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, @@ -251,12 +251,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "30" ], - "x-ms-client-request-id": [ "21f0724b-f774-4870-80a7-54887ac687cd" ], + "x-ms-unique-id": [ "51" ], + "x-ms-client-request-id": [ "d844cfa6-ea64-4f2c-a971-568b1f26c3d2" ], "CommandName": [ "Get-AzMobileNetworkService" ], "FullCommandName": [ "Get-AzMobileNetworkService_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -267,76 +267,78 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"17009a5d-0000-0100-0000-63bd712e0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11987" ], + "ETag": [ "\"63005ee4-0000-0100-0000-641adcf80000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "35ec4939-358f-4669-ae4a-11d6423f30cf" ], - "x-ms-correlation-request-id": [ "1430d188-67a6-440d-b327-8131ba994086" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140848Z:1430d188-67a6-440d-b327-8131ba994086" ], + "x-ms-request-id": [ "1c714d41-b695-4a3e-99cf-19d25c50615a" ], + "x-ms-correlation-request-id": [ "96c39845-1292-4853-9d4a-be1b3d580c9c" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104952Z:96c39845-1292-4853-9d4a-be1b3d580c9c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:08:48 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:49:52 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1221" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:07:13.6757432Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:07:13.6757432Z\"},\"properties\":{\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"MayPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}],\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:48:16.7663581Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:48:16.7663581Z\"},\"properties\":{\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"MayPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}],\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "AzMobileNetworkService+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service?api-version=2022-11-01+1": { + "AzMobileNetworkService+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service?api-version=2022-11-01+1": { "Request": { - "Method": "PATCH", + "Method": "PUT", "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service?api-version=2022-11-01", - "Content": "{\r\n \"tags\": {\r\n \"abc\": \"123\"\r\n }\r\n}", + "Content": "{\r\n \"tags\": {\r\n \"abc\": \"123\"\r\n },\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"serviceQosPolicy\": {\r\n \"maximumBitRate\": {\r\n \"uplink\": \"500 Mbps\",\r\n \"downlink\": \"1 Gbps\"\r\n }\r\n },\r\n \"servicePrecedence\": 0,\r\n \"pccRules\": [\r\n {\r\n \"ruleQosPolicy\": {\r\n \"maximumBitRate\": {\r\n \"uplink\": \"500 Mbps\",\r\n \"downlink\": \"1 Gbps\"\r\n },\r\n \"allocationAndRetentionPriorityLevel\": 9,\r\n \"preemptionCapability\": \"NotPreempt\",\r\n \"preemptionVulnerability\": \"Preemptable\"\r\n },\r\n \"ruleName\": \"test-mn-service-rule\",\r\n \"rulePrecedence\": 0,\r\n \"trafficControl\": \"Enabled\",\r\n \"serviceDataFlowTemplates\": [\r\n {\r\n \"templateName\": \"test-mn-flow-template\",\r\n \"direction\": \"Bidirectional\",\r\n \"protocol\": [ \"255\" ],\r\n \"remoteIpList\": [ \"any\" ]\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "40" ] + "Content-Length": [ "964" ] } }, "Response": { - "StatusCode": 200, + "StatusCode": 201, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"17009c5d-0000-0100-0000-63bd71710000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1192" ], + "ETag": [ "\"630050ec-0000-0100-0000-641add530000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1188" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "812879c0-1b89-41f7-aeac-57225ae343d1" ], - "x-ms-correlation-request-id": [ "e336f711-092b-4182-89e7-2b54001f4c11" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140851Z:e336f711-092b-4182-89e7-2b54001f4c11" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "e641b467-990b-489e-b623-28b518ce50a8" ], + "x-ms-build-version": [ "1.0.1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "aeaf1ea8-bc29-4787-8b62-3bc836abeef7" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T104956Z:aeaf1ea8-bc29-4787-8b62-3bc836abeef7" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:08:50 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:49:55 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1242" ], + "Content-Length": [ "1117" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:07:13.6757432Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:08:49.3189153Z\"},\"properties\":{\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"MayPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}],\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:48:16.7663581Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:49:54.0171519Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"}},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}]}}", "isContentBase64": false } }, - "AzMobileNetworkService+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service?api-version=2022-11-01+1": { + "AzMobileNetworkService+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "32" ], - "x-ms-client-request-id": [ "65623d39-fcda-4958-87db-3e81b9ecb6bd" ], - "CommandName": [ "Get-AzMobileNetworkService" ], - "FullCommandName": [ "Get-AzMobileNetworkService_Get" ], + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "54" ], + "x-ms-client-request-id": [ "026282c1-8aac-4f2f-abfd-0724444a52cf" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkService_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkService_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -346,36 +348,122 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"17009c5d-0000-0100-0000-63bd71710000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11986" ], - "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "4fa016eb-cd1d-40cb-93de-66edfc2afc6d" ], - "x-ms-correlation-request-id": [ "a44c4e3b-97bb-4aae-8ebd-0b7934a0216f" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140851Z:a44c4e3b-97bb-4aae-8ebd-0b7934a0216f" ], + "ETag": [ "\"0f00efab-0000-0100-0000-641add520000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11983" ], + "x-ms-request-id": [ "ede88037-73a3-4a88-8b15-461e6d231fa2" ], + "x-ms-correlation-request-id": [ "32f6a6ec-5656-4ae9-823e-1ef4bd21459d" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105026Z:32f6a6ec-5656-4ae9-823e-1ef4bd21459d" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 22 Mar 2023 10:50:25 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "543" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T10:49:54.7966304Z\"}", + "isContentBase64": false + } + }, + "AzMobileNetworkService+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "55" ], + "x-ms-client-request-id": [ "026282c1-8aac-4f2f-abfd-0724444a52cf" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkService_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"0f00efab-0000-0100-0000-641add520000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11982" ], + "x-ms-request-id": [ "e49676ea-4057-4d07-a9ec-a2abeb37a892" ], + "x-ms-correlation-request-id": [ "2f0ec02e-dce4-42e1-9209-d2367d02dbf1" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105057Z:2f0ec02e-dce4-42e1-9209-d2367d02dbf1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:08:51 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:50:57 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1242" ], + "Content-Length": [ "543" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:07:13.6757432Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:08:49.3189153Z\"},\"properties\":{\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"MayPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}],\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T10:49:54.7966304Z\"}", "isContentBase64": false } }, - "AzMobileNetworkService+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service?api-version=2022-11-01+2": { + "AzMobileNetworkService+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+4": { "Request": { - "Method": "PATCH", + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "56" ], + "x-ms-client-request-id": [ "026282c1-8aac-4f2f-abfd-0724444a52cf" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkService_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"8c007a74-0000-0600-0000-641add950000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11981" ], + "x-ms-request-id": [ "5f615b13-ba9d-45aa-b818-a4a771ee105f" ], + "x-ms-correlation-request-id": [ "3ee9902e-4fbf-4d9d-8731-42592e680ad3" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105128Z:3ee9902e-4fbf-4d9d-8731-42592e680ad3" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 22 Mar 2023 10:51:28 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "562" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"7b083f41-c8c6-4858-8fa1-8126e7a686a5*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:49:54.7966304Z\",\"properties\":null}", + "isContentBase64": false + } + }, + "AzMobileNetworkService+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service?api-version=2022-11-01+5": { + "Request": { + "Method": "GET", "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service?api-version=2022-11-01", - "Content": "{\r\n \"tags\": {\r\n \"abc\": \"123\"\r\n }\r\n}", + "Content": null, "isContentBase64": false, "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "57" ], + "x-ms-client-request-id": [ "026282c1-8aac-4f2f-abfd-0724444a52cf" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkService_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkService_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "40" ] } }, "Response": { @@ -383,22 +471,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"17009d5d-0000-0100-0000-63bd71740000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1191" ], + "ETag": [ "\"6300ccec-0000-0100-0000-641add5a0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "8bc96ab1-5e9d-48c3-a5ea-70fb845f856e" ], - "x-ms-correlation-request-id": [ "73da75e7-c491-4a4b-8f57-317a6208eb99" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140853Z:73da75e7-c491-4a4b-8f57-317a6208eb99" ], + "x-ms-request-id": [ "268f3457-f150-44e2-ac27-67c23fdfadca" ], + "x-ms-correlation-request-id": [ "2c95ed10-3906-43b6-8dba-4ab12051c5c6" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105129Z:2c95ed10-3906-43b6-8dba-4ab12051c5c6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:08:52 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:51:28 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1242" ], + "Content-Length": [ "1118" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:07:13.6757432Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:08:52.2102431Z\"},\"properties\":{\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"MayPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}],\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"name\":\"test-mn-service\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/services\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:48:16.7663581Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:49:54.0171519Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"serviceQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"}},\"servicePrecedence\":0,\"pccRules\":[{\"ruleQosPolicy\":{\"maximumBitRate\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\"},\"ruleName\":\"test-mn-service-rule\",\"rulePrecedence\":0,\"trafficControl\":\"Enabled\",\"serviceDataFlowTemplates\":[{\"templateName\":\"test-mn-flow-template\",\"direction\":\"Bidirectional\",\"protocol\":[\"255\"],\"remoteIpList\":[\"any\"]}]}]}}", "isContentBase64": false } }, @@ -409,12 +497,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "34" ], - "x-ms-client-request-id": [ "0f0585fb-ab8c-42d1-9c01-b01d89f35be2" ], + "x-ms-unique-id": [ "58" ], + "x-ms-client-request-id": [ "ce13f315-1570-47d2-9ed2-c54336f1767a" ], "CommandName": [ "Remove-AzMobileNetworkService" ], "FullCommandName": [ "Remove-AzMobileNetworkService_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -425,18 +513,18 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"17009e5d-0000-0100-0000-63bd71760000\"" ], - "Location": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01" ], + "ETag": [ "\"6300c6f3-0000-0100-0000-641addb30000\"" ], + "Location": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14997" ], "x-ms-providerhub-traffic": [ "True" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "28c1207b-876f-478a-872c-3c98041affad" ], + "x-ms-request-id": [ "1fb020ce-5bab-4595-a7e2-fe2577929d06" ], "x-ms-build-version": [ "1.0.1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01" ], - "x-ms-correlation-request-id": [ "dd36acfa-6218-4d5e-a82f-b578819cecb6" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140854Z:dd36acfa-6218-4d5e-a82f-b578819cecb6" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "645461bb-745e-41ce-8f00-62989b87d7e0" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105131Z:645461bb-745e-41ce-8f00-62989b87d7e0" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:08:54 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:51:30 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], @@ -447,20 +535,20 @@ "isContentBase64": false } }, - "AzMobileNetworkService+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+2": { + "AzMobileNetworkService+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "35" ], - "x-ms-client-request-id": [ "0f0585fb-ab8c-42d1-9c01-b01d89f35be2" ], + "x-ms-unique-id": [ "59" ], + "x-ms-client-request-id": [ "ce13f315-1570-47d2-9ed2-c54336f1767a" ], "CommandName": [ "Remove-AzMobileNetworkService" ], "FullCommandName": [ "Remove-AzMobileNetworkService_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -470,38 +558,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae009906-0000-0100-0000-63bd71760000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11990" ], - "x-ms-request-id": [ "b6ad52ec-e190-442c-8ffd-50a6b19b1b11" ], - "x-ms-correlation-request-id": [ "a51935be-492b-46cf-af6c-601543dde9a0" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140925Z:a51935be-492b-46cf-af6c-601543dde9a0" ], + "ETag": [ "\"0f002fac-0000-0100-0000-641addb20000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11980" ], + "x-ms-request-id": [ "882b9624-159e-488a-99e4-7a88aa154002" ], + "x-ms-correlation-request-id": [ "2306d1df-bb4b-420a-8df5-067aba036683" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105201Z:2306d1df-bb4b-420a-8df5-067aba036683" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:09:24 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:52:00 GMT" ] }, "ContentHeaders": { "Content-Length": [ "543" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Deleting\",\"startTime\":\"2023-01-10T14:08:54.3657042Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Deleting\",\"startTime\":\"2023-03-22T10:51:30.9044029Z\"}", "isContentBase64": false } }, - "AzMobileNetworkService+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+3": { + "AzMobileNetworkService+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "36" ], - "x-ms-client-request-id": [ "0f0585fb-ab8c-42d1-9c01-b01d89f35be2" ], + "x-ms-unique-id": [ "60" ], + "x-ms-client-request-id": [ "ce13f315-1570-47d2-9ed2-c54336f1767a" ], "CommandName": [ "Remove-AzMobileNetworkService" ], "FullCommandName": [ "Remove-AzMobileNetworkService_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -511,38 +599,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae009906-0000-0100-0000-63bd71760000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11989" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T140955Z:46cf826e-6d5c-4610-b8e9-8495caa1e836" ], - "x-ms-request-id": [ "f4fbbc12-2c3d-4ba8-8582-baef446759a3" ], - "x-ms-correlation-request-id": [ "46cf826e-6d5c-4610-b8e9-8495caa1e836" ], + "ETag": [ "\"0f002fac-0000-0100-0000-641addb20000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11979" ], + "x-ms-request-id": [ "3ca2ce5c-81b5-4a61-850f-76242f429d66" ], + "x-ms-correlation-request-id": [ "7b2b9afd-1188-4902-b1d4-9d9c168d3631" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105232Z:7b2b9afd-1188-4902-b1d4-9d9c168d3631" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:09:55 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:52:32 GMT" ] }, "ContentHeaders": { "Content-Length": [ "543" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Deleting\",\"startTime\":\"2023-01-10T14:08:54.3657042Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Deleting\",\"startTime\":\"2023-03-22T10:51:30.9044029Z\"}", "isContentBase64": false } }, - "AzMobileNetworkService+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+4": { + "AzMobileNetworkService+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "37" ], - "x-ms-client-request-id": [ "0f0585fb-ab8c-42d1-9c01-b01d89f35be2" ], + "x-ms-unique-id": [ "61" ], + "x-ms-client-request-id": [ "ce13f315-1570-47d2-9ed2-c54336f1767a" ], "CommandName": [ "Remove-AzMobileNetworkService" ], "FullCommandName": [ "Remove-AzMobileNetworkService_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -552,38 +640,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00b606-0000-0100-0000-63bd71b80000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11988" ], - "x-ms-request-id": [ "ef8e0e9c-8497-4c8b-916d-7b25e338a1f9" ], - "x-ms-correlation-request-id": [ "ad32bcf9-0bb4-412f-a52c-85fc3b769f3d" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141026Z:ad32bcf9-0bb4-412f-a52c-85fc3b769f3d" ], + "ETag": [ "\"0f00f2ac-0000-0100-0000-641addf50000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11978" ], + "x-ms-request-id": [ "e147982d-0135-423d-af9d-ee0d20f07463" ], + "x-ms-correlation-request-id": [ "50af0aea-43a1-4c8d-855a-6c8b3b228c59" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105302Z:50af0aea-43a1-4c8d-855a-6c8b3b228c59" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:10:25 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:53:02 GMT" ] }, "ContentHeaders": { "Content-Length": [ "562" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:08:54.3657042Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:51:30.9044029Z\",\"properties\":null}", "isContentBase64": false } }, - "AzMobileNetworkService+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+5": { + "AzMobileNetworkService+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "38" ], - "x-ms-client-request-id": [ "0f0585fb-ab8c-42d1-9c01-b01d89f35be2" ], + "x-ms-unique-id": [ "62" ], + "x-ms-client-request-id": [ "ce13f315-1570-47d2-9ed2-c54336f1767a" ], "CommandName": [ "Remove-AzMobileNetworkService" ], "FullCommandName": [ "Remove-AzMobileNetworkService_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -593,21 +681,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00b606-0000-0100-0000-63bd71b80000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11987" ], - "x-ms-request-id": [ "a0f8d26d-ab26-4d4b-88fb-4e87bf5926a5" ], - "x-ms-correlation-request-id": [ "bd9fd384-79f8-4039-85c4-e0e8d1d63aee" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141026Z:bd9fd384-79f8-4039-85c4-e0e8d1d63aee" ], + "ETag": [ "\"0f00f2ac-0000-0100-0000-641addf50000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11977" ], + "x-ms-request-id": [ "2c960422-49fb-4e5f-9968-cd481b04359e" ], + "x-ms-correlation-request-id": [ "e4ec8218-2543-4846-857d-08f47e111624" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105303Z:e4ec8218-2543-4846-857d-08f47e111624" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:10:26 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:53:02 GMT" ] }, "ContentHeaders": { "Content-Length": [ "562" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"2d085932-bcb6-4754-a5ec-3626177d6467*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:08:54.3657042Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"name\":\"8dff02e4-c223-41e1-bf9e-a42cfebd6b52*635526C4AE250EF192E4150550240CEC408B62D881F1CA27C876E4A71CAC9C50\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/services/test-mn-service\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:51:30.9044029Z\",\"properties\":null}", "isContentBase64": false } } diff --git a/src/MobileNetwork/test/AzMobileNetworkService.Tests.ps1 b/src/MobileNetwork/test/AzMobileNetworkService.Tests.ps1 index d4266df9d396..c39e8e7fb015 100644 --- a/src/MobileNetwork/test/AzMobileNetworkService.Tests.ps1 +++ b/src/MobileNetwork/test/AzMobileNetworkService.Tests.ps1 @@ -38,17 +38,9 @@ Describe 'AzMobileNetworkService' { } | Should -Not -Throw } - It 'UpdateExpanded' { + It 'UpdateExpanded' -skip { { - $config = Update-AzMobileNetworkService -MobileNetworkName $env.testNetwork3 -ServiceName $env.testService -ResourceGroupName $env.resourceGroup -Tag @{"abc"="123"} - $config.Name | Should -Be $env.testService - } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' { - { - $config = Get-AzMobileNetworkService -MobileNetworkName $env.testNetwork3 -ResourceGroupName $env.resourceGroup -Name $env.testService - $config = Update-AzMobileNetworkService -InputObject $config -Tag @{"abc"="123"} + $config = Update-AzMobileNetworkService -MobileNetworkName $env.testNetwork3 -ServiceName $env.testService -ResourceGroupName $env.resourceGroup -Tag @{"abc"="123"} -ServicePrecedence 0 $config.Name | Should -Be $env.testService } | Should -Not -Throw } diff --git a/src/MobileNetwork/test/AzMobileNetworkSimGroup.Recording.json b/src/MobileNetwork/test/AzMobileNetworkSimGroup.Recording.json index 4be39a9597bd..00c13155e3c6 100644 --- a/src/MobileNetwork/test/AzMobileNetworkSimGroup.Recording.json +++ b/src/MobileNetwork/test/AzMobileNetworkSimGroup.Recording.json @@ -17,42 +17,42 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ac03942e-0000-0100-0000-63bd71db0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1190" ], + "ETag": [ "\"170020fe-0000-0100-0000-641ade120000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1187" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "9ac3cdb4-0f0f-422c-b043-06f826ae0330" ], - "x-ms-request-id": [ "024318b5-8613-4bce-a8f3-66c45ef1b30b" ], + "mise-correlation-id": [ "62321a30-94fe-46eb-b1ba-fe57e7b7306e" ], + "x-ms-request-id": [ "d1693c37-5d9c-4137-9a63-652e67eddaac" ], "x-ms-build-version": [ "1.0.1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01" ], - "x-ms-correlation-request-id": [ "bd016242-1977-4f15-81f6-0f29b467f1a6" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141036Z:bd016242-1977-4f15-81f6-0f29b467f1a6" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "7062d07f-a004-4c48-bf04-d0216ce3b7a1" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105307Z:7062d07f-a004-4c48-bf04-d0216ce3b7a1" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:10:36 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:53:06 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "703" ], + "Content-Length": [ "705" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:10:34.624493Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:10:34.624493Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Accepted\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:53:05.4253596Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:53:05.4253596Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Accepted\"}}", "isContentBase64": false } }, - "AzMobileNetworkSimGroup+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+2": { + "AzMobileNetworkSimGroup+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "40" ], - "x-ms-client-request-id": [ "91ba0fc4-2f83-490f-a2aa-c8413ce77245" ], + "x-ms-unique-id": [ "64" ], + "x-ms-client-request-id": [ "ab0608a2-f4b0-48ea-aa7d-54d78ae9da06" ], "CommandName": [ "New-AzMobileNetworkSimGroup" ], "FullCommandName": [ "New-AzMobileNetworkSimGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -62,38 +62,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00e206-0000-0100-0000-63bd71db0000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11986" ], - "x-ms-request-id": [ "3acf9a18-4431-489c-ac3f-ce19121602cb" ], - "x-ms-correlation-request-id": [ "478c514b-9a77-4d58-ab24-cb84cfa752c8" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141107Z:478c514b-9a77-4d58-ab24-cb84cfa752c8" ], + "ETag": [ "\"0f001faf-0000-0100-0000-641ade110000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11976" ], + "x-ms-request-id": [ "0c2a3e83-29bc-4a3a-b91c-575ed0233243" ], + "x-ms-correlation-request-id": [ "43a86304-27ba-4732-9aa0-58cc711c787c" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105337Z:43a86304-27ba-4732-9aa0-58cc711c787c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:11:06 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:53:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "521" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Accepted\",\"startTime\":\"2023-01-10T14:10:35.2329864Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T10:53:05.8037939Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSimGroup+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+3": { + "AzMobileNetworkSimGroup+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "41" ], - "x-ms-client-request-id": [ "91ba0fc4-2f83-490f-a2aa-c8413ce77245" ], + "x-ms-unique-id": [ "65" ], + "x-ms-client-request-id": [ "ab0608a2-f4b0-48ea-aa7d-54d78ae9da06" ], "CommandName": [ "New-AzMobileNetworkSimGroup" ], "FullCommandName": [ "New-AzMobileNetworkSimGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -103,38 +103,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00e206-0000-0100-0000-63bd71db0000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11985" ], - "x-ms-request-id": [ "27bccafd-3ae4-44de-a614-0cd77d18b6a2" ], - "x-ms-correlation-request-id": [ "4b8f9792-2e98-4241-8105-754ed4c48f37" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141137Z:4b8f9792-2e98-4241-8105-754ed4c48f37" ], + "ETag": [ "\"0f001faf-0000-0100-0000-641ade110000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11975" ], + "x-ms-request-id": [ "dc760e1f-e462-40ca-bfb7-b4538b890027" ], + "x-ms-correlation-request-id": [ "a080c3b4-befa-4c1e-b7b2-1e07c2a8260c" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105408Z:a080c3b4-befa-4c1e-b7b2-1e07c2a8260c" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:11:36 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:54:08 GMT" ] }, "ContentHeaders": { "Content-Length": [ "521" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Accepted\",\"startTime\":\"2023-01-10T14:10:35.2329864Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T10:53:05.8037939Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSimGroup+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+4": { + "AzMobileNetworkSimGroup+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "42" ], - "x-ms-client-request-id": [ "91ba0fc4-2f83-490f-a2aa-c8413ce77245" ], + "x-ms-unique-id": [ "66" ], + "x-ms-client-request-id": [ "ab0608a2-f4b0-48ea-aa7d-54d78ae9da06" ], "CommandName": [ "New-AzMobileNetworkSimGroup" ], "FullCommandName": [ "New-AzMobileNetworkSimGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -144,21 +144,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"1a006e5d-0000-0600-0000-63bd721d0000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11984" ], - "x-ms-request-id": [ "5eee982a-2a70-48ab-8513-a3426ab339d6" ], - "x-ms-correlation-request-id": [ "2e4691c6-200b-4c1f-b197-fe2029c0712f" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141207Z:2e4691c6-200b-4c1f-b197-fe2029c0712f" ], + "ETag": [ "\"8c00608c-0000-0600-0000-641ade540000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11974" ], + "x-ms-request-id": [ "2a3a63fc-65a1-41b4-ace7-f0d4769d894a" ], + "x-ms-correlation-request-id": [ "0f2b0fce-5329-43e7-9d97-4e4fbcc4fe5d" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105438Z:0f2b0fce-5329-43e7-9d97-4e4fbcc4fe5d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:12:07 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:54:38 GMT" ] }, "ContentHeaders": { "Content-Length": [ "540" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"e1a7c67d-249a-46ff-81d9-2006909060cd*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:10:35.2329864Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"d7e42a17-ae72-4dcf-8005-41415d141911*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:53:05.8037939Z\",\"properties\":null}", "isContentBase64": false } }, @@ -170,12 +170,12 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "43" ], - "x-ms-client-request-id": [ "91ba0fc4-2f83-490f-a2aa-c8413ce77245" ], + "x-ms-unique-id": [ "67" ], + "x-ms-client-request-id": [ "ab0608a2-f4b0-48ea-aa7d-54d78ae9da06" ], "CommandName": [ "New-AzMobileNetworkSimGroup" ], "FullCommandName": [ "New-AzMobileNetworkSimGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -185,22 +185,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ac03c42e-0000-0100-0000-63bd71ed0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11985" ], + "ETag": [ "\"170032fe-0000-0100-0000-641ade190000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "1ab16927-1a8f-4f66-85a0-d3917bd21cd0" ], - "x-ms-correlation-request-id": [ "71e7b213-0244-40d2-9e24-3cb70156bb7b" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141208Z:71e7b213-0244-40d2-9e24-3cb70156bb7b" ], + "x-ms-request-id": [ "ba6bd330-e568-475a-983a-273b905f43b7" ], + "x-ms-correlation-request-id": [ "a5b80a50-2a17-42c9-ac5d-8ff379b1ffbf" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105439Z:a5b80a50-2a17-42c9-ac5d-8ff379b1ffbf" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:12:07 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:54:38 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "704" ], + "Content-Length": [ "706" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:10:34.624493Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:10:34.624493Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:53:05.4253596Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:53:05.4253596Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -211,12 +211,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "44" ], - "x-ms-client-request-id": [ "dfdabf7a-9b00-407d-b4fb-5cbef1eab350" ], + "x-ms-unique-id": [ "68" ], + "x-ms-client-request-id": [ "91f37159-5da5-4187-9999-33f01e7494f2" ], "CommandName": [ "Get-AzMobileNetworkSimGroup" ], "FullCommandName": [ "Get-AzMobileNetworkSimGroup_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -227,21 +227,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "3c2c85cb-7be9-43cb-ad13-91c9c9ea2d78", "db427d44-6170-4982-974f-f44430003cb1", "bc938dfc-656c-49e1-ac30-1cb3a5b6bd17" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11984" ], - "x-ms-request-id": [ "c753cd16-f8cf-4a5d-a40b-b46484f44c8a" ], - "x-ms-correlation-request-id": [ "c753cd16-f8cf-4a5d-a40b-b46484f44c8a" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141208Z:c753cd16-f8cf-4a5d-a40b-b46484f44c8a" ], + "x-ms-original-request-ids": [ "69de2dd3-397b-42cc-af1b-89f90e4c0b9b", "e3e0c907-ddf1-417f-a4ea-a844f3756684", "ecd7fc04-dcb1-42e5-ad30-b69d9b483560", "821c7e6d-ac96-4bc6-89ca-6985326a0931" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "x-ms-request-id": [ "616b27fe-d9c4-45f6-8d31-5189179d536a" ], + "x-ms-correlation-request-id": [ "616b27fe-d9c4-45f6-8d31-5189179d536a" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105440Z:616b27fe-d9c4-45f6-8d31-5189179d536a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:12:08 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:54:39 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Content-Length": [ "1406" ] + "Content-Length": [ "718" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/simGroups/azps-mn-simgroup\",\"name\":\"azps-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T13:40:03.0596392Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T13:40:03.0596392Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/azps_test_group/providers/Microsoft.MobileNetwork/mobileNetworks/azps-mn\"},\"provisioningState\":\"Succeeded\"}},{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:10:34.624493Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:10:34.624493Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:53:05.4253596Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:53:05.4253596Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, @@ -252,12 +252,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "45" ], - "x-ms-client-request-id": [ "456fe0da-c168-4a66-8fcc-715168c934a3" ], + "x-ms-unique-id": [ "69" ], + "x-ms-client-request-id": [ "ba3f7be5-cb80-4a38-8e18-9676bb1dafd6" ], "CommandName": [ "Get-AzMobileNetworkSimGroup" ], "FullCommandName": [ "Get-AzMobileNetworkSimGroup_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -268,22 +268,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ac03c42e-0000-0100-0000-63bd71ed0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11983" ], + "ETag": [ "\"170032fe-0000-0100-0000-641ade190000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "f59d4538-9574-41be-bbda-72b6017f0df0" ], - "x-ms-correlation-request-id": [ "679aa0b8-f0a9-4363-ae97-fdfc375a7785" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141209Z:679aa0b8-f0a9-4363-ae97-fdfc375a7785" ], + "x-ms-request-id": [ "5fe2b1f4-0f62-4d92-92d3-77432bd113a7" ], + "x-ms-correlation-request-id": [ "dd71f649-540c-4521-80b4-b1cc00b26157" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105441Z:dd71f649-540c-4521-80b4-b1cc00b26157" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:12:09 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:54:40 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "704" ], + "Content-Length": [ "706" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:10:34.624493Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:10:34.624493Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:53:05.4253596Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:53:05.4253596Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -294,12 +294,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "46" ], - "x-ms-client-request-id": [ "58660dd5-50e7-46cd-95de-a1b85160bade" ], + "x-ms-unique-id": [ "70" ], + "x-ms-client-request-id": [ "64494f73-d54d-4b6b-b5de-15392858bc80" ], "CommandName": [ "Get-AzMobileNetworkSimGroup" ], "FullCommandName": [ "Get-AzMobileNetworkSimGroup_List1" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -310,75 +310,78 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "ebf73ff9-c4b5-4b37-a7ba-e0e5494250a9", "ecb23a85-4cc2-455f-af92-709c91db748f", "fed0ca1c-e54d-4026-8f97-a547f1efdfa2" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11982" ], - "x-ms-request-id": [ "27c2ce72-1307-4734-8942-dcbf5c38ee1a" ], - "x-ms-correlation-request-id": [ "27c2ce72-1307-4734-8942-dcbf5c38ee1a" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141209Z:27c2ce72-1307-4734-8942-dcbf5c38ee1a" ], + "x-ms-original-request-ids": [ "954081e1-0819-4ff5-a300-0a0c00200440", "0216b609-6b01-4e44-af23-5a9db179a732", "d334ed7b-6029-44f1-9cb6-6a8758e93296", "4217488b-529e-4e59-a0ac-a86a951e13f6" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "x-ms-request-id": [ "20856afa-b4b6-41bc-a626-cb8e2b56778d" ], + "x-ms-correlation-request-id": [ "20856afa-b4b6-41bc-a626-cb8e2b56778d" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105441Z:20856afa-b4b6-41bc-a626-cb8e2b56778d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:12:09 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:54:40 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], - "Content-Length": [ "716" ] + "Content-Length": [ "718" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:10:34.624493Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:10:34.624493Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:53:05.4253596Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:53:05.4253596Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, - "AzMobileNetworkSimGroup+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup?api-version=2022-11-01+1": { + "AzMobileNetworkSimGroup+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup?api-version=2022-11-01+1": { "Request": { - "Method": "PATCH", + "Method": "PUT", "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup?api-version=2022-11-01", - "Content": "{\r\n \"tags\": {\r\n \"abc\": \"123\"\r\n }\r\n}", + "Content": "{\r\n \"tags\": {\r\n \"abc\": \"123\"\r\n },\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"mobileNetwork\": {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "40" ] + "Content-Length": [ "285" ] } }, "Response": { - "StatusCode": 200, + "StatusCode": 201, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ac03a42f-0000-0100-0000-63bd723a0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1189" ], + "ETag": [ "\"17008dfe-0000-0100-0000-641ade730000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1186" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "b5135741-d1f2-4664-a87a-2134293972a1" ], - "x-ms-correlation-request-id": [ "1c47bf59-5aac-4da9-bf6e-c2c318c84a93" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141211Z:1c47bf59-5aac-4da9-bf6e-c2c318c84a93" ], + "mise-correlation-id": [ "5ec5d4ad-763d-474a-bbec-5e0abd279ee5" ], + "x-ms-request-id": [ "76968c18-1cc0-4e6d-bede-d8295b054f2c" ], + "x-ms-build-version": [ "1.0.1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "33359ae7-4f13-480c-a1d9-4a82faa73769" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105444Z:33359ae7-4f13-480c-a1d9-4a82faa73769" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:12:11 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:54:44 GMT" ] }, "ContentHeaders": { "Content-Length": [ "726" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:10:34.624493Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:12:10.1086491Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:53:05.4253596Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:54:42.4263373Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"}}}", "isContentBase64": false } }, - "AzMobileNetworkSimGroup+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup?api-version=2022-11-01+1": { + "AzMobileNetworkSimGroup+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "48" ], - "x-ms-client-request-id": [ "2145e947-f40f-4f0a-9e60-c8c219d5a721" ], - "CommandName": [ "Get-AzMobileNetworkSimGroup" ], - "FullCommandName": [ "Get-AzMobileNetworkSimGroup_Get" ], + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "73" ], + "x-ms-client-request-id": [ "b08bff8e-b45b-4abb-b404-0fa4bc7a37c8" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSimGroup_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSimGroup_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -388,36 +391,204 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ac03a42f-0000-0100-0000-63bd723a0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11981" ], - "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "8be0896d-a743-4e60-9010-825229372f60" ], - "x-ms-correlation-request-id": [ "f0928d3e-4e76-4ce5-87e3-559f78815b03" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141211Z:f0928d3e-4e76-4ce5-87e3-559f78815b03" ], + "ETag": [ "\"0f00d7af-0000-0100-0000-641ade720000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11973" ], + "x-ms-request-id": [ "3fcefa95-7745-43f2-a5f9-9838b8fcc587" ], + "x-ms-correlation-request-id": [ "8c7fff11-3fd3-4eb5-8186-163f6cf84daa" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105514Z:8c7fff11-3fd3-4eb5-8186-163f6cf84daa" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:12:11 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:55:13 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "726" ], + "Content-Length": [ "521" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T10:54:42.8860087Z\"}", + "isContentBase64": false + } + }, + "AzMobileNetworkSimGroup+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "74" ], + "x-ms-client-request-id": [ "b08bff8e-b45b-4abb-b404-0fa4bc7a37c8" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSimGroup_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSimGroup_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"0f00d7af-0000-0100-0000-641ade720000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11972" ], + "x-ms-request-id": [ "de28efe0-23bd-4b41-bd06-16767ef79f24" ], + "x-ms-correlation-request-id": [ "b605f77c-6cf2-47c1-b6bc-21867bc417d5" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105545Z:b605f77c-6cf2-47c1-b6bc-21867bc417d5" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 22 Mar 2023 10:55:45 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "521" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T10:54:42.8860087Z\"}", + "isContentBase64": false + } + }, + "AzMobileNetworkSimGroup+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+4": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "75" ], + "x-ms-client-request-id": [ "b08bff8e-b45b-4abb-b404-0fa4bc7a37c8" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSimGroup_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSimGroup_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"0f00d7af-0000-0100-0000-641ade720000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11971" ], + "x-ms-request-id": [ "3ff24a9a-0423-420b-9036-4a275483629b" ], + "x-ms-correlation-request-id": [ "e0b1f087-1c1f-4b6c-a29a-2805811c3c82" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105616Z:e0b1f087-1c1f-4b6c-a29a-2805811c3c82" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 22 Mar 2023 10:56:15 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "521" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T10:54:42.8860087Z\"}", + "isContentBase64": false + } + }, + "AzMobileNetworkSimGroup+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+5": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "76" ], + "x-ms-client-request-id": [ "b08bff8e-b45b-4abb-b404-0fa4bc7a37c8" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSimGroup_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSimGroup_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"0f00d7af-0000-0100-0000-641ade720000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11970" ], + "x-ms-request-id": [ "4866a1d2-0dc5-4138-8abe-d3a16d351078" ], + "x-ms-correlation-request-id": [ "9ecb5b62-1bb2-499b-8975-dee4eca3706a" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105647Z:9ecb5b62-1bb2-499b-8975-dee4eca3706a" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 22 Mar 2023 10:56:46 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "521" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T10:54:42.8860087Z\"}", + "isContentBase64": false + } + }, + "AzMobileNetworkSimGroup+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+6": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "77" ], + "x-ms-client-request-id": [ "b08bff8e-b45b-4abb-b404-0fa4bc7a37c8" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSimGroup_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSimGroup_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"0f00f5af-0000-0100-0000-641adef20000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11969" ], + "x-ms-request-id": [ "ebf70120-43b5-4e3c-893f-64de3c524d28" ], + "x-ms-correlation-request-id": [ "083d0f90-28b0-4c1d-99a7-e8d5371822e4" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105718Z:083d0f90-28b0-4c1d-99a7-e8d5371822e4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 22 Mar 2023 10:57:17 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "540" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:10:34.624493Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:12:10.1086491Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"7209f42b-044b-4258-982c-169408ccd840*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:54:42.8860087Z\",\"properties\":null}", "isContentBase64": false } }, - "AzMobileNetworkSimGroup+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup?api-version=2022-11-01+2": { + "AzMobileNetworkSimGroup+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup?api-version=2022-11-01+7": { "Request": { - "Method": "PATCH", + "Method": "GET", "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup?api-version=2022-11-01", - "Content": "{\r\n \"tags\": {\r\n \"abc\": \"123\"\r\n }\r\n}", + "Content": null, "isContentBase64": false, "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "78" ], + "x-ms-client-request-id": [ "b08bff8e-b45b-4abb-b404-0fa4bc7a37c8" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSimGroup_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSimGroup_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "40" ] } }, "Response": { @@ -425,22 +596,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ac03aa2f-0000-0100-0000-63bd723c0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1188" ], + "ETag": [ "\"170009ff-0000-0100-0000-641adeb50000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "78dd0348-d12e-42fc-b5fd-45ad88b1444d" ], - "x-ms-correlation-request-id": [ "d1e442ca-c0cc-4bab-89ed-d15249251e9c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141213Z:d1e442ca-c0cc-4bab-89ed-d15249251e9c" ], + "x-ms-request-id": [ "23f71f92-7e35-4314-87e5-57bbe2daccf8" ], + "x-ms-correlation-request-id": [ "70a9d958-8dbd-4e32-bde2-bd084fc345ce" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105718Z:70a9d958-8dbd-4e32-bde2-bd084fc345ce" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:12:12 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:57:17 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "726" ], + "Content-Length": [ "727" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:10:34.624493Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:12:12.3120088Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"name\":\"test-mn-simgroup\",\"type\":\"microsoft.mobilenetwork/simgroups\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:53:05.4253596Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:54:42.4263373Z\"},\"properties\":{\"mobileNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2\"},\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -451,12 +622,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "50" ], - "x-ms-client-request-id": [ "22b0c32a-0e13-4eae-8e6e-070eab431da2" ], + "x-ms-unique-id": [ "79" ], + "x-ms-client-request-id": [ "2c86836c-b6e1-4259-b0d3-96fba06e5ca0" ], "CommandName": [ "Remove-AzMobileNetworkSimGroup" ], "FullCommandName": [ "Remove-AzMobileNetworkSimGroup_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -467,19 +638,19 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ac03ad2f-0000-0100-0000-63bd723e0000\"" ], - "Location": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01" ], + "ETag": [ "\"170099ff-0000-0100-0000-641adf0f0000\"" ], + "Location": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14996" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "c9a05d62-183c-439e-a538-30e6ec0f2276" ], - "x-ms-request-id": [ "e647ffc0-9fb4-4f19-ab99-97e2819173f2" ], + "mise-correlation-id": [ "4fee0fb9-81e6-413f-8991-55384e04846b" ], + "x-ms-request-id": [ "1f110907-260f-4e13-91a7-9b0fd0f07361" ], "x-ms-build-version": [ "1.0.1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01" ], - "x-ms-correlation-request-id": [ "e018a1f0-5bed-406f-a24a-6c7302b34638" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141214Z:e018a1f0-5bed-406f-a24a-6c7302b34638" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "b7816f4a-a1b1-45af-bda8-3ed31ecee8c8" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105719Z:b7816f4a-a1b1-45af-bda8-3ed31ecee8c8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:12:14 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:57:19 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], @@ -490,20 +661,20 @@ "isContentBase64": false } }, - "AzMobileNetworkSimGroup+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+2": { + "AzMobileNetworkSimGroup+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "51" ], - "x-ms-client-request-id": [ "22b0c32a-0e13-4eae-8e6e-070eab431da2" ], + "x-ms-unique-id": [ "80" ], + "x-ms-client-request-id": [ "2c86836c-b6e1-4259-b0d3-96fba06e5ca0" ], "CommandName": [ "Remove-AzMobileNetworkSimGroup" ], "FullCommandName": [ "Remove-AzMobileNetworkSimGroup_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -513,38 +684,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae003208-0000-0100-0000-63bd723e0000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11983" ], - "x-ms-request-id": [ "31a58e8e-9b0f-4353-947a-55cd5ca8fbf6" ], - "x-ms-correlation-request-id": [ "1175de4b-ea20-4643-b310-f3b7c9c930b3" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141244Z:1175de4b-ea20-4643-b310-f3b7c9c930b3" ], + "ETag": [ "\"0f00faaf-0000-0100-0000-641adf0f0000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11968" ], + "x-ms-request-id": [ "fb4ec38f-5116-4b54-bada-541b481932f0" ], + "x-ms-correlation-request-id": [ "697aa3b9-98f5-43a8-b353-82d9ef3168c4" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105750Z:697aa3b9-98f5-43a8-b353-82d9ef3168c4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:12:43 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:57:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "521" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Deleting\",\"startTime\":\"2023-01-10T14:12:14.1498908Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Deleting\",\"startTime\":\"2023-03-22T10:57:19.3496086Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSimGroup+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+3": { + "AzMobileNetworkSimGroup+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "52" ], - "x-ms-client-request-id": [ "22b0c32a-0e13-4eae-8e6e-070eab431da2" ], + "x-ms-unique-id": [ "81" ], + "x-ms-client-request-id": [ "2c86836c-b6e1-4259-b0d3-96fba06e5ca0" ], "CommandName": [ "Remove-AzMobileNetworkSimGroup" ], "FullCommandName": [ "Remove-AzMobileNetworkSimGroup_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -554,38 +725,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae003208-0000-0100-0000-63bd723e0000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11982" ], - "x-ms-request-id": [ "b13f628a-214c-40a5-a9fc-5d89a125edc1" ], - "x-ms-correlation-request-id": [ "c9ffd999-dfa3-4236-8fbd-a9dc97161c3c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141315Z:c9ffd999-dfa3-4236-8fbd-a9dc97161c3c" ], + "ETag": [ "\"0f00faaf-0000-0100-0000-641adf0f0000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11967" ], + "x-ms-request-id": [ "0ca443b5-7936-4e82-92fe-99c734c167e1" ], + "x-ms-correlation-request-id": [ "51b230d8-e887-4178-9cd9-0e7df8e42d3b" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105821Z:51b230d8-e887-4178-9cd9-0e7df8e42d3b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:13:14 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:58:20 GMT" ] }, "ContentHeaders": { "Content-Length": [ "521" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Deleting\",\"startTime\":\"2023-01-10T14:12:14.1498908Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Deleting\",\"startTime\":\"2023-03-22T10:57:19.3496086Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSimGroup+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+4": { + "AzMobileNetworkSimGroup+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "53" ], - "x-ms-client-request-id": [ "22b0c32a-0e13-4eae-8e6e-070eab431da2" ], + "x-ms-unique-id": [ "82" ], + "x-ms-client-request-id": [ "2c86836c-b6e1-4259-b0d3-96fba06e5ca0" ], "CommandName": [ "Remove-AzMobileNetworkSimGroup" ], "FullCommandName": [ "Remove-AzMobileNetworkSimGroup_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -595,38 +766,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"1a00235e-0000-0600-0000-63bd72800000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11981" ], - "x-ms-request-id": [ "e027dc39-7256-4314-a84f-55f6b0499514" ], - "x-ms-correlation-request-id": [ "6f645268-d439-4526-8940-781bb7770af6" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141345Z:6f645268-d439-4526-8940-781bb7770af6" ], + "ETag": [ "\"8c0088a4-0000-0600-0000-641adf510000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11966" ], + "x-ms-request-id": [ "392653c0-628c-4dd7-967f-743b04d213bc" ], + "x-ms-correlation-request-id": [ "152627ff-8d0a-4732-94ca-43fb6458bc34" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105851Z:152627ff-8d0a-4732-94ca-43fb6458bc34" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:13:44 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:58:50 GMT" ] }, "ContentHeaders": { "Content-Length": [ "540" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:12:14.1498908Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:57:19.3496086Z\",\"properties\":null}", "isContentBase64": false } }, - "AzMobileNetworkSimGroup+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+5": { + "AzMobileNetworkSimGroup+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "54" ], - "x-ms-client-request-id": [ "22b0c32a-0e13-4eae-8e6e-070eab431da2" ], + "x-ms-unique-id": [ "83" ], + "x-ms-client-request-id": [ "2c86836c-b6e1-4259-b0d3-96fba06e5ca0" ], "CommandName": [ "Remove-AzMobileNetworkSimGroup" ], "FullCommandName": [ "Remove-AzMobileNetworkSimGroup_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -636,21 +807,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"1a00235e-0000-0600-0000-63bd72800000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11980" ], - "x-ms-request-id": [ "727d05a3-c1d4-45c4-aac8-f59078f60fa3" ], - "x-ms-correlation-request-id": [ "e6e46b5d-9cd7-475a-a0e5-900461495fae" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141345Z:e6e46b5d-9cd7-475a-a0e5-900461495fae" ], + "ETag": [ "\"8c0088a4-0000-0600-0000-641adf510000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11965" ], + "x-ms-request-id": [ "0ec44640-5bda-4ded-be95-7e357419d0b5" ], + "x-ms-correlation-request-id": [ "51521164-6cda-4eb1-a410-3865c561d1fb" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105852Z:51521164-6cda-4eb1-a410-3865c561d1fb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:13:45 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:58:51 GMT" ] }, "ContentHeaders": { "Content-Length": [ "540" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"40203608-e498-4ab5-ace6-21cf94e2be8d*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:12:14.1498908Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"name\":\"71fd7c15-7ca7-434a-8567-17f3b6365a3c*7B9F805CB21592124EB5015DE77BB22008A2E7B1181EFDAC0DB88ECC2307BF87\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/simGroups/test-mn-simgroup\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:57:19.3496086Z\",\"properties\":null}", "isContentBase64": false } } diff --git a/src/MobileNetwork/test/AzMobileNetworkSimGroup.Tests.ps1 b/src/MobileNetwork/test/AzMobileNetworkSimGroup.Tests.ps1 index 18ad3943e153..e15d340eb62e 100644 --- a/src/MobileNetwork/test/AzMobileNetworkSimGroup.Tests.ps1 +++ b/src/MobileNetwork/test/AzMobileNetworkSimGroup.Tests.ps1 @@ -44,21 +44,13 @@ Describe 'AzMobileNetworkSimGroup' { } | Should -Not -Throw } - It 'UpdateExpanded' { + It 'UpdateExpanded' -skip { { $config = Update-AzMobileNetworkSimGroup -SimGroupName $env.testSimGroup -ResourceGroupName $env.resourceGroup -Tag @{"abc"="123"} $config.Name | Should -Be $env.testSimGroup } | Should -Not -Throw } - It 'UpdateViaIdentityExpanded' { - { - $config = Get-AzMobileNetworkSimGroup -ResourceGroupName $env.resourceGroup -Name $env.testSimGroup - $config = Update-AzMobileNetworkSimGroup -InputObject $config -Tag @{"abc"="123"} - $config.Name | Should -Be $env.testSimGroup - } | Should -Not -Throw - } - It 'Delete' { { Remove-AzMobileNetworkSimGroup -ResourceGroupName $env.resourceGroup -Name $env.testSimGroup diff --git a/src/MobileNetwork/test/AzMobileNetworkSimPolicy.Recording.json b/src/MobileNetwork/test/AzMobileNetworkSimPolicy.Recording.json index eb7b4175e541..6d564b496c32 100644 --- a/src/MobileNetwork/test/AzMobileNetworkSimPolicy.Recording.json +++ b/src/MobileNetwork/test/AzMobileNetworkSimPolicy.Recording.json @@ -17,41 +17,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ea03477a-0000-0100-0000-63bd729c0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1187" ], + "ETag": [ "\"7c03838a-0000-0100-0000-641adf6f0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1185" ], "x-ms-providerhub-traffic": [ "True" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "429014a1-4bf5-4e57-bd23-99bbe3e5d9e5" ], + "x-ms-request-id": [ "4c7269cf-8145-461e-b90f-f5c5a9e4b437" ], "x-ms-build-version": [ "1.0.1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01" ], - "x-ms-correlation-request-id": [ "d3f1d8ff-e18a-47c2-81da-26563f6ea768" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141349Z:d3f1d8ff-e18a-47c2-81da-26563f6ea768" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "da4c355b-8c43-4683-aadb-b9e9fdabaeb6" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105856Z:da4c355b-8c43-4683-aadb-b9e9fdabaeb6" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:13:48 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:58:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1956" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:13:47.3296341Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:13:47.3296341Z\"},\"properties\":{\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}],\"provisioningState\":\"Accepted\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:58:54.7101036Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:58:54.7101036Z\"},\"properties\":{\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}],\"provisioningState\":\"Accepted\"}}", "isContentBase64": false } }, - "AzMobileNetworkSimPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+2": { + "AzMobileNetworkSimPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "56" ], - "x-ms-client-request-id": [ "3e5f4c75-74b4-467a-9b36-1bfbecac167e" ], + "x-ms-unique-id": [ "85" ], + "x-ms-client-request-id": [ "6bab3579-a43a-4573-b94b-740c78a20e0e" ], "CommandName": [ "New-AzMobileNetworkSimPolicy" ], "FullCommandName": [ "New-AzMobileNetworkSimPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -61,38 +61,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00ac09-0000-0100-0000-63bd729b0000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11979" ], - "x-ms-request-id": [ "7d7cfc08-5b3d-4c4c-9444-f1994ccfccdc" ], - "x-ms-correlation-request-id": [ "5ec57aa2-605f-46cd-9364-dd2214c0cedc" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141419Z:5ec57aa2-605f-46cd-9364-dd2214c0cedc" ], + "ETag": [ "\"0f001eb0-0000-0100-0000-641adf6f0000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11964" ], + "x-ms-request-id": [ "249d952a-9654-4bf0-a222-2e2200fcb642" ], + "x-ms-correlation-request-id": [ "425f008e-70fe-49ff-b570-fe264cac4ed0" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105927Z:425f008e-70fe-49ff-b570-fe264cac4ed0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:14:19 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:59:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "548" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Accepted\",\"startTime\":\"2023-01-10T14:13:47.9997609Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T10:58:55.4199266Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSimPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+3": { + "AzMobileNetworkSimPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "57" ], - "x-ms-client-request-id": [ "3e5f4c75-74b4-467a-9b36-1bfbecac167e" ], + "x-ms-unique-id": [ "86" ], + "x-ms-client-request-id": [ "6bab3579-a43a-4573-b94b-740c78a20e0e" ], "CommandName": [ "New-AzMobileNetworkSimPolicy" ], "FullCommandName": [ "New-AzMobileNetworkSimPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -102,38 +102,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00ac09-0000-0100-0000-63bd729b0000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11978" ], - "x-ms-request-id": [ "7bdd611f-8656-405f-99d5-d6567bc1a219" ], - "x-ms-correlation-request-id": [ "d8541c85-00e1-4bb8-b6f5-fb11fb93c7dd" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141449Z:d8541c85-00e1-4bb8-b6f5-fb11fb93c7dd" ], + "ETag": [ "\"0f001eb0-0000-0100-0000-641adf6f0000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11963" ], + "x-ms-request-id": [ "3b50e58b-325b-40d0-a465-3aee2d052655" ], + "x-ms-correlation-request-id": [ "ff9ede7b-96a2-41b7-b697-367c4791b06f" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T105957Z:ff9ede7b-96a2-41b7-b697-367c4791b06f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:14:49 GMT" ] + "Date": [ "Wed, 22 Mar 2023 10:59:56 GMT" ] }, "ContentHeaders": { "Content-Length": [ "548" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Accepted\",\"startTime\":\"2023-01-10T14:13:47.9997609Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T10:58:55.4199266Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSimPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+4": { + "AzMobileNetworkSimPolicy+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "58" ], - "x-ms-client-request-id": [ "3e5f4c75-74b4-467a-9b36-1bfbecac167e" ], + "x-ms-unique-id": [ "87" ], + "x-ms-client-request-id": [ "6bab3579-a43a-4573-b94b-740c78a20e0e" ], "CommandName": [ "New-AzMobileNetworkSimPolicy" ], "FullCommandName": [ "New-AzMobileNetworkSimPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -143,21 +143,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae001f0a-0000-0100-0000-63bd72de0000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11978" ], - "x-ms-request-id": [ "7a114c4b-e8f0-4c81-a5d1-6f30a8e1412a" ], - "x-ms-correlation-request-id": [ "bd8060e4-82a4-4354-916d-307a2caaee6c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141520Z:bd8060e4-82a4-4354-916d-307a2caaee6c" ], + "ETag": [ "\"8c00b9ac-0000-0600-0000-641adfb20000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11962" ], + "x-ms-request-id": [ "ac03d524-b7fb-4f7e-a789-a147789575d5" ], + "x-ms-correlation-request-id": [ "b66465e1-6626-4fde-8e56-87a1c3f6ffec" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110027Z:b66465e1-6626-4fde-8e56-87a1c3f6ffec" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:15:19 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:00:26 GMT" ] }, "ContentHeaders": { "Content-Length": [ "567" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"5f6ff230-52db-4058-8306-d6e8de97fc78*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:13:47.9997609Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"3c26370e-cc35-4cf7-a35f-2a64b0c82354*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T10:58:55.4199266Z\",\"properties\":null}", "isContentBase64": false } }, @@ -169,12 +169,12 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "59" ], - "x-ms-client-request-id": [ "3e5f4c75-74b4-467a-9b36-1bfbecac167e" ], + "x-ms-unique-id": [ "88" ], + "x-ms-client-request-id": [ "6bab3579-a43a-4573-b94b-740c78a20e0e" ], "CommandName": [ "New-AzMobileNetworkSimPolicy" ], "FullCommandName": [ "New-AzMobileNetworkSimPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -184,22 +184,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ea037c7c-0000-0100-0000-63bd72a20000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11980" ], + "ETag": [ "\"7c03b38c-0000-0100-0000-641adf760000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "9a9ab52f-8dc8-4940-b899-4ec215491eb9" ], - "x-ms-correlation-request-id": [ "648e491f-fc1d-449c-b5f1-6b4477ab71fe" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141520Z:648e491f-fc1d-449c-b5f1-6b4477ab71fe" ], + "x-ms-request-id": [ "6811e1cc-6920-4864-9360-945615542b42" ], + "x-ms-correlation-request-id": [ "afb0bfb8-1ae1-4c43-b112-064a0a6a3e81" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110028Z:afb0bfb8-1ae1-4c43-b112-064a0a6a3e81" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:15:20 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:00:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1957" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:13:47.3296341Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:13:47.3296341Z\"},\"properties\":{\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}],\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:58:54.7101036Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:58:54.7101036Z\"},\"properties\":{\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}],\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -210,12 +210,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "60" ], - "x-ms-client-request-id": [ "41702458-1d1e-41c2-8b73-770f28c283c1" ], + "x-ms-unique-id": [ "89" ], + "x-ms-client-request-id": [ "c2844223-9384-4b00-98ce-e1965da61634" ], "CommandName": [ "Get-AzMobileNetworkSimPolicy" ], "FullCommandName": [ "Get-AzMobileNetworkSimPolicy_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -226,21 +226,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "42bd0c2c-c090-4d34-bcb5-4acbda646f4c", "0a60aa04-947f-4c9a-849e-34c2fbf2c05a", "4534c4f7-b6a5-4b42-9767-3e68ba96d5dc" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11979" ], - "x-ms-request-id": [ "649d2301-b6cc-49a3-8daa-e0ef62afb427" ], - "x-ms-correlation-request-id": [ "649d2301-b6cc-49a3-8daa-e0ef62afb427" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141521Z:649d2301-b6cc-49a3-8daa-e0ef62afb427" ], + "x-ms-original-request-ids": [ "35f701d0-64cc-4690-9cac-85692ab245bd", "ccf2f092-5b97-4075-9b8d-3f3b6c0d8b82", "66046f6e-8bfe-4858-8257-412380b14dee", "107f2b70-b592-4320-bb24-c004eb4e616a" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "x-ms-request-id": [ "d3300276-8a78-4c28-b163-21b07e69c0da" ], + "x-ms-correlation-request-id": [ "d3300276-8a78-4c28-b163-21b07e69c0da" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110029Z:d3300276-8a78-4c28-b163-21b07e69c0da" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:15:21 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:00:28 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], "Content-Length": [ "1969" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:13:47.3296341Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:13:47.3296341Z\"},\"properties\":{\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}],\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:58:54.7101036Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:58:54.7101036Z\"},\"properties\":{\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}],\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, @@ -251,12 +251,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "61" ], - "x-ms-client-request-id": [ "50a93761-3316-4bc5-951d-59f62df5237a" ], + "x-ms-unique-id": [ "90" ], + "x-ms-client-request-id": [ "10118386-96e5-484b-abb7-45786a13e5a2" ], "CommandName": [ "Get-AzMobileNetworkSimPolicy" ], "FullCommandName": [ "Get-AzMobileNetworkSimPolicy_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -267,76 +267,78 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ea037c7c-0000-0100-0000-63bd72a20000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11978" ], + "ETag": [ "\"7c03b38c-0000-0100-0000-641adf760000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "19f97c2d-7da4-45d7-a634-a9e6d5c5f976" ], - "x-ms-correlation-request-id": [ "7d4a5576-10b0-4f56-acfb-38ff887c289c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141522Z:7d4a5576-10b0-4f56-acfb-38ff887c289c" ], + "x-ms-request-id": [ "d44c534b-1488-438f-90c6-7cdccf0cc309" ], + "x-ms-correlation-request-id": [ "b5224d4f-7ce5-4f3c-a077-6c3e594440c4" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110030Z:b5224d4f-7ce5-4f3c-a077-6c3e594440c4" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:15:22 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:00:29 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1957" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:13:47.3296341Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:13:47.3296341Z\"},\"properties\":{\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}],\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:58:54.7101036Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T10:58:54.7101036Z\"},\"properties\":{\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}],\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "AzMobileNetworkSimPolicy+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy?api-version=2022-11-01+1": { + "AzMobileNetworkSimPolicy+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy?api-version=2022-11-01+1": { "Request": { - "Method": "PATCH", + "Method": "PUT", "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy?api-version=2022-11-01", - "Content": "{\r\n \"tags\": {\r\n \"abc\": \"123\"\r\n }\r\n}", + "Content": "{\r\n \"tags\": {\r\n \"abc\": \"123\"\r\n },\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"ueAmbr\": {\r\n \"uplink\": \"500 Mbps\",\r\n \"downlink\": \"1 Gbps\"\r\n },\r\n \"defaultSlice\": {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"\r\n },\r\n \"registrationTimer\": 3240,\r\n \"sliceConfigurations\": [\r\n {\r\n \"slice\": {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"\r\n },\r\n \"defaultDataNetwork\": {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"\r\n },\r\n \"dataNetworkConfigurations\": [\r\n {\r\n \"dataNetwork\": {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"\r\n },\r\n \"sessionAmbr\": {\r\n \"uplink\": \"500 Mbps\",\r\n \"downlink\": \"1 Gbps\"\r\n },\r\n \"5qi\": 9,\r\n \"allocationAndRetentionPriorityLevel\": 9,\r\n \"preemptionCapability\": \"NotPreempt\",\r\n \"preemptionVulnerability\": \"Preemptable\",\r\n \"defaultSessionType\": \"IPv4\",\r\n \"allowedServices\": [\r\n {\r\n \"id\": \"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"\r\n }\r\n ],\r\n \"maximumNumberOfBufferedPackets\": 200\r\n }\r\n ]\r\n }\r\n ]\r\n }\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "40" ] + "Content-Length": [ "1950" ] } }, "Response": { - "StatusCode": 200, + "StatusCode": 201, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ea03ce8d-0000-0100-0000-63bd72fa0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1186" ], + "ETag": [ "\"7c0327aa-0000-0100-0000-641adfd00000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1184" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "46d1f2b2-f531-408c-a530-bab8e19dd7c4" ], - "x-ms-correlation-request-id": [ "554feacb-a845-4617-bf6f-3a6f02542014" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141524Z:554feacb-a845-4617-bf6f-3a6f02542014" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "7852400a-464b-44f2-b78f-4780fb28cf55" ], + "x-ms-build-version": [ "1.0.1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "5ebfeb7f-7395-42ad-8c04-a06c873fcc92" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110033Z:5ebfeb7f-7395-42ad-8c04-a06c873fcc92" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:15:24 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:00:33 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1978" ], + "Content-Length": [ "1977" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:13:47.3296341Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:15:22.7305678Z\"},\"properties\":{\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}],\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:58:54.7101036Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:00:31.0703727Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}]}}", "isContentBase64": false } }, - "AzMobileNetworkSimPolicy+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy?api-version=2022-11-01+1": { + "AzMobileNetworkSimPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "63" ], - "x-ms-client-request-id": [ "49a2ec34-49ea-4396-8424-4b1082086d68" ], - "CommandName": [ "Get-AzMobileNetworkSimPolicy" ], - "FullCommandName": [ "Get-AzMobileNetworkSimPolicy_Get" ], + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "93" ], + "x-ms-client-request-id": [ "1f3799a2-d069-4a11-9b9b-fae8b9462b90" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSimPolicy_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSimPolicy_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -346,36 +348,122 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ea03ce8d-0000-0100-0000-63bd72fa0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11977" ], - "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "c9a2aca8-a5e2-4135-9907-e868498e89f4" ], - "x-ms-correlation-request-id": [ "c29cc0a1-e5cd-4f59-9e56-132213c21461" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141524Z:c29cc0a1-e5cd-4f59-9e56-132213c21461" ], + "ETag": [ "\"0f003ab0-0000-0100-0000-641adfcf0000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11961" ], + "x-ms-request-id": [ "d521b0e8-49ca-4988-bd4d-d776dae29da8" ], + "x-ms-correlation-request-id": [ "957097e8-3f4b-4549-a5ff-9365210b305e" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110103Z:957097e8-3f4b-4549-a5ff-9365210b305e" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:15:24 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:01:03 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "1978" ], + "Content-Length": [ "548" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T11:00:31.6655967Z\"}", + "isContentBase64": false + } + }, + "AzMobileNetworkSimPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+3": { + "Request": { + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "94" ], + "x-ms-client-request-id": [ "1f3799a2-d069-4a11-9b9b-fae8b9462b90" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSimPolicy_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSimPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"0f003ab0-0000-0100-0000-641adfcf0000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11960" ], + "x-ms-request-id": [ "d8890ebc-f288-41b8-95d7-14b82d2e77e2" ], + "x-ms-correlation-request-id": [ "82ff99db-b13f-4877-9a67-062688d82be4" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110134Z:82ff99db-b13f-4877-9a67-062688d82be4" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 22 Mar 2023 11:01:34 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "548" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:13:47.3296341Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:15:22.7305678Z\"},\"properties\":{\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}],\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T11:00:31.6655967Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSimPolicy+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy?api-version=2022-11-01+2": { + "AzMobileNetworkSimPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+4": { "Request": { - "Method": "PATCH", + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", + "Content": null, + "isContentBase64": false, + "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "95" ], + "x-ms-client-request-id": [ "1f3799a2-d069-4a11-9b9b-fae8b9462b90" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSimPolicy_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSimPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] + }, + "ContentHeaders": { + } + }, + "Response": { + "StatusCode": 200, + "Headers": { + "Cache-Control": [ "no-cache" ], + "Pragma": [ "no-cache" ], + "ETag": [ "\"8c0078b5-0000-0600-0000-641ae0130000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11959" ], + "x-ms-request-id": [ "76ece9da-9af0-4677-9996-b71652c84c6d" ], + "x-ms-correlation-request-id": [ "6ca37724-2f6e-4e9d-baff-ba1d7c62ca71" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110204Z:6ca37724-2f6e-4e9d-baff-ba1d7c62ca71" ], + "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "X-Content-Type-Options": [ "nosniff" ], + "Date": [ "Wed, 22 Mar 2023 11:02:03 GMT" ] + }, + "ContentHeaders": { + "Content-Length": [ "567" ], + "Content-Type": [ "application/json; charset=utf-8" ], + "Expires": [ "-1" ] + }, + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"61176d7a-3438-49aa-832a-e20f3f58fe08*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T11:00:31.6655967Z\",\"properties\":null}", + "isContentBase64": false + } + }, + "AzMobileNetworkSimPolicy+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy?api-version=2022-11-01+5": { + "Request": { + "Method": "GET", "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy?api-version=2022-11-01", - "Content": "{\r\n \"tags\": {\r\n \"abc\": \"123\"\r\n }\r\n}", + "Content": null, "isContentBase64": false, "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "96" ], + "x-ms-client-request-id": [ "1f3799a2-d069-4a11-9b9b-fae8b9462b90" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSimPolicy_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSimPolicy_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "40" ] } }, "Response": { @@ -383,22 +471,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ea031c8e-0000-0100-0000-63bd72fd0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1185" ], + "ETag": [ "\"7c035dad-0000-0100-0000-641adfda0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11966" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "02481aca-b5e4-43ab-8ea7-c216c65fbd46" ], - "x-ms-correlation-request-id": [ "af443c8f-6639-406e-8e38-fc246c326ff0" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141526Z:af443c8f-6639-406e-8e38-fc246c326ff0" ], + "x-ms-request-id": [ "6bbe7a45-5a81-4e50-8093-cd64f7954e6d" ], + "x-ms-correlation-request-id": [ "2b8028c5-279c-4cf5-b47a-fd6513936022" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110205Z:2b8028c5-279c-4cf5-b47a-fd6513936022" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:15:25 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:02:04 GMT" ] }, "ContentHeaders": { "Content-Length": [ "1978" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:13:47.3296341Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:15:25.0593129Z\"},\"properties\":{\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}],\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"name\":\"test-mn-simpolicy\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/simpolicies\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T10:58:54.7101036Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:00:31.0703727Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"ueAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"defaultSlice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"registrationTimer\":3240,\"sliceConfigurations\":[{\"slice\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/slices/test-mn-slice\"},\"defaultDataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"dataNetworkConfigurations\":[{\"dataNetwork\":{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/dataNetworks/test-mn-datanetwork\"},\"sessionAmbr\":{\"uplink\":\"500 Mbps\",\"downlink\":\"1 Gbps\"},\"5qi\":9,\"allocationAndRetentionPriorityLevel\":9,\"preemptionCapability\":\"NotPreempt\",\"preemptionVulnerability\":\"Preemptable\",\"defaultSessionType\":\"IPv4\",\"allowedServices\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/services/test-mn-service\"}],\"maximumNumberOfBufferedPackets\":200}]}]}}", "isContentBase64": false } }, @@ -409,12 +497,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "65" ], - "x-ms-client-request-id": [ "91c64102-afa4-4bfe-b417-ea93d6404132" ], + "x-ms-unique-id": [ "97" ], + "x-ms-client-request-id": [ "0fd19e83-baa8-42fe-b004-aa7fe67aa82d" ], "CommandName": [ "Remove-AzMobileNetworkSimPolicy" ], "FullCommandName": [ "Remove-AzMobileNetworkSimPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -425,18 +513,18 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ea03748e-0000-0100-0000-63bd72ff0000\"" ], - "Location": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01" ], + "ETag": [ "\"7c03f5c8-0000-0100-0000-641ae02e0000\"" ], + "Location": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14995" ], "x-ms-providerhub-traffic": [ "True" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "1a3cbd2d-db53-43ce-b23f-572e2c8f4cb3" ], + "x-ms-request-id": [ "d96f3bb7-4957-49fd-bc0d-3b2394fd6936" ], "x-ms-build-version": [ "1.0.1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01" ], - "x-ms-correlation-request-id": [ "e7cc01cb-408f-44d3-8365-f4370085f3f1" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141527Z:e7cc01cb-408f-44d3-8365-f4370085f3f1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "106fbc65-5728-4716-8637-15bdede08bd8" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110206Z:106fbc65-5728-4716-8637-15bdede08bd8" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:15:27 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:02:06 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], @@ -447,20 +535,20 @@ "isContentBase64": false } }, - "AzMobileNetworkSimPolicy+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+2": { + "AzMobileNetworkSimPolicy+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "66" ], - "x-ms-client-request-id": [ "91c64102-afa4-4bfe-b417-ea93d6404132" ], + "x-ms-unique-id": [ "98" ], + "x-ms-client-request-id": [ "0fd19e83-baa8-42fe-b004-aa7fe67aa82d" ], "CommandName": [ "Remove-AzMobileNetworkSimPolicy" ], "FullCommandName": [ "Remove-AzMobileNetworkSimPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -470,38 +558,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00580a-0000-0100-0000-63bd72fe0000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11977" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141557Z:22a4b036-62af-40b3-87f4-db1031453ac3" ], - "x-ms-request-id": [ "c5436327-4c04-45ed-b62b-7d73961dc830" ], - "x-ms-correlation-request-id": [ "22a4b036-62af-40b3-87f4-db1031453ac3" ], + "ETag": [ "\"0f008ab0-0000-0100-0000-641ae02e0000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11958" ], + "x-ms-request-id": [ "a0f23819-5640-495a-8bec-fde6fe7e71bb" ], + "x-ms-correlation-request-id": [ "3ba5b0e6-ed33-442d-b79a-bfe41f9dcce7" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110237Z:3ba5b0e6-ed33-442d-b79a-bfe41f9dcce7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:15:57 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:02:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "548" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Deleting\",\"startTime\":\"2023-01-10T14:15:26.9162484Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Deleting\",\"startTime\":\"2023-03-22T11:02:06.2106532Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSimPolicy+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+3": { + "AzMobileNetworkSimPolicy+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "67" ], - "x-ms-client-request-id": [ "91c64102-afa4-4bfe-b417-ea93d6404132" ], + "x-ms-unique-id": [ "99" ], + "x-ms-client-request-id": [ "0fd19e83-baa8-42fe-b004-aa7fe67aa82d" ], "CommandName": [ "Remove-AzMobileNetworkSimPolicy" ], "FullCommandName": [ "Remove-AzMobileNetworkSimPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -511,38 +599,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00580a-0000-0100-0000-63bd72fe0000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11976" ], - "x-ms-request-id": [ "cfb3272c-0c13-43db-ad5c-ff92818d360c" ], - "x-ms-correlation-request-id": [ "b92ed830-3461-4c7a-9bdd-99a774c3a363" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141628Z:b92ed830-3461-4c7a-9bdd-99a774c3a363" ], + "ETag": [ "\"0f008ab0-0000-0100-0000-641ae02e0000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11957" ], + "x-ms-request-id": [ "953961ed-f8da-45a0-917d-dbee7a9946fb" ], + "x-ms-correlation-request-id": [ "808b17c9-2524-495b-9e65-3745d66b7479" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110307Z:808b17c9-2524-495b-9e65-3745d66b7479" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:16:27 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:03:06 GMT" ] }, "ContentHeaders": { "Content-Length": [ "548" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Deleting\",\"startTime\":\"2023-01-10T14:15:26.9162484Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Deleting\",\"startTime\":\"2023-03-22T11:02:06.2106532Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSimPolicy+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+4": { + "AzMobileNetworkSimPolicy+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "68" ], - "x-ms-client-request-id": [ "91c64102-afa4-4bfe-b417-ea93d6404132" ], + "x-ms-unique-id": [ "100" ], + "x-ms-client-request-id": [ "0fd19e83-baa8-42fe-b004-aa7fe67aa82d" ], "CommandName": [ "Remove-AzMobileNetworkSimPolicy" ], "FullCommandName": [ "Remove-AzMobileNetworkSimPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -552,38 +640,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"1a00b05f-0000-0600-0000-63bd73410000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11975" ], - "x-ms-request-id": [ "c4b2f742-d498-46fb-b2b4-50a2387a5c5e" ], - "x-ms-correlation-request-id": [ "7ad788be-f318-44d4-b187-d2e2d0820d29" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141658Z:7ad788be-f318-44d4-b187-d2e2d0820d29" ], + "ETag": [ "\"8c0068be-0000-0600-0000-641ae0710000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11956" ], + "x-ms-request-id": [ "50986057-8349-4239-9256-a813b47e4ba6" ], + "x-ms-correlation-request-id": [ "7e6d02ec-d04c-4b47-bef2-84b017e4e633" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110337Z:7e6d02ec-d04c-4b47-bef2-84b017e4e633" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:16:58 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:03:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "567" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:15:26.9162484Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T11:02:06.2106532Z\",\"properties\":null}", "isContentBase64": false } }, - "AzMobileNetworkSimPolicy+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+5": { + "AzMobileNetworkSimPolicy+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "69" ], - "x-ms-client-request-id": [ "91c64102-afa4-4bfe-b417-ea93d6404132" ], + "x-ms-unique-id": [ "101" ], + "x-ms-client-request-id": [ "0fd19e83-baa8-42fe-b004-aa7fe67aa82d" ], "CommandName": [ "Remove-AzMobileNetworkSimPolicy" ], "FullCommandName": [ "Remove-AzMobileNetworkSimPolicy_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -593,21 +681,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"1a00b05f-0000-0600-0000-63bd73410000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11974" ], - "x-ms-request-id": [ "8d7ce89b-aff3-4689-8183-b5460c831a77" ], - "x-ms-correlation-request-id": [ "10f5f33e-747f-4eeb-ab41-ad2f41150caf" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141659Z:10f5f33e-747f-4eeb-ab41-ad2f41150caf" ], + "ETag": [ "\"8c0068be-0000-0600-0000-641ae0710000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11955" ], + "x-ms-request-id": [ "660440df-29e9-4027-a0df-0ca5705248a1" ], + "x-ms-correlation-request-id": [ "3f170b21-4418-4fff-9b97-049f10e6dc5a" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110337Z:3f170b21-4418-4fff-9b97-049f10e6dc5a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:16:58 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:03:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "567" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"476521de-ac68-4523-bbfa-37e23a02d8c3*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:15:26.9162484Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"name\":\"df2c4859-d761-47cc-8a33-218e9c35998f*F1B5A333AECD4FA6A2952B6AD1B29417C21484C191035F3BF5F8C616D4D15FCE\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/simPolicies/test-mn-simpolicy\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T11:02:06.2106532Z\",\"properties\":null}", "isContentBase64": false } } diff --git a/src/MobileNetwork/test/AzMobileNetworkSimPolicy.Tests.ps1 b/src/MobileNetwork/test/AzMobileNetworkSimPolicy.Tests.ps1 index d4cdb4b1053f..8183d3259e62 100644 --- a/src/MobileNetwork/test/AzMobileNetworkSimPolicy.Tests.ps1 +++ b/src/MobileNetwork/test/AzMobileNetworkSimPolicy.Tests.ps1 @@ -39,21 +39,13 @@ Describe 'AzMobileNetworkSimPolicy' { } | Should -Not -Throw } - It 'UpdateExpanded' { + It 'UpdateExpanded' -skip { { $config = Update-AzMobileNetworkSimPolicy -MobileNetworkName $env.testNetwork2 -ResourceGroupName $env.resourceGroup -SimPolicyName $env.testSimPolicy -Tag @{"abc"="123"} $config.Name | Should -Be $env.testSimPolicy } | Should -Not -Throw } - It 'UpdateViaIdentityExpanded' { - { - $config = Get-AzMobileNetworkSimPolicy -MobileNetworkName $env.testNetwork2 -ResourceGroupName $env.resourceGroup -Name $env.testSimPolicy - $config = Update-AzMobileNetworkSimPolicy -InputObject $config -Tag @{"abc"="123"} - $config.Name | Should -Be $env.testSimPolicy - } | Should -Not -Throw - } - It 'Delete' { { Remove-AzMobileNetworkSimPolicy -MobileNetworkName $env.testNetwork2 -ResourceGroupName $env.resourceGroup -Name $env.testSimPolicy diff --git a/src/MobileNetwork/test/AzMobileNetworkSite.Recording.json b/src/MobileNetwork/test/AzMobileNetworkSite.Recording.json index 684ec36fb26a..a665a5415207 100644 --- a/src/MobileNetwork/test/AzMobileNetworkSite.Recording.json +++ b/src/MobileNetwork/test/AzMobileNetworkSite.Recording.json @@ -17,24 +17,24 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"a6015280-0000-0100-0000-63bd735d0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1184" ], + "ETag": [ "\"bb00ac14-0000-0100-0000-641ae08c0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1183" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "f1b35a61-502a-4283-8e89-0d5c94631833" ], - "x-ms-request-id": [ "a13c8f28-e81e-4cb7-bd8b-3887c0d1d17a" ], + "mise-correlation-id": [ "8c9946d7-6fd9-4651-add2-be26914226ce" ], + "x-ms-request-id": [ "a242c12e-12fc-43a0-aa38-91d11df85a2d" ], "x-ms-build-version": [ "1.0.1" ], - "x-ms-correlation-request-id": [ "21857a9a-8552-4ee0-9f9d-291e26df4c2c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141701Z:21857a9a-8552-4ee0-9f9d-291e26df4c2c" ], + "x-ms-correlation-request-id": [ "19bb3db5-5067-48c0-9295-7a36f957e54d" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110342Z:19bb3db5-5067-48c0-9295-7a36f957e54d" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:17:01 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:03:41 GMT" ] }, "ContentHeaders": { "Content-Length": [ "577" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:17:00.7559301Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:17:00.7559301Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:03:40.4003616Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:03:40.4003616Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -46,12 +46,12 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "71" ], - "x-ms-client-request-id": [ "41c60f5c-0325-4c22-aa11-1f9393b13bab" ], + "x-ms-unique-id": [ "103" ], + "x-ms-client-request-id": [ "73e29e49-6a07-456a-8b16-eb38598d0057" ], "CommandName": [ "New-AzMobileNetworkSite" ], "FullCommandName": [ "New-AzMobileNetworkSite_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -61,22 +61,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"a6015280-0000-0100-0000-63bd735d0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11976" ], + "ETag": [ "\"bb00ac14-0000-0100-0000-641ae08c0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11965" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "ee4d5059-ece9-4b07-9962-d42e7e724c1e" ], - "x-ms-correlation-request-id": [ "3c24cf6e-cdb5-4533-90e2-67624c7c88db" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141732Z:3c24cf6e-cdb5-4533-90e2-67624c7c88db" ], + "x-ms-request-id": [ "9b42aed5-c104-42c0-bc83-8d066bfb0cce" ], + "x-ms-correlation-request-id": [ "dc6f595c-31b0-4a9a-803d-f1798707bf3b" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110412Z:dc6f595c-31b0-4a9a-803d-f1798707bf3b" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:17:31 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:04:12 GMT" ] }, "ContentHeaders": { "Content-Length": [ "577" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:17:00.7559301Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:17:00.7559301Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:03:40.4003616Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:03:40.4003616Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -88,12 +88,12 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "72" ], - "x-ms-client-request-id": [ "41c60f5c-0325-4c22-aa11-1f9393b13bab" ], + "x-ms-unique-id": [ "104" ], + "x-ms-client-request-id": [ "73e29e49-6a07-456a-8b16-eb38598d0057" ], "CommandName": [ "New-AzMobileNetworkSite" ], "FullCommandName": [ "New-AzMobileNetworkSite_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -103,22 +103,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"a6015280-0000-0100-0000-63bd735d0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11975" ], + "ETag": [ "\"bb00ac14-0000-0100-0000-641ae08c0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11964" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "1a166b7a-2c09-4e46-a560-62b00c402d52" ], - "x-ms-correlation-request-id": [ "0390606b-01b4-400a-9313-ccc87f3131d7" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141732Z:0390606b-01b4-400a-9313-ccc87f3131d7" ], + "x-ms-request-id": [ "0860d992-cb43-4d46-8fdc-7ea1f269e529" ], + "x-ms-correlation-request-id": [ "7b982767-e247-48aa-ac3e-2611fd8d01e7" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110413Z:7b982767-e247-48aa-ac3e-2611fd8d01e7" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:17:32 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:04:12 GMT" ] }, "ContentHeaders": { "Content-Length": [ "577" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:17:00.7559301Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:17:00.7559301Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:03:40.4003616Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:03:40.4003616Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -129,12 +129,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "73" ], - "x-ms-client-request-id": [ "646a302d-1d2f-429a-b153-1724d8dd0a1c" ], + "x-ms-unique-id": [ "105" ], + "x-ms-client-request-id": [ "ee8b78b5-827c-440b-a3a4-234ae069da43" ], "CommandName": [ "Get-AzMobileNetworkSite" ], "FullCommandName": [ "Get-AzMobileNetworkSite_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -145,21 +145,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "bf883c4b-6b02-449d-8e33-27ad233dc45b", "922ce6d3-d5bb-464f-908e-867c0e418555", "c6c72fd2-affd-40e0-8507-01fc88dfeafb" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11974" ], - "x-ms-request-id": [ "d829ef78-8654-4f6a-92c2-ec2a03477e60" ], - "x-ms-correlation-request-id": [ "d829ef78-8654-4f6a-92c2-ec2a03477e60" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141733Z:d829ef78-8654-4f6a-92c2-ec2a03477e60" ], + "x-ms-original-request-ids": [ "b0008e17-a078-4561-9bea-21d2e10038c7", "30e32071-3d87-4fa9-abba-45a220fc4a7e", "2edec990-b116-484b-b265-46b0e82b38aa", "a6dd61b4-ac9d-43eb-9050-58e7e91b0a22" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11963" ], + "x-ms-request-id": [ "1d509093-0cbd-406f-ade3-0aa71655989a" ], + "x-ms-correlation-request-id": [ "1d509093-0cbd-406f-ade3-0aa71655989a" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110414Z:1d509093-0cbd-406f-ade3-0aa71655989a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:17:33 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:04:14 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], "Content-Length": [ "589" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:17:00.7559301Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:17:00.7559301Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:03:40.4003616Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:03:40.4003616Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, @@ -170,12 +170,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "74" ], - "x-ms-client-request-id": [ "7a395c54-7080-4187-87dc-6fa9c321d55e" ], + "x-ms-unique-id": [ "106" ], + "x-ms-client-request-id": [ "2f8f443f-300f-495f-9f26-9f242dc4dfaf" ], "CommandName": [ "Get-AzMobileNetworkSite" ], "FullCommandName": [ "Get-AzMobileNetworkSite_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -186,22 +186,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"a6015280-0000-0100-0000-63bd735d0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11973" ], + "ETag": [ "\"bb00ac14-0000-0100-0000-641ae08c0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11962" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "a6b02ebb-563f-4388-847e-30c4418d1ad4" ], - "x-ms-correlation-request-id": [ "bf2774df-5209-4e1b-9453-ba409e2f4143" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141734Z:bf2774df-5209-4e1b-9453-ba409e2f4143" ], + "x-ms-request-id": [ "40d42528-1f42-4f6c-ac4c-d0ac71fd158b" ], + "x-ms-correlation-request-id": [ "4d361af5-4821-494a-ac16-1e31aa15d372" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110414Z:4d361af5-4821-494a-ac16-1e31aa15d372" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:17:33 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:04:14 GMT" ] }, "ContentHeaders": { "Content-Length": [ "577" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:17:00.7559301Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:17:00.7559301Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:03:40.4003616Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:03:40.4003616Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -223,22 +223,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"a601ab83-0000-0100-0000-63bd737e0000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1183" ], + "ETag": [ "\"bb007117-0000-0100-0000-641ae0af0000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1182" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "655babec-49ec-4066-8dd1-bfff8139eed7" ], - "x-ms-correlation-request-id": [ "c2e89781-717f-4bed-afaa-8d26951f8ce6" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141735Z:c2e89781-717f-4bed-afaa-8d26951f8ce6" ], + "x-ms-request-id": [ "e49c57a0-434b-4ba0-a52f-4198466a7f37" ], + "x-ms-correlation-request-id": [ "9ffc096b-cf99-49a6-99af-82b44abc02ca" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110416Z:9ffc096b-cf99-49a6-99af-82b44abc02ca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:17:34 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:04:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "577" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:17:00.7559301Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:17:34.7570418Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:03:40.4003616Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:04:15.1350904Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -249,12 +249,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "76" ], - "x-ms-client-request-id": [ "3f5b8fae-14ec-453c-8854-8abba2c6270a" ], + "x-ms-unique-id": [ "108" ], + "x-ms-client-request-id": [ "64ab1214-d74c-488b-b5cc-87ad57bc07ec" ], "CommandName": [ "Get-AzMobileNetworkSite" ], "FullCommandName": [ "Get-AzMobileNetworkSite_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -265,22 +265,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"a601ab83-0000-0100-0000-63bd737e0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11972" ], + "ETag": [ "\"bb007117-0000-0100-0000-641ae0af0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11961" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "0f581476-4c1f-4779-8176-a0dc582d9b88" ], - "x-ms-correlation-request-id": [ "2afe8be0-90da-4415-92e4-c19a99566ffc" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141736Z:2afe8be0-90da-4415-92e4-c19a99566ffc" ], + "x-ms-request-id": [ "011825d3-a2e8-4ef6-81ac-78ac3ecbb16d" ], + "x-ms-correlation-request-id": [ "276dc50f-a254-407c-9ffc-1fd63243896a" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110416Z:276dc50f-a254-407c-9ffc-1fd63243896a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:17:35 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:04:16 GMT" ] }, "ContentHeaders": { "Content-Length": [ "577" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:17:00.7559301Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:17:34.7570418Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:03:40.4003616Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:04:15.1350904Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -302,22 +302,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"a601f183-0000-0100-0000-63bd73800000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1182" ], + "ETag": [ "\"bb009617-0000-0100-0000-641ae0b10000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1181" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "93a224cd-f8e8-4a2e-bf8a-d4a0d9d9dd09" ], - "x-ms-correlation-request-id": [ "e956c479-0056-4377-ab2e-da84c02a2804" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141737Z:e956c479-0056-4377-ab2e-da84c02a2804" ], + "x-ms-request-id": [ "36353bdf-597d-4151-9062-92d4a8a9ad92" ], + "x-ms-correlation-request-id": [ "fb3e941e-c54d-40d2-a594-34c690442f76" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110418Z:fb3e941e-c54d-40d2-a594-34c690442f76" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:17:36 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:04:17 GMT" ] }, "ContentHeaders": { "Content-Length": [ "577" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:17:00.7559301Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:17:36.6050488Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"name\":\"test-mn-site\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/sites\",\"location\":\"eastus\",\"tags\":{\"site\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:03:40.4003616Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:04:17.0726071Z\"},\"properties\":{\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -328,12 +328,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "78" ], - "x-ms-client-request-id": [ "7702826d-00f9-4581-bbac-4d7e20909665" ], + "x-ms-unique-id": [ "110" ], + "x-ms-client-request-id": [ "05178f37-1f71-4e98-b25f-c64dd32dfcb4" ], "CommandName": [ "Remove-AzMobileNetworkSite" ], "FullCommandName": [ "Remove-AzMobileNetworkSite_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -344,19 +344,19 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"a6012e84-0000-0100-0000-63bd73820000\"" ], - "Location": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/23d4e45d-09e9-4a1a-9e6f-0cc48da3504c*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A?api-version=2022-11-01" ], + "ETag": [ "\"bb00b717-0000-0100-0000-641ae0b30000\"" ], + "Location": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/1d3ebafd-704e-4e20-aabb-3493e7e6cda7*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A?api-version=2022-11-01" ], "x-ms-ratelimit-remaining-subscription-deletes": [ "14994" ], "x-ms-providerhub-traffic": [ "True" ], - "mise-correlation-id": [ "afd1322a-16f8-4170-b2be-3ffb17da656f" ], - "x-ms-request-id": [ "5237b0c3-5bc5-4b91-9b9d-7b2885f748b5" ], + "mise-correlation-id": [ "00738040-7f1e-4da5-b8ba-9dc5bc48e2a9" ], + "x-ms-request-id": [ "eb9c0185-be84-4b50-8708-826346b33394" ], "x-ms-build-version": [ "1.0.1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/23d4e45d-09e9-4a1a-9e6f-0cc48da3504c*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A?api-version=2022-11-01" ], - "x-ms-correlation-request-id": [ "50689452-0ec6-4b8d-9ea0-7d74c2b2caec" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141738Z:50689452-0ec6-4b8d-9ea0-7d74c2b2caec" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/1d3ebafd-704e-4e20-aabb-3493e7e6cda7*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "fff670b4-4cb6-452b-bb44-dc03ee278320" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110419Z:fff670b4-4cb6-452b-bb44-dc03ee278320" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:17:37 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:04:18 GMT" ] }, "ContentHeaders": { "Content-Length": [ "4" ], @@ -367,20 +367,20 @@ "isContentBase64": false } }, - "AzMobileNetworkSite+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/23d4e45d-09e9-4a1a-9e6f-0cc48da3504c*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A?api-version=2022-11-01+2": { + "AzMobileNetworkSite+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/1d3ebafd-704e-4e20-aabb-3493e7e6cda7*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/23d4e45d-09e9-4a1a-9e6f-0cc48da3504c*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/1d3ebafd-704e-4e20-aabb-3493e7e6cda7*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "79" ], - "x-ms-client-request-id": [ "7702826d-00f9-4581-bbac-4d7e20909665" ], + "x-ms-unique-id": [ "111" ], + "x-ms-client-request-id": [ "05178f37-1f71-4e98-b25f-c64dd32dfcb4" ], "CommandName": [ "Remove-AzMobileNetworkSite" ], "FullCommandName": [ "Remove-AzMobileNetworkSite_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -390,38 +390,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00420b-0000-0100-0000-63bd73830000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11973" ], - "x-ms-request-id": [ "c5624b2c-c7f1-4afe-b072-ec94349a16aa" ], - "x-ms-correlation-request-id": [ "acc2f3ee-b7da-4323-a5cb-e056d13ce5b6" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141808Z:acc2f3ee-b7da-4323-a5cb-e056d13ce5b6" ], + "ETag": [ "\"0f00cfb0-0000-0100-0000-641ae0b40000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11954" ], + "x-ms-request-id": [ "ca511437-ec58-4d61-86d5-8f77998ff519" ], + "x-ms-correlation-request-id": [ "13a41874-a631-411f-9c5b-8f9c5ddd99fb" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110449Z:13a41874-a631-411f-9c5b-8f9c5ddd99fb" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:18:08 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:04:48 GMT" ] }, "ContentHeaders": { "Content-Length": [ "597" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/23d4e45d-09e9-4a1a-9e6f-0cc48da3504c*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A\",\"name\":\"23d4e45d-09e9-4a1a-9e6f-0cc48da3504c*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:17:38.3527679Z\",\"endTime\":\"2023-01-10T14:17:39.5510619Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/1d3ebafd-704e-4e20-aabb-3493e7e6cda7*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A\",\"name\":\"1d3ebafd-704e-4e20-aabb-3493e7e6cda7*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T11:04:18.8972344Z\",\"endTime\":\"2023-03-22T11:04:20.7372998Z\",\"properties\":null}", "isContentBase64": false } }, - "AzMobileNetworkSite+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/23d4e45d-09e9-4a1a-9e6f-0cc48da3504c*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A?api-version=2022-11-01+3": { + "AzMobileNetworkSite+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/1d3ebafd-704e-4e20-aabb-3493e7e6cda7*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A?api-version=2022-11-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/23d4e45d-09e9-4a1a-9e6f-0cc48da3504c*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/1d3ebafd-704e-4e20-aabb-3493e7e6cda7*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "80" ], - "x-ms-client-request-id": [ "7702826d-00f9-4581-bbac-4d7e20909665" ], + "x-ms-unique-id": [ "112" ], + "x-ms-client-request-id": [ "05178f37-1f71-4e98-b25f-c64dd32dfcb4" ], "CommandName": [ "Remove-AzMobileNetworkSite" ], "FullCommandName": [ "Remove-AzMobileNetworkSite_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -431,21 +431,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00420b-0000-0100-0000-63bd73830000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11972" ], - "x-ms-request-id": [ "3657a761-8358-46d4-a98e-94729f1c63ac" ], - "x-ms-correlation-request-id": [ "2c16e774-ccf7-4ee9-af51-bc812720dc6b" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141809Z:2c16e774-ccf7-4ee9-af51-bc812720dc6b" ], + "ETag": [ "\"0f00cfb0-0000-0100-0000-641ae0b40000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11953" ], + "x-ms-request-id": [ "2ad6407a-608d-46b1-9a73-3b2cefa2a6d4" ], + "x-ms-correlation-request-id": [ "3cfc17e4-9d11-4bc3-8293-363cac689530" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110449Z:3cfc17e4-9d11-4bc3-8293-363cac689530" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:18:08 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:04:49 GMT" ] }, "ContentHeaders": { "Content-Length": [ "597" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/23d4e45d-09e9-4a1a-9e6f-0cc48da3504c*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A\",\"name\":\"23d4e45d-09e9-4a1a-9e6f-0cc48da3504c*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:17:38.3527679Z\",\"endTime\":\"2023-01-10T14:17:39.5510619Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/1d3ebafd-704e-4e20-aabb-3493e7e6cda7*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A\",\"name\":\"1d3ebafd-704e-4e20-aabb-3493e7e6cda7*4D358BCE69833FE704D7DEB3433876680E81567CA9E499DB7806A7D8C61F063A\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn2/sites/test-mn-site\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T11:04:18.8972344Z\",\"endTime\":\"2023-03-22T11:04:20.7372998Z\",\"properties\":null}", "isContentBase64": false } } diff --git a/src/MobileNetwork/test/AzMobileNetworkSlice.Recording.json b/src/MobileNetwork/test/AzMobileNetworkSlice.Recording.json index 5a3c770608a8..5d4b852a88f0 100644 --- a/src/MobileNetwork/test/AzMobileNetworkSlice.Recording.json +++ b/src/MobileNetwork/test/AzMobileNetworkSlice.Recording.json @@ -17,41 +17,41 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"2200af46-0000-0100-0000-63bd73a30000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1181" ], + "ETag": [ "\"bf005961-0000-0100-0000-641ae0d50000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1180" ], "x-ms-providerhub-traffic": [ "True" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "5ad3f18b-345a-4c63-b579-c97296434a20" ], + "x-ms-request-id": [ "33aeabe0-3013-4903-8957-29f82fa3e78b" ], "x-ms-build-version": [ "1.0.1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01" ], - "x-ms-correlation-request-id": [ "750251d9-9b83-4c78-a1c8-2dec9b9cc142" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141812Z:750251d9-9b83-4c78-a1c8-2dec9b9cc142" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "e66b3b00-7262-4d02-a1a2-ab068f2fa560" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110453Z:e66b3b00-7262-4d02-a1a2-ab068f2fa560" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:18:12 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:04:53 GMT" ] }, "ContentHeaders": { "Content-Length": [ "591" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:18:11.0415803Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:18:11.0415803Z\"},\"properties\":{\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"},\"provisioningState\":\"Accepted\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:04:51.6832017Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:04:51.6832017Z\"},\"properties\":{\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"},\"provisioningState\":\"Accepted\"}}", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+2": { + "AzMobileNetworkSlice+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "82" ], - "x-ms-client-request-id": [ "a721c487-82a8-40c8-86af-f7a6151dded2" ], + "x-ms-unique-id": [ "114" ], + "x-ms-client-request-id": [ "dc336dbe-412a-41d8-b95f-652f10ee973d" ], "CommandName": [ "New-AzMobileNetworkSlice" ], "FullCommandName": [ "New-AzMobileNetworkSlice_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -61,38 +61,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00550b-0000-0100-0000-63bd73a30000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11971" ], - "x-ms-request-id": [ "bf3bd74e-7e91-4fcb-a9d6-214c445f9760" ], - "x-ms-correlation-request-id": [ "7e349b17-cf5c-48aa-983b-294cba02598b" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141843Z:7e349b17-cf5c-48aa-983b-294cba02598b" ], + "ETag": [ "\"0f00e2b0-0000-0100-0000-641ae0d40000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11952" ], + "x-ms-request-id": [ "b01fdf64-bd40-4b6f-8019-17fa3d6e7fd7" ], + "x-ms-correlation-request-id": [ "b6f018b9-022f-443b-aa50-f022228d13ca" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110524Z:b6f018b9-022f-443b-aa50-f022228d13ca" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:18:43 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:05:23 GMT" ] }, "ContentHeaders": { "Content-Length": [ "539" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Accepted\",\"startTime\":\"2023-01-10T14:18:11.6170855Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T11:04:52.5318365Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+3": { + "AzMobileNetworkSlice+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "83" ], - "x-ms-client-request-id": [ "a721c487-82a8-40c8-86af-f7a6151dded2" ], + "x-ms-unique-id": [ "115" ], + "x-ms-client-request-id": [ "dc336dbe-412a-41d8-b95f-652f10ee973d" ], "CommandName": [ "New-AzMobileNetworkSlice" ], "FullCommandName": [ "New-AzMobileNetworkSlice_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -102,38 +102,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00550b-0000-0100-0000-63bd73a30000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11970" ], - "x-ms-request-id": [ "ad8c0c58-5c57-4547-a198-fd89eeb7e5ad" ], - "x-ms-correlation-request-id": [ "05656b8a-9081-4f41-b482-93656de624fa" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141913Z:05656b8a-9081-4f41-b482-93656de624fa" ], + "ETag": [ "\"0f00e2b0-0000-0100-0000-641ae0d40000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11951" ], + "x-ms-request-id": [ "6af4f3d8-c0b8-42a4-9140-4ad745d9ffae" ], + "x-ms-correlation-request-id": [ "287debd7-5be4-4bf1-b67f-a745d1466cbd" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110555Z:287debd7-5be4-4bf1-b67f-a745d1466cbd" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:19:12 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:05:55 GMT" ] }, "ContentHeaders": { "Content-Length": [ "539" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Accepted\",\"startTime\":\"2023-01-10T14:18:11.6170855Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T11:04:52.5318365Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+4": { + "AzMobileNetworkSlice+[NoContext]+CreateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "84" ], - "x-ms-client-request-id": [ "a721c487-82a8-40c8-86af-f7a6151dded2" ], + "x-ms-unique-id": [ "116" ], + "x-ms-client-request-id": [ "dc336dbe-412a-41d8-b95f-652f10ee973d" ], "CommandName": [ "New-AzMobileNetworkSlice" ], "FullCommandName": [ "New-AzMobileNetworkSlice_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -143,21 +143,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"1a002160-0000-0600-0000-63bd73e50000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11969" ], - "x-ms-request-id": [ "25caf140-6975-498d-a605-35819a0beafc" ], - "x-ms-correlation-request-id": [ "0db5c163-a33e-409f-9042-72832b0620df" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141943Z:0db5c163-a33e-409f-9042-72832b0620df" ], + "ETag": [ "\"8c0027d0-0000-0600-0000-641ae1170000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11950" ], + "x-ms-request-id": [ "1c38c4e0-3756-44f3-a534-b25376398e73" ], + "x-ms-correlation-request-id": [ "307ba14a-1c43-4827-9589-1cc9b05157a3" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110625Z:307ba14a-1c43-4827-9589-1cc9b05157a3" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:19:42 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:06:25 GMT" ] }, "ContentHeaders": { "Content-Length": [ "558" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"3ad337dd-7980-47bf-9f4d-3fe1f89761e3*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:18:11.6170855Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"c52494a3-2a20-4e32-a31d-9cb3e4308bfb*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T11:04:52.5318365Z\",\"properties\":null}", "isContentBase64": false } }, @@ -169,12 +169,12 @@ "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "85" ], - "x-ms-client-request-id": [ "a721c487-82a8-40c8-86af-f7a6151dded2" ], + "x-ms-unique-id": [ "117" ], + "x-ms-client-request-id": [ "dc336dbe-412a-41d8-b95f-652f10ee973d" ], "CommandName": [ "New-AzMobileNetworkSlice" ], "FullCommandName": [ "New-AzMobileNetworkSlice_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -184,22 +184,22 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"2200b046-0000-0100-0000-63bd73ab0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11971" ], + "ETag": [ "\"bf004f62-0000-0100-0000-641ae0de0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11960" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "4f5816ea-42ab-49bb-87b4-5c71e2401ded" ], - "x-ms-correlation-request-id": [ "f74cc9ec-8540-45b5-a74c-119c79b0da8c" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141944Z:f74cc9ec-8540-45b5-a74c-119c79b0da8c" ], + "x-ms-request-id": [ "540b2c3a-870a-4718-bf4b-974d5db77947" ], + "x-ms-correlation-request-id": [ "4e340c67-d586-4323-8921-389bc9e7aa1a" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110626Z:4e340c67-d586-4323-8921-389bc9e7aa1a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:19:43 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:06:25 GMT" ] }, "ContentHeaders": { "Content-Length": [ "592" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:18:11.0415803Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:18:11.0415803Z\"},\"properties\":{\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"},\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:04:51.6832017Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:04:51.6832017Z\"},\"properties\":{\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"},\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, @@ -210,12 +210,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "86" ], - "x-ms-client-request-id": [ "8603c10c-2ef4-48bf-b9dc-e16d790e945f" ], + "x-ms-unique-id": [ "118" ], + "x-ms-client-request-id": [ "68630bc3-9a79-4e8d-b7d4-2cef5902de28" ], "CommandName": [ "Get-AzMobileNetworkSlice" ], "FullCommandName": [ "Get-AzMobileNetworkSlice_List" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -226,21 +226,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "x-ms-original-request-ids": [ "41610a4c-cdcb-4847-95d7-c809bd6ffe5a", "851363a2-5671-4ff1-b114-a12c7610afdd", "e19c9371-0539-4fad-940f-9e4ebe7cb65b" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11970" ], - "x-ms-request-id": [ "89745f98-1534-4b62-8110-a96f58b12e58" ], - "x-ms-correlation-request-id": [ "89745f98-1534-4b62-8110-a96f58b12e58" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141945Z:89745f98-1534-4b62-8110-a96f58b12e58" ], + "x-ms-original-request-ids": [ "6a4bc1b2-cba1-46ca-9c86-3ba4b86c133c", "70edc312-67ff-4d44-a079-8c4347ea0831", "598d561d-20d6-4fab-8b66-d366d351e6e7", "1ecaafae-1337-43a6-85bd-eab01de7baaa" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11959" ], + "x-ms-request-id": [ "a02a66a9-8bec-4a21-a76e-833a0f5d6a23" ], + "x-ms-correlation-request-id": [ "a02a66a9-8bec-4a21-a76e-833a0f5d6a23" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110627Z:a02a66a9-8bec-4a21-a76e-833a0f5d6a23" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:19:44 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:06:27 GMT" ] }, "ContentHeaders": { "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ], "Content-Length": [ "604" ] }, - "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:18:11.0415803Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:18:11.0415803Z\"},\"properties\":{\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"},\"provisioningState\":\"Succeeded\"}}]}", + "Content": "{\"value\":[{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:04:51.6832017Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:04:51.6832017Z\"},\"properties\":{\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"},\"provisioningState\":\"Succeeded\"}}]}", "isContentBase64": false } }, @@ -251,12 +251,12 @@ "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "87" ], - "x-ms-client-request-id": [ "d6232e1b-021c-4f13-af0e-603ab9444bb8" ], + "x-ms-unique-id": [ "119" ], + "x-ms-client-request-id": [ "0bf97d70-2ecc-46ec-abf2-ff9d0006142a" ], "CommandName": [ "Get-AzMobileNetworkSlice" ], "FullCommandName": [ "Get-AzMobileNetworkSlice_Get" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { @@ -267,76 +267,78 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"2200b046-0000-0100-0000-63bd73ab0000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11969" ], + "ETag": [ "\"bf004f62-0000-0100-0000-641ae0de0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11958" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "0347a089-d545-407b-8bfa-8ecb14183d3c" ], - "x-ms-correlation-request-id": [ "1767c12f-ae59-4f7f-befb-2366ad9c2932" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141945Z:1767c12f-ae59-4f7f-befb-2366ad9c2932" ], + "x-ms-request-id": [ "0d7648e8-d8a3-49ef-a138-af6af2d93f96" ], + "x-ms-correlation-request-id": [ "c399c6f0-09d7-4032-961e-7e9303bae191" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110627Z:c399c6f0-09d7-4032-961e-7e9303bae191" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:19:44 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:06:27 GMT" ] }, "ContentHeaders": { "Content-Length": [ "592" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:18:11.0415803Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:18:11.0415803Z\"},\"properties\":{\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"},\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:04:51.6832017Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:04:51.6832017Z\"},\"properties\":{\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"},\"provisioningState\":\"Succeeded\"}}", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+UpdateExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01+1": { + "AzMobileNetworkSlice+[NoContext]+UpdateExpanded+$PUT+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01+1": { "Request": { - "Method": "PATCH", + "Method": "PUT", "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01", - "Content": "{\r\n \"tags\": {\r\n \"abc\": \"123\"\r\n }\r\n}", + "Content": "{\r\n \"tags\": {\r\n \"abc\": \"123\"\r\n },\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"snssai\": {\r\n \"sst\": 1,\r\n \"sd\": \"1abcde\"\r\n }\r\n }\r\n}", "isContentBase64": false, "Headers": { }, "ContentHeaders": { "Content-Type": [ "application/json" ], - "Content-Length": [ "40" ] + "Content-Length": [ "153" ] } }, "Response": { - "StatusCode": 200, + "StatusCode": 201, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"2200ba46-0000-0100-0000-63bd74020000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1180" ], + "ETag": [ "\"bf007c6c-0000-0100-0000-641ae1360000\"" ], + "x-ms-ratelimit-remaining-subscription-writes": [ "1179" ], "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "dc244534-c935-4c58-be91-4e7f4642d8be" ], - "x-ms-correlation-request-id": [ "ed4224e4-85ee-48e8-b444-7b391be85ba8" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141948Z:ed4224e4-85ee-48e8-b444-7b391be85ba8" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "a8ea3a15-486e-4d1d-a3b1-10fdc474bfee" ], + "x-ms-build-version": [ "1.0.1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "6890c410-fe22-4129-959f-4f36e3ac9a55" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110632Z:6890c410-fe22-4129-959f-4f36e3ac9a55" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:19:47 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:06:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "613" ], + "Content-Length": [ "612" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:18:11.0415803Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:19:46.1429224Z\"},\"properties\":{\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"},\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:04:51.6832017Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:06:29.0583328Z\"},\"properties\":{\"provisioningState\":\"Accepted\",\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"}}}", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+UpdateViaIdentityExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01+1": { + "AzMobileNetworkSlice+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "89" ], - "x-ms-client-request-id": [ "c44ba68b-9cfc-44fb-bbfe-34b39e0cb643" ], - "CommandName": [ "Get-AzMobileNetworkSlice" ], - "FullCommandName": [ "Get-AzMobileNetworkSlice_Get" ], + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "122" ], + "x-ms-client-request-id": [ "d86f302d-ce01-4cd7-9e1d-3322a9779db9" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSlice_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSlice_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -346,36 +348,40 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"2200ba46-0000-0100-0000-63bd74020000\"" ], - "x-ms-ratelimit-remaining-subscription-reads": [ "11968" ], - "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "f17566c9-8254-423e-921b-620d27ad430d" ], - "x-ms-correlation-request-id": [ "61f95d28-d7ea-4886-b1b4-d0878f1aea87" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141948Z:61f95d28-d7ea-4886-b1b4-d0878f1aea87" ], + "ETag": [ "\"0f000fb1-0000-0100-0000-641ae1360000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11949" ], + "x-ms-request-id": [ "2dfb2335-8043-4c32-a6fd-c479d8ac93ef" ], + "x-ms-correlation-request-id": [ "e76f9a0e-f245-475f-a6bd-3fb669d5a9d6" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110702Z:e76f9a0e-f245-475f-a6bd-3fb669d5a9d6" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:19:47 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:07:01 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "613" ], + "Content-Length": [ "539" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:18:11.0415803Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:19:46.1429224Z\"},\"properties\":{\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"},\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T11:06:30.2923312Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+UpdateViaIdentityExpanded+$PATCH+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01+2": { + "AzMobileNetworkSlice+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+3": { "Request": { - "Method": "PATCH", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01", - "Content": "{\r\n \"tags\": {\r\n \"abc\": \"123\"\r\n }\r\n}", + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", + "Content": null, "isContentBase64": false, "Headers": { + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "123" ], + "x-ms-client-request-id": [ "d86f302d-ce01-4cd7-9e1d-3322a9779db9" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSlice_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSlice_CreateExpanded" ], + "ParameterSetName": [ "__AllParameterSets" ], + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { - "Content-Type": [ "application/json" ], - "Content-Length": [ "40" ] } }, "Response": { @@ -383,125 +389,121 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"2200bb46-0000-0100-0000-63bd74050000\"" ], - "x-ms-ratelimit-remaining-subscription-writes": [ "1179" ], - "x-ms-providerhub-traffic": [ "True" ], - "x-ms-request-id": [ "9e259f8b-e044-415e-94b4-42b14e5bb5ad" ], - "x-ms-correlation-request-id": [ "fdce36e6-4865-4d3f-a951-87846c1639e4" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141950Z:fdce36e6-4865-4d3f-a951-87846c1639e4" ], + "ETag": [ "\"0f000fb1-0000-0100-0000-641ae1360000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11948" ], + "x-ms-request-id": [ "3947f797-4f2e-410c-9f44-63588c086ae2" ], + "x-ms-correlation-request-id": [ "2348cd37-080d-42b5-a185-6cf11e82fd2f" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110732Z:2348cd37-080d-42b5-a185-6cf11e82fd2f" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:19:49 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:07:31 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "613" ], + "Content-Length": [ "539" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-01-10T14:18:11.0415803Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-01-10T14:19:49.0978345Z\"},\"properties\":{\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"},\"provisioningState\":\"Succeeded\"}}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Accepted\",\"startTime\":\"2023-03-22T11:06:30.2923312Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01+1": { + "AzMobileNetworkSlice+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+4": { "Request": { - "Method": "DELETE", - "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01", + "Method": "GET", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { - "x-ms-unique-id": [ "91" ], - "x-ms-client-request-id": [ "a6518261-dd6b-42de-ba12-fc983df257ba" ], - "CommandName": [ "Remove-AzMobileNetworkSlice" ], - "FullCommandName": [ "Remove-AzMobileNetworkSlice_Delete" ], + "Authorization": [ "[Filtered]" ], + "x-ms-unique-id": [ "124" ], + "x-ms-client-request-id": [ "d86f302d-ce01-4cd7-9e1d-3322a9779db9" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSlice_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSlice_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ], - "Authorization": [ "[Filtered]" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } }, "Response": { - "StatusCode": 202, + "StatusCode": 200, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"2200bc46-0000-0100-0000-63bd74080000\"" ], - "Location": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01" ], - "x-ms-ratelimit-remaining-subscription-deletes": [ "14993" ], - "x-ms-providerhub-traffic": [ "True" ], + "ETag": [ "\"8c0082d9-0000-0600-0000-641ae1780000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11947" ], + "x-ms-request-id": [ "6dc3ea91-56d7-44af-91f8-76e7e3cbac38" ], + "x-ms-correlation-request-id": [ "b80d2824-2ce8-4693-97a4-9f64b070d2d0" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110803Z:b80d2824-2ce8-4693-97a4-9f64b070d2d0" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], - "x-ms-request-id": [ "b9990e8f-5de1-4f4b-a2f7-27bf6185cc42" ], - "x-ms-build-version": [ "1.0.1" ], - "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01" ], - "x-ms-correlation-request-id": [ "3c7037b0-88ee-4bfd-bd88-071544a69d25" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T141952Z:3c7037b0-88ee-4bfd-bd88-071544a69d25" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:19:52 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:08:03 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "4" ], + "Content-Length": [ "558" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "bnVsbA==", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"e88bc46f-07a1-4551-83af-78f6d14971a1*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T11:06:30.2923312Z\",\"properties\":null}", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+2": { + "AzMobileNetworkSlice+[NoContext]+UpdateExpanded+$GET+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "92" ], - "x-ms-client-request-id": [ "a6518261-dd6b-42de-ba12-fc983df257ba" ], - "CommandName": [ "Remove-AzMobileNetworkSlice" ], - "FullCommandName": [ "Remove-AzMobileNetworkSlice_Delete" ], + "x-ms-unique-id": [ "125" ], + "x-ms-client-request-id": [ "d86f302d-ce01-4cd7-9e1d-3322a9779db9" ], + "CommandName": [ "Az.MobileNetwork.private\\New-AzMobileNetworkSlice_CreateExpanded" ], + "FullCommandName": [ "New-AzMobileNetworkSlice_CreateExpanded" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } }, "Response": { - "StatusCode": 202, + "StatusCode": 200, "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae007c0b-0000-0100-0000-63bd74070000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11968" ], - "x-ms-request-id": [ "c7c2407e-b5f4-4a31-a39f-12b947daf89d" ], - "x-ms-correlation-request-id": [ "5c7b9883-fd23-4421-8aea-ad4cf8c9f23f" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T142022Z:5c7b9883-fd23-4421-8aea-ad4cf8c9f23f" ], + "ETag": [ "\"bf00176d-0000-0100-0000-641ae13d0000\"" ], + "x-ms-ratelimit-remaining-subscription-reads": [ "11956" ], + "x-ms-providerhub-traffic": [ "True" ], + "x-ms-request-id": [ "9aa3d9a7-e6f8-4daf-8c0e-39946b902873" ], + "x-ms-correlation-request-id": [ "22c5ad42-33fc-49f6-a0a5-7f5e5abc8485" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110803Z:22c5ad42-33fc-49f6-a0a5-7f5e5abc8485" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:20:21 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:08:03 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "538" ], + "Content-Length": [ "613" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Deleting\",\"startTime\":\"2023-01-10T14:19:51.606687Z\"}", + "Content": "{\"id\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"name\":\"test-mn-slice\",\"type\":\"microsoft.mobilenetwork/mobilenetworks/slices\",\"location\":\"eastus\",\"tags\":{\"abc\":\"123\"},\"systemData\":{\"createdBy\":\"v-jinpel@microsoft.com\",\"createdByType\":\"User\",\"createdAt\":\"2023-03-22T11:04:51.6832017Z\",\"lastModifiedBy\":\"v-jinpel@microsoft.com\",\"lastModifiedByType\":\"User\",\"lastModifiedAt\":\"2023-03-22T11:06:29.0583328Z\"},\"properties\":{\"provisioningState\":\"Succeeded\",\"snssai\":{\"sst\":1,\"sd\":\"1abcde\"}}}", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+3": { + "AzMobileNetworkSlice+[NoContext]+Delete+$DELETE+https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01+1": { "Request": { - "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", + "Method": "DELETE", + "RequestUri": "https://management.azure.com/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { - "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "93" ], - "x-ms-client-request-id": [ "a6518261-dd6b-42de-ba12-fc983df257ba" ], + "x-ms-unique-id": [ "126" ], + "x-ms-client-request-id": [ "a5d99041-bd74-46c9-95e5-77e674b350f5" ], "CommandName": [ "Remove-AzMobileNetworkSlice" ], "FullCommandName": [ "Remove-AzMobileNetworkSlice_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ], + "Authorization": [ "[Filtered]" ] }, "ContentHeaders": { } @@ -511,38 +513,42 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae007c0b-0000-0100-0000-63bd74070000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11967" ], - "x-ms-request-id": [ "ade8cf8f-1bcc-46e9-82fd-0458ee2da263" ], - "x-ms-correlation-request-id": [ "8bfdc3a2-40a3-4b03-b024-a0eb16b57012" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T142053Z:8bfdc3a2-40a3-4b03-b024-a0eb16b57012" ], + "ETag": [ "\"bf007876-0000-0100-0000-641ae1960000\"" ], + "Location": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01" ], + "x-ms-ratelimit-remaining-subscription-deletes": [ "14993" ], + "x-ms-providerhub-traffic": [ "True" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], + "x-ms-request-id": [ "7adb6068-6043-44e9-ada4-8cb837070e4d" ], + "x-ms-build-version": [ "1.0.1" ], + "Azure-AsyncOperation": [ "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01" ], + "x-ms-correlation-request-id": [ "064ddac1-c8eb-4953-9bf3-fae7a80f08e1" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110806Z:064ddac1-c8eb-4953-9bf3-fae7a80f08e1" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:20:52 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:08:06 GMT" ] }, "ContentHeaders": { - "Content-Length": [ "538" ], + "Content-Length": [ "4" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Deleting\",\"startTime\":\"2023-01-10T14:19:51.606687Z\"}", + "Content": "bnVsbA==", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+4": { + "AzMobileNetworkSlice+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+2": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "94" ], - "x-ms-client-request-id": [ "a6518261-dd6b-42de-ba12-fc983df257ba" ], + "x-ms-unique-id": [ "127" ], + "x-ms-client-request-id": [ "a5d99041-bd74-46c9-95e5-77e674b350f5" ], "CommandName": [ "Remove-AzMobileNetworkSlice" ], "FullCommandName": [ "Remove-AzMobileNetworkSlice_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -552,38 +558,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae007c0b-0000-0100-0000-63bd74070000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11966" ], - "x-ms-request-id": [ "57e5082c-9f6e-4bb2-a367-091943f0a29d" ], - "x-ms-correlation-request-id": [ "f31565dc-61e3-4355-b4a5-2cb676503c67" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T142124Z:f31565dc-61e3-4355-b4a5-2cb676503c67" ], + "ETag": [ "\"0f003bb1-0000-0100-0000-641ae1950000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11946" ], + "x-ms-request-id": [ "9c217637-6579-42ab-adf2-a19ad4966902" ], + "x-ms-correlation-request-id": [ "014eebe9-0693-4906-a54c-10e60dd6ff35" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110837Z:014eebe9-0693-4906-a54c-10e60dd6ff35" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:21:23 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:08:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "538" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Deleting\",\"startTime\":\"2023-01-10T14:19:51.606687Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Deleting\",\"startTime\":\"2023-03-22T11:08:05.918897Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+5": { + "AzMobileNetworkSlice+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+3": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "95" ], - "x-ms-client-request-id": [ "a6518261-dd6b-42de-ba12-fc983df257ba" ], + "x-ms-unique-id": [ "128" ], + "x-ms-client-request-id": [ "a5d99041-bd74-46c9-95e5-77e674b350f5" ], "CommandName": [ "Remove-AzMobileNetworkSlice" ], "FullCommandName": [ "Remove-AzMobileNetworkSlice_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -593,38 +599,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae007c0b-0000-0100-0000-63bd74070000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11965" ], - "x-ms-request-id": [ "52654338-1f6f-46d5-aad2-1e888f08b40d" ], - "x-ms-correlation-request-id": [ "07896b85-82d6-47e5-97aa-1f48e2294410" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T142154Z:07896b85-82d6-47e5-97aa-1f48e2294410" ], + "ETag": [ "\"0f003bb1-0000-0100-0000-641ae1950000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11945" ], + "x-ms-request-id": [ "b6dea59d-a71f-4fa6-93c9-a54ef2cb53ed" ], + "x-ms-correlation-request-id": [ "cdaad97a-bb53-41db-9696-7df2a4ef168a" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110907Z:cdaad97a-bb53-41db-9696-7df2a4ef168a" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:21:54 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:09:06 GMT" ] }, "ContentHeaders": { "Content-Length": [ "538" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Deleting\",\"startTime\":\"2023-01-10T14:19:51.606687Z\"}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Deleting\",\"startTime\":\"2023-03-22T11:08:05.918897Z\"}", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+6": { + "AzMobileNetworkSlice+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+4": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "96" ], - "x-ms-client-request-id": [ "a6518261-dd6b-42de-ba12-fc983df257ba" ], + "x-ms-unique-id": [ "129" ], + "x-ms-client-request-id": [ "a5d99041-bd74-46c9-95e5-77e674b350f5" ], "CommandName": [ "Remove-AzMobileNetworkSlice" ], "FullCommandName": [ "Remove-AzMobileNetworkSlice_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -634,38 +640,38 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00e60c-0000-0100-0000-63bd74870000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11964" ], - "x-ms-request-id": [ "9a0b42e0-0d9b-4f82-b75c-d5b53823e3b4" ], - "x-ms-correlation-request-id": [ "58d996e1-0415-4c37-900d-d9e318d0ad91" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T142225Z:58d996e1-0415-4c37-900d-d9e318d0ad91" ], + "ETag": [ "\"8c0030e1-0000-0600-0000-641ae1d80000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11944" ], + "x-ms-request-id": [ "34359152-46fd-46ca-ac97-3ccfe3785dc9" ], + "x-ms-correlation-request-id": [ "adcdf86e-5956-44ba-b43e-4df6dd2ccb28" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110937Z:adcdf86e-5956-44ba-b43e-4df6dd2ccb28" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:22:25 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:09:36 GMT" ] }, "ContentHeaders": { "Content-Length": [ "557" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:19:51.606687Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T11:08:05.918897Z\",\"properties\":null}", "isContentBase64": false } }, - "AzMobileNetworkSlice+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+7": { + "AzMobileNetworkSlice+[NoContext]+Delete+$GET+https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01+5": { "Request": { "Method": "GET", - "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", + "RequestUri": "https://management.azure.com/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6?api-version=2022-11-01", "Content": null, "isContentBase64": false, "Headers": { "Authorization": [ "[Filtered]" ], - "x-ms-unique-id": [ "97" ], - "x-ms-client-request-id": [ "a6518261-dd6b-42de-ba12-fc983df257ba" ], + "x-ms-unique-id": [ "130" ], + "x-ms-client-request-id": [ "a5d99041-bd74-46c9-95e5-77e674b350f5" ], "CommandName": [ "Remove-AzMobileNetworkSlice" ], "FullCommandName": [ "Remove-AzMobileNetworkSlice_Delete" ], "ParameterSetName": [ "__AllParameterSets" ], - "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.1", "Az.MobileNetwork/0.1.0" ] + "User-Agent": [ "AzurePowershell/v0.0.0", "PSVersion/v7.3.2", "Az.MobileNetwork/0.1.0" ] }, "ContentHeaders": { } @@ -675,21 +681,21 @@ "Headers": { "Cache-Control": [ "no-cache" ], "Pragma": [ "no-cache" ], - "ETag": [ "\"ae00e60c-0000-0100-0000-63bd74870000\"" ], - "x-ms-ratelimit-remaining-tenant-reads": [ "11963" ], - "x-ms-request-id": [ "9015a63b-3670-4a03-8bc2-8e5ea83d9158" ], - "x-ms-correlation-request-id": [ "41ece721-65c6-4e2b-999a-20b9416596ef" ], - "x-ms-routing-request-id": [ "JAPANEAST:20230110T142225Z:41ece721-65c6-4e2b-999a-20b9416596ef" ], + "ETag": [ "\"8c0030e1-0000-0600-0000-641ae1d80000\"" ], + "x-ms-ratelimit-remaining-tenant-reads": [ "11943" ], + "x-ms-request-id": [ "10f713e3-b11c-492a-a0f9-50da796f2e6f" ], + "x-ms-correlation-request-id": [ "1b7c0498-e2e0-43e2-95b2-3b4d6136faa9" ], + "x-ms-routing-request-id": [ "JAPANEAST:20230322T110938Z:1b7c0498-e2e0-43e2-95b2-3b4d6136faa9" ], "Strict-Transport-Security": [ "max-age=31536000; includeSubDomains" ], "X-Content-Type-Options": [ "nosniff" ], - "Date": [ "Tue, 10 Jan 2023 14:22:25 GMT" ] + "Date": [ "Wed, 22 Mar 2023 11:09:37 GMT" ] }, "ContentHeaders": { "Content-Length": [ "557" ], "Content-Type": [ "application/json; charset=utf-8" ], "Expires": [ "-1" ] }, - "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"3c932292-71ce-4704-9f66-8a2e7adcf4b0*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Succeeded\",\"startTime\":\"2023-01-10T14:19:51.606687Z\",\"properties\":null}", + "Content": "{\"id\":\"/providers/Microsoft.MobileNetwork/locations/EASTUS/operationStatuses/68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"name\":\"68f8506b-361b-40e9-a0f8-b38d68ee8b3d*C42ACA888D1D651B43CEF57BCD5A51F27FA5F93E8EC29543B3F06DF9950048B6\",\"resourceId\":\"/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup-mobilenetwork/providers/Microsoft.MobileNetwork/mobileNetworks/test-mn3/slices/test-mn-slice\",\"status\":\"Succeeded\",\"startTime\":\"2023-03-22T11:08:05.918897Z\",\"properties\":null}", "isContentBase64": false } } diff --git a/src/MobileNetwork/test/AzMobileNetworkSlice.Tests.ps1 b/src/MobileNetwork/test/AzMobileNetworkSlice.Tests.ps1 index 0d0d8e37dea7..f77308f4075d 100644 --- a/src/MobileNetwork/test/AzMobileNetworkSlice.Tests.ps1 +++ b/src/MobileNetwork/test/AzMobileNetworkSlice.Tests.ps1 @@ -36,17 +36,9 @@ Describe 'AzMobileNetworkSlice' { } | Should -Not -Throw } - It 'UpdateExpanded' { + It 'UpdateExpanded' -skip { { - $config = Update-AzMobileNetworkSlice -MobileNetworkName $env.testNetwork3 -ResourceGroupName $env.resourceGroup -SliceName $env.testSlice -Tag @{"abc"="123"} - $config.Name | Should -Be $env.testSlice - } | Should -Not -Throw - } - - It 'UpdateViaIdentityExpanded' { - { - $config = Get-AzMobileNetworkSlice -MobileNetworkName $env.testNetwork3 -ResourceGroupName $env.resourceGroup -SliceName $env.testSlice - $config = Update-AzMobileNetworkSlice -InputObject $config -Tag @{"abc"="123"} + $config = Update-AzMobileNetworkSlice -MobileNetworkName $env.testNetwork3 -ResourceGroupName $env.resourceGroup -SliceName $env.testSlice -Tag @{"abc"="123"} -SnssaiSst 1 $config.Name | Should -Be $env.testSlice } | Should -Not -Throw } diff --git a/src/MobileNetwork/test/Update-AzMobileNetworkAttachedDataNetwork.Tests.ps1 b/src/MobileNetwork/test/Update-AzMobileNetworkAttachedDataNetwork.Tests.ps1 index 11d7ab1888fd..8c70628bda14 100644 --- a/src/MobileNetwork/test/Update-AzMobileNetworkAttachedDataNetwork.Tests.ps1 +++ b/src/MobileNetwork/test/Update-AzMobileNetworkAttachedDataNetwork.Tests.ps1 @@ -18,8 +18,4 @@ Describe 'Update-AzMobileNetworkAttachedDataNetwork' { It 'UpdateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } } diff --git a/src/MobileNetwork/test/Update-AzMobileNetworkDataNetwork.Tests.ps1 b/src/MobileNetwork/test/Update-AzMobileNetworkDataNetwork.Tests.ps1 index bf933365d077..d5b2954f3498 100644 --- a/src/MobileNetwork/test/Update-AzMobileNetworkDataNetwork.Tests.ps1 +++ b/src/MobileNetwork/test/Update-AzMobileNetworkDataNetwork.Tests.ps1 @@ -18,8 +18,4 @@ Describe 'Update-AzMobileNetworkDataNetwork' { It 'UpdateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } } diff --git a/src/MobileNetwork/test/Update-AzMobileNetworkPacketCoreControlPlane.Tests.ps1 b/src/MobileNetwork/test/Update-AzMobileNetworkPacketCoreControlPlane.Tests.ps1 index 8db6e9c16f69..e1ce1451ee5b 100644 --- a/src/MobileNetwork/test/Update-AzMobileNetworkPacketCoreControlPlane.Tests.ps1 +++ b/src/MobileNetwork/test/Update-AzMobileNetworkPacketCoreControlPlane.Tests.ps1 @@ -18,8 +18,4 @@ Describe 'Update-AzMobileNetworkPacketCoreControlPlane' { It 'UpdateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } } diff --git a/src/MobileNetwork/test/Update-AzMobileNetworkPacketCoreDataPlane.Tests.ps1 b/src/MobileNetwork/test/Update-AzMobileNetworkPacketCoreDataPlane.Tests.ps1 index bf6b2ac7fd25..d0f7522d4e0d 100644 --- a/src/MobileNetwork/test/Update-AzMobileNetworkPacketCoreDataPlane.Tests.ps1 +++ b/src/MobileNetwork/test/Update-AzMobileNetworkPacketCoreDataPlane.Tests.ps1 @@ -18,8 +18,4 @@ Describe 'Update-AzMobileNetworkPacketCoreDataPlane' { It 'UpdateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } } diff --git a/src/MobileNetwork/test/Update-AzMobileNetworkService.Tests.ps1 b/src/MobileNetwork/test/Update-AzMobileNetworkService.Tests.ps1 index 8ff275e0b201..9b365c7a8832 100644 --- a/src/MobileNetwork/test/Update-AzMobileNetworkService.Tests.ps1 +++ b/src/MobileNetwork/test/Update-AzMobileNetworkService.Tests.ps1 @@ -18,8 +18,4 @@ Describe 'Update-AzMobileNetworkService' { It 'UpdateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } } diff --git a/src/MobileNetwork/test/Update-AzMobileNetworkSimGroup.Tests.ps1 b/src/MobileNetwork/test/Update-AzMobileNetworkSimGroup.Tests.ps1 index 2dbb8f6a51b1..812f43aaf46a 100644 --- a/src/MobileNetwork/test/Update-AzMobileNetworkSimGroup.Tests.ps1 +++ b/src/MobileNetwork/test/Update-AzMobileNetworkSimGroup.Tests.ps1 @@ -18,8 +18,4 @@ Describe 'Update-AzMobileNetworkSimGroup' { It 'UpdateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } } diff --git a/src/MobileNetwork/test/Update-AzMobileNetworkSimPolicy.Tests.ps1 b/src/MobileNetwork/test/Update-AzMobileNetworkSimPolicy.Tests.ps1 index e75ab0420e78..042e474b6642 100644 --- a/src/MobileNetwork/test/Update-AzMobileNetworkSimPolicy.Tests.ps1 +++ b/src/MobileNetwork/test/Update-AzMobileNetworkSimPolicy.Tests.ps1 @@ -18,8 +18,4 @@ Describe 'Update-AzMobileNetworkSimPolicy' { It 'UpdateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } } diff --git a/src/MobileNetwork/test/Update-AzMobileNetworkSlice.Tests.ps1 b/src/MobileNetwork/test/Update-AzMobileNetworkSlice.Tests.ps1 index e68001d2b243..1fbb86d2504c 100644 --- a/src/MobileNetwork/test/Update-AzMobileNetworkSlice.Tests.ps1 +++ b/src/MobileNetwork/test/Update-AzMobileNetworkSlice.Tests.ps1 @@ -18,8 +18,4 @@ Describe 'Update-AzMobileNetworkSlice' { It 'UpdateExpanded' -skip { { throw [System.NotImplementedException] } | Should -Not -Throw } - - It 'UpdateViaIdentityExpanded' -skip { - { throw [System.NotImplementedException] } | Should -Not -Throw - } } diff --git a/src/MobileNetwork/test/env.json b/src/MobileNetwork/test/env.json index 1b6c1b48c1ec..a9919105957e 100644 --- a/src/MobileNetwork/test/env.json +++ b/src/MobileNetwork/test/env.json @@ -1,15 +1,15 @@ { - "testNetwork3": "test-mn3", - "testDataNetwork": "test-mn-datanetwork", - "resourceGroup": "testgroup-mobilenetwork", - "testSimPolicy": "test-mn-simpolicy", - "testSimGroup": "test-mn-simgroup", - "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f", "testSlice": "test-mn-slice", + "testSimGroup": "test-mn-simgroup", "testService": "test-mn-service", + "testDataNetwork": "test-mn-datanetwork", + "SubscriptionId": "9e223dbe-3399-4e19-88eb-0975f02ac87f", + "testNetwork2": "test-mn2", "location": "eastus", - "testNetwork1": "test-mn1", + "resourceGroup": "testgroup-mobilenetwork", "Tenant": "72f988bf-86f1-41af-91ab-2d7cd011db47", + "testNetwork3": "test-mn3", "testSite": "test-mn-site", - "testNetwork2": "test-mn2" + "testNetwork1": "test-mn1", + "testSimPolicy": "test-mn-simpolicy" } From dd7b2a8d783024e4fcb1b168b4d3109936cfe3d7 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Fri, 14 Apr 2023 17:14:55 +0800 Subject: [PATCH 2/3] update --- src/MobileNetwork/examples/Update-AzMobileNetworkDataNetwork.md | 2 +- .../examples/Update-AzMobileNetworkPacketCoreDataPlane.md | 2 +- src/MobileNetwork/help/Update-AzMobileNetworkDataNetwork.md | 2 +- .../help/Update-AzMobileNetworkPacketCoreDataPlane.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkDataNetwork.md b/src/MobileNetwork/examples/Update-AzMobileNetworkDataNetwork.md index 3cfa1b536df8..e7dd191fea14 100644 --- a/src/MobileNetwork/examples/Update-AzMobileNetworkDataNetwork.md +++ b/src/MobileNetwork/examples/Update-AzMobileNetworkDataNetwork.md @@ -1,6 +1,6 @@ ### Example 1: Updates data network. ```powershell -Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="`12"} +Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="12"} ``` ```output diff --git a/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreDataPlane.md b/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreDataPlane.md index 0ccaa9885a95..52aa11951909 100644 --- a/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreDataPlane.md +++ b/src/MobileNetwork/examples/Update-AzMobileNetworkPacketCoreDataPlane.md @@ -1,6 +1,6 @@ ### Example 1: Updates packet core data planes. ```powershell -Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123} +Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123"} ``` ```output diff --git a/src/MobileNetwork/help/Update-AzMobileNetworkDataNetwork.md b/src/MobileNetwork/help/Update-AzMobileNetworkDataNetwork.md index 950a917eb0f4..2323c84f1a85 100644 --- a/src/MobileNetwork/help/Update-AzMobileNetworkDataNetwork.md +++ b/src/MobileNetwork/help/Update-AzMobileNetworkDataNetwork.md @@ -25,7 +25,7 @@ Updates data network. ### Example 1: Updates data network. ```powershell -Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="`12"} +Update-AzMobileNetworkDataNetwork -MobileNetworkName azps-mn -DataNetworkName azps-mn-datanetwork -ResourceGroupName azps_test_group -Tag @{"abc"="12"} ``` ```output diff --git a/src/MobileNetwork/help/Update-AzMobileNetworkPacketCoreDataPlane.md b/src/MobileNetwork/help/Update-AzMobileNetworkPacketCoreDataPlane.md index 76fde02577e8..87c819ffb85d 100644 --- a/src/MobileNetwork/help/Update-AzMobileNetworkPacketCoreDataPlane.md +++ b/src/MobileNetwork/help/Update-AzMobileNetworkPacketCoreDataPlane.md @@ -27,7 +27,7 @@ Updates packet core data planes. ### Example 1: Updates packet core data planes. ```powershell -Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123} +Update-AzMobileNetworkPacketCoreDataPlane -PacketCoreControlPlaneName azps-mn-pccp -PacketCoreDataPlaneName azps-mn-pcdp -ResourceGroupName azps_test_group -Tag @{"abc"="123"} ``` ```output From 1a981abaf16b93216f79d1569f0877db78a44935 Mon Sep 17 00:00:00 2001 From: Jinpei Li Date: Sat, 15 Apr 2023 07:09:09 +0800 Subject: [PATCH 3/3] update changelog --- src/MobileNetwork/ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MobileNetwork/ChangeLog.md b/src/MobileNetwork/ChangeLog.md index c580ba8f4972..32ec37dd2c89 100644 --- a/src/MobileNetwork/ChangeLog.md +++ b/src/MobileNetwork/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* The `Update-AzMobileNetwork*` cmdlets has been improved to support more parameter changes. ## Version 0.1.0 * First preview release for module Az.MobileNetwork