Skip to content

Commit 07db5f9

Browse files
authored
Merge pull request #3250 from rkmanda/dev
Iot Hub Commandlets
2 parents b841e45 + 45688ca commit 07db5f9

File tree

92 files changed

+14015
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+14015
-2
lines changed

AzurePowershell.Test.targets

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
<XUnitTests Include=".\src\ResourceManager\Dns\Commands.Dns.Test\bin\Debug\Microsoft.Azure.Commands.Dns.Test.dll"/>
8686
<XUnitTests Include=".\src\ResourceManager\HDInsight\Commands.HDInsight.Test\bin\Debug\Commands.HDInsight.Test.dll"/>
8787
<XUnitTests Include=".\src\ResourceManager\Insights\Commands.Insights.Test\bin\Debug\Microsoft.Azure.Commands.Insights.Test.dll"/>
88+
<XUnitTests Include=".\src\ResourceManager\IotHub\Commands.IotHub.Test\bin\Debug\Microsoft.Azure.Commands.IotHub.Test.dll"/>
8889
<XUnitTests Include=".\src\ResourceManager\KeyVault\Commands.KeyVault.Test\bin\Debug\Microsoft.Azure.Commands.KeyVault.Test.dll"/>
8990
<XUnitTests Include=".\src\ResourceManager\LogicApp\Commands.LogicApp.Test\bin\Debug\Microsoft.Azure.Commands.LogicApp.Test.dll"/>
9091
<XUnitTests Include=".\src\ResourceManager\Network\Commands.Network.Test\bin\Debug\Microsoft.Azure.Commands.Network.Test.dll"/>

setup/azurecmdfiles.wxi

Lines changed: 82 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<DirectoryRef Id="PowerShellFolder">
55
<Directory Id="dirB60B5B1F56FA5598EFFC960CA393FDCE" Name="ResourceManager">
66
<Directory Id="dir9E409EB63EF03736275B51044C819FD8" Name="AzureResourceManager">
7-
<Directory Id="dir887149D384FA060718922AB0DA37F700" Name="AzureRM.AnalysisServices">
7+
<Directory Id="dir887149D384FA060718922AB0DA37F700" Name="AzureRM.AnalysisServices">
88
<Component Id="cmpE1934F4197E90691F3F4FD7D0D17559F" Guid="*">
99
<File Id="filDF0DDEF57A08314CBF3061F3513F605F" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.AnalysisServices\AzureRM.AnalysisServices.psd1" />
1010
</Component>
@@ -1347,7 +1347,9 @@
13471347
<File Id="fil0BC58752DC9792178625EA842D496953" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Insights\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll" />
13481348
</Component>
13491349
<Component Id="cmpE389288C5CA88334DBFAA1A298DFDC57" Guid="*">
1350-
<File Id="fil3D9EA2F20E6C186138C8614E1378739F" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Insights\Microsoft.Rest.ClientRuntime.Azure.dll" />
1350+
1351+
<File Id="fil3D9EA2F20E6C186138C8614E1378739F" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Insights\Microsoft.Rest.ClientRuntime.Azure.dll" />
1352+
13511353
</Component>
13521354
<Component Id="cmpE0A4360ECC0B00A74E3D29F280B2FD2E" Guid="*">
13531355
<File Id="fil1FB9B7667782F24EAC7BB0B862A44410" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Insights\Microsoft.Rest.ClientRuntime.dll" />
@@ -1368,6 +1370,65 @@
13681370
<File Id="filF161B346D39B2AA99CBA7434BC7AD7C6" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.Insights\System.Spatial.dll" />
13691371
</Component>
13701372
</Directory>
1373+
<Directory Id="dirF584E982D38358ACFBC86D63B65C660D" Name="AzureRM.IotHub">
1374+
<Component Id="cmp15C1FCDD65CEFB52792FB6ED02513E11" Guid="*">
1375+
<File Id="fil460159C989FDF3CB2AF8CD1E8424DA14" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\AzureRM.IotHub.psd1" />
1376+
</Component>
1377+
<Component Id="cmpA2E684A10B5D1FE61816950EA488B619" Guid="*">
1378+
<File Id="filED0A74764367CDCB2F139E0F579A43A9" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Hyak.Common.dll" />
1379+
</Component>
1380+
<Component Id="cmp66C6BE87523BE39FE5A322FE66E678E7" Guid="*">
1381+
<File Id="filBE6DD300B7F72099FD56C5BD95F6BB7A" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.ApplicationInsights.dll" />
1382+
</Component>
1383+
<Component Id="cmp86081ADAC830B3D07556FEAFE131C749" Guid="*">
1384+
<File Id="fil5F6C619C11649230601A4EDB0A27B1B1" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.Azure.Commands.Common.Authentication.dll" />
1385+
</Component>
1386+
<Component Id="cmpE29D513714759F365A7C0A2A7F2B5DC6" Guid="*">
1387+
<File Id="fil1DC7AA19B6A146E17F6C7BF32B2DC1DC" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.Azure.Commands.IotHub.dll" />
1388+
</Component>
1389+
<Component Id="cmpC67F14F377421F1BCD74EC5A579D43CB" Guid="*">
1390+
<File Id="filE9553CEC1D67AB3D4B77759239D60B18" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.Azure.Commands.IotHub.dll-Help.xml" />
1391+
</Component>
1392+
<Component Id="cmpD844DA64698210481D550B5CD8799D26" Guid="*">
1393+
<File Id="filA23D9B350E9B87D17B90B2181AE71E4B" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.Azure.Commands.IotHub.format.ps1xml" />
1394+
</Component>
1395+
<Component Id="cmpB0A6B8E083FEAEC29D41F54189DC6605" Guid="*">
1396+
<File Id="fil0CEDF2B42D00B6AA1ED0146F283B5678" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.Azure.Common.dll" />
1397+
</Component>
1398+
<Component Id="cmpB2620706D83DB49D3434BB39A5495055" Guid="*">
1399+
<File Id="fil25CE08F7EB56AE8EC1194FA03EBC6672" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.Azure.Common.NetFramework.dll" />
1400+
</Component>
1401+
<Component Id="cmpF5573D31421ADB24A2D619C190A97C1F" Guid="*">
1402+
<File Id="fil4027DB096F59C3C354B02A083B2C8154" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.Azure.Management.IotHub.dll" />
1403+
</Component>
1404+
<Component Id="cmp387EE183994C262A555F695B8BFFE393" Guid="*">
1405+
<File Id="fil5C4561EFB7C252FCFA3783C6CB7C8F9E" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.Azure.Test.HttpRecorder.dll" />
1406+
</Component>
1407+
<Component Id="cmp6A1E4D27103974825902C21E8E1FD2E2" Guid="*">
1408+
<File Id="fil49E21EDF304CA9D7462C8423A65E3A7D" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.IdentityModel.Clients.ActiveDirectory.dll" />
1409+
</Component>
1410+
<Component Id="cmp039E84251C0B3C024FA68A2AC05A698A" Guid="*">
1411+
<File Id="fil143C5B5F0BC4A6C0D42A1C64A606D01F" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.IdentityModel.Clients.ActiveDirectory.WindowsForms.dll" />
1412+
</Component>
1413+
<Component Id="cmp03ACB56F799100284032737A10AD9135" Guid="*">
1414+
<File Id="fil4D7C8919366F59A238D118AB8FEA5134" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.Rest.ClientRuntime.Azure.Authentication.dll" />
1415+
</Component>
1416+
<Component Id="cmpBE50235D76A86D1FCDD23FB9F4F11656" Guid="*">
1417+
<File Id="fil3C4B3CF7411853653290931AD6AC008D" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.Rest.ClientRuntime.Azure.dll" />
1418+
</Component>
1419+
<Component Id="cmp34F1F991C47614267C6CCECB4F2F10BB" Guid="*">
1420+
<File Id="fil3E4080973B3233082A3B718B70A08143" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.Rest.ClientRuntime.dll" />
1421+
</Component>
1422+
<Component Id="cmp23612602759A96AFDD9DD8C6C6E932E9" Guid="*">
1423+
<File Id="filE005DDDCC0DE7E9DD8A7E3DB2FDB4071" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.Threading.Tasks.dll" />
1424+
</Component>
1425+
<Component Id="cmpE8882F4395006099566B21CF86176666" Guid="*">
1426+
<File Id="filCCA9DDA286BAE690774FAA2B86D1065C" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Microsoft.WindowsAzure.Commands.Common.dll" />
1427+
</Component>
1428+
<Component Id="cmpB1CD14B4C7D4BD71D820606900089681" Guid="*">
1429+
<File Id="fil41CD3B4B683419526E6C17ECD9CCA694" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.IotHub\Newtonsoft.Json.dll" />
1430+
</Component>
1431+
</Directory>
13711432
<Directory Id="dirA5BF4C5FC88CC5FD4E43A0FA840806C7" Name="AzureRM.KeyVault">
13721433
<Component Id="cmpAB04FC1EEE889CA90013762F64086BFF" Guid="*">
13731434
<File Id="fil83ACE69C51FD4368547AE421E6E1E09A" KeyPath="yes" Source="$(var.sourceDir)\ResourceManager\AzureResourceManager\AzureRM.KeyVault\AzureRM.KeyVault.psd1" />
@@ -5966,6 +6027,25 @@
59666027
<ComponentRef Id="cmpD0CBA309930AE994CD67A5EB7C9B5B10" />
59676028
<ComponentRef Id="cmp7781002FCC3D1B3F0519A286C3E916E9" />
59686029
<ComponentRef Id="cmp09C89A8B21C5D2C4595F1D35C982F73B" />
6030+
<ComponentRef Id="cmp15C1FCDD65CEFB52792FB6ED02513E11" />
6031+
<ComponentRef Id="cmpA2E684A10B5D1FE61816950EA488B619" />
6032+
<ComponentRef Id="cmp66C6BE87523BE39FE5A322FE66E678E7" />
6033+
<ComponentRef Id="cmp86081ADAC830B3D07556FEAFE131C749" />
6034+
<ComponentRef Id="cmpE29D513714759F365A7C0A2A7F2B5DC6" />
6035+
<ComponentRef Id="cmpC67F14F377421F1BCD74EC5A579D43CB" />
6036+
<ComponentRef Id="cmpD844DA64698210481D550B5CD8799D26" />
6037+
<ComponentRef Id="cmpB0A6B8E083FEAEC29D41F54189DC6605" />
6038+
<ComponentRef Id="cmpB2620706D83DB49D3434BB39A5495055" />
6039+
<ComponentRef Id="cmpF5573D31421ADB24A2D619C190A97C1F" />
6040+
<ComponentRef Id="cmp387EE183994C262A555F695B8BFFE393" />
6041+
<ComponentRef Id="cmp6A1E4D27103974825902C21E8E1FD2E2" />
6042+
<ComponentRef Id="cmp039E84251C0B3C024FA68A2AC05A698A" />
6043+
<ComponentRef Id="cmp03ACB56F799100284032737A10AD9135" />
6044+
<ComponentRef Id="cmpBE50235D76A86D1FCDD23FB9F4F11656" />
6045+
<ComponentRef Id="cmp34F1F991C47614267C6CCECB4F2F10BB" />
6046+
<ComponentRef Id="cmp23612602759A96AFDD9DD8C6C6E932E9" />
6047+
<ComponentRef Id="cmpE8882F4395006099566B21CF86176666" />
6048+
<ComponentRef Id="cmpB1CD14B4C7D4BD71D820606900089681" />
59696049
<ComponentRef Id="cmpAB04FC1EEE889CA90013762F64086BFF" />
59706050
<ComponentRef Id="cmp4714276292444ADF7D34F509F31C8102" />
59716051
<ComponentRef Id="cmp007494D6DDD084F46271414EDBAE4A28" />
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
#
2+
# Module manifest for module 'Microsoft.Azure.Commands.IotHub'
3+
#
4+
# Generated by: Microsoft Corporation
5+
#
6+
# Generated on: 10/7/2016
7+
#
8+
9+
@{
10+
11+
# Version number of this module.
12+
ModuleVersion = '1.0.0'
13+
14+
# ID used to uniquely identify this module
15+
GUID = '51A3A993-FE39-4F8F-A437-2CB751584AF5'
16+
17+
# Author of this module
18+
Author = 'Microsoft Corporation'
19+
20+
# Company or vendor of this module
21+
CompanyName = 'Microsoft Corporation'
22+
23+
# Copyright statement for this module
24+
Copyright = 'Microsoft Corporation. All rights reserved.'
25+
26+
# Description of the functionality provided by this module
27+
Description = 'Microsoft Azure PowerShell - IotHub service cmdlets for Azure Resource Manager'
28+
29+
# Minimum version of the Windows PowerShell engine required by this module
30+
PowerShellVersion = '3.0'
31+
32+
# Name of the Windows PowerShell host required by this module
33+
PowerShellHostName = ''
34+
35+
# Minimum version of the Windows PowerShell host required by this module
36+
PowerShellHostVersion = ''
37+
38+
# Minimum version of the .NET Framework required by this module
39+
DotNetFrameworkVersion = '4.0'
40+
41+
# Minimum version of the common language runtime (CLR) required by this module
42+
CLRVersion='4.0'
43+
44+
# Processor architecture (None, X86, Amd64, IA64) required by this module
45+
ProcessorArchitecture = 'None'
46+
47+
# Modules that must be imported into the global environment prior to importing this module
48+
RequiredModules = @(@{ModuleName = 'AzureRM.Profile'; ModuleVersion = '2.3.0'; })
49+
50+
# Assemblies that must be loaded prior to importing this module
51+
RequiredAssemblies = @()
52+
53+
# Script files (.ps1) that are run in the caller's environment prior to importing this module
54+
ScriptsToProcess = @()
55+
56+
# Type files (.ps1xml) to be loaded when importing this module
57+
TypesToProcess = @()
58+
59+
# Format files (.ps1xml) to be loaded when importing this module
60+
FormatsToProcess = @(
61+
'.\Microsoft.Azure.Commands.IotHub.format.ps1xml'
62+
)
63+
64+
# Modules to import as nested modules of the module specified in ModuleToProcess
65+
NestedModules = @(
66+
'.\Microsoft.Azure.Commands.IotHub.dll'
67+
)
68+
69+
# Functions to export from this module
70+
FunctionsToExport = '*'
71+
72+
# Cmdlets to export from this module
73+
CmdletsToExport = '*'
74+
75+
# Variables to export from this module
76+
VariablesToExport = '*'
77+
78+
# Aliases to export from this module
79+
AliasesToExport = @()
80+
81+
# List of all modules packaged with this module
82+
ModuleList = @()
83+
84+
# List of all files packaged with this module
85+
FileList = @()
86+
87+
# Private data to pass to the module specified in ModuleToProcess
88+
PrivateData = @{
89+
90+
PSData = @{
91+
92+
# Tags applied to this module. These help with module discovery in online galleries.
93+
Tags = 'Azure','ResourceManager','ARM','IoT','IoT Hub'
94+
95+
# A URL to the license for this module.
96+
LicenseUri = 'https://raw.githubusercontent.com/Azure/azure-powershell/dev/LICENSE.txt'
97+
98+
# A URL to the main website for this project.
99+
ProjectUri = 'https://github.com/Azure/azure-powershell'
100+
101+
# A URL to an icon representing this module.
102+
# IconUri = ''
103+
104+
# ReleaseNotes of this module
105+
ReleaseNotes = 'https://github.com/Azure/azure-powershell/blob/dev/ChangeLog.md'
106+
107+
} # End of PSData hashtable
108+
109+
} # End of PrivateData hashtable
110+
111+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<!--
2+
Please leave this section at the top of the change log.
3+
4+
Changes for the current release should go under the section titled "Current Release", and should adhere to the following format:
5+
6+
## Current Release
7+
* Overview of change #1
8+
- Additional information about change #1
9+
* Overview of change #2
10+
- Additional information about change #2
11+
- Additional information about change #2
12+
* Overview of change #3
13+
* Overview of change #4
14+
- Additional information about change #4
15+
16+
## YYYY.MM.DD - Version X.Y.Z (Previous Release)
17+
* Overview of change #1
18+
- Additional information about change #1
19+
-->
20+
## Current Release
21+
22+
## Version 1.0.0
23+
* Adds commandlets for the Azure IoT Hub
24+
- Add-AzureRmIotHubEventHubConsumerGroup
25+
- Adds an Event Hub consumer group for an existing Azure IoT hub.
26+
27+
- Add-AzureRmIotHubKey
28+
- Adds a new key to an existing Azure IoT hub.
29+
30+
- Get-AzureRmIotHub
31+
- Gets the properties of an exisiting Azure IoT hub.
32+
33+
- Get-AzureRmIotHubConnectionString
34+
- Gets the connection strings of an existing Azure IoT hub.
35+
36+
- Get-AzureRmIotHubEventHubConsumerGroup
37+
- Gets the list of event hub consumer groups for the specified eventhub endpoint.
38+
39+
- Get-AzureRmIotHubJob
40+
- Gets the properties of a set of Azure IoT hubs in a subscription or resource group.
41+
42+
- Get-AzureRmIotHubKey
43+
- Gets the information related to a list of keys of an Azure IoT hub.
44+
45+
- Get-AzureRmIotHubQuotaMetric
46+
- Gets the quota metrics for an Azure IoT hub.
47+
48+
- Get-AzureRmIotHubRegistryStatistic
49+
- Gets the registry statistics for an Azure IoT hub.
50+
51+
- Get-AzureRmIotHubValidSku
52+
- Gets the list of valid Skus to which an existing Azure IoT hub can transition to.
53+
54+
- New-AzureRmIotHub
55+
- Creates a new Azure IoT hub.
56+
57+
- New-AzureRmIotHubExportDevices
58+
- Starts a new job for exporting the devices of an Azure IoT hub.
59+
60+
- New-AzureRmIotHubImportDevices
61+
- Starts a new job for importing the devices of an Azure IoT hub.
62+
63+
- Remove-AzureRmIotHub
64+
- Removes an Azure IoT hub.
65+
66+
- Remove-AzureRmIotHubEventHubConsumerGroup
67+
- Removes a consumer group for the specified event hub endpoint of a give Azure IoT hub.
68+
69+
- Remove-AzureRmIotHubKey
70+
- Removes a key from an Azure IoT hub.
71+
72+
- Set-AzureRmIotHub
73+
- Updates the properties of an Azure IoT hub.

0 commit comments

Comments
 (0)