For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).")]
+ [string]
+ $OSProfileAdminUsername,
+ [Parameter(HelpMessage="Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes.
**Note: Do not pass any secrets or passwords in customData property**
This property cannot be updated after the VM is created.
customData is passed to the VM to be saved as a file. For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)
For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).")]
+ [string]
+ $OSProfileCustomData,
+ [Parameter(HelpMessage="Indicates if custom data is required to deploy this role.")]
+ [bool]
+ $OSProfileCustomDataRequired,
+ [Parameter(HelpMessage="The name of the network function role.")]
+ [string]
+ $RoleName,
+ [Parameter(HelpMessage="Role type.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.NetworkFunctionRoleConfigurationType]
+ $RoleType,
+ [Parameter(HelpMessage="The list of SSH public keys used to authenticate with linux based VMs.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.ISshPublicKey[]]
+ $SshPublicKey,
+ [Parameter(HelpMessage="Specifies the parameters that are used to add a data disk to a virtual machine.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IDataDisk[]]
+ $StorageProfileDataDisk,
+ [Parameter(HelpMessage="The user parameters for customers. The format of user data parameters has to be matched with the provided user data template.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IAny]
+ $UserDataParameter,
+ [Parameter(HelpMessage="The user data template for customers. This is a json schema template describing the format and data type of user data parameters.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IAny]
+ $UserDataTemplate,
+ [Parameter(HelpMessage="Specifies the virtual hard disk's uri.")]
+ [string]
+ $VhdUri,
+ [Parameter(HelpMessage="The size of the virtual machine.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.VirtualMachineSizeTypes]
+ $VirtualMachineSize
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionRoleConfiguration]::New()
+
+ $Object.CustomProfileMetadataConfigurationPath = $CustomProfileMetadataConfigurationPath
+ $Object.ImageReferenceExactVersion = $ImageReferenceExactVersion
+ $Object.ImageReferenceOffer = $ImageReferenceOffer
+ $Object.ImageReferencePublisher = $ImageReferencePublisher
+ $Object.ImageReferenceSku = $ImageReferenceSku
+ $Object.ImageReferenceVersion = $ImageReferenceVersion
+ $Object.NetworkInterface = $NetworkInterface
+ $Object.OSDiskName = $OSDiskName
+ $Object.OSDiskOstype = $OSDiskOstype
+ $Object.OSDiskSizeGb = $OSDiskSizeGb
+ $Object.OSProfileAdminUsername = $OSProfileAdminUsername
+ $Object.OSProfileCustomData = $OSProfileCustomData
+ $Object.OSProfileCustomDataRequired = $OSProfileCustomDataRequired
+ $Object.RoleName = $RoleName
+ $Object.RoleType = $RoleType
+ $Object.SshPublicKey = $SshPublicKey
+ $Object.StorageProfileDataDisk = $StorageProfileDataDisk
+ $Object.UserDataParameter = $UserDataParameter
+ $Object.UserDataTemplate = $UserDataTemplate
+ $Object.VhdUri = $VhdUri
+ $Object.VirtualMachineSize = $VirtualMachineSize
+ return $Object
+ }
+}
+
diff --git a/src/ConnectedNetwork/custom/New-AzConnectedNetworkFunctionUserConfigurationObject.ps1 b/src/ConnectedNetwork/custom/New-AzConnectedNetworkFunctionUserConfigurationObject.ps1
new file mode 100644
index 000000000000..9916bd2fc58f
--- /dev/null
+++ b/src/ConnectedNetwork/custom/New-AzConnectedNetworkFunctionUserConfigurationObject.ps1
@@ -0,0 +1,57 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a in-memory object for NetworkFunctionUserConfiguration
+.Description
+Create a in-memory object for NetworkFunctionUserConfiguration
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionUserConfiguration
+.Link
+https://docs.microsoft.com/powershell/module/az.ConnectedNetwork/new-AzConnectedNetworkFunctionUserConfigurationObject
+#>
+function New-AzConnectedNetworkFunctionUserConfigurationObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionUserConfiguration')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The network interface configuration.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkInterface[]]
+ $NetworkInterface,
+ [Parameter(HelpMessage="Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes.
**Note: Do not pass any secrets or passwords in customData property**
This property cannot be updated after the VM is created.
customData is passed to the VM to be saved as a file. For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)
For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).")]
+ [string]
+ $OSProfileCustomData,
+ [Parameter(HelpMessage="The name of the network function role.")]
+ [string]
+ $RoleName,
+ [Parameter(HelpMessage="The user data parameters from the customer.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IAny]
+ $UserDataParameter
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionUserConfiguration]::New()
+
+ $Object.NetworkInterface = $NetworkInterface
+ $Object.OSProfileCustomData = $OSProfileCustomData
+ $Object.RoleName = $RoleName
+ $Object.UserDataParameter = $UserDataParameter
+ return $Object
+ }
+}
+
diff --git a/src/ConnectedNetwork/custom/New-AzConnectedNetworkFunctionVendorConfigurationObject.ps1 b/src/ConnectedNetwork/custom/New-AzConnectedNetworkFunctionVendorConfigurationObject.ps1
new file mode 100644
index 000000000000..f06f405c1b45
--- /dev/null
+++ b/src/ConnectedNetwork/custom/New-AzConnectedNetworkFunctionVendorConfigurationObject.ps1
@@ -0,0 +1,65 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a in-memory object for NetworkFunctionVendorConfiguration
+.Description
+Create a in-memory object for NetworkFunctionVendorConfiguration
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionVendorConfiguration
+.Link
+https://docs.microsoft.com/powershell/module/az.ConnectedNetwork/new-AzConnectedNetworkFunctionVendorConfigurationObject
+#>
+function New-AzConnectedNetworkFunctionVendorConfigurationObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionVendorConfiguration')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The network interface configurations.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkInterface[]]
+ $NetworkInterface,
+ [Parameter(HelpMessage="Specifies the name of the administrator account.
For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).")]
+ [string]
+ $OSProfileAdminUsername,
+ [Parameter(HelpMessage="Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes.
**Note: Do not pass any secrets or passwords in customData property**
This property cannot be updated after the VM is created.
customData is passed to the VM to be saved as a file. For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)
For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).")]
+ [string]
+ $OSProfileCustomData,
+ [Parameter(HelpMessage="Indicates if custom data is required to deploy this role.")]
+ [bool]
+ $OSProfileCustomDataRequired,
+ [Parameter(HelpMessage="The name of the vendor network function role.")]
+ [string]
+ $RoleName,
+ [Parameter(HelpMessage="The list of SSH public keys used to authenticate with linux based VMs.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.ISshPublicKey[]]
+ $SshPublicKey
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionVendorConfiguration]::New()
+
+ $Object.NetworkInterface = $NetworkInterface
+ $Object.OSProfileAdminUsername = $OSProfileAdminUsername
+ $Object.OSProfileCustomData = $OSProfileCustomData
+ $Object.OSProfileCustomDataRequired = $OSProfileCustomDataRequired
+ $Object.RoleName = $RoleName
+ $Object.SshPublicKey = $SshPublicKey
+ return $Object
+ }
+}
+
diff --git a/src/ConnectedNetwork/custom/New-AzConnectedNetworkInterfaceIPConfigurationObject.ps1 b/src/ConnectedNetwork/custom/New-AzConnectedNetworkInterfaceIPConfigurationObject.ps1
new file mode 100644
index 000000000000..3f2e5888a719
--- /dev/null
+++ b/src/ConnectedNetwork/custom/New-AzConnectedNetworkInterfaceIPConfigurationObject.ps1
@@ -0,0 +1,65 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a in-memory object for NetworkInterfaceIPConfiguration
+.Description
+Create a in-memory object for NetworkInterfaceIPConfiguration
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkInterfaceIPConfiguration
+.Link
+https://docs.microsoft.com/powershell/module/az.ConnectedNetwork/new-AzConnectedNetworkInterfaceIPConfigurationObject
+#>
+function New-AzConnectedNetworkInterfaceIPConfigurationObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkInterfaceIPConfiguration')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="The list of DNS servers IP addresses.")]
+ [string[]]
+ $DnsServer,
+ [Parameter(HelpMessage="The value of the gateway.")]
+ [string]
+ $Gateway,
+ [Parameter(HelpMessage="The value of the IP address.")]
+ [string]
+ $IPAddress,
+ [Parameter(HelpMessage="IP address allocation method.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.IPAllocationMethod]
+ $IPAllocationMethod,
+ [Parameter(HelpMessage="IP address version.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.IPVersion]
+ $IPVersion,
+ [Parameter(HelpMessage="The value of the subnet.")]
+ [string]
+ $Subnet
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkInterfaceIPConfiguration]::New()
+
+ $Object.DnsServer = $DnsServer
+ $Object.Gateway = $Gateway
+ $Object.IPAddress = $IPAddress
+ $Object.IPAllocationMethod = $IPAllocationMethod
+ $Object.IPVersion = $IPVersion
+ $Object.Subnet = $Subnet
+ return $Object
+ }
+}
+
diff --git a/src/ConnectedNetwork/custom/New-AzConnectedNetworkInterfaceObject.ps1 b/src/ConnectedNetwork/custom/New-AzConnectedNetworkInterfaceObject.ps1
new file mode 100644
index 000000000000..2a9d800f0029
--- /dev/null
+++ b/src/ConnectedNetwork/custom/New-AzConnectedNetworkInterfaceObject.ps1
@@ -0,0 +1,57 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a in-memory object for NetworkInterface
+.Description
+Create a in-memory object for NetworkInterface
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkInterface
+.Link
+https://docs.microsoft.com/powershell/module/az.ConnectedNetwork/new-AzConnectedNetworkInterfaceObject
+#>
+function New-AzConnectedNetworkInterfaceObject {
+ [OutputType('Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkInterface')]
+ [CmdletBinding(PositionalBinding=$false)]
+ Param(
+
+ [Parameter(HelpMessage="A list of IP configurations of the network interface.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkInterfaceIPConfiguration[]]
+ $IPConfiguration,
+ [Parameter(HelpMessage="The MAC address of the network interface.")]
+ [string]
+ $MacAddress,
+ [Parameter(HelpMessage="The name of the network interface.")]
+ [string]
+ $Name,
+ [Parameter(HelpMessage="The type of the VM switch.")]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.VMSwitchType]
+ $VMSwitchType
+ )
+
+ process {
+ $Object = [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkInterface]::New()
+
+ $Object.IPConfiguration = $IPConfiguration
+ $Object.MacAddress = $MacAddress
+ $Object.Name = $Name
+ $Object.VMSwitchType = $VMSwitchType
+ return $Object
+ }
+}
+
diff --git a/src/ConnectedNetwork/custom/README.md b/src/ConnectedNetwork/custom/README.md
new file mode 100644
index 000000000000..2e5822edc269
--- /dev/null
+++ b/src/ConnectedNetwork/custom/README.md
@@ -0,0 +1,41 @@
+# Custom
+This directory contains custom implementation for non-generated cmdlets for the `Az.ConnectedNetwork` module. Both scripts (`.ps1`) and C# files (`.cs`) can be implemented here. They will be used during the build process in `build-module.ps1`, and create cmdlets into the `..\exports` folder. The only generated file into this folder is the `Az.ConnectedNetwork.custom.psm1`. This file should not be modified.
+
+## Info
+- Modifiable: yes
+- Generated: partial
+- Committed: yes
+- Packaged: yes
+
+## Details
+For `Az.ConnectedNetwork` to use custom cmdlets, it does this two different ways. We **highly recommend** creating script cmdlets, as they are easier to write and allow access to the other exported cmdlets. C# cmdlets *cannot access exported cmdlets*.
+
+For C# cmdlets, they are compiled with the rest of the generated low-level cmdlets into the `./bin/Az.ConnectedNetwork.private.dll`. The names of the cmdlets (methods) and files must follow the `[cmdletName]_[variantName]` syntax used for generated cmdlets. The `variantName` is used as the `ParameterSetName`, so use something appropriate that doesn't clash with already created variant or parameter set names. You cannot use the `ParameterSetName` property in the `Parameter` attribute on C# cmdlets. Each cmdlet must be separated into variants using the same pattern as seen in the `generated/cmdlets` folder.
+
+For script cmdlets, these are loaded via the `Az.ConnectedNetwork.custom.psm1`. Then, during the build process, this module is loaded and processed in the same manner as the C# cmdlets. The fundamental difference is the script cmdlets use the `ParameterSetName` attribute and C# cmdlets do not. To create a script cmdlet variant of a generated cmdlet, simply decorate all parameters in the script with the new `ParameterSetName` in the `Parameter` attribute. This will appropriately treat each parameter set as a separate variant when processed to be exported during the build.
+
+## Purpose
+This allows the modules to have cmdlets that were not defined in the REST specification. It also allows combining logic using generated cmdlets. This is a level of customization beyond what can be done using the [readme configuration options](https://github.com/Azure/autorest/blob/master/docs/powershell/options.md) that are currently available. These custom cmdlets are then referenced by the cmdlets created at build-time in the `..\exports` folder.
+
+## Usage
+The easiest way currently to start developing custom cmdlets is to copy an existing cmdlet. For C# cmdlets, copy one from the `generated/cmdlets` folder. For script cmdlets, build the project using `build-module.ps1` and copy one of the scripts from the `..\exports` folder. After that, if you want to add new parameter sets, follow the guidelines in the `Details` section above. For implementing a new cmdlets, at minimum, please keep these parameters:
+- Break
+- DefaultProfile
+- HttpPipelineAppend
+- HttpPipelinePrepend
+- Proxy
+- ProxyCredential
+- ProxyUseDefaultCredentials
+
+These provide functionality to our HTTP pipeline and other useful features. In script, you can forward these parameters using `$PSBoundParameters` to the other cmdlets you're calling within `Az.ConnectedNetwork`. For C#, follow the usage seen in the `ProcessRecordAsync` method.
+
+### Attributes
+For processing the cmdlets, we've created some additional attributes:
+- `Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.DescriptionAttribute`
+ - Used in C# cmdlets to provide a high-level description of the cmdlet. This is propagated to reference documentation via [help comments](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_comment_based_help) in the exported scripts.
+- `Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.DoNotExportAttribute`
+ - Used in C# and script cmdlets to suppress creating an exported cmdlet at build-time. These cmdlets will *not be exposed* by `Az.ConnectedNetwork`.
+- `Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.InternalExportAttribute`
+ - Used in C# cmdlets to route exported cmdlets to the `..\internal`, which are *not exposed* by `Az.ConnectedNetwork`. For more information, see [README.md](..\internal/README.md) in the `..\internal` folder.
+- `Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.ProfileAttribute`
+ - Used in C# and script cmdlets to define which Azure profiles the cmdlet supports. This is only supported for Azure (`--azure`) modules.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Get-AzConnectedNetworkDevice.md b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkDevice.md
new file mode 100644
index 000000000000..a6d2bededec7
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkDevice.md
@@ -0,0 +1,52 @@
+### Example 1: Get-AzConnectedNetworkDevice via Resource Group and Resource name
+```powershell
+PS C:\> Get-AzConnectedNetworkDevice -ResourceGroupName myResources -Name myMecDevice
+
+
+DeviceType : AzureStackEdge
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice
+Location : westcentralus
+Name : myMecDevice
+NetworkFunction : {/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.HybridNetwork/networkFunctions/myVnf1}
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+Status : Registered
+SystemDataCreatedAt : 11/25/2020 5:34:49 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/25/2020 5:58:38 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : Microsoft.HybridNetwork/devices
+
+```
+
+Getting information about the NFM device in resource group myResources with name myMecDevice.
+
+### Example 2: Get-AzConnectedNetworkDevice via Identity
+```powershell
+PS C:\> $mecDevice = @{ DeviceName = "myMecDevice1"; Location = "eastus"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"}
+PS C:\> Get-AzConnectedNetworkDevice -InputObject $mecDevice
+
+
+DeviceType : AzureStackEdge
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice1
+Location : eastus
+Name : myMecDevice1
+NetworkFunction : {/subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/mrg-vmware_sdwan_edge_zones-20211124063650/providers/Microsoft.HybridNetwork/networkFunctions/myEdge1}
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+Status : Registered
+SystemDataCreatedAt : 11/23/2021 10:27:13 PM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/24/2021 7:42:41 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/devices
+
+```
+
+Creating an identity with device name myMecDevice1, resource group myResources and the given subscription. Getting the information about the device using this identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Get-AzConnectedNetworkDeviceRegistrationKey.md b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkDeviceRegistrationKey.md
new file mode 100644
index 000000000000..3b61494eba04
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkDeviceRegistrationKey.md
@@ -0,0 +1,17 @@
+### Example 1: Get-AzConnectedNetworkDeviceRegistrationKey using Resource Group, Resource name
+```powershell
+PS C:\> Get-AzConnectedNetworkDeviceRegistrationKey -DeviceName myMecDevice -ResourceGroupName myResources
+
+eyJNZWNEZXZpY2VUcmFuc2llbnRBdXRoS2V5IjoiMTIzNCIsIk1lY0RldmljZUF1dGhLZXlTdGFydFRpbWUiOiIyMDIxLTExLTIyVDA5OjQ2OjQwLjY0ODExOTFaIiwiU2VydmljZUJ1c1F1ZXVlTmFtZSI6ImFiY2QtMTIzNCIsIkFBREVuZHBvaW50IjpudWxsLCJBQURBdWRpZW5jZSI6bnVsbCwiQXJtUmVzb3VyY2VJZCI6bnVsbCwiTWVjQ29udHJvbGxlckVuZHBvaW50IjoiaHR0cHM6Ly93ZXN0Y2VudHJhbHVzLXByb2QubWVjZGV2aWNlLmF6dXJlLmNvbTo0NDMiLCJEYmVEZXZpY2VJZCI6bnVsbCwiUmVzb3VyY2VVbmlxdWVJZCI6IjEyMy1hYmMtMTIzIiwiU3Vic2NyaXB0aW9uSWQiOiJ4eHh4LTEyMzQteHh4eC0xMjM0IiwiUmVzb3VyY2VHcm91cE5hbWUiOiJzYW1wbGVSR25hbWUiLCJQcm92aWRlck5hbWVzcGFjZSI6Ik1pY3Jvc29mdC5IeWJyaWROZXR3b3JrIiwiUmVzb3VyY2VUeXBlIjoiRGV2aWNlcyIsIlJlc291cmNlVHlwZU5hbWUiOiJJREMtRGV2aWNlNC1XZXN0Q2VudHJhbCJ9
+```
+
+Getting the registration key for NFM device in resource group myResources with resource name myMecDevice. To register the device, use the commandlet Invoke-MecRegister with the registration key in the minishell session.
+
+### Example 2: Get-AzConnectedNetworkDeviceRegistrationKey using Resource Group, Resource name and Subscription Id
+```powershell
+PS C:\> Get-AzConnectedNetworkDeviceRegistrationKey -DeviceName myMecDevice -ResourceGroupName myResources -SubscriptionId xxxxx-00000-xxxxx-00000
+
+eyJNZWNEZXZpY2VUcmFuc2llbnRBdXRoS2V5IjoiMTIzNCIsIk1lY0RldmljZUF1dGhLZXlTdGFydFRpbWUiOiIyMDIxLTExLTIyVDA5OjQ2OjQwLjY0ODExOTFaIiwiU2VydmljZUJ1c1F1ZXVlTmFtZSI6ImFiY2QtMTIzNCIsIkFBREVuZHBvaW50IjpudWxsLCJBQURBdWRpZW5jZSI6bnVsbCwiQXJtUmVzb3VyY2VJZCI6bnVsbCwiTWVjQ29udHJvbGxlckVuZHBvaW50IjoiaHR0cHM6Ly93ZXN0Y2VudHJhbHVzLXByb2QubWVjZGV2aWNlLmF6dXJlLmNvbTo0NDMiLCJEYmVEZXZpY2VJZCI6bnVsbCwiUmVzb3VyY2VVbmlxdWVJZCI6IjEyMy1hYmMtMTIzIiwiU3Vic2NyaXB0aW9uSWQiOiJ4eHh4LTEyMzQteHh4eC0xMjM0IiwiUmVzb3VyY2VHcm91cE5hbWUiOiJzYW1wbGVSR25hbWUiLCJQcm92aWRlck5hbWVzcGFjZSI6Ik1pY3Jvc29mdC5IeWJyaWROZXR3b3JrIiwiUmVzb3VyY2VUeXBlIjoiRGV2aWNlcyIsIlJlc291cmNlVHlwZU5hbWUiOiJJREMtRGV2aWNlNC1XZXN0Q2VudHJhbCJ9
+```
+
+Getting the registration key for NFM device in resource group myResources with resource name myMecDevice. To register the device, use the commandlet Invoke-MecRegister with the registration key in the minishell session.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Get-AzConnectedNetworkFunction.md b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkFunction.md
new file mode 100644
index 000000000000..280e706bd01a
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkFunction.md
@@ -0,0 +1,68 @@
+### Example 1: Get-AzConnectedNetworkFunction via Resource group and Resource name
+```powershell
+PS C:\> Get-AzConnectedNetworkFunction -Name myVnf -ResourceGroupName myResources
+
+
+ContainerConfiguration : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatNetworkFunctionContainerConfigurations
+DeviceId : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMec
+Etag : "0000a530-0000-3400-0000-615c10fa0000"
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/networkFunctions/myVnf
+Location : centraluseuap
+ManagedApplicationId :
+ManagedApplicationParameter : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatManagedApplicationParameters
+Name : myVnf
+ProvisioningState : Failed
+ResourceGroupName : myResources
+ServiceKey : 397a7415-ec52-46b5-892b-f840ba491aab
+SkuName : mySku1
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 10/5/2021 8:45:49 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 10/5/2021 8:46:49 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/networkfunctions
+UserConfiguration : {hpehss}
+VendorName : AffirmedVendor
+VendorProvisioningState : NotProvisioned
+
+```
+
+Getting information about the network function in resource group myResources with resource name myVnf.
+
+### Example 2: Get-AzConnectedNetworkFunction via Identity
+```powershell
+PS C:\> $vnf = @{ NetworkFunctionName = "myVnf1"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"}
+PS C:\> Get-AzConnectedNetworkFunction -InputObject $vnf
+
+
+ContainerConfiguration : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatNetworkFunctionContainerConfigurations
+DeviceId : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMec1
+Etag : "sampleEtagValue"
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/networkFunctions/myVnf1
+Location : eastus
+ManagedApplicationId :
+ManagedApplicationParameter : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatManagedApplicationParameters
+Name : myVnf1
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+ServiceKey : aa11-bb22-cc33-dd44
+SkuName : mySku
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 11/1/2021 11:13:57 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/15/2021 4:53:08 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/networkfunctions
+UserConfiguration : {hpehss}
+VendorName : AffirmedVendor
+VendorProvisioningState : Provisioned
+
+```
+
+Creating an identity with NetworkFunctionName myVnf1, ResourceGroupName myResources and subscription. Getting information about the network function using this identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Get-AzConnectedNetworkFunctionVendor.md b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkFunctionVendor.md
new file mode 100644
index 000000000000..e15056d43b4b
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkFunctionVendor.md
@@ -0,0 +1,24 @@
+### Example 1: Get-AzConnectedNetworkFunctionVendor
+```powershell
+PS C:\> Get-AzConnectedNetworkFunctionVendor
+
+SkuList VendorName
+------- ----------
+{vendor-sku, vendor-sku1, vendor-sku2, vendor-sku3, vendor-sku4, vendor-sku4, vendor-sku5...} myVendor
+{vendor1-sku, vendor1-sku2} myVendor1
+{vendor2-sku1} myVendor2
+```
+
+Getting information about the vendors and their skus
+
+### Example 2: Get-AzConnectedNetworkFunctionVendor via Subscription Id
+```powershell
+PS C:\> Get-AzConnectedNetworkFunctionVendor -SubscriptionId "xxxxx-00000-xxxxx-00000"
+
+SkuList VendorName
+------- ----------
+{vendor1-sku, vendor1-sku2} myVendor1
+{vendor2-sku1} myVendor2
+```
+
+Gets information about the vendors and their skus in the given subscription.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendor.md b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendor.md
new file mode 100644
index 000000000000..c909de371c04
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendor.md
@@ -0,0 +1,44 @@
+### Example 1: Get-AzConnectedNetworkVendor using vendor name
+```powershell
+PS C:\> Get-AzConnectedNetworkVendor -Name myVendor
+
+
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor
+Name : myVendor
+ProvisioningState : Succeeded
+ResourceGroupName :
+Sku :
+SystemDataCreatedAt : 9/7/2021 3:02:02 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 9/7/2021 3:02:03 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : microsoft.hybridnetwork/vendors
+
+```
+
+Getting information about the vendor with vendor name myVendor.
+
+### Example 2: Get-AzConnectedNetworkVendor using Identity
+```powershell
+PS C:\> $vendor = @{ VendorName = "myVendor1"; SubscriptionId = "xxxxx-00000-xxxxx-00000"}
+PS C:\> Get-AzConnectedNetworkVendor -InputObject $vendor
+
+
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor1
+Name : myVendor1
+ProvisioningState : Succeeded
+ResourceGroupName :
+Sku :
+SystemDataCreatedAt : 9/7/2021 3:02:02 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 9/7/2021 3:02:03 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : microsoft.hybridnetwork/vendors
+
+```
+
+Creating an identity with VendorName myVendor1 and the given subscription. Getting information about the vendor using this identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendorFunction.md b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendorFunction.md
new file mode 100644
index 000000000000..bfb8f7818d95
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendorFunction.md
@@ -0,0 +1,50 @@
+### Example 1: Get-AzConnectedNetworkVendorFunction via Location Name, Service Key and Subscription
+```powershell
+PS C:\> Get-AzConnectedNetworkVendorFunction -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor
+
+Id : /subscriptions/xxxx-3333-xxxx-3333/providers/Microsoft.HybridNetwork/locations/centraluseuap/vendors/myVendor/networkfunctions/1b69005b-9168-4d74-a371-d4c4f6a521d
+ 0
+Name : 1234-abcd-4321-dcba
+NetworkFunctionVendorConfiguration : {Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.SshPublicKey}
+ProvisioningState : Succeeded
+ResourceGroupName :
+SkuName : mySku
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 11/25/2021 2:04:28 PM
+SystemDataCreatedBy : xxxxx-11111-xxxxx-11111
+SystemDataCreatedByType : Application
+SystemDataLastModifiedAt : 11/25/2021 2:04:28 PM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : microsoft.hybridnetwork/locations/vendors/networkfunctions
+VendorProvisioningState : NotProvisioned
+
+```
+
+Getting the information of a vendor network function with service key 1234-abcd-4321-dcba, vendor name myVendor, location centraluseuap and subscription. Service key can be obtained when getting details of network funcrtion or when creating a network function.
+
+### Example 2: Get-AzConnectedNetworkVendorFunction via Identity
+```powershell
+PS C:\> $vendorNF = @{ ServiceKey = "1234-abcd-4321-dcba"; VendorName = "myVendor"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"}
+PS C:\> Get-AzConnectedNetworkVendorFunction -InputObject $vendorNF
+
+Id : /subscriptions/xxxx-3333-xxxx-3333/providers/Microsoft.HybridNetwork/locations/centraluseuap/vendors/myVendor/networkfunctions/1b69005b-9168-4d74-a371-d4c4f6a521d
+ 0
+Name : 1234-abcd-4321-dcba
+NetworkFunctionVendorConfiguration : {Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.SshPublicKey}
+ProvisioningState : Succeeded
+ResourceGroupName :
+SkuName : mySku
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 11/25/2021 2:04:44 PM
+SystemDataCreatedBy : xxxxx-11111-xxxxx-11111
+SystemDataCreatedByType : Application
+SystemDataLastModifiedAt : 11/25/2021 2:36:28 PM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : microsoft.hybridnetwork/locations/vendors/networkfunctions
+VendorProvisioningState : Provisioned
+
+```
+
+Creating a identity with service key 1234-abcd-4321-dcba, vendor name myVendor, location centraluseuap and subscription. Getting the information of a vendor network function using this identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendorFunctionRoleInstance.md b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendorFunctionRoleInstance.md
new file mode 100644
index 000000000000..b1719acff08a
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendorFunctionRoleInstance.md
@@ -0,0 +1,42 @@
+### Example 1: Get-AzConnectedNetworkVendorFunctionRoleInstance via Location, Service key, vendor name and role name
+```powershell
+PS C:\> Get-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name hpehss
+
+Id :
+Name : hpehss
+OperationalState : Running
+ProvisioningState :
+ResourceGroupName :
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Type :
+
+```
+
+Getting the role instance information of role hpehss with Location centraluseuap, Service key 1234-abcd-4321-dcba and vendor name myVendor.
+
+### Example 2: Get-AzConnectedNetworkVendorFunctionRoleInstance via Identity
+```powershell
+PS C:\> $role = @{ RoleInstanceName = "hpehss"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"}
+PS C:\> Get-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role
+
+Id :
+Name : hpehss
+OperationalState : Stopped
+ProvisioningState :
+ResourceGroupName :
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Type :
+
+```
+
+Getting the role instance information of role hpehss with Location centraluseuap, Service key 1234-abcd-4321-dcba, vendor name myVendor and the given subscription.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendorSku.md b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendorSku.md
new file mode 100644
index 000000000000..50c499e8b466
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendorSku.md
@@ -0,0 +1,44 @@
+### Example 1: Get-AzConnectedNetworkVendorSku using Vendor name and Subscription Id
+```powershell
+PS C:\> Get-AzConnectedNetworkVendorSku -VendorName myVendor -SubscriptionId xxxxx-22222-xxxxx-22222
+
+DeploymentMode : PrivateEdgeZone
+Id : /subscriptions/xxxxx-22222-xxxxx-22222/providers/Microsoft.HybridNetwork/vendors/myVendor/VendorSkus/mySku
+ManagedApplicationParameter : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.VendorSkuPropertiesFormatManagedApplicationParameters
+ManagedApplicationTemplate : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.VendorSkuPropertiesFormatManagedApplicationTemplate
+Name : mySku
+NetworkFunctionTemplateNetworkFunctionRoleConfiguration : {Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.SshPublicKey}
+NetworkFunctionType :
+Preview : True
+ProvisioningState : Succeeded
+ResourceGroupName :
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 11/4/2020 3:35:33 PM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/4/2020 3:43:58 PM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : Microsoft.HybridNetwork/vendors/VendorSkus
+
+DeploymentMode : PrivateEdgeZone
+Id : /subscriptions/xxxxx-22222-xxxxx-22222/providers/Microsoft.HybridNetwork/vendors/myVendor/vendorskus/mySku_1
+ManagedApplicationParameter : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.VendorSkuPropertiesFormatManagedApplicationParameters
+ManagedApplicationTemplate : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.VendorSkuPropertiesFormatManagedApplicationTemplate
+Name : mySku_1
+NetworkFunctionTemplateNetworkFunctionRoleConfiguration : {Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.SshPublicKey}
+NetworkFunctionType :
+Preview : True
+ProvisioningState : Failed
+ResourceGroupName :
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 11/11/2020 2:25:32 PM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/11/2020 2:25:32 PM
+SystemDataLastModifiedBy : user@microsoft.com
+SystemDataLastModifiedByType : User
+Type : Microsoft.HybridNetwork/vendors/vendorskus
+```
+
+Fetching all the sku of vendor myVendor in the given subscription.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendorSkuPreview.md b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendorSkuPreview.md
new file mode 100644
index 000000000000..523739b675b7
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Get-AzConnectedNetworkVendorSkuPreview.md
@@ -0,0 +1,40 @@
+### Example 1: Get-AzConnectedNetworkVendorSkuPreview using sku name, vendor name and preview subscription
+```powershell
+PS C:\> Get-AzConnectedNetworkVendorSkuPreview -SkuName mySku -VendorName myVendor -PreviewSubscription xxxxx-22222-xxxxx-22222
+
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor/vendorSkus/mySku/previewSubscriptions/xxxxx-22222-xxxxx-22222
+Name : xxxxx-22222-xxxxx-22222
+ProvisioningState : Succeeded
+ResourceGroupName :
+SystemDataCreatedAt : 11/24/2021 4:41:22 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/24/2021 4:41:22 AM
+SystemDataLastModifiedBy : user@microsoft.com
+SystemDataLastModifiedByType : User
+Type : microsoft.hybridnetwork/vendors/vendorskus/previewsubscriptions
+
+```
+
+Getting the preview information of a vendor sku mySku with vendor myVendor for the specified subscription.
+
+### Example 2: Get-AzConnectedNetworkVendorSkuPreview via Identity
+```powershell
+PS C:\> $skuPreview = @{ SkuName = "mySku"; VendorName = "myVendor"; PreviewSubscription = "xxxxx-22222-xxxxx-22222"; SubscriptionId = "xxxxx-00000-xxxxx-00000"}
+PS C:\> Get-AzConnectedNetworkVendorSkuPreview -InputObject $skuPreview
+
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor/vendorSkus/mySku/previewSubscriptions/xxxxx-22222-xxxxx-22222
+Name : xxxxx-22222-xxxxx-22222
+ProvisioningState : Succeeded
+ResourceGroupName :
+SystemDataCreatedAt : 11/24/2021 4:41:22 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/24/2021 4:41:22 AM
+SystemDataLastModifiedBy : user@microsoft.com
+SystemDataLastModifiedByType : User
+Type : microsoft.hybridnetwork/vendors/vendorskus/previewsubscriptions
+
+```
+
+Creating a identity with SkuName mySku, VendorName myVendor, preview subscription and subscription id. Getting the preview information of this vendor sku using this identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/New-AzConnectedNetworkAzureStackEdgeObject.md b/src/ConnectedNetwork/examples/New-AzConnectedNetworkAzureStackEdgeObject.md
new file mode 100644
index 000000000000..889cdc425206
--- /dev/null
+++ b/src/ConnectedNetwork/examples/New-AzConnectedNetworkAzureStackEdgeObject.md
@@ -0,0 +1,9 @@
+### Example 1: Create a in-memory stored AzureStackEdgeFormat object for creating the device
+```powershell
+PS C:\> New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse1"
+
+eviceType ProvisioningState Status
+---------- ----------------- ------
+AzureStackEdge
+```
+Create a in-memory stored AzureStackEdgeFormat object for creating the device
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/New-AzConnectedNetworkDevice.md b/src/ConnectedNetwork/examples/New-AzConnectedNetworkDevice.md
new file mode 100644
index 000000000000..c4df5568bbb8
--- /dev/null
+++ b/src/ConnectedNetwork/examples/New-AzConnectedNetworkDevice.md
@@ -0,0 +1,51 @@
+### Example 1: New-AzConnectedNetworkDevice
+```powershell
+PS C:\> $ase = New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse"
+PS C:\> New-AzConnectedNetworkDevice -Name "myMecDevice" -ResourceGroupName "myResources" -Location "eastus" -Property $ase
+
+DeviceType : AzureStackEdge
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice
+Location : eastus
+Name : myMecDevice
+NetworkFunction :
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+Status : NotRegistered
+SystemDataCreatedAt : 11/25/2021 4:47:45 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : myVendor
+SystemDataLastModifiedAt : 11/25/2021 4:47:47 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/devices
+
+```
+
+Create a device with Device Name with resource myMecDevice name in Resource Group myResources, Location eastus with Ase Device Id /subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse.
+
+### Example 2: New-AzConnectedNetworkDevice
+```powershell
+PS C:\> $ase = New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse1"
+PS C:\> New-AzConnectedNetworkDevice -Name "myMecDevice1" -ResourceGroupName "myResources" -Location "eastus2euap" -Property $ase -SubscriptionId xxxxx-00000-xxxxx-00000
+
+DeviceType : AzureStackEdge
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice1
+Location : eastus
+Name : myMecDevice1
+NetworkFunction :
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+Status : Registered
+SystemDataCreatedAt : 11/25/2021 4:49:34 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : myVendor
+SystemDataLastModifiedAt : 11/25/2021 4:57:47 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/devices
+
+```
+
+Create a device with Device Name myMecDevice1 in Resource Group myResources, Location eastus2euap, SubscriptionId and Ase Device Id /subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse1.
diff --git a/src/ConnectedNetwork/examples/New-AzConnectedNetworkFunction.md b/src/ConnectedNetwork/examples/New-AzConnectedNetworkFunction.md
new file mode 100644
index 000000000000..31c31898d1ab
--- /dev/null
+++ b/src/ConnectedNetwork/examples/New-AzConnectedNetworkFunction.md
@@ -0,0 +1,30 @@
+### Example 1: 1-step VNF deployment
+```powershell
+PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan"
+PS C:\> $customData = "I2Nsb3VkLWNvbmZpZwp3cml0ZV9maWxlczoKLSBwYXRoOiAvdmFyL2xpYi9jbG91ZC9paHNzY29uZmlnLmpzb24KICBwZXJtaXNzaW9uczogJzA2NDQnCiAgb3duZXI6IHJvb3Q6cm9vdAogIGNvbnRlbnQ6IHwKICAgIHsKICAgICAgICAgICAiRGlhbWV0ZXJHVyI6ewogICAgICAgICAgICAgICAgICAiSE9TVElQQUREUkVTUyI6IjEyOC4wLjAuMSIsCiAgICAgICAgICAgICAgICAgICJGUUROIjoiaHNzLmF5VmVuZG9yLmNvbSIsCiAgICAgICAgICAgICAgICAgICJSRUFMTSI6Imhzcy5lcGMubXlWZW5kb3I5OS5teVZlbmRvci4zZ3BwbmV0d29yay5vcmciCiAgICAgICAgICAgfSwKICAgICAgICAgICAiREdXQmluZEFkZHIiOnsKICAgICAgICAgICAgICAgICAgIkFERFJFU1MiOiIxMjguMC4wLjIiLAogICAgICAgICAgICAgICAgICAiVFJBTlNQT1JUIjoiU0NUUCIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjozODY4CiAgICAgICAgICAgfSwKICAgICAgICAgICAiU05NUFRhcmdldCI6ewogICAgICAgICAgICAgICAgICAiSE9TVCI6IjEyOC4wLjAuMyIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjoiMTYyIiwKICAgICAgICAgICAgICAgICAgIlRSSUdHRVJfTEVWRUwiOiIzIgogICAgICAgICAgIH0sCiAgICAgICAgICAgIk1hbmFnZW1lbnQiOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNCIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjEvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAogICAgICAgICAgICJMYW4iOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNSIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjAvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAoKICAgIH0JCSAgCg=="
+PS C:\> $userconf = New-AzConnectedNetworkFunctionUserConfigurationObject -NetworkInterface $ip1,$ip2 -OSProfileCustomData $customData -RoleName "hpehss"
+PS C:\> New-AzConnectedNetworkFunction -Name vnf_Test1 -ResourceGroupName myResources -Location "eastus" -DeviceId /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/mec_2111_020 -SkuName Affirmed-HSS-0527 -UserConfiguration $userconf -VendorName "AffirmedVendor"
+
+Location Name Etag ResourceGroupName
+-------- ---- ---- -----------------
+eastus vnf_Test1 "SampleEtagvalue" myResources
+```
+
+Creating network interfaces with dynamic method allocation and ip version to IPv4. And using these to create two network configuration objects with vm switch type. Then using that to create user configuration object with role name hpehss, custom data and network interface array. Then creating NF using userconfiguration, vendor name, sku name, device name etc.
+
+### Example 2: 2-step VNF deployment
+```powershell
+PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan"
+PS C:\> $userconfig2 = New-AzConnectedNetworkFunctionUserConfigurationObject -NetworkInterface $ip1,$ip2 -RoleName "hpehss"
+PS C:\> $vnf1 = New-AzConnectedNetworkFunction -Name vnftest11 -DeviceId /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/mec_autotest_01 -ResourceGroupName myResources -SubscriptionId xxxxx-00000-xxxxx-00000 -Location eastus2euap -SkuName staticSku -VendorName hssvendor01 -UserConfiguration $userconfig2 -verbose
+PS C:\> $v2.ServiceKey
+abcd-sample-service-key-val-1234
+```
+
+Same as 1 step workflow other than no custom data field in User Configuration object. Creating a NF and will be using the service key obtained here to deploy vendor NF.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/New-AzConnectedNetworkFunctionRoleConfigurationObject.md b/src/ConnectedNetwork/examples/New-AzConnectedNetworkFunctionRoleConfigurationObject.md
new file mode 100644
index 000000000000..d715351a9e78
--- /dev/null
+++ b/src/ConnectedNetwork/examples/New-AzConnectedNetworkFunctionRoleConfigurationObject.md
@@ -0,0 +1,17 @@
+### Example 1: New-AzConnectedNetworkFunctionUserConfigurationObject
+```powershell
+PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan"
+PS C:\> $keyData = @{keyData = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMpVbBgu0kftv1k+z1c3NtcB5CVDoo/X9X1LE2JUjlLlo0luEkFGJk61i53BhiTSTeRmQXN8hAZ7sn4MDUmZK7fWcHouZ2fsJo+ehses3wQPLubWBFw2L/hoSTyXifXMbEBu9SxHgqf1CEKQcvdNiWf4U7npXwjweXW9DtsF5E7h4kxhKJKFI4sNFTIX0IwUB15QEVHoBs92kDwH3fBH3kZZCMBJE/u6kT+XB22crRKkIGlp3a9gcogtOCvP+3xmsP7hjw5+nHxMUwkc/6kYyfTeLwvfI4xrTWpnB5xufts5LW5/U5GOXVg97ix9EXgiV0czThowG5K2xQ649UlJb"; path = $Null}
+PS C:\> $key = @( $keyData)
+PS C:\> $role = New-AzConnectedNetworkFunctionRoleConfigurationObject -NetworkInterface $ip1,$ip2 -OSDiskName Disk1 -OSDiskOstype Linux -OSDiskSizeGb 40 -OSProfileCustomDataRequired $False -OSProfileAdminUsername MecUser -RoleName hpehss -RoleType VirtualMachine -VirtualMachineSize "Standard_D3_v2" -SshPublicKey $key -StorageProfileDataDisk $storage -VhdUri "https://mecvdrvhd.blob.core.windows/myvhd.vhd"
+
+RoleName RoleType VirtualMachineSize
+-------- -------- ------------------
+hpehss VirtualMachine Standard_D3_v2
+
+```
+
+Creating 2 ip configuration objects (ipconf1 and ipconf2) with dynamic allocation method and IPv4. Using these to create network interface objects with ipconfiguration $ipconf1 and $ipconf2, interface name as mrmmanagementnic1 and mrmlannic1 and switch type as management and lan, respectively. Storing the os profile key Data in key array. And creating network function user configuration object from the network interface objects, key data and role name hpehss.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/New-AzConnectedNetworkFunctionUserConfigurationObject.md b/src/ConnectedNetwork/examples/New-AzConnectedNetworkFunctionUserConfigurationObject.md
new file mode 100644
index 000000000000..b19390152078
--- /dev/null
+++ b/src/ConnectedNetwork/examples/New-AzConnectedNetworkFunctionUserConfigurationObject.md
@@ -0,0 +1,11 @@
+### Example 1: New-AzConnectedNetworkFunction
+```powershell
+PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "LAN"
+PS C:\> $customData = "I2Nsb3VkLWNvbmZpZwp3cml0ZV9maWxlczoKLSBwYXRoOiAvdmFyL2xpYi9jbG91ZC9paHNzY29uZmlnLmpzb24KICBwZXJtaXNzaW9uczogJzA2NDQnCiAgb3duZXI6IHJvb3Q6cm9vdAogIGNvbnRlbnQ6IHwKICAgIHsKICAgICAgICAgICAiRGlhbWV0ZXJHVyI6ewogICAgICAgICAgICAgICAgICAiSE9TVElQQUREUkVTUyI6IjEyOC4wLjAuMSIsCiAgICAgICAgICAgICAgICAgICJGUUROIjoiaHNzLmF5VmVuZG9yLmNvbSIsCiAgICAgICAgICAgICAgICAgICJSRUFMTSI6Imhzcy5lcGMubXlWZW5kb3I5OS5teVZlbmRvci4zZ3BwbmV0d29yay5vcmciCiAgICAgICAgICAgfSwKICAgICAgICAgICAiREdXQmluZEFkZHIiOnsKICAgICAgICAgICAgICAgICAgIkFERFJFU1MiOiIxMjguMC4wLjIiLAogICAgICAgICAgICAgICAgICAiVFJBTlNQT1JUIjoiU0NUUCIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjozODY4CiAgICAgICAgICAgfSwKICAgICAgICAgICAiU05NUFRhcmdldCI6ewogICAgICAgICAgICAgICAgICAiSE9TVCI6IjEyOC4wLjAuMyIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjoiMTYyIiwKICAgICAgICAgICAgICAgICAgIlRSSUdHRVJfTEVWRUwiOiIzIgogICAgICAgICAgIH0sCiAgICAgICAgICAgIk1hbmFnZW1lbnQiOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNCIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjEvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAogICAgICAgICAgICJMYW4iOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNSIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjAvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAoKICAgIH0JCSAgCg=="
+PS C:\> $userconf = New-AzConnectedNetworkFunctionUserConfigurationObject -NetworkInterface $ip1,$ip2 -OSProfileCustomData $customData -RoleName "hpehss"
+```
+
+Creating network interfaces with dynamic method allocation and ip version to IPv4. And using these to create two network configuration objects with vm switch type. Then using that to create user configuration object with role name hpehss, custom data and network interface array.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/New-AzConnectedNetworkFunctionVendorConfigurationObject.md b/src/ConnectedNetwork/examples/New-AzConnectedNetworkFunctionVendorConfigurationObject.md
new file mode 100644
index 000000000000..60d7cbd66bba
--- /dev/null
+++ b/src/ConnectedNetwork/examples/New-AzConnectedNetworkFunctionVendorConfigurationObject.md
@@ -0,0 +1,13 @@
+### Example 1: New-AzConnectedNetworkFunctionVendorConfigurationObject
+```powershell
+PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan"
+PS C:\> $keyData = @{keyData = "ssh-rsa\AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMpVbBgu0kftv1k+z1c3NtcB5CVDoo/X9X1LE2JUjlLlo0luEkFGJk61i53BhiTSTeRmQXN8hAZ7sn4MDUmZK7fWcHouZ2fsJo+ehses3wQPLubWBFw2L/hoSTyXifXMbEBu9SxHgqf1CEKQcvdNiWf4U7npXwjweXW9DtsF5E7h4kxhKJKFI4sNFTIX0IwUB15QEVHoBs92kDwH3fBH3kZZCMBJE/u6kT+XB22crRKkIGlp3a9gcogtOCvP+3xmsP7hjw5+nHxMUwkc/6kYyfTeLwvfI4xrTWpnB5xufts5LW5/U5GOXVg97ix9EXgiV0czThowG5K2xQ649UlJb redmond\userk@n1-azuredev1"; path = $Null}
+PS C:\> $keys = @{ }
+PS C:\> $key += $keyData
+PS C:\> $vendorconf = New-AzConnectedNetworkFunctionVendorConfigurationObject -NetworkInterface $ip1,$ip2 -RoleName hpehss -OSProfileAdminUsername MecUser -OSProfileCustomData $customData -OSProfileCustomDataRequired $True -SshPublicKey $key
+```
+
+Creating network interfaces with dynamic method allocation and ip version to IPv4. And using these to create two network configuration objects with vm switch type. Creating a ssh key identity, Then using those to create vendor configuration object with role name hpehss, custom data, keyData and network interface array, which will be used in vendor NF creation.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/New-AzConnectedNetworkInterfaceIPConfigurationObject.md b/src/ConnectedNetwork/examples/New-AzConnectedNetworkInterfaceIPConfigurationObject.md
new file mode 100644
index 000000000000..091f321d204f
--- /dev/null
+++ b/src/ConnectedNetwork/examples/New-AzConnectedNetworkInterfaceIPConfigurationObject.md
@@ -0,0 +1,10 @@
+### Example 1: Create a in-memory object for NetworkInterfaceIPConfiguration
+```powershell
+PS C:\> New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+
+DnsServer Gateway IPAddress IPAllocationMethod IPVersion Subnet
+--------- ------- --------- ------------------ --------- ------
+ Dynamic IPv4
+```
+
+Create a in-memory object for NetworkInterfaceIPConfiguration
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/New-AzConnectedNetworkInterfaceObject.md b/src/ConnectedNetwork/examples/New-AzConnectedNetworkInterfaceObject.md
new file mode 100644
index 000000000000..a1282471dad8
--- /dev/null
+++ b/src/ConnectedNetwork/examples/New-AzConnectedNetworkInterfaceObject.md
@@ -0,0 +1,10 @@
+### Example 1: Create a in-memory object for NetworkInterface
+```powershell
+PS C:\> New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+
+MacAddress Name VMSwitchType
+---------- ---- ------------
+ mrmmanagementnic1 Management
+```
+
+Create a in-memory object for NetworkInterface
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/New-AzConnectedNetworkVendor.md b/src/ConnectedNetwork/examples/New-AzConnectedNetworkVendor.md
new file mode 100644
index 000000000000..1649b17d3036
--- /dev/null
+++ b/src/ConnectedNetwork/examples/New-AzConnectedNetworkVendor.md
@@ -0,0 +1,41 @@
+### Example 1: New-AzConnectedNetworkVendor
+```powershell
+PS C:\> New-AzConnectedNetworkVendor -Name myVendor
+
+
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor
+Name : myVendor
+ProvisioningState : Succeeded
+ResourceGroupName :
+Sku :
+SystemDataCreatedAt : 11/23/2021 6:18:55 PM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/23/2021 6:19:08 PM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : microsoft.hybridnetwork/vendors
+```
+
+Creating a vendor with name myVendor.
+
+### Example 2: New-AzConnectedNetworkVendor with SubscriptionId
+```powershell
+PS C:\> New-AzConnectedNetworkVendor -Name myVendor2 -SubscriptionId xxxxx-22222-xxxxx-22222
+
+
+Id : /subscriptions/xxxxx-22222-xxxxx-22222/providers/Microsoft.HybridNetwork/vendors/myVendor2
+Name : myVendor2
+ProvisioningState : Succeeded
+ResourceGroupName :
+Sku :
+SystemDataCreatedAt : 11/23/2021 6:20:28 PM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/23/2021 6:20:32 PM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : microsoft.hybridnetwork/vendors
+```
+
+Creating a vendor with name myVendor2 in xxxxx-22222-xxxxx-22222 subscription.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/New-AzConnectedNetworkVendorFunction.md b/src/ConnectedNetwork/examples/New-AzConnectedNetworkVendorFunction.md
new file mode 100644
index 000000000000..cc0cdcfb2c68
--- /dev/null
+++ b/src/ConnectedNetwork/examples/New-AzConnectedNetworkVendorFunction.md
@@ -0,0 +1,14 @@
+### Example 1: New-AzConnectedNetworkVendorFunction
+```powershell
+PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan"
+PS C:\> $keyData = @{keyData = "ssh-rsa\AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMpVbBgu0kftv1k+z1c3NtcB5CVDoo/X9X1LE2JUjlLlo0luEkFGJk61i53BhiTSTeRmQXN8hAZ7sn4MDUmZK7fWcHouZ2fsJo+ehses3wQPLubWBFw2L/hoSTyXifXMbEBu9SxHgqf1CEKQcvdNiWf4U7npXwjweXW9DtsF5E7h4kxhKJKFI4sNFTIX0IwUB15QEVHoBs92kDwH3fBH3kZZCMBJE/u6kT+XB22crRKkIGlp3a9gcogtOCvP+3xmsP7hjw5+nHxMUwkc/6kYyfTeLwvfI4xrTWpnB5xufts5LW5/U5GOXVg97ix9EXgiV0czThowG5K2xQ649UlJb redmond\user@n1-azuredev1"; path = $Null}
+PS C:\> $keys = @{ }
+PS C:\> $key += $keyData
+PS C:\> $vendorconf = New-AzConnectedNetworkFunctionVendorConfigurationObject -NetworkInterface $ip1,$ip2 -RoleName hpehss -OSProfileAdminUsername MecUser -OSProfileCustomData $customData -OSProfileCustomDataRequired $True -SshPublicKey $key
+PS C:\> $vendorvnf1 = New-AzConnectedNetworkVendorFunction -LocationName eastus2euap -ServiceKey b78d39-xxxx-xxxx-00946c5 -SubscriptionId xxxx-4444-xxxx-4444 -VendorName myVendor -VendorConfiguration $vendorconf -SkuType EvolvedPacketCore -VendorProvisioningState Provisioning
+```
+
+Creating network interfaces with dynamic method allocation and ip version to IPv4. And using these to create two network configuration objects with vm switch type. Creating a ssh key identity, Then using those to create vendor configuration object with role name hpehss, custom data, keyData and network interface array. Using this to create vendor NF with the specified service key, vendor subscription, location eastus2euap, vendor name myVendor, sku type EvolvedPacketCore, vendor provisioning state Provisioning.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/New-AzConnectedNetworkVendorSku.md b/src/ConnectedNetwork/examples/New-AzConnectedNetworkVendorSku.md
new file mode 100644
index 000000000000..4d915a821a47
--- /dev/null
+++ b/src/ConnectedNetwork/examples/New-AzConnectedNetworkVendorSku.md
@@ -0,0 +1,8 @@
+### Example 1: New-AzConnectedNetworkVendorSku
+```powershell
+PS C:\> $role = New-AzConnectedNetworkFunctionRoleConfigurationObject -NetworkInterface $ip1,$ip2 -OSDiskName NetFoundry -OSDiskOstype Linux -OSDiskSizeGb 40 -OSProfileCustomDataRequired $False -OSProfileAdminUsername MecUser -RoleName hpehss -RoleType VirtualMachine -VirtualMachineSize "Standard_D3_v2" -SshPublicKey $key -StorageProfileDataDisk $storage -VhdUri "https://mecvdrvhd.blob.core.windows/myvhd.vhd"
+PS C:\> New-AzConnectedNetworkVendorSku -SkuName sku1 -VendorName myVendor -SubscriptionId xxxxx-22222-xxxxx-22222 -SkuType VirtualMachine -DeploymentMode PrivateEdgeZone -NetworkFunctionRoleConfigurationType @($role)
+
+```
+
+Creating NF role configuration object wuth the specified details. Using this to create sku with sku name sku1, vendor name myVendor, sku type VirtualMachine, deployment type PrivateEdgeZone.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/New-AzConnectedNetworkVendorSkuPreview.md b/src/ConnectedNetwork/examples/New-AzConnectedNetworkVendorSkuPreview.md
new file mode 100644
index 000000000000..a9c2f17a8b9f
--- /dev/null
+++ b/src/ConnectedNetwork/examples/New-AzConnectedNetworkVendorSkuPreview.md
@@ -0,0 +1,19 @@
+### Example 1: New-AzConnectedNetworkVendorSkuPreview using preview subscription, sku name, vendor name and subscription
+```powershell
+PS C:\> New-AzConnectedNetworkVendorSkuPreview -PreviewSubscription xxxxx-00000-xxxxx-00000 -SkuName mySku -VendorName myVendor -SubscriptionId xxxxx-22222-xxxxx-22222
+
+Id : /subscriptions/xxxxx-22222-xxxxx-22222/providers/Microsoft.HybridNetwork/vendors/myVendor/vendorSkus/mySku/previewSubscriptions/xxxxx-00000-xxxxx-00000
+Name : xxxxx-00000-xxxxx-00000
+ProvisioningState : Succeeded
+ResourceGroupName :
+SystemDataCreatedAt : 12/6/2021 5:37:35 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 12/6/2021 5:37:35 AM
+SystemDataLastModifiedBy : user@microsoft.com
+SystemDataLastModifiedByType : User
+Type : microsoft.hybridnetwork/vendors/vendorskus/previewsubscriptions
+
+```
+
+Creating preview subscription for subscription xxxxx-00000-xxxxx-00000 of a vendor sku mySku with vendor name myVendor, which is allowed to deploy network function.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkDevice.md b/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkDevice.md
new file mode 100644
index 000000000000..c6b610a9bc35
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkDevice.md
@@ -0,0 +1,16 @@
+### Example 1: Remove-AzConnectedNetworkDevice via resource name and resource group
+```powershell
+PS C:\> Remove-AzConnectedNetworkDevice -Name myMecDevice -ResourceGroupName myResources
+
+```
+
+Deleting the NFM device with device name myMecDevice in resource group myResources.
+
+### Example 2: Remove-AzConnectedNetworkDevice via Identity
+```powershell
+PS C:\> $mecDevice = Get-AzConnectedNetworkDevice -Name myMecDevice2 -ResourceGroupName myResources
+PS C:\> Remove-AzConnectedNetworkDevice -InputObject $mecDevice
+
+```
+
+Creating an identity with name myMecDevice2 and resource group name myResources. Deleting the NFM device with the given identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkFunction.md b/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkFunction.md
new file mode 100644
index 000000000000..2378957f6601
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkFunction.md
@@ -0,0 +1,16 @@
+### Example 1: Remove-AzConnectedNetworkFunction via Resource Group and Resource name
+```powershell
+PS C:\> Remove-AzConnectedNetworkFunction -ResourceGroupName myResources -Name myVnf
+
+```
+
+Deleting the Network Function in Resource Group myResources with name myVnf.
+
+### Example 2: Remove-AzConnectedNetworkFunction via Identity
+```powershell
+PS C:\> $vnf = Get-AzConnectedNetworkFunction -ResourceGroupName myResources -Name myVnf1
+PS C:\> Remove-AzConnectedNetworkFunction -InputObject $vnf
+
+```
+
+Creating an identity with name myVnf1 and resource group name myResources. Deleting the Network Function with the given Identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkVendor.md b/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkVendor.md
new file mode 100644
index 000000000000..4be7bdb56bfa
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkVendor.md
@@ -0,0 +1,16 @@
+### Example 1: Remove-AzConnectedNetworkVendor via vendor name
+```powershell
+PS C:\> Remove-AzConnectedNetworkVendor -Name MyVendor
+
+```
+
+Deleting the vendor with name MyVendor
+
+### Example 2: Remove-AzConnectedNetworkVendor via InputObject
+```powershell
+PS C:\> $vendor = Get-AzConnectedNetworkVendor -Name MyVendor1
+PS C:\> Remove-AzConnectedNetworkVendor -InputObject $vendor
+
+```
+
+Deleting the vendor with name MyVendor1
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkVendorSku.md b/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkVendorSku.md
new file mode 100644
index 000000000000..b7168fc307e6
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkVendorSku.md
@@ -0,0 +1,16 @@
+### Example 1: Remove-AzConnectedNetworkVendorSku via Sku name and Vendor name
+```powershell
+PS C:\> Remove-AzConnectedNetworkVendorSku -SkuName MySku -VendorName MyVendor
+
+```
+
+Deleting the sku MySku with Vendor name MyVendor.
+
+### Example 2: Remove-AzConnectedNetworkVendorSku via Identity
+```powershell
+$sku = Get-AzConnectedNetworkVendorSku -SkuName MySku1 -VendorName MyVendor
+PS C:\> Remove-AzConnectedNetworkVendorSku -InputObject $sku
+
+```
+
+Creating an identity with sku name MySku1 and vendor name MyVendor. Deleting the sku with the given Identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkVendorSkuPreview.md b/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkVendorSkuPreview.md
new file mode 100644
index 000000000000..13ed4a333d25
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Remove-AzConnectedNetworkVendorSkuPreview.md
@@ -0,0 +1,16 @@
+### Example 1: Remove-AzConnectedNetworkVendorSkuPreview via sku name, vendor name and preview subscription
+```powershell
+PS C:\> Remove-AzConnectedNetworkVendorSkuPreview -SkuName mySku -VendorName myVendor -PreviewSubscription xxxxx-22222-xxxxx-22222
+
+```
+
+Deleting the preview information of sku mySku with vendor name myVendor for the given preview subscription.
+
+### Example 2: Remove-AzConnectedNetworkVendorSkuPreview via Identity
+```powershell
+PS C:\> $sku = Get-AzConnectedNetworkVendorSkuPreview -SkuName mySku1 -VendorName myVendor -PreviewSubscription xxxxx-22222-xxxxx-22222
+PS C:\> Remove-AzConnectedNetworkVendorSkuPreview -InputObject $sku
+
+```
+
+Creating an identity with skuname mySku1, vendor name myVendor and preview subscription. Deleting the preview information using the given identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Restart-AzConnectedNetworkVendorFunctionRoleInstance.md b/src/ConnectedNetwork/examples/Restart-AzConnectedNetworkVendorFunctionRoleInstance.md
new file mode 100644
index 000000000000..a73d2248a69f
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Restart-AzConnectedNetworkVendorFunctionRoleInstance.md
@@ -0,0 +1,16 @@
+### Example 1: Restart-AzConnectedNetworkVendorFunctionRoleInstance via location, serviceKey, vendor name and role instance name
+```powershell
+PS C:\> Restart-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name role1
+
+```
+
+Restarting a role instance of a vendor network function with the specified serviceKey, location centraluseuap, vendor name myVendor and role instance name role1.
+
+### Example 2: Restart-AzConnectedNetworkVendorFunctionRoleInstance via Identity
+```powershell
+PS C:\> $role = @{ RoleInstanceName = "role1"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"}
+PS C:\> Restart-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role
+
+```
+
+Creating an identity with role instance name role1, location centraluseuap, vendor name myVendor specified subscription, serviceKey. Restarting a role instance with the given identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Start-AzConnectedNetworkVendorFunctionRoleInstance.md b/src/ConnectedNetwork/examples/Start-AzConnectedNetworkVendorFunctionRoleInstance.md
new file mode 100644
index 000000000000..b4cdea3f3e72
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Start-AzConnectedNetworkVendorFunctionRoleInstance.md
@@ -0,0 +1,16 @@
+### Example 1: Start-AzConnectedNetworkVendorFunctionRoleInstance via location, serviceKey, vendor name and role instance name
+```powershell
+PS C:\> Start-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name role1
+
+```
+
+Starting a role instance of a vendor network function with the specified serviceKey, location centraluseuap, vendor name myVendor and role instance name role1.
+
+### Example 2: Start-AzConnectedNetworkVendorFunctionRoleInstance via Identity
+```powershell
+PS C:\> $role = @{ RoleInstanceName = "role1"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"}
+PS C:\> Start-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role
+
+```
+
+Creating an identity with role instance name role1, location centraluseuap, vendor name myVendor specified subscription, serviceKey. Starting a role instance with the given identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Stop-AzConnectedNetworkVendorFunctionRoleInstance.md b/src/ConnectedNetwork/examples/Stop-AzConnectedNetworkVendorFunctionRoleInstance.md
new file mode 100644
index 000000000000..9a683eedc0e1
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Stop-AzConnectedNetworkVendorFunctionRoleInstance.md
@@ -0,0 +1,16 @@
+### Example 1: Stop-AzConnectedNetworkVendorFunctionRoleInstance via location, serviceKey, vendor name and role instance name
+```powershell
+PS C:\> Stop-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name role1
+
+```
+
+Stoping a role instance of a vendor network function with the specified serviceKey, location centraluseuap, vendor name myVendor and role instance name role1.
+
+### Example 2: Stop-AzConnectedNetworkVendorFunctionRoleInstance via Identity
+```powershell
+PS C:\> $role = @{ RoleInstanceName = "role1"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"}
+PS C:\> Stop-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role
+
+```
+
+Creating an identity with role instance name role1, location centraluseuap, vendor name myVendor specified subscription, serviceKey. Stopping a role instance with the given identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Update-AzConnectedNetworkDeviceTag.md b/src/ConnectedNetwork/examples/Update-AzConnectedNetworkDeviceTag.md
new file mode 100644
index 000000000000..7fad592da298
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Update-AzConnectedNetworkDeviceTag.md
@@ -0,0 +1,52 @@
+### Example 1: Update-AzConnectedNetworkDeviceTag via Resource name and Device name
+```powershell
+PS C:\> $tags = @{ NewTag = "NewTagValue"}
+PS C:\> Update-AzConnectedNetworkDeviceTag -DeviceName "myMecDevice" -ResourceGroupName "myResources" -Tag $tags
+
+
+DeviceType : AzureStackEdge
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice
+Location : eastus
+Name : myMecDevice
+NetworkFunction :
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+Status : NotRegistered
+SystemDataCreatedAt : 11/25/2021 4:47:45 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/25/2021 5:22:57 AM
+SystemDataLastModifiedBy : user@microsoft.com
+SystemDataLastModifiedByType : User
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/devices
+```
+
+Creating an identity with field NewTag and value NewTagValue. Updating the tag of device with resource name myMecDevice in resource group myResources.
+
+### Example 2: Update-AzConnectedNetworkDeviceTag via Identity
+```powershell
+PS C:\> $tags = @{ NewTag1 = "NewTagValue1"}
+PS C:\> $mecDevice = @{ DeviceName = "myMecDevice1"; Location = "eastus"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"}
+PS C:\> Update-AzConnectedNetworkDeviceTag -InputObject $mecDevice -Tag $tags
+
+DeviceType : AzureStackEdge
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/mec_2111_09
+Location : eastus
+Name : mec_2111_09
+NetworkFunction : {/subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/mrg-vmware_sdwan_edge_zones-20211124063650/providers/Microsoft.HybridNetwork/networkFunctions/Edge101}
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+Status : Registered
+SystemDataCreatedAt : 11/23/2021 10:27:13 PM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/25/2021 5:53:12 AM
+SystemDataLastModifiedBy : user@microsoft.com
+SystemDataLastModifiedByType : User
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/devices
+
+```
+
+Creating an identity with field NewTag1 and value NewTagValue1. Creating another identity with device name myMecDevice1, resource group myResources, location eastus and specified subscription. Updating the tag of device using identity.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/examples/Update-AzConnectedNetworkFunctionTag.md b/src/ConnectedNetwork/examples/Update-AzConnectedNetworkFunctionTag.md
new file mode 100644
index 000000000000..76e474d158d6
--- /dev/null
+++ b/src/ConnectedNetwork/examples/Update-AzConnectedNetworkFunctionTag.md
@@ -0,0 +1,24 @@
+### Example 1: Update-AzConnectedNetworkFunctionTag
+```powershell
+PS C:\> $tags = @{ NewTag = "NewTagValue"}
+PS C:\> Update-AzConnectedNetworkFunctionTag -NetworkFunctionName myNewVnf1 -ResourceGroupName myResources -Tag $tags
+
+Location Name Etag ResourceGroupName
+-------- ---- ---- -----------------
+eastus2euap myNewVnf1 "sampleEtagValue" myResources
+```
+
+Creating an identity with field NewTag and value NewTagValue. Updating the tag of NF with resource name myNewVnf1 in resource group myResources.
+
+### Example 2: Update-AzConnectedNetworkFunctionTag
+```powershell
+PS C:\> $tags = @{ NewTag = "NewTagValue"}
+PS C:\> $vnf = @{ NetworkFunctionName = "myVnf1"; ResourceGroupName = "myResources"; SubscriptionId = "00000000-0000-0000-0000-000000000000"}
+PS C:\> Update-AzConnectedNetworkFunctionTag -InputObject $vnf -Tag $tags
+
+Location Name Etag ResourceGroupName
+-------- ---- ---- -----------------
+eastus2euap myNewVnf1 "0000f211-0000-3300-0000-61a9edc70000" myResources
+```
+
+Creating an identity with field NewTag and value NewTagValue. Creating an identity with NetworkFunctionName myVnf1, ResourceGroupName myResources and subscription.Updating the tag of NF specified in identity with the tags.
\ No newline at end of file
diff --git a/src/ConnectedNetwork/export-surface.ps1 b/src/ConnectedNetwork/export-surface.ps1
new file mode 100644
index 000000000000..3dad07054429
--- /dev/null
+++ b/src/ConnectedNetwork/export-surface.ps1
@@ -0,0 +1,41 @@
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+param([switch]$Isolated, [switch]$IncludeGeneralParameters, [switch]$UseExpandedFormat)
+$ErrorActionPreference = 'Stop'
+
+$pwsh = [System.Diagnostics.Process]::GetCurrentProcess().Path
+if(-not $Isolated) {
+ Write-Host -ForegroundColor Green 'Creating isolated process...'
+ & "$pwsh" -NonInteractive -NoLogo -NoProfile -File $MyInvocation.MyCommand.Path @PSBoundParameters -Isolated
+ return
+}
+
+$dll = Join-Path $PSScriptRoot 'bin\Az.ConnectedNetwork.private.dll'
+if(-not (Test-Path $dll)) {
+ Write-Error "Unable to find output assembly in '$binFolder'."
+}
+$null = Import-Module -Name $dll
+
+$moduleName = 'Az.ConnectedNetwork'
+$exportsFolder = Join-Path $PSScriptRoot 'exports'
+$resourcesFolder = Join-Path $PSScriptRoot 'resources'
+
+Export-CmdletSurface -ModuleName $moduleName -CmdletFolder $exportsFolder -OutputFolder $resourcesFolder -IncludeGeneralParameters $IncludeGeneralParameters.IsPresent -UseExpandedFormat $UseExpandedFormat.IsPresent
+Write-Host -ForegroundColor Green "CmdletSurface file(s) created in '$resourcesFolder'"
+
+Export-ModelSurface -OutputFolder $resourcesFolder -UseExpandedFormat $UseExpandedFormat.IsPresent
+Write-Host -ForegroundColor Green "ModelSurface file created in '$resourcesFolder'"
+
+Write-Host -ForegroundColor Green '-------------Done-------------'
\ No newline at end of file
diff --git a/src/ConnectedNetwork/exports/Get-AzConnectedNetworkDevice.ps1 b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkDevice.ps1
new file mode 100644
index 000000000000..43e0c1e8dd8c
--- /dev/null
+++ b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkDevice.ps1
@@ -0,0 +1,216 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified device.
+.Description
+Gets information about the specified device.
+.Example
+PS C:\> Get-AzConnectedNetworkDevice -ResourceGroupName myResources -Name myMecDevice
+
+
+DeviceType : AzureStackEdge
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice
+Location : westcentralus
+Name : myMecDevice
+NetworkFunction : {/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.HybridNetwork/networkFunctions/myVnf1}
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+Status : Registered
+SystemDataCreatedAt : 11/25/2020 5:34:49 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/25/2020 5:58:38 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : Microsoft.HybridNetwork/devices
+
+.Example
+PS C:\> $mecDevice = @{ DeviceName = "myMecDevice1"; Location = "eastus"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"}
+PS C:\> Get-AzConnectedNetworkDevice -InputObject $mecDevice
+
+
+DeviceType : AzureStackEdge
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice1
+Location : eastus
+Name : myMecDevice1
+NetworkFunction : {/subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/mrg-vmware_sdwan_edge_zones-20211124063650/providers/Microsoft.HybridNetwork/networkFunctions/myEdge1}
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+Status : Registered
+SystemDataCreatedAt : 11/23/2021 10:27:13 PM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/24/2021 7:42:41 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/devices
+
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IDevice
+.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
+ [DeviceName ]: The name of the device resource.
+ [Id ]: Resource identity path
+ [LocationName ]: The Azure region where the network function resource was created by the customer.
+ [NetworkFunctionName ]: The name of the network function.
+ [PreviewSubscription ]: Preview subscription ID.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RoleInstanceName ]: The name of the role instance of the vendor network function.
+ [ServiceKey ]: The GUID for the vendor network function.
+ [SkuName ]: The name of the sku.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VendorName ]: The name of the vendor.
+ [VendorSkuName ]: The name of the network function sku.
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkdevice
+#>
+function Get-AzConnectedNetworkDevice {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IDevice])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('DeviceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the device resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ Get = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkDevice_Get';
+ GetViaIdentity = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkDevice_GetViaIdentity';
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkDevice_List';
+ List1 = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkDevice_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/Get-AzConnectedNetworkDeviceRegistrationKey.ps1 b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkDeviceRegistrationKey.ps1
new file mode 100644
index 000000000000..0e0eaf3df38e
--- /dev/null
+++ b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkDeviceRegistrationKey.ps1
@@ -0,0 +1,147 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+List the registration key for the device.
+.Description
+List the registration key for the device.
+.Example
+PS C:\> Get-AzConnectedNetworkDeviceRegistrationKey -DeviceName myMecDevice -ResourceGroupName myResources
+
+eyJNZWNEZXZpY2VUcmFuc2llbnRBdXRoS2V5IjoiMTIzNCIsIk1lY0RldmljZUF1dGhLZXlTdGFydFRpbWUiOiIyMDIxLTExLTIyVDA5OjQ2OjQwLjY0ODExOTFaIiwiU2VydmljZUJ1c1F1ZXVlTmFtZSI6ImFiY2QtMTIzNCIsIkFBREVuZHBvaW50IjpudWxsLCJBQURBdWRpZW5jZSI6bnVsbCwiQXJtUmVzb3VyY2VJZCI6bnVsbCwiTWVjQ29udHJvbGxlckVuZHBvaW50IjoiaHR0cHM6Ly93ZXN0Y2VudHJhbHVzLXByb2QubWVjZGV2aWNlLmF6dXJlLmNvbTo0NDMiLCJEYmVEZXZpY2VJZCI6bnVsbCwiUmVzb3VyY2VVbmlxdWVJZCI6IjEyMy1hYmMtMTIzIiwiU3Vic2NyaXB0aW9uSWQiOiJ4eHh4LTEyMzQteHh4eC0xMjM0IiwiUmVzb3VyY2VHcm91cE5hbWUiOiJzYW1wbGVSR25hbWUiLCJQcm92aWRlck5hbWVzcGFjZSI6Ik1pY3Jvc29mdC5IeWJyaWROZXR3b3JrIiwiUmVzb3VyY2VUeXBlIjoiRGV2aWNlcyIsIlJlc291cmNlVHlwZU5hbWUiOiJJREMtRGV2aWNlNC1XZXN0Q2VudHJhbCJ9
+.Example
+PS C:\> Get-AzConnectedNetworkDeviceRegistrationKey -DeviceName myMecDevice -ResourceGroupName myResources -SubscriptionId xxxxx-00000-xxxxx-00000
+
+eyJNZWNEZXZpY2VUcmFuc2llbnRBdXRoS2V5IjoiMTIzNCIsIk1lY0RldmljZUF1dGhLZXlTdGFydFRpbWUiOiIyMDIxLTExLTIyVDA5OjQ2OjQwLjY0ODExOTFaIiwiU2VydmljZUJ1c1F1ZXVlTmFtZSI6ImFiY2QtMTIzNCIsIkFBREVuZHBvaW50IjpudWxsLCJBQURBdWRpZW5jZSI6bnVsbCwiQXJtUmVzb3VyY2VJZCI6bnVsbCwiTWVjQ29udHJvbGxlckVuZHBvaW50IjoiaHR0cHM6Ly93ZXN0Y2VudHJhbHVzLXByb2QubWVjZGV2aWNlLmF6dXJlLmNvbTo0NDMiLCJEYmVEZXZpY2VJZCI6bnVsbCwiUmVzb3VyY2VVbmlxdWVJZCI6IjEyMy1hYmMtMTIzIiwiU3Vic2NyaXB0aW9uSWQiOiJ4eHh4LTEyMzQteHh4eC0xMjM0IiwiUmVzb3VyY2VHcm91cE5hbWUiOiJzYW1wbGVSR25hbWUiLCJQcm92aWRlck5hbWVzcGFjZSI6Ik1pY3Jvc29mdC5IeWJyaWROZXR3b3JrIiwiUmVzb3VyY2VUeXBlIjoiRGV2aWNlcyIsIlJlc291cmNlVHlwZU5hbWUiOiJJREMtRGV2aWNlNC1XZXN0Q2VudHJhbCJ9
+
+.Outputs
+System.String
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkdeviceregistrationkey
+#>
+function Get-AzConnectedNetworkDeviceRegistrationKey {
+[OutputType([System.String])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the device resource.
+ ${DeviceName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkDeviceRegistrationKey_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/Get-AzConnectedNetworkFunction.ps1 b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkFunction.ps1
new file mode 100644
index 000000000000..08fac08a1a9e
--- /dev/null
+++ b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkFunction.ps1
@@ -0,0 +1,232 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified network function resource.
+.Description
+Gets information about the specified network function resource.
+.Example
+PS C:\> Get-AzConnectedNetworkFunction -Name myVnf -ResourceGroupName myResources
+
+
+ContainerConfiguration : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatNetworkFunctionContainerConfigurations
+DeviceId : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMec
+Etag : "0000a530-0000-3400-0000-615c10fa0000"
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/networkFunctions/myVnf
+Location : centraluseuap
+ManagedApplicationId :
+ManagedApplicationParameter : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatManagedApplicationParameters
+Name : myVnf
+ProvisioningState : Failed
+ResourceGroupName : myResources
+ServiceKey : 397a7415-ec52-46b5-892b-f840ba491aab
+SkuName : mySku1
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 10/5/2021 8:45:49 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 10/5/2021 8:46:49 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/networkfunctions
+UserConfiguration : {hpehss}
+VendorName : AffirmedVendor
+VendorProvisioningState : NotProvisioned
+
+.Example
+PS C:\> $vnf = @{ NetworkFunctionName = "myVnf1"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"}
+PS C:\> Get-AzConnectedNetworkFunction -InputObject $vnf
+
+
+ContainerConfiguration : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatNetworkFunctionContainerConfigurations
+DeviceId : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMec1
+Etag : "sampleEtagValue"
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/networkFunctions/myVnf1
+Location : eastus
+ManagedApplicationId :
+ManagedApplicationParameter : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatManagedApplicationParameters
+Name : myVnf1
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+ServiceKey : aa11-bb22-cc33-dd44
+SkuName : mySku
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 11/1/2021 11:13:57 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/15/2021 4:53:08 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/networkfunctions
+UserConfiguration : {hpehss}
+VendorName : AffirmedVendor
+VendorProvisioningState : Provisioned
+
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunction
+.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
+ [DeviceName ]: The name of the device resource.
+ [Id ]: Resource identity path
+ [LocationName ]: The Azure region where the network function resource was created by the customer.
+ [NetworkFunctionName ]: The name of the network function.
+ [PreviewSubscription ]: Preview subscription ID.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RoleInstanceName ]: The name of the role instance of the vendor network function.
+ [ServiceKey ]: The GUID for the vendor network function.
+ [SkuName ]: The name of the sku.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VendorName ]: The name of the vendor.
+ [VendorSkuName ]: The name of the network function sku.
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkfunction
+#>
+function Get-AzConnectedNetworkFunction {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunction])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('NetworkFunctionName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the network function resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ Get = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkFunction_Get';
+ GetViaIdentity = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkFunction_GetViaIdentity';
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkFunction_List';
+ List1 = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkFunction_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/Get-AzConnectedNetworkFunctionVendor.ps1 b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkFunctionVendor.ps1
new file mode 100644
index 000000000000..c5886fc08914
--- /dev/null
+++ b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkFunctionVendor.ps1
@@ -0,0 +1,141 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+Lists all the available vendor and sku information.
+.Description
+Lists all the available vendor and sku information.
+.Example
+PS C:\> Get-AzConnectedNetworkFunctionVendor
+
+SkuList VendorName
+------- ----------
+{vendor-sku, vendor-sku1, vendor-sku2, vendor-sku3, vendor-sku4, vendor-sku4, vendor-sku5...} myVendor
+{vendor1-sku, vendor1-sku2} myVendor1
+{vendor2-sku1} myVendor2
+.Example
+PS C:\> Get-AzConnectedNetworkFunctionVendor -SubscriptionId "xxxxx-00000-xxxxx-00000"
+
+SkuList VendorName
+------- ----------
+{vendor1-sku, vendor1-sku2} myVendor1
+{vendor2-sku1} myVendor2
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunctionVendor
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkfunctionvendor
+#>
+function Get-AzConnectedNetworkFunctionVendor {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunctionVendor])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkFunctionVendor_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendor.ps1 b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendor.ps1
new file mode 100644
index 000000000000..59014cd4e980
--- /dev/null
+++ b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendor.ps1
@@ -0,0 +1,198 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified vendor.
+.Description
+Gets information about the specified vendor.
+.Example
+PS C:\> Get-AzConnectedNetworkVendor -Name myVendor
+
+
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor
+Name : myVendor
+ProvisioningState : Succeeded
+ResourceGroupName :
+Sku :
+SystemDataCreatedAt : 9/7/2021 3:02:02 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 9/7/2021 3:02:03 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : microsoft.hybridnetwork/vendors
+
+.Example
+PS C:\> $vendor = @{ VendorName = "myVendor1"; SubscriptionId = "xxxxx-00000-xxxxx-00000"}
+PS C:\> Get-AzConnectedNetworkVendor -InputObject $vendor
+
+
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor1
+Name : myVendor1
+ProvisioningState : Succeeded
+ResourceGroupName :
+Sku :
+SystemDataCreatedAt : 9/7/2021 3:02:02 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 9/7/2021 3:02:03 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : microsoft.hybridnetwork/vendors
+
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendor
+.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
+ [DeviceName ]: The name of the device resource.
+ [Id ]: Resource identity path
+ [LocationName ]: The Azure region where the network function resource was created by the customer.
+ [NetworkFunctionName ]: The name of the network function.
+ [PreviewSubscription ]: Preview subscription ID.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RoleInstanceName ]: The name of the role instance of the vendor network function.
+ [ServiceKey ]: The GUID for the vendor network function.
+ [SkuName ]: The name of the sku.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VendorName ]: The name of the vendor.
+ [VendorSkuName ]: The name of the network function sku.
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkvendor
+#>
+function Get-AzConnectedNetworkVendor {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendor])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('VendorName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the vendor.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ Get = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendor_Get';
+ GetViaIdentity = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendor_GetViaIdentity';
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendor_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendorFunction.ps1 b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendorFunction.ps1
new file mode 100644
index 000000000000..277c0643df7b
--- /dev/null
+++ b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendorFunction.ps1
@@ -0,0 +1,224 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified vendor network function.
+.Description
+Gets information about the specified vendor network function.
+.Example
+PS C:\> Get-AzConnectedNetworkVendorFunction -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor
+
+Id : /subscriptions/xxxx-3333-xxxx-3333/providers/Microsoft.HybridNetwork/locations/centraluseuap/vendors/myVendor/networkfunctions/1b69005b-9168-4d74-a371-d4c4f6a521d
+ 0
+Name : 1234-abcd-4321-dcba
+NetworkFunctionVendorConfiguration : {Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.SshPublicKey}
+ProvisioningState : Succeeded
+ResourceGroupName :
+SkuName : mySku
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 11/25/2021 2:04:28 PM
+SystemDataCreatedBy : xxxxx-11111-xxxxx-11111
+SystemDataCreatedByType : Application
+SystemDataLastModifiedAt : 11/25/2021 2:04:28 PM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : microsoft.hybridnetwork/locations/vendors/networkfunctions
+VendorProvisioningState : NotProvisioned
+
+.Example
+PS C:\> $vendorNF = @{ ServiceKey = "1234-abcd-4321-dcba"; VendorName = "myVendor"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"}
+PS C:\> Get-AzConnectedNetworkVendorFunction -InputObject $vendorNF
+
+Id : /subscriptions/xxxx-3333-xxxx-3333/providers/Microsoft.HybridNetwork/locations/centraluseuap/vendors/myVendor/networkfunctions/1b69005b-9168-4d74-a371-d4c4f6a521d
+ 0
+Name : 1234-abcd-4321-dcba
+NetworkFunctionVendorConfiguration : {Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.SshPublicKey}
+ProvisioningState : Succeeded
+ResourceGroupName :
+SkuName : mySku
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 11/25/2021 2:04:44 PM
+SystemDataCreatedBy : xxxxx-11111-xxxxx-11111
+SystemDataCreatedByType : Application
+SystemDataLastModifiedAt : 11/25/2021 2:36:28 PM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : microsoft.hybridnetwork/locations/vendors/networkfunctions
+VendorProvisioningState : Provisioned
+
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendorNetworkFunction
+.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
+ [DeviceName ]: The name of the device resource.
+ [Id ]: Resource identity path
+ [LocationName ]: The Azure region where the network function resource was created by the customer.
+ [NetworkFunctionName ]: The name of the network function.
+ [PreviewSubscription ]: Preview subscription ID.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RoleInstanceName ]: The name of the role instance of the vendor network function.
+ [ServiceKey ]: The GUID for the vendor network function.
+ [SkuName ]: The name of the sku.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VendorName ]: The name of the vendor.
+ [VendorSkuName ]: The name of the network function sku.
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkvendorfunction
+#>
+function Get-AzConnectedNetworkVendorFunction {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendorNetworkFunction])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The Azure region where the network function resource was created by the customer.
+ ${LocationName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The GUID for the vendor network function.
+ ${ServiceKey},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the vendor.
+ ${VendorName},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Query')]
+ [System.String]
+ # The filter to apply on the operation.
+ # The properties you can use for eq (equals) are: skuType, skuName and vendorProvisioningState.
+ ${Filter},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ Get = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendorFunction_Get';
+ GetViaIdentity = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendorFunction_GetViaIdentity';
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendorFunction_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendorFunctionRoleInstance.ps1 b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendorFunctionRoleInstance.ps1
new file mode 100644
index 000000000000..8f2374b17042
--- /dev/null
+++ b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendorFunctionRoleInstance.ps1
@@ -0,0 +1,217 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets the information of role instance of vendor network function.
+.Description
+Gets the information of role instance of vendor network function.
+.Example
+PS C:\> Get-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name hpehss
+
+Id :
+Name : hpehss
+OperationalState : Running
+ProvisioningState :
+ResourceGroupName :
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Type :
+
+.Example
+PS C:\> $role = @{ RoleInstanceName = "hpehss"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"}
+PS C:\> Get-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role
+
+Id :
+Name : hpehss
+OperationalState : Stopped
+ProvisioningState :
+ResourceGroupName :
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Type :
+
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IRoleInstance
+.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
+ [DeviceName ]: The name of the device resource.
+ [Id ]: Resource identity path
+ [LocationName ]: The Azure region where the network function resource was created by the customer.
+ [NetworkFunctionName ]: The name of the network function.
+ [PreviewSubscription ]: Preview subscription ID.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RoleInstanceName ]: The name of the role instance of the vendor network function.
+ [ServiceKey ]: The GUID for the vendor network function.
+ [SkuName ]: The name of the sku.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VendorName ]: The name of the vendor.
+ [VendorSkuName ]: The name of the network function sku.
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkvendorfunctionroleinstance
+#>
+function Get-AzConnectedNetworkVendorFunctionRoleInstance {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IRoleInstance])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The Azure region where the network function resource was created by customer.
+ ${LocationName},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('RoleInstanceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the role instance of the vendor network function.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The GUID for the vendor network function.
+ ${ServiceKey},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the vendor.
+ ${VendorName},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ Get = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendorFunctionRoleInstance_Get';
+ GetViaIdentity = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendorFunctionRoleInstance_GetViaIdentity';
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendorFunctionRoleInstance_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendorSku.ps1 b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendorSku.ps1
new file mode 100644
index 000000000000..f3e6365e2256
--- /dev/null
+++ b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendorSku.ps1
@@ -0,0 +1,209 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets information about the specified sku.
+.Description
+Gets information about the specified sku.
+.Example
+PS C:\> Get-AzConnectedNetworkVendorSku -VendorName myVendor -SubscriptionId xxxxx-22222-xxxxx-22222
+
+DeploymentMode : PrivateEdgeZone
+Id : /subscriptions/xxxxx-22222-xxxxx-22222/providers/Microsoft.HybridNetwork/vendors/myVendor/VendorSkus/mySku
+ManagedApplicationParameter : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.VendorSkuPropertiesFormatManagedApplicationParameters
+ManagedApplicationTemplate : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.VendorSkuPropertiesFormatManagedApplicationTemplate
+Name : mySku
+NetworkFunctionTemplateNetworkFunctionRoleConfiguration : {Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.SshPublicKey}
+NetworkFunctionType :
+Preview : True
+ProvisioningState : Succeeded
+ResourceGroupName :
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 11/4/2020 3:35:33 PM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/4/2020 3:43:58 PM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : Microsoft.HybridNetwork/vendors/VendorSkus
+
+DeploymentMode : PrivateEdgeZone
+Id : /subscriptions/xxxxx-22222-xxxxx-22222/providers/Microsoft.HybridNetwork/vendors/myVendor/vendorskus/mySku_1
+ManagedApplicationParameter : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.VendorSkuPropertiesFormatManagedApplicationParameters
+ManagedApplicationTemplate : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.VendorSkuPropertiesFormatManagedApplicationTemplate
+Name : mySku_1
+NetworkFunctionTemplateNetworkFunctionRoleConfiguration : {Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.SshPublicKey}
+NetworkFunctionType :
+Preview : True
+ProvisioningState : Failed
+ResourceGroupName :
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 11/11/2020 2:25:32 PM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/11/2020 2:25:32 PM
+SystemDataLastModifiedBy : user@microsoft.com
+SystemDataLastModifiedByType : User
+Type : Microsoft.HybridNetwork/vendors/vendorskus
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendorSku
+.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
+ [DeviceName ]: The name of the device resource.
+ [Id ]: Resource identity path
+ [LocationName ]: The Azure region where the network function resource was created by the customer.
+ [NetworkFunctionName ]: The name of the network function.
+ [PreviewSubscription ]: Preview subscription ID.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RoleInstanceName ]: The name of the role instance of the vendor network function.
+ [ServiceKey ]: The GUID for the vendor network function.
+ [SkuName ]: The name of the sku.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VendorName ]: The name of the vendor.
+ [VendorSkuName ]: The name of the network function sku.
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkvendorsku
+#>
+function Get-AzConnectedNetworkVendorSku {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendorSku])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the sku.
+ ${SkuName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the vendor.
+ ${VendorName},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ Get = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendorSku_Get';
+ GetViaIdentity = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendorSku_GetViaIdentity';
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendorSku_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendorSkuPreview.ps1 b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendorSkuPreview.ps1
new file mode 100644
index 000000000000..a7463250b211
--- /dev/null
+++ b/src/ConnectedNetwork/exports/Get-AzConnectedNetworkVendorSkuPreview.ps1
@@ -0,0 +1,207 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Gets the preview information of a vendor sku.
+.Description
+Gets the preview information of a vendor sku.
+.Example
+PS C:\> Get-AzConnectedNetworkVendorSkuPreview -SkuName mySku -VendorName myVendor -PreviewSubscription xxxxx-22222-xxxxx-22222
+
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor/vendorSkus/mySku/previewSubscriptions/xxxxx-22222-xxxxx-22222
+Name : xxxxx-22222-xxxxx-22222
+ProvisioningState : Succeeded
+ResourceGroupName :
+SystemDataCreatedAt : 11/24/2021 4:41:22 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/24/2021 4:41:22 AM
+SystemDataLastModifiedBy : user@microsoft.com
+SystemDataLastModifiedByType : User
+Type : microsoft.hybridnetwork/vendors/vendorskus/previewsubscriptions
+
+.Example
+PS C:\> $skuPreview = @{ SkuName = "mySku"; VendorName = "myVendor"; PreviewSubscription = "xxxxx-22222-xxxxx-22222"; SubscriptionId = "xxxxx-00000-xxxxx-00000"}
+PS C:\> Get-AzConnectedNetworkVendorSkuPreview -InputObject $skuPreview
+
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor/vendorSkus/mySku/previewSubscriptions/xxxxx-22222-xxxxx-22222
+Name : xxxxx-22222-xxxxx-22222
+ProvisioningState : Succeeded
+ResourceGroupName :
+SystemDataCreatedAt : 11/24/2021 4:41:22 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/24/2021 4:41:22 AM
+SystemDataLastModifiedBy : user@microsoft.com
+SystemDataLastModifiedByType : User
+Type : microsoft.hybridnetwork/vendors/vendorskus/previewsubscriptions
+
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IPreviewSubscription
+.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
+ [DeviceName ]: The name of the device resource.
+ [Id ]: Resource identity path
+ [LocationName ]: The Azure region where the network function resource was created by the customer.
+ [NetworkFunctionName ]: The name of the network function.
+ [PreviewSubscription ]: Preview subscription ID.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RoleInstanceName ]: The name of the role instance of the vendor network function.
+ [ServiceKey ]: The GUID for the vendor network function.
+ [SkuName ]: The name of the sku.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VendorName ]: The name of the vendor.
+ [VendorSkuName ]: The name of the network function sku.
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkvendorskupreview
+#>
+function Get-AzConnectedNetworkVendorSkuPreview {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IPreviewSubscription])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # Preview subscription ID.
+ ${PreviewSubscription},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the vendor sku.
+ ${SkuName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the vendor.
+ ${VendorName},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ Get = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendorSkuPreview_Get';
+ GetViaIdentity = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendorSkuPreview_GetViaIdentity';
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkVendorSkuPreview_List';
+ }
+ if (('Get', 'List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/New-AzConnectedNetworkAzureStackEdgeObject.ps1 b/src/ConnectedNetwork/exports/New-AzConnectedNetworkAzureStackEdgeObject.ps1
new file mode 100644
index 000000000000..5f20053163f4
--- /dev/null
+++ b/src/ConnectedNetwork/exports/New-AzConnectedNetworkAzureStackEdgeObject.ps1
@@ -0,0 +1,81 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a in-memory object for AzureStackEdgeFormat
+.Description
+Create a in-memory object for AzureStackEdgeFormat
+.Example
+PS C:\> New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse1"
+
+eviceType ProvisioningState Status
+---------- ----------------- ------
+AzureStackEdge
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.AzureStackEdgeFormat
+.Link
+https://docs.microsoft.com/powershell/module/az.ConnectedNetwork/new-AzConnectedNetworkAzureStackEdgeObject
+#>
+function New-AzConnectedNetworkAzureStackEdgeObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.AzureStackEdgeFormat])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # Resource ID.
+ ${AzureStackEdgeId}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ __AllParameterSets = 'Az.ConnectedNetwork.custom\New-AzConnectedNetworkAzureStackEdgeObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/New-AzConnectedNetworkDevice.ps1 b/src/ConnectedNetwork/exports/New-AzConnectedNetworkDevice.ps1
new file mode 100644
index 000000000000..d479098de865
--- /dev/null
+++ b/src/ConnectedNetwork/exports/New-AzConnectedNetworkDevice.ps1
@@ -0,0 +1,221 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a device.
+.Description
+Creates or updates a device.
+.Example
+PS C:\> $ase = New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse"
+PS C:\> New-AzConnectedNetworkDevice -Name "myMecDevice" -ResourceGroupName "myResources" -Location "eastus" -Property $ase
+
+DeviceType : AzureStackEdge
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice
+Location : eastus
+Name : myMecDevice
+NetworkFunction :
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+Status : NotRegistered
+SystemDataCreatedAt : 11/25/2021 4:47:45 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : myVendor
+SystemDataLastModifiedAt : 11/25/2021 4:47:47 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/devices
+
+.Example
+PS C:\> $ase = New-AzConnectedNetworkAzureStackEdgeObject -AzureStackEdgeId "/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/myAse1"
+PS C:\> New-AzConnectedNetworkDevice -Name "myMecDevice1" -ResourceGroupName "myResources" -Location "eastus2euap" -Property $ase -SubscriptionId xxxxx-00000-xxxxx-00000
+
+DeviceType : AzureStackEdge
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice1
+Location : eastus
+Name : myMecDevice1
+NetworkFunction :
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+Status : Registered
+SystemDataCreatedAt : 11/25/2021 4:49:34 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : myVendor
+SystemDataLastModifiedAt : 11/25/2021 4:57:47 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/devices
+
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IDevice
+.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.
+
+PROPERTY : Device properties.
+ DeviceType : The type of the device.
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/new-azconnectednetworkdevice
+#>
+function New-AzConnectedNetworkDevice {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IDevice])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('DeviceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # Resource name for the device resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IDevicePropertiesFormat]
+ # Device properties.
+ # To construct, see NOTES section for PROPERTY properties and create a hash table.
+ ${Property},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.ConnectedNetwork.private\New-AzConnectedNetworkDevice_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.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/New-AzConnectedNetworkFunction.ps1 b/src/ConnectedNetwork/exports/New-AzConnectedNetworkFunction.ps1
new file mode 100644
index 000000000000..eaa68278ea74
--- /dev/null
+++ b/src/ConnectedNetwork/exports/New-AzConnectedNetworkFunction.ps1
@@ -0,0 +1,258 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a network function resource.
+This operation can take up to 6 hours to complete.
+This is expected service behavior.
+.Description
+Creates or updates a network function resource.
+This operation can take up to 6 hours to complete.
+This is expected service behavior.
+.Example
+PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan"
+PS C:\> $customData = "I2Nsb3VkLWNvbmZpZwp3cml0ZV9maWxlczoKLSBwYXRoOiAvdmFyL2xpYi9jbG91ZC9paHNzY29uZmlnLmpzb24KICBwZXJtaXNzaW9uczogJzA2NDQnCiAgb3duZXI6IHJvb3Q6cm9vdAogIGNvbnRlbnQ6IHwKICAgIHsKICAgICAgICAgICAiRGlhbWV0ZXJHVyI6ewogICAgICAgICAgICAgICAgICAiSE9TVElQQUREUkVTUyI6IjEyOC4wLjAuMSIsCiAgICAgICAgICAgICAgICAgICJGUUROIjoiaHNzLmF5VmVuZG9yLmNvbSIsCiAgICAgICAgICAgICAgICAgICJSRUFMTSI6Imhzcy5lcGMubXlWZW5kb3I5OS5teVZlbmRvci4zZ3BwbmV0d29yay5vcmciCiAgICAgICAgICAgfSwKICAgICAgICAgICAiREdXQmluZEFkZHIiOnsKICAgICAgICAgICAgICAgICAgIkFERFJFU1MiOiIxMjguMC4wLjIiLAogICAgICAgICAgICAgICAgICAiVFJBTlNQT1JUIjoiU0NUUCIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjozODY4CiAgICAgICAgICAgfSwKICAgICAgICAgICAiU05NUFRhcmdldCI6ewogICAgICAgICAgICAgICAgICAiSE9TVCI6IjEyOC4wLjAuMyIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjoiMTYyIiwKICAgICAgICAgICAgICAgICAgIlRSSUdHRVJfTEVWRUwiOiIzIgogICAgICAgICAgIH0sCiAgICAgICAgICAgIk1hbmFnZW1lbnQiOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNCIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjEvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAogICAgICAgICAgICJMYW4iOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNSIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjAvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAoKICAgIH0JCSAgCg=="
+PS C:\> $userconf = New-AzConnectedNetworkFunctionUserConfigurationObject -NetworkInterface $ip1,$ip2 -OSProfileCustomData $customData -RoleName "hpehss"
+PS C:\> New-AzConnectedNetworkFunction -Name vnf_Test1 -ResourceGroupName myResources -Location "eastus" -DeviceId /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/mec_2111_020 -SkuName Affirmed-HSS-0527 -UserConfiguration $userconf -VendorName "AffirmedVendor"
+
+Location Name Etag ResourceGroupName
+-------- ---- ---- -----------------
+eastus vnf_Test1 "SampleEtagvalue" myResources
+.Example
+PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan"
+PS C:\> $userconfig2 = New-AzConnectedNetworkFunctionUserConfigurationObject -NetworkInterface $ip1,$ip2 -RoleName "hpehss"
+PS C:\> $vnf1 = New-AzConnectedNetworkFunction -Name vnftest11 -DeviceId /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/mec_autotest_01 -ResourceGroupName myResources -SubscriptionId xxxxx-00000-xxxxx-00000 -Location eastus2euap -SkuName staticSku -VendorName hssvendor01 -UserConfiguration $userconfig2 -verbose
+PS C:\> $v2.ServiceKey
+abcd-sample-service-key-val-1234
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunction
+.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.
+
+USERCONFIGURATION : The network function configurations from the user.
+ [NetworkInterface ]: The network interface configuration.
+ [IPConfiguration ]: A list of IP configurations of the network interface.
+ [DnsServer ]: The list of DNS servers IP addresses.
+ [Gateway ]: The value of the gateway.
+ [IPAddress ]: The value of the IP address.
+ [IPAllocationMethod ]: IP address allocation method.
+ [IPVersion ]: IP address version.
+ [Subnet ]: The value of the subnet.
+ [MacAddress ]: The MAC address of the network interface.
+ [Name ]: The name of the network interface.
+ [VMSwitchType ]: The type of the VM switch.
+ [OSProfileCustomData ]: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in customData property** This property cannot be updated after the VM is created. customData is passed to the VM to be saved as a file. For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/) For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ [RoleName ]: The name of the network function role.
+ [UserDataParameter ]: The user data parameters from the customer.
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/new-azconnectednetworkfunction
+#>
+function New-AzConnectedNetworkFunction {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunction])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('NetworkFunctionName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # Resource name for the network function resource.
+ ${Name},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The geo-location where the resource lives
+ ${Location},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunctionPropertiesFormatNetworkFunctionContainerConfigurations]))]
+ [System.Collections.Hashtable]
+ # The network function container configurations from the user.
+ ${ContainerConfiguration},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # Resource ID.
+ ${DeviceId},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # A unique read-only string that changes whenever the resource is updated.
+ ${Etag},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunctionPropertiesFormatManagedApplicationParameters]))]
+ [System.Collections.Hashtable]
+ # The parameters for the managed application.
+ ${ManagedApplicationParameter},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The sku name for the network function.
+ # Once set, it cannot be updated.
+ ${SkuName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.ITrackedResourceTags]))]
+ [System.Collections.Hashtable]
+ # Resource tags.
+ ${Tag},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunctionUserConfiguration[]]
+ # The network function configurations from the user.
+ # To construct, see NOTES section for USERCONFIGURATION properties and create a hash table.
+ ${UserConfiguration},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The vendor name for the network function.
+ # Once set, it cannot be updated.
+ ${VendorName},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.ConnectedNetwork.private\New-AzConnectedNetworkFunction_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.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/New-AzConnectedNetworkFunctionRoleConfigurationObject.ps1 b/src/ConnectedNetwork/exports/New-AzConnectedNetworkFunctionRoleConfigurationObject.ps1
new file mode 100644
index 000000000000..fe2cb964979f
--- /dev/null
+++ b/src/ConnectedNetwork/exports/New-AzConnectedNetworkFunctionRoleConfigurationObject.ps1
@@ -0,0 +1,272 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a in-memory object for NetworkFunctionRoleConfiguration
+.Description
+Create a in-memory object for NetworkFunctionRoleConfiguration
+.Example
+PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan"
+PS C:\> $keyData = @{keyData = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMpVbBgu0kftv1k+z1c3NtcB5CVDoo/X9X1LE2JUjlLlo0luEkFGJk61i53BhiTSTeRmQXN8hAZ7sn4MDUmZK7fWcHouZ2fsJo+ehses3wQPLubWBFw2L/hoSTyXifXMbEBu9SxHgqf1CEKQcvdNiWf4U7npXwjweXW9DtsF5E7h4kxhKJKFI4sNFTIX0IwUB15QEVHoBs92kDwH3fBH3kZZCMBJE/u6kT+XB22crRKkIGlp3a9gcogtOCvP+3xmsP7hjw5+nHxMUwkc/6kYyfTeLwvfI4xrTWpnB5xufts5LW5/U5GOXVg97ix9EXgiV0czThowG5K2xQ649UlJb"; path = $Null}
+PS C:\> $key = @( $keyData)
+PS C:\> $role = New-AzConnectedNetworkFunctionRoleConfigurationObject -NetworkInterface $ip1,$ip2 -OSDiskName Disk1 -OSDiskOstype Linux -OSDiskSizeGb 40 -OSProfileCustomDataRequired $False -OSProfileAdminUsername MecUser -RoleName hpehss -RoleType VirtualMachine -VirtualMachineSize "Standard_D3_v2" -SshPublicKey $key -StorageProfileDataDisk $storage -VhdUri "https://mecvdrvhd.blob.core.windows/myvhd.vhd"
+
+RoleName RoleType VirtualMachineSize
+-------- -------- ------------------
+hpehss VirtualMachine Standard_D3_v2
+
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionRoleConfiguration
+.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.
+
+NETWORKINTERFACE : The network interface configurations.
+ [IPConfiguration ]: A list of IP configurations of the network interface.
+ [DnsServer ]: The list of DNS servers IP addresses.
+ [Gateway ]: The value of the gateway.
+ [IPAddress ]: The value of the IP address.
+ [IPAllocationMethod ]: IP address allocation method.
+ [IPVersion ]: IP address version.
+ [Subnet ]: The value of the subnet.
+ [MacAddress ]: The MAC address of the network interface.
+ [Name ]: The name of the network interface.
+ [VMSwitchType ]: The type of the VM switch.
+
+SSHPUBLICKEY : The list of SSH public keys used to authenticate with linux based VMs.
+ [KeyData ]: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ [Path ]: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys
+
+STORAGEPROFILEDATADISK : Specifies the parameters that are used to add a data disk to a virtual machine.
+ [CreateOption ]: Specifies how the virtual machine should be created.
+ [DiskSizeGb ]: Specifies the size of an empty disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.
+ [Name ]: The name of data disk.
+.Link
+https://docs.microsoft.com/powershell/module/az.ConnectedNetwork/new-AzConnectedNetworkFunctionRoleConfigurationObject
+#>
+function New-AzConnectedNetworkFunctionRoleConfigurationObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionRoleConfiguration])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # Path for metadata configuration.
+ ${CustomProfileMetadataConfigurationPath},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # Specifies in decimal numbers, the exact version of image used to create the virtual machine.
+ ${ImageReferenceExactVersion},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # Specifies the offer of the image used to create the virtual machine.
+ ${ImageReferenceOffer},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The image publisher.
+ ${ImageReferencePublisher},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The image SKU.
+ ${ImageReferenceSku},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # Specifies the version of the image used to create the virtual machine.
+ # The allowed formats are Major.Minor.Build or 'latest'.
+ # Major, Minor, and Build are decimal numbers.
+ # Specify 'latest' to use the latest version of an image available at deploy time.
+ # Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available.
+ ${ImageReferenceVersion},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkInterface[]]
+ # The network interface configurations.
+ # To construct, see NOTES section for NETWORKINTERFACE properties and create a hash table.
+ ${NetworkInterface},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The VHD name.
+ ${OSDiskName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.OperatingSystemTypes]
+ # The OS type.
+ ${OSDiskOstype},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.Int32]
+ # Specifies the size of os disk in gigabytes.
+ # This is the fully expanded disk size needed of the VHD image on the ASE.
+ # This disk size should be greater than the size of the VHD provided in vhdUri.
+ ${OSDiskSizeGb},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # Specifies the name of the administrator account.
+ #
+ #
+ # **Windows-only restriction:** Cannot end in "."
+ #
+ # **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".
+ #
+ #
+ # **Minimum-length (Linux):** 1 character
+ #
+ # **Max-length (Linux):** 64 characters
+ #
+ # **Max-length (Windows):** 20 characters
+ #
+ #
For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ #
For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ ${OSProfileAdminUsername},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # Specifies a base-64 encoded string of custom data.
+ # The base-64 encoded string is decoded to a binary array that is saved as a file on the virtual machine.
+ # The maximum length of the binary array is 65535 bytes.
+ #
+ #
+ # **Note: Do not pass any secrets or passwords in customData property**
+ #
+ # This property cannot be updated after the VM is created.
+ #
+ #
+ # customData is passed to the VM to be saved as a file.
+ # For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)
+ #
+ # For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ ${OSProfileCustomData},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.Boolean]
+ # Indicates if custom data is required to deploy this role.
+ ${OSProfileCustomDataRequired},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The name of the network function role.
+ ${RoleName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.NetworkFunctionRoleConfigurationType]
+ # Role type.
+ ${RoleType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.ISshPublicKey[]]
+ # The list of SSH public keys used to authenticate with linux based VMs.
+ # To construct, see NOTES section for SSHPUBLICKEY properties and create a hash table.
+ ${SshPublicKey},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IDataDisk[]]
+ # Specifies the parameters that are used to add a data disk to a virtual machine.
+ # To construct, see NOTES section for STORAGEPROFILEDATADISK properties and create a hash table.
+ ${StorageProfileDataDisk},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IAny]
+ # The user parameters for customers.
+ # The format of user data parameters has to be matched with the provided user data template.
+ ${UserDataParameter},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IAny]
+ # The user data template for customers.
+ # This is a json schema template describing the format and data type of user data parameters.
+ ${UserDataTemplate},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # Specifies the virtual hard disk's uri.
+ ${VhdUri},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.VirtualMachineSizeTypes]
+ # The size of the virtual machine.
+ ${VirtualMachineSize}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ __AllParameterSets = 'Az.ConnectedNetwork.custom\New-AzConnectedNetworkFunctionRoleConfigurationObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/New-AzConnectedNetworkFunctionUserConfigurationObject.ps1 b/src/ConnectedNetwork/exports/New-AzConnectedNetworkFunctionUserConfigurationObject.ps1
new file mode 100644
index 000000000000..e8d3ffa1dcaa
--- /dev/null
+++ b/src/ConnectedNetwork/exports/New-AzConnectedNetworkFunctionUserConfigurationObject.ps1
@@ -0,0 +1,130 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a in-memory object for NetworkFunctionUserConfiguration
+.Description
+Create a in-memory object for NetworkFunctionUserConfiguration
+.Example
+PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "LAN"
+PS C:\> $customData = "I2Nsb3VkLWNvbmZpZwp3cml0ZV9maWxlczoKLSBwYXRoOiAvdmFyL2xpYi9jbG91ZC9paHNzY29uZmlnLmpzb24KICBwZXJtaXNzaW9uczogJzA2NDQnCiAgb3duZXI6IHJvb3Q6cm9vdAogIGNvbnRlbnQ6IHwKICAgIHsKICAgICAgICAgICAiRGlhbWV0ZXJHVyI6ewogICAgICAgICAgICAgICAgICAiSE9TVElQQUREUkVTUyI6IjEyOC4wLjAuMSIsCiAgICAgICAgICAgICAgICAgICJGUUROIjoiaHNzLmF5VmVuZG9yLmNvbSIsCiAgICAgICAgICAgICAgICAgICJSRUFMTSI6Imhzcy5lcGMubXlWZW5kb3I5OS5teVZlbmRvci4zZ3BwbmV0d29yay5vcmciCiAgICAgICAgICAgfSwKICAgICAgICAgICAiREdXQmluZEFkZHIiOnsKICAgICAgICAgICAgICAgICAgIkFERFJFU1MiOiIxMjguMC4wLjIiLAogICAgICAgICAgICAgICAgICAiVFJBTlNQT1JUIjoiU0NUUCIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjozODY4CiAgICAgICAgICAgfSwKICAgICAgICAgICAiU05NUFRhcmdldCI6ewogICAgICAgICAgICAgICAgICAiSE9TVCI6IjEyOC4wLjAuMyIsCiAgICAgICAgICAgICAgICAgICJQT1JUIjoiMTYyIiwKICAgICAgICAgICAgICAgICAgIlRSSUdHRVJfTEVWRUwiOiIzIgogICAgICAgICAgIH0sCiAgICAgICAgICAgIk1hbmFnZW1lbnQiOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNCIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjEvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAogICAgICAgICAgICJMYW4iOnsKICAgICAgICAgICAgICAgICAgImlwQWRkcmVzcyI6IjEyOC4wLjAuNSIsCiAgICAgICAgICAgICAgICAgICJzdWJuZXQiOiIxMjguMC4wLjAvMjQiLAogICAgICAgICAgICAgICAgICAiZ2F0ZXdheSI6IjEyOC4wLjAuMCIKICAgICAgICAgICB9LAoKICAgIH0JCSAgCg=="
+PS C:\> $userconf = New-AzConnectedNetworkFunctionUserConfigurationObject -NetworkInterface $ip1,$ip2 -OSProfileCustomData $customData -RoleName "hpehss"
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionUserConfiguration
+.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.
+
+NETWORKINTERFACE : The network interface configuration.
+ [IPConfiguration ]: A list of IP configurations of the network interface.
+ [DnsServer ]: The list of DNS servers IP addresses.
+ [Gateway ]: The value of the gateway.
+ [IPAddress ]: The value of the IP address.
+ [IPAllocationMethod ]: IP address allocation method.
+ [IPVersion ]: IP address version.
+ [Subnet ]: The value of the subnet.
+ [MacAddress ]: The MAC address of the network interface.
+ [Name ]: The name of the network interface.
+ [VMSwitchType ]: The type of the VM switch.
+.Link
+https://docs.microsoft.com/powershell/module/az.ConnectedNetwork/new-AzConnectedNetworkFunctionUserConfigurationObject
+#>
+function New-AzConnectedNetworkFunctionUserConfigurationObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionUserConfiguration])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkInterface[]]
+ # The network interface configuration.
+ # To construct, see NOTES section for NETWORKINTERFACE properties and create a hash table.
+ ${NetworkInterface},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # Specifies a base-64 encoded string of custom data.
+ # The base-64 encoded string is decoded to a binary array that is saved as a file on the virtual machine.
+ # The maximum length of the binary array is 65535 bytes.
+ #
+ #
+ # **Note: Do not pass any secrets or passwords in customData property**
+ #
+ # This property cannot be updated after the VM is created.
+ #
+ #
+ # customData is passed to the VM to be saved as a file.
+ # For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)
+ #
+ # For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ ${OSProfileCustomData},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The name of the network function role.
+ ${RoleName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IAny]
+ # The user data parameters from the customer.
+ ${UserDataParameter}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ __AllParameterSets = 'Az.ConnectedNetwork.custom\New-AzConnectedNetworkFunctionUserConfigurationObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/New-AzConnectedNetworkFunctionVendorConfigurationObject.ps1 b/src/ConnectedNetwork/exports/New-AzConnectedNetworkFunctionVendorConfigurationObject.ps1
new file mode 100644
index 000000000000..c9eca7a52d65
--- /dev/null
+++ b/src/ConnectedNetwork/exports/New-AzConnectedNetworkFunctionVendorConfigurationObject.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
+Create a in-memory object for NetworkFunctionVendorConfiguration
+.Description
+Create a in-memory object for NetworkFunctionVendorConfiguration
+.Example
+PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan"
+PS C:\> $keyData = @{keyData = "ssh-rsa\AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMpVbBgu0kftv1k+z1c3NtcB5CVDoo/X9X1LE2JUjlLlo0luEkFGJk61i53BhiTSTeRmQXN8hAZ7sn4MDUmZK7fWcHouZ2fsJo+ehses3wQPLubWBFw2L/hoSTyXifXMbEBu9SxHgqf1CEKQcvdNiWf4U7npXwjweXW9DtsF5E7h4kxhKJKFI4sNFTIX0IwUB15QEVHoBs92kDwH3fBH3kZZCMBJE/u6kT+XB22crRKkIGlp3a9gcogtOCvP+3xmsP7hjw5+nHxMUwkc/6kYyfTeLwvfI4xrTWpnB5xufts5LW5/U5GOXVg97ix9EXgiV0czThowG5K2xQ649UlJb redmond\userk@n1-azuredev1"; path = $Null}
+PS C:\> $keys = @{ }
+PS C:\> $key += $keyData
+PS C:\> $vendorconf = New-AzConnectedNetworkFunctionVendorConfigurationObject -NetworkInterface $ip1,$ip2 -RoleName hpehss -OSProfileAdminUsername MecUser -OSProfileCustomData $customData -OSProfileCustomDataRequired $True -SshPublicKey $key
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionVendorConfiguration
+.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.
+
+NETWORKINTERFACE : The network interface configurations.
+ [IPConfiguration ]: A list of IP configurations of the network interface.
+ [DnsServer ]: The list of DNS servers IP addresses.
+ [Gateway ]: The value of the gateway.
+ [IPAddress ]: The value of the IP address.
+ [IPAllocationMethod ]: IP address allocation method.
+ [IPVersion ]: IP address version.
+ [Subnet ]: The value of the subnet.
+ [MacAddress ]: The MAC address of the network interface.
+ [Name ]: The name of the network interface.
+ [VMSwitchType ]: The type of the VM switch.
+
+SSHPUBLICKEY : The list of SSH public keys used to authenticate with linux based VMs.
+ [KeyData ]: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ [Path ]: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys
+.Link
+https://docs.microsoft.com/powershell/module/az.ConnectedNetwork/new-AzConnectedNetworkFunctionVendorConfigurationObject
+#>
+function New-AzConnectedNetworkFunctionVendorConfigurationObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionVendorConfiguration])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkInterface[]]
+ # The network interface configurations.
+ # To construct, see NOTES section for NETWORKINTERFACE properties and create a hash table.
+ ${NetworkInterface},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # Specifies the name of the administrator account.
+ #
+ #
+ # **Windows-only restriction:** Cannot end in "."
+ #
+ # **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5".
+ #
+ #
+ # **Minimum-length (Linux):** 1 character
+ #
+ # **Max-length (Linux):** 64 characters
+ #
+ # **Max-length (Windows):** 20 characters
+ #
+ #
For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ #
For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ ${OSProfileAdminUsername},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # Specifies a base-64 encoded string of custom data.
+ # The base-64 encoded string is decoded to a binary array that is saved as a file on the virtual machine.
+ # The maximum length of the binary array is 65535 bytes.
+ #
+ #
+ # **Note: Do not pass any secrets or passwords in customData property**
+ #
+ # This property cannot be updated after the VM is created.
+ #
+ #
+ # customData is passed to the VM to be saved as a file.
+ # For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/)
+ #
+ # For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ ${OSProfileCustomData},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.Boolean]
+ # Indicates if custom data is required to deploy this role.
+ ${OSProfileCustomDataRequired},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The name of the vendor network function role.
+ ${RoleName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.ISshPublicKey[]]
+ # The list of SSH public keys used to authenticate with linux based VMs.
+ # To construct, see NOTES section for SSHPUBLICKEY properties and create a hash table.
+ ${SshPublicKey}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ __AllParameterSets = 'Az.ConnectedNetwork.custom\New-AzConnectedNetworkFunctionVendorConfigurationObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/New-AzConnectedNetworkInterfaceIPConfigurationObject.ps1 b/src/ConnectedNetwork/exports/New-AzConnectedNetworkInterfaceIPConfigurationObject.ps1
new file mode 100644
index 000000000000..3524bebdb31f
--- /dev/null
+++ b/src/ConnectedNetwork/exports/New-AzConnectedNetworkInterfaceIPConfigurationObject.ps1
@@ -0,0 +1,111 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a in-memory object for NetworkInterfaceIPConfiguration
+.Description
+Create a in-memory object for NetworkInterfaceIPConfiguration
+.Example
+PS C:\> New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+
+DnsServer Gateway IPAddress IPAllocationMethod IPVersion Subnet
+--------- ------- --------- ------------------ --------- ------
+ Dynamic IPv4
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkInterfaceIPConfiguration
+.Link
+https://docs.microsoft.com/powershell/module/az.ConnectedNetwork/new-AzConnectedNetworkInterfaceIPConfigurationObject
+#>
+function New-AzConnectedNetworkInterfaceIPConfigurationObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkInterfaceIPConfiguration])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String[]]
+ # The list of DNS servers IP addresses.
+ ${DnsServer},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The value of the gateway.
+ ${Gateway},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The value of the IP address.
+ ${IPAddress},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.IPAllocationMethod]
+ # IP address allocation method.
+ ${IPAllocationMethod},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.IPVersion]
+ # IP address version.
+ ${IPVersion},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The value of the subnet.
+ ${Subnet}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ __AllParameterSets = 'Az.ConnectedNetwork.custom\New-AzConnectedNetworkInterfaceIPConfigurationObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/New-AzConnectedNetworkInterfaceObject.ps1 b/src/ConnectedNetwork/exports/New-AzConnectedNetworkInterfaceObject.ps1
new file mode 100644
index 000000000000..69e5850e0efc
--- /dev/null
+++ b/src/ConnectedNetwork/exports/New-AzConnectedNetworkInterfaceObject.ps1
@@ -0,0 +1,112 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Create a in-memory object for NetworkInterface
+.Description
+Create a in-memory object for NetworkInterface
+.Example
+PS C:\> New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+
+MacAddress Name VMSwitchType
+---------- ---- ------------
+ mrmmanagementnic1 Management
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkInterface
+.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.
+
+IPCONFIGURATION : A list of IP configurations of the network interface.
+ [DnsServer ]: The list of DNS servers IP addresses.
+ [Gateway ]: The value of the gateway.
+ [IPAddress ]: The value of the IP address.
+ [IPAllocationMethod ]: IP address allocation method.
+ [IPVersion ]: IP address version.
+ [Subnet ]: The value of the subnet.
+.Link
+https://docs.microsoft.com/powershell/module/az.ConnectedNetwork/new-AzConnectedNetworkInterfaceObject
+#>
+function New-AzConnectedNetworkInterfaceObject {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkInterface])]
+[CmdletBinding(PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkInterfaceIPConfiguration[]]
+ # A list of IP configurations of the network interface.
+ # To construct, see NOTES section for IPCONFIGURATION properties and create a hash table.
+ ${IPConfiguration},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The MAC address of the network interface.
+ ${MacAddress},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.String]
+ # The name of the network interface.
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.VMSwitchType]
+ # The type of the VM switch.
+ ${VMSwitchType}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ __AllParameterSets = 'Az.ConnectedNetwork.custom\New-AzConnectedNetworkInterfaceObject';
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/New-AzConnectedNetworkVendor.ps1 b/src/ConnectedNetwork/exports/New-AzConnectedNetworkVendor.ps1
new file mode 100644
index 000000000000..be364fc76013
--- /dev/null
+++ b/src/ConnectedNetwork/exports/New-AzConnectedNetworkVendor.ps1
@@ -0,0 +1,177 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a vendor.
+.Description
+Creates or updates a vendor.
+.Example
+PS C:\> New-AzConnectedNetworkVendor -Name myVendor
+
+
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/providers/Microsoft.HybridNetwork/vendors/myVendor
+Name : myVendor
+ProvisioningState : Succeeded
+ResourceGroupName :
+Sku :
+SystemDataCreatedAt : 11/23/2021 6:18:55 PM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/23/2021 6:19:08 PM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : microsoft.hybridnetwork/vendors
+.Example
+PS C:\> New-AzConnectedNetworkVendor -Name myVendor2 -SubscriptionId xxxxx-22222-xxxxx-22222
+
+
+Id : /subscriptions/xxxxx-22222-xxxxx-22222/providers/Microsoft.HybridNetwork/vendors/myVendor2
+Name : myVendor2
+ProvisioningState : Succeeded
+ResourceGroupName :
+Sku :
+SystemDataCreatedAt : 11/23/2021 6:20:28 PM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/23/2021 6:20:32 PM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Type : microsoft.hybridnetwork/vendors
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendor
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/new-azconnectednetworkvendor
+#>
+function New-AzConnectedNetworkVendor {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendor])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Alias('VendorName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the vendor.
+ ${Name},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.ConnectedNetwork.private\New-AzConnectedNetworkVendor_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.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/New-AzConnectedNetworkVendorFunction.ps1 b/src/ConnectedNetwork/exports/New-AzConnectedNetworkVendorFunction.ps1
new file mode 100644
index 000000000000..8a7ea2e666db
--- /dev/null
+++ b/src/ConnectedNetwork/exports/New-AzConnectedNetworkVendorFunction.ps1
@@ -0,0 +1,216 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a vendor network function.
+This operation can take up to 6 hours to complete.
+This is expected service behavior.
+.Description
+Creates or updates a vendor network function.
+This operation can take up to 6 hours to complete.
+This is expected service behavior.
+.Example
+PS C:\> $ipconf1 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ipconf2 = New-AzConnectedNetworkInterfaceIPConfigurationObject -IPAllocationMethod "Dynamic" -IPVersion "IPv4"
+PS C:\> $ip1 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf1 -Name "mrmmanagementnic1" -VMSwitchType "Management"
+PS C:\> $ip2 = New-AzConnectedNetworkInterfaceObject -IPConfiguration $ipconf2 -Name "mrmlannic1" -VMSwitchType "Lan"
+PS C:\> $keyData = @{keyData = "ssh-rsa\AAAAB3NzaC1yc2EAAAADAQABAAABAQCyMpVbBgu0kftv1k+z1c3NtcB5CVDoo/X9X1LE2JUjlLlo0luEkFGJk61i53BhiTSTeRmQXN8hAZ7sn4MDUmZK7fWcHouZ2fsJo+ehses3wQPLubWBFw2L/hoSTyXifXMbEBu9SxHgqf1CEKQcvdNiWf4U7npXwjweXW9DtsF5E7h4kxhKJKFI4sNFTIX0IwUB15QEVHoBs92kDwH3fBH3kZZCMBJE/u6kT+XB22crRKkIGlp3a9gcogtOCvP+3xmsP7hjw5+nHxMUwkc/6kYyfTeLwvfI4xrTWpnB5xufts5LW5/U5GOXVg97ix9EXgiV0czThowG5K2xQ649UlJb redmond\user@n1-azuredev1"; path = $Null}
+PS C:\> $keys = @{ }
+PS C:\> $key += $keyData
+PS C:\> $vendorconf = New-AzConnectedNetworkFunctionVendorConfigurationObject -NetworkInterface $ip1,$ip2 -RoleName hpehss -OSProfileAdminUsername MecUser -OSProfileCustomData $customData -OSProfileCustomDataRequired $True -SshPublicKey $key
+PS C:\> $vendorvnf1 = New-AzConnectedNetworkVendorFunction -LocationName eastus2euap -ServiceKey b78d39-xxxx-xxxx-00946c5 -SubscriptionId xxxx-4444-xxxx-4444 -VendorName myVendor -VendorConfiguration $vendorconf -SkuType EvolvedPacketCore -VendorProvisioningState Provisioning
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendorNetworkFunction
+.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.
+
+VENDORCONFIGURATION : An array of network function vendor configurations.
+ [NetworkInterface ]: The network interface configurations.
+ [IPConfiguration ]: A list of IP configurations of the network interface.
+ [DnsServer ]: The list of DNS servers IP addresses.
+ [Gateway ]: The value of the gateway.
+ [IPAddress ]: The value of the IP address.
+ [IPAllocationMethod ]: IP address allocation method.
+ [IPVersion ]: IP address version.
+ [Subnet ]: The value of the subnet.
+ [MacAddress ]: The MAC address of the network interface.
+ [Name ]: The name of the network interface.
+ [VMSwitchType ]: The type of the VM switch.
+ [OSProfileAdminUsername ]: Specifies the name of the administrator account. **Windows-only restriction:** Cannot end in "." **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". **Minimum-length (Linux):** 1 character **Max-length (Linux):** 64 characters **Max-length (Windows):** 20 characters
For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ [OSProfileCustomData ]: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in customData property** This property cannot be updated after the VM is created. customData is passed to the VM to be saved as a file. For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/) For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ [OSProfileCustomDataRequired ]: Indicates if custom data is required to deploy this role.
+ [RoleName ]: The name of the vendor network function role.
+ [SshPublicKey ]: The list of SSH public keys used to authenticate with linux based VMs.
+ [KeyData ]: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ [Path ]: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/new-azconnectednetworkvendorfunction
+#>
+function New-AzConnectedNetworkVendorFunction {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendorNetworkFunction])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The Azure region where the network function resource was created by the customer.
+ ${LocationName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The GUID for the vendor network function.
+ ${ServiceKey},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the vendor.
+ ${VendorName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.SkuType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.SkuType]
+ # The sku type.
+ ${SkuType},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunctionVendorConfiguration[]]
+ # An array of network function vendor configurations.
+ # To construct, see NOTES section for VENDORCONFIGURATION properties and create a hash table.
+ ${VendorConfiguration},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.VendorProvisioningState])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.VendorProvisioningState]
+ # The vendor controlled provisioning state of the vendor network function.
+ ${VendorProvisioningState},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.ConnectedNetwork.private\New-AzConnectedNetworkVendorFunction_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.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/New-AzConnectedNetworkVendorSku.ps1 b/src/ConnectedNetwork/exports/New-AzConnectedNetworkVendorSku.ps1
new file mode 100644
index 000000000000..559da3aecc67
--- /dev/null
+++ b/src/ConnectedNetwork/exports/New-AzConnectedNetworkVendorSku.ps1
@@ -0,0 +1,249 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates a sku.
+This operation can take up to 2 hours to complete.
+This is expected service behavior.
+.Description
+Creates or updates a sku.
+This operation can take up to 2 hours to complete.
+This is expected service behavior.
+.Example
+PS C:\> $role = New-AzConnectedNetworkFunctionRoleConfigurationObject -NetworkInterface $ip1,$ip2 -OSDiskName NetFoundry -OSDiskOstype Linux -OSDiskSizeGb 40 -OSProfileCustomDataRequired $False -OSProfileAdminUsername MecUser -RoleName hpehss -RoleType VirtualMachine -VirtualMachineSize "Standard_D3_v2" -SshPublicKey $key -StorageProfileDataDisk $storage -VhdUri "https://mecvdrvhd.blob.core.windows/myvhd.vhd"
+PS C:\> New-AzConnectedNetworkVendorSku -SkuName sku1 -VendorName myVendor -SubscriptionId xxxxx-22222-xxxxx-22222 -SkuType VirtualMachine -DeploymentMode PrivateEdgeZone -NetworkFunctionRoleConfigurationType @($role)
+
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendorSku
+.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.
+
+NETWORKFUNCTIONROLECONFIGURATIONTYPE : An array of network function role definitions.
+ [CustomProfileMetadataConfigurationPath ]: Path for metadata configuration.
+ [ImageReferenceExactVersion ]: Specifies in decimal numbers, the exact version of image used to create the virtual machine.
+ [ImageReferenceOffer ]: Specifies the offer of the image used to create the virtual machine.
+ [ImageReferencePublisher ]: The image publisher.
+ [ImageReferenceSku ]: The image SKU.
+ [ImageReferenceVersion ]: Specifies the version of the image used to create the virtual machine. The allowed formats are Major.Minor.Build or 'latest'. Major, Minor, and Build are decimal numbers. Specify 'latest' to use the latest version of an image available at deploy time. Even if you use 'latest', the VM image will not automatically update after deploy time even if a new version becomes available.
+ [NetworkInterface ]: The network interface configurations.
+ [IPConfiguration ]: A list of IP configurations of the network interface.
+ [DnsServer ]: The list of DNS servers IP addresses.
+ [Gateway ]: The value of the gateway.
+ [IPAddress ]: The value of the IP address.
+ [IPAllocationMethod ]: IP address allocation method.
+ [IPVersion ]: IP address version.
+ [Subnet ]: The value of the subnet.
+ [MacAddress ]: The MAC address of the network interface.
+ [Name ]: The name of the network interface.
+ [VMSwitchType ]: The type of the VM switch.
+ [OSDiskName ]: The VHD name.
+ [OSDiskOstype ]: The OS type.
+ [OSDiskSizeGb ]: Specifies the size of os disk in gigabytes. This is the fully expanded disk size needed of the VHD image on the ASE. This disk size should be greater than the size of the VHD provided in vhdUri.
+ [OSProfileAdminUsername ]: Specifies the name of the administrator account. **Windows-only restriction:** Cannot end in "." **Disallowed values:** "administrator", "admin", "user", "user1", "test", "user2", "test1", "user3", "admin1", "1", "123", "a", "actuser", "adm", "admin2", "aspnet", "backup", "console", "david", "guest", "john", "owner", "root", "server", "sql", "support", "support_388945a0", "sys", "test2", "test3", "user4", "user5". **Minimum-length (Linux):** 1 character **Max-length (Linux):** 64 characters **Max-length (Windows):** 20 characters
For root access to the Linux VM, see [Using root privileges on Linux virtual machines in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-use-root-privileges?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
For a list of built-in system users on Linux that should not be used in this field, see [Selecting User Names for Linux on Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-usernames?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ [OSProfileCustomData ]: Specifies a base-64 encoded string of custom data. The base-64 encoded string is decoded to a binary array that is saved as a file on the virtual machine. The maximum length of the binary array is 65535 bytes. **Note: Do not pass any secrets or passwords in customData property** This property cannot be updated after the VM is created. customData is passed to the VM to be saved as a file. For more information see [Custom Data on Azure VMs](https://azure.microsoft.com/en-us/blog/custom-data-and-cloud-init-on-windows-azure/) For using cloud-init for your Linux VM, see [Using cloud-init to customize a Linux VM during creation](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-using-cloud-init?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json)
+ [OSProfileCustomDataRequired ]: Indicates if custom data is required to deploy this role.
+ [RoleName ]: The name of the network function role.
+ [RoleType ]: Role type.
+ [SshPublicKey ]: The list of SSH public keys used to authenticate with linux based VMs.
+ [KeyData ]: SSH public key certificate used to authenticate with the VM through ssh. The key needs to be at least 2048-bit and in ssh-rsa format. For creating ssh keys, see [Create SSH keys on Linux and Mac for Linux VMs in Azure](https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-mac-create-ssh-keys?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json).
+ [Path ]: Specifies the full path on the created VM where ssh public key is stored. If the file already exists, the specified key is appended to the file. Example: /home/user/.ssh/authorized_keys
+ [StorageProfileDataDisk ]: Specifies the parameters that are used to add a data disk to a virtual machine.
+ [CreateOption ]: Specifies how the virtual machine should be created.
+ [DiskSizeGb ]: Specifies the size of an empty disk in gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image.
+ [Name ]: The name of data disk.
+ [UserDataParameter ]: The user parameters for customers. The format of user data parameters has to be matched with the provided user data template.
+ [UserDataTemplate ]: The user data template for customers. This is a json schema template describing the format and data type of user data parameters.
+ [VhdUri ]: Specifies the virtual hard disk's uri.
+ [VirtualMachineSize ]: The size of the virtual machine.
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/new-azconnectednetworkvendorsku
+#>
+function New-AzConnectedNetworkVendorSku {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendorSku])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the sku.
+ ${SkuName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the vendor.
+ ${VendorName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.SkuDeploymentMode])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.SkuDeploymentMode]
+ # The sku deployment mode.
+ ${DeploymentMode},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendorSkuPropertiesFormatManagedApplicationParameters]))]
+ [System.Collections.Hashtable]
+ # The parameters for the managed application to be supplied by the vendor.
+ ${ManagedApplicationParameter},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IVendorSkuPropertiesFormatManagedApplicationTemplate]))]
+ [System.Collections.Hashtable]
+ # The template for the managed application deployment.
+ ${ManagedApplicationTemplate},
+
+ [Parameter()]
+ [AllowEmptyCollection()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunctionRoleConfiguration[]]
+ # An array of network function role definitions.
+ # To construct, see NOTES section for NETWORKFUNCTIONROLECONFIGURATIONTYPE properties and create a hash table.
+ ${NetworkFunctionRoleConfigurationType},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.NetworkFunctionType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.NetworkFunctionType]
+ # The network function type.
+ ${NetworkFunctionType},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [System.Management.Automation.SwitchParameter]
+ # Indicates if the vendor sku is in preview mode.
+ ${Preview},
+
+ [Parameter()]
+ [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.SkuType])]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Body')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Support.SkuType]
+ # The sku type.
+ ${SkuType},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.ConnectedNetwork.private\New-AzConnectedNetworkVendorSku_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.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/New-AzConnectedNetworkVendorSkuPreview.ps1 b/src/ConnectedNetwork/exports/New-AzConnectedNetworkVendorSkuPreview.ps1
new file mode 100644
index 000000000000..477426aafc29
--- /dev/null
+++ b/src/ConnectedNetwork/exports/New-AzConnectedNetworkVendorSkuPreview.ps1
@@ -0,0 +1,171 @@
+
+# ----------------------------------------------------------------------------------
+# Copyright (c) Microsoft Corporation. All rights reserved.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# http://www.apache.org/licenses/LICENSE-2.0
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+# Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
+# is regenerated.
+# ----------------------------------------------------------------------------------
+
+<#
+.Synopsis
+Creates or updates preview information of a vendor sku.
+.Description
+Creates or updates preview information of a vendor sku.
+.Example
+PS C:\> New-AzConnectedNetworkVendorSkuPreview -PreviewSubscription xxxxx-00000-xxxxx-00000 -SkuName mySku -VendorName myVendor -SubscriptionId xxxxx-22222-xxxxx-22222
+
+Id : /subscriptions/xxxxx-22222-xxxxx-22222/providers/Microsoft.HybridNetwork/vendors/myVendor/vendorSkus/mySku/previewSubscriptions/xxxxx-00000-xxxxx-00000
+Name : xxxxx-00000-xxxxx-00000
+ProvisioningState : Succeeded
+ResourceGroupName :
+SystemDataCreatedAt : 12/6/2021 5:37:35 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 12/6/2021 5:37:35 AM
+SystemDataLastModifiedBy : user@microsoft.com
+SystemDataLastModifiedByType : User
+Type : microsoft.hybridnetwork/vendors/vendorskus/previewsubscriptions
+
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IPreviewSubscription
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/new-azconnectednetworkvendorskupreview
+#>
+function New-AzConnectedNetworkVendorSkuPreview {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IPreviewSubscription])]
+[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # Preview subscription ID.
+ ${PreviewSubscription},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the vendor sku.
+ ${SkuName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the vendor.
+ ${VendorName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command as a job
+ ${AsJob},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Run the command asynchronously
+ ${NoWait},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Use the default credentials for the proxy
+ ${ProxyUseDefaultCredentials}
+)
+
+begin {
+ try {
+ $outBuffer = $null
+ if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) {
+ $PSBoundParameters['OutBuffer'] = 1
+ }
+ $parameterSet = $PSCmdlet.ParameterSetName
+ $mapping = @{
+ CreateExpanded = 'Az.ConnectedNetwork.private\New-AzConnectedNetworkVendorSkuPreview_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.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
diff --git a/src/ConnectedNetwork/exports/ProxyCmdletDefinitions.ps1 b/src/ConnectedNetwork/exports/ProxyCmdletDefinitions.ps1
new file mode 100644
index 000000000000..619b7d10f3b7
--- /dev/null
+++ b/src/ConnectedNetwork/exports/ProxyCmdletDefinitions.ps1
@@ -0,0 +1,5489 @@
+
+# ----------------------------------------------------------------------------------
+# 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
+List the registration key for the device.
+.Description
+List the registration key for the device.
+.Example
+PS C:\> Get-AzConnectedNetworkDeviceRegistrationKey -DeviceName myMecDevice -ResourceGroupName myResources
+
+eyJNZWNEZXZpY2VUcmFuc2llbnRBdXRoS2V5IjoiMTIzNCIsIk1lY0RldmljZUF1dGhLZXlTdGFydFRpbWUiOiIyMDIxLTExLTIyVDA5OjQ2OjQwLjY0ODExOTFaIiwiU2VydmljZUJ1c1F1ZXVlTmFtZSI6ImFiY2QtMTIzNCIsIkFBREVuZHBvaW50IjpudWxsLCJBQURBdWRpZW5jZSI6bnVsbCwiQXJtUmVzb3VyY2VJZCI6bnVsbCwiTWVjQ29udHJvbGxlckVuZHBvaW50IjoiaHR0cHM6Ly93ZXN0Y2VudHJhbHVzLXByb2QubWVjZGV2aWNlLmF6dXJlLmNvbTo0NDMiLCJEYmVEZXZpY2VJZCI6bnVsbCwiUmVzb3VyY2VVbmlxdWVJZCI6IjEyMy1hYmMtMTIzIiwiU3Vic2NyaXB0aW9uSWQiOiJ4eHh4LTEyMzQteHh4eC0xMjM0IiwiUmVzb3VyY2VHcm91cE5hbWUiOiJzYW1wbGVSR25hbWUiLCJQcm92aWRlck5hbWVzcGFjZSI6Ik1pY3Jvc29mdC5IeWJyaWROZXR3b3JrIiwiUmVzb3VyY2VUeXBlIjoiRGV2aWNlcyIsIlJlc291cmNlVHlwZU5hbWUiOiJJREMtRGV2aWNlNC1XZXN0Q2VudHJhbCJ9
+.Example
+PS C:\> Get-AzConnectedNetworkDeviceRegistrationKey -DeviceName myMecDevice -ResourceGroupName myResources -SubscriptionId xxxxx-00000-xxxxx-00000
+
+eyJNZWNEZXZpY2VUcmFuc2llbnRBdXRoS2V5IjoiMTIzNCIsIk1lY0RldmljZUF1dGhLZXlTdGFydFRpbWUiOiIyMDIxLTExLTIyVDA5OjQ2OjQwLjY0ODExOTFaIiwiU2VydmljZUJ1c1F1ZXVlTmFtZSI6ImFiY2QtMTIzNCIsIkFBREVuZHBvaW50IjpudWxsLCJBQURBdWRpZW5jZSI6bnVsbCwiQXJtUmVzb3VyY2VJZCI6bnVsbCwiTWVjQ29udHJvbGxlckVuZHBvaW50IjoiaHR0cHM6Ly93ZXN0Y2VudHJhbHVzLXByb2QubWVjZGV2aWNlLmF6dXJlLmNvbTo0NDMiLCJEYmVEZXZpY2VJZCI6bnVsbCwiUmVzb3VyY2VVbmlxdWVJZCI6IjEyMy1hYmMtMTIzIiwiU3Vic2NyaXB0aW9uSWQiOiJ4eHh4LTEyMzQteHh4eC0xMjM0IiwiUmVzb3VyY2VHcm91cE5hbWUiOiJzYW1wbGVSR25hbWUiLCJQcm92aWRlck5hbWVzcGFjZSI6Ik1pY3Jvc29mdC5IeWJyaWROZXR3b3JrIiwiUmVzb3VyY2VUeXBlIjoiRGV2aWNlcyIsIlJlc291cmNlVHlwZU5hbWUiOiJJREMtRGV2aWNlNC1XZXN0Q2VudHJhbCJ9
+
+.Outputs
+System.String
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkdeviceregistrationkey
+#>
+function Get-AzConnectedNetworkDeviceRegistrationKey {
+[OutputType([System.String])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
+param(
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the device resource.
+ ${DeviceName},
+
+ [Parameter(Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkDeviceRegistrationKey_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Gets information about the specified device.
+.Description
+Gets information about the specified device.
+.Example
+PS C:\> Get-AzConnectedNetworkDevice -ResourceGroupName myResources -Name myMecDevice
+
+
+DeviceType : AzureStackEdge
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice
+Location : westcentralus
+Name : myMecDevice
+NetworkFunction : {/subscriptions/xxxxx-00000-xxxxx-00000/resourcegroups/myResources/providers/Microsoft.HybridNetwork/networkFunctions/myVnf1}
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+Status : Registered
+SystemDataCreatedAt : 11/25/2020 5:34:49 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/25/2020 5:58:38 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : Microsoft.HybridNetwork/devices
+
+.Example
+PS C:\> $mecDevice = @{ DeviceName = "myMecDevice1"; Location = "eastus"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"}
+PS C:\> Get-AzConnectedNetworkDevice -InputObject $mecDevice
+
+
+DeviceType : AzureStackEdge
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMecDevice1
+Location : eastus
+Name : myMecDevice1
+NetworkFunction : {/subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/mrg-vmware_sdwan_edge_zones-20211124063650/providers/Microsoft.HybridNetwork/networkFunctions/myEdge1}
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+Status : Registered
+SystemDataCreatedAt : 11/23/2021 10:27:13 PM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/24/2021 7:42:41 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/devices
+
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IDevice
+.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
+ [DeviceName ]: The name of the device resource.
+ [Id ]: Resource identity path
+ [LocationName ]: The Azure region where the network function resource was created by the customer.
+ [NetworkFunctionName ]: The name of the network function.
+ [PreviewSubscription ]: Preview subscription ID.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RoleInstanceName ]: The name of the role instance of the vendor network function.
+ [ServiceKey ]: The GUID for the vendor network function.
+ [SkuName ]: The name of the sku.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VendorName ]: The name of the vendor.
+ [VendorSkuName ]: The name of the network function sku.
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkdevice
+#>
+function Get-AzConnectedNetworkDevice {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IDevice])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('DeviceName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the device resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ Get = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkDevice_Get';
+ GetViaIdentity = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkDevice_GetViaIdentity';
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkDevice_List';
+ List1 = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkDevice_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Lists all the available vendor and sku information.
+.Description
+Lists all the available vendor and sku information.
+.Example
+PS C:\> Get-AzConnectedNetworkFunctionVendor
+
+SkuList VendorName
+------- ----------
+{vendor-sku, vendor-sku1, vendor-sku2, vendor-sku3, vendor-sku4, vendor-sku4, vendor-sku5...} myVendor
+{vendor1-sku, vendor1-sku2} myVendor1
+{vendor2-sku1} myVendor2
+.Example
+PS C:\> Get-AzConnectedNetworkFunctionVendor -SubscriptionId "xxxxx-00000-xxxxx-00000"
+
+SkuList VendorName
+------- ----------
+{vendor1-sku, vendor1-sku2} myVendor1
+{vendor2-sku1} myVendor2
+
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunctionVendor
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkfunctionvendor
+#>
+function Get-AzConnectedNetworkFunctionVendor {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunctionVendor])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkFunctionVendor_List';
+ }
+ if (('List') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Gets information about the specified network function resource.
+.Description
+Gets information about the specified network function resource.
+.Example
+PS C:\> Get-AzConnectedNetworkFunction -Name myVnf -ResourceGroupName myResources
+
+
+ContainerConfiguration : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatNetworkFunctionContainerConfigurations
+DeviceId : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMec
+Etag : "0000a530-0000-3400-0000-615c10fa0000"
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/networkFunctions/myVnf
+Location : centraluseuap
+ManagedApplicationId :
+ManagedApplicationParameter : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatManagedApplicationParameters
+Name : myVnf
+ProvisioningState : Failed
+ResourceGroupName : myResources
+ServiceKey : 397a7415-ec52-46b5-892b-f840ba491aab
+SkuName : mySku1
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 10/5/2021 8:45:49 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 10/5/2021 8:46:49 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/networkfunctions
+UserConfiguration : {hpehss}
+VendorName : AffirmedVendor
+VendorProvisioningState : NotProvisioned
+
+.Example
+PS C:\> $vnf = @{ NetworkFunctionName = "myVnf1"; ResourceGroupName = "myResources"; SubscriptionId = "xxxxx-00000-xxxxx-00000"}
+PS C:\> Get-AzConnectedNetworkFunction -InputObject $vnf
+
+
+ContainerConfiguration : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatNetworkFunctionContainerConfigurations
+DeviceId : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/devices/myMec1
+Etag : "sampleEtagValue"
+Id : /subscriptions/xxxxx-00000-xxxxx-00000/resourceGroups/myResources/providers/Microsoft.HybridNetwork/networkFunctions/myVnf1
+Location : eastus
+ManagedApplicationId :
+ManagedApplicationParameter : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.NetworkFunctionPropertiesFormatManagedApplicationParameters
+Name : myVnf1
+ProvisioningState : Succeeded
+ResourceGroupName : myResources
+ServiceKey : aa11-bb22-cc33-dd44
+SkuName : mySku
+SkuType : EvolvedPacketCore
+SystemDataCreatedAt : 11/1/2021 11:13:57 AM
+SystemDataCreatedBy : user@microsoft.com
+SystemDataCreatedByType : User
+SystemDataLastModifiedAt : 11/15/2021 4:53:08 AM
+SystemDataLastModifiedBy : xxxxx-11111-xxxxx-11111
+SystemDataLastModifiedByType : Application
+Tag : Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20.TrackedResourceTags
+Type : microsoft.hybridnetwork/networkfunctions
+UserConfiguration : {hpehss}
+VendorName : AffirmedVendor
+VendorProvisioningState : Provisioned
+
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunction
+.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
+ [DeviceName ]: The name of the device resource.
+ [Id ]: Resource identity path
+ [LocationName ]: The Azure region where the network function resource was created by the customer.
+ [NetworkFunctionName ]: The name of the network function.
+ [PreviewSubscription ]: Preview subscription ID.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RoleInstanceName ]: The name of the role instance of the vendor network function.
+ [ServiceKey ]: The GUID for the vendor network function.
+ [SkuName ]: The name of the sku.
+ [SubscriptionId ]: The ID of the target subscription.
+ [VendorName ]: The name of the vendor.
+ [VendorSkuName ]: The name of the network function sku.
+.Link
+https://docs.microsoft.com/powershell/module/az.connectednetwork/get-azconnectednetworkfunction
+#>
+function Get-AzConnectedNetworkFunction {
+[OutputType([Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.INetworkFunction])]
+[CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)]
+param(
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Alias('NetworkFunctionName')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the network function resource.
+ ${Name},
+
+ [Parameter(ParameterSetName='Get', Mandatory)]
+ [Parameter(ParameterSetName='List1', Mandatory)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [System.String]
+ # The name of the resource group.
+ # The name is case insensitive.
+ ${ResourceGroupName},
+
+ [Parameter(ParameterSetName='Get')]
+ [Parameter(ParameterSetName='List')]
+ [Parameter(ParameterSetName='List1')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.DefaultInfo(Script='(Get-AzContext).Subscription.Id')]
+ [System.String[]]
+ # The ID of the target subscription.
+ ${SubscriptionId},
+
+ [Parameter(ParameterSetName='GetViaIdentity', Mandatory, ValueFromPipeline)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Path')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity]
+ # Identity Parameter
+ # To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
+ ${InputObject},
+
+ [Parameter()]
+ [Alias('AzureRMContext', 'AzureCredential')]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Azure')]
+ [System.Management.Automation.PSObject]
+ # The credentials, account, tenant, and subscription used for communication with Azure.
+ ${DefaultProfile},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.SwitchParameter]
+ # Wait for .NET debugger to attach
+ ${Break},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be appended to the front of the pipeline
+ ${HttpPipelineAppend},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Runtime.SendAsyncStep[]]
+ # SendAsync Pipeline Steps to be prepended to the front of the pipeline
+ ${HttpPipelinePrepend},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Uri]
+ # The URI for the proxy server to use
+ ${Proxy},
+
+ [Parameter(DontShow)]
+ [ValidateNotNull()]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Category('Runtime')]
+ [System.Management.Automation.PSCredential]
+ # Credentials for a proxy server to use for the remote call
+ ${ProxyCredential},
+
+ [Parameter(DontShow)]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 = @{
+ Get = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkFunction_Get';
+ GetViaIdentity = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkFunction_GetViaIdentity';
+ List = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkFunction_List';
+ List1 = 'Az.ConnectedNetwork.private\Get-AzConnectedNetworkFunction_List1';
+ }
+ if (('Get', 'List', 'List1') -contains $parameterSet -and -not $PSBoundParameters.ContainsKey('SubscriptionId')) {
+ $PSBoundParameters['SubscriptionId'] = (Get-AzContext).Subscription.Id
+ }
+ $cmdInfo = Get-Command -Name $mapping[$parameterSet]
+ [Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.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 {
+ throw
+ }
+}
+
+process {
+ try {
+ $steppablePipeline.Process($_)
+ } catch {
+ throw
+ }
+}
+
+end {
+ try {
+ $steppablePipeline.End()
+ } catch {
+ throw
+ }
+}
+}
+
+<#
+.Synopsis
+Gets the information of role instance of vendor network function.
+.Description
+Gets the information of role instance of vendor network function.
+.Example
+PS C:\> Get-AzConnectedNetworkVendorFunctionRoleInstance -LocationName centraluseuap -ServiceKey 1234-abcd-4321-dcba -SubscriptionId xxxx-3333-xxxx-3333 -VendorName myVendor -Name hpehss
+
+Id :
+Name : hpehss
+OperationalState : Running
+ProvisioningState :
+ResourceGroupName :
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Type :
+
+.Example
+PS C:\> $role = @{ RoleInstanceName = "hpehss"; LocationName = "centraluseuap"; SubscriptionId = "xxxx-3333-xxxx-3333"; VendorName = "myVendor"; serviceKey = "1234-abcd-4321-dcba"}
+PS C:\> Get-AzConnectedNetworkVendorFunctionRoleInstance -InputObject $role
+
+Id :
+Name : hpehss
+OperationalState : Stopped
+ProvisioningState :
+ResourceGroupName :
+SystemDataCreatedAt :
+SystemDataCreatedBy :
+SystemDataCreatedByType :
+SystemDataLastModifiedAt :
+SystemDataLastModifiedBy :
+SystemDataLastModifiedByType :
+Type :
+
+
+.Inputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.IConnectedNetworkIdentity
+.Outputs
+Microsoft.Azure.PowerShell.Cmdlets.ConnectedNetwork.Models.Api20210501.IRoleInstance
+.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
+ [DeviceName ]: The name of the device resource.
+ [Id ]: Resource identity path
+ [LocationName ]: The Azure region where the network function resource was created by the customer.
+ [NetworkFunctionName ]: The name of the network function.
+ [PreviewSubscription ]: Preview subscription ID.
+ [ResourceGroupName ]: The name of the resource group. The name is case insensitive.
+ [RoleInstanceName ]: The name of the role instance of the vendor network function.
+ [ServiceKey ]: The GUID for the vendor network function.
+ [SkuName ]: The name of the sku.
+ [SubscriptionId