Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.22k stars 3.83k forks source link

Create IoT Edge Deployments #11781

Open vslepakov opened 4 years ago

vslepakov commented 4 years ago

It would be nice to have a way to create IoT Edge deployments in IoT Hub similar to az iot edge deployment create.

Is there a workaround for doing so, other than mixing azure powershell and az cli?

dingmeng-xue commented 4 years ago

@dcaro , do you know if we have module support IoTEdge?

dcaro commented 4 years ago

@vslepakov have you looked at the latest version of Az.IotHub, cmdlets to invoke an edge module method in an Iot Hub have been added.

vslepakov commented 4 years ago

I do have the latest version:

Version    Name                                Repository           Description
-------    ----                                ----------           -----------
2.4.0      Az.IotHub                           PSGallery            Microsoft Azure PowerShell - IoT Hub service cmdlets for Azure Resource Man...

Which CMdlet would do a module deployment? Add-AzIotHubModule is not for that... Looking at the docs here

Listing Cmdlets in the module yields strange result. I have version 2.4.0 of the Module installed but Cmdlet are 2.3.0...:

CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Alias           Add-AzIotHubDCL                                    2.3.0      Az.IotHub
Alias           Add-AzIotHubEHCG                                   2.3.0      Az.IotHub
Alias           Add-AzIotHubMsgEnrich                              2.3.0      Az.IotHub
Alias           Get-AzIotHubCVC                                    2.3.0      Az.IotHub
Alias           Get-AzIotHubDCL                                    2.3.0      Az.IotHub
Alias           Get-AzIotHubDCS                                    2.3.0      Az.IotHub
Alias           Get-AzIotHubEHCG                                   2.3.0      Az.IotHub
Alias           Get-AzIotHubMCS                                    2.3.0      Az.IotHub
Alias           Get-AzIotHubMsgEnrich                              2.3.0      Az.IotHub
Alias           Get-AzIotHubTracing                                2.3.0      Az.IotHub
Alias           Remove-AzIotHubDCL                                 2.3.0      Az.IotHub
Alias           Remove-AzIotHubEHCG                                2.3.0      Az.IotHub
Alias           Remove-AzIotHubMsgEnrich                           2.3.0      Az.IotHub
Alias           Set-AzIotHubMsgEnrich                              2.3.0      Az.IotHub
Alias           Set-AzIotHubTracing                                2.3.0      Az.IotHub
Alias           Set-AzIotHubVC                                     2.3.0      Az.IotHub
Cmdlet          Add-AzIotHubCertificate                            2.3.0      Az.IotHub
Cmdlet          Add-AzIotHubDevice                                 2.3.0      Az.IotHub
Cmdlet          Add-AzIotHubDeviceChildren                         2.3.0      Az.IotHub
Cmdlet          Add-AzIotHubEventHubConsumerGroup                  2.3.0      Az.IotHub
Cmdlet          Add-AzIotHubKey                                    2.3.0      Az.IotHub
Cmdlet          Add-AzIotHubMessageEnrichment                      2.3.0      Az.IotHub
Cmdlet          Add-AzIotHubModule                                 2.3.0      Az.IotHub
Cmdlet          Add-AzIotHubRoute                                  2.3.0      Az.IotHub
Cmdlet          Add-AzIotHubRoutingEndpoint                        2.3.0      Az.IotHub
Cmdlet          Get-AzIotHub                                       2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubCertificate                            2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubCertificateVerificationCode            2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubConnectionString                       2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubDevice                                 2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubDeviceChildren                         2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubDeviceConnectionString                 2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubDeviceParent                           2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubDistributedTracing                     2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubEventHubConsumerGroup                  2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubJob                                    2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubKey                                    2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubMessageEnrichment                      2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubModule                                 2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubModuleConnectionString                 2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubQuotaMetric                            2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubRegistryStatistic                      2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubRoute                                  2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubRoutingEndpoint                        2.3.0      Az.IotHub
Cmdlet          Get-AzIotHubValidSku                               2.3.0      Az.IotHub
Cmdlet          Invoke-AzIotHubManualFailover                      2.3.0      Az.IotHub
Cmdlet          New-AzIotHub                                       2.3.0      Az.IotHub
Cmdlet          New-AzIotHubExportDevice                           2.3.0      Az.IotHub
Cmdlet          New-AzIotHubImportDevice                           2.3.0      Az.IotHub
Cmdlet          New-AzIotHubKey                                    2.3.0      Az.IotHub
Cmdlet          Remove-AzIotHub                                    2.3.0      Az.IotHub
Cmdlet          Remove-AzIotHubCertificate                         2.3.0      Az.IotHub
Cmdlet          Remove-AzIotHubDevice                              2.3.0      Az.IotHub
Cmdlet          Remove-AzIotHubDeviceChildren                      2.3.0      Az.IotHub
Cmdlet          Remove-AzIotHubEventHubConsumerGroup               2.3.0      Az.IotHub
Cmdlet          Remove-AzIotHubKey                                 2.3.0      Az.IotHub
Cmdlet          Remove-AzIotHubMessageEnrichment                   2.3.0      Az.IotHub
Cmdlet          Remove-AzIotHubModule                              2.3.0      Az.IotHub
Cmdlet          Remove-AzIotHubRoute                               2.3.0      Az.IotHub
Cmdlet          Remove-AzIotHubRoutingEndpoint                     2.3.0      Az.IotHub
Cmdlet          Set-AzIotHub                                       2.3.0      Az.IotHub
Cmdlet          Set-AzIotHubDevice                                 2.3.0      Az.IotHub
Cmdlet          Set-AzIotHubDeviceParent                           2.3.0      Az.IotHub
Cmdlet          Set-AzIotHubDistributedTracing                     2.3.0      Az.IotHub
Cmdlet          Set-AzIotHubMessageEnrichment                      2.3.0      Az.IotHub
Cmdlet          Set-AzIotHubModule                                 2.3.0      Az.IotHub
Cmdlet          Set-AzIotHubRoute                                  2.3.0      Az.IotHub
Cmdlet          Set-AzIotHubVerifiedCertificate                    2.3.0      Az.IotHub
Cmdlet          Test-AzIotHubRoute                                 2.3.0      Az.IotHub
Cmdlet          Update-AzIotHub                                    2.3.0      Az.IotHub