Skip to content

Commit adca387

Browse files
authored
Merge branch 'master' into rgTagFilterOnServer
2 parents f58e4ad + 4634eff commit adca387

File tree

62 files changed

+10991
-5960
lines changed

Some content is hidden

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

62 files changed

+10991
-5960
lines changed

src/Compute/Compute/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
- New-AzDiskUpdateConfig, New-AzSnapshotUpdateConfig
3131
* Add ColocationStatus parameter to Get-AzProximityPlacementGroup cmdlet.
3232
* Fix broken example code for 'Revoke-AzSnapshotAccess' and 'Grant-AzSnapshotAccess'
33+
* Fix broken example code for 'Set-AzDiskDiskEncryptionKey' and 'Set-AzDiskKeyEncryptionKey'
3334

3435
## Version 3.3.0
3536
* Fix Set-AzVMCustomScriptExtension cmdlet for a VM with managed OD disk which does not have OS profile.

src/Compute/Compute/help/Set-AzDiskDiskEncryptionKey.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ PS C:\> $keyUrl = https://myvault.vault-int.azure-int.net/keys/456;
3131
PS C:\> $keyId = '/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/providers/Microsoft.KeyVault/vaults/TestVault456';
3232
PS C:\> $diskconfig = Set-AzDiskDiskEncryptionKey -Disk $diskconfig -SecretUrl $secretUrl -SourceVaultId $secretId;
3333
PS C:\> $diskconfig = Set-AzDiskKeyEncryptionKey -Disk $diskconfig -KeyUrl $keyUrl -SourceVaultId $keyId;
34+
PS C:\> $diskConfig.EncryptionSettingsCollection.EncryptionSettingsVersion = '1.1';
3435
PS C:\> New-AzDisk -ResourceGroupName 'ResourceGroup01' -DiskName 'Disk01' -Disk $diskconfig;
3536
```
3637

src/Compute/Compute/help/Set-AzDiskKeyEncryptionKey.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ PS C:\> $keyUrl = https://myvault.vault-int.azure-int.net/keys/456;
3131
PS C:\> $keyId = '/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/providers/Microsoft.KeyVault/vaults/TestVault456';
3232
PS C:\> $diskconfig = Set-AzDiskDiskEncryptionKey -Disk $diskconfig -SecretUrl $secretUrl -SourceVaultId $secretId;
3333
PS C:\> $diskconfig = Set-AzDiskKeyEncryptionKey -Disk $diskconfig -KeyUrl $keyUrl -SourceVaultId $keyId;
34+
PS C:\> $diskconfig.EncryptionSettingsCollection.EncryptionSettingsVersion = '1.1';
3435
PS C:\> New-AzDisk -ResourceGroupName 'ResourceGroup01' -DiskName 'Disk01' -Disk $diskconfig;
3536
```
3637

src/CosmosDB/CosmosDB/Az.CosmosDB.psd1

Lines changed: 63 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 1/21/2020
6+
# Generated on: 2020-02-20
77
#
88

99
@{
@@ -12,7 +12,7 @@
1212
# RootModule = ''
1313

1414
# Version number of this module.
15-
ModuleVersion = '0.1.0'
15+
ModuleVersion = '0.1.1'
1616

1717
# Supported PSEditions
1818
CompatiblePSEditions = 'Core', 'Desktop'
@@ -74,49 +74,62 @@ NestedModules = @('Microsoft.Azure.PowerShell.Cmdlets.CosmosDB.dll')
7474
FunctionsToExport = @()
7575

7676
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
77-
CmdletsToExport = 'Get-AzCosmosDBSqlContainer',
78-
'Get-AzCosmosDBSqlContainerThroughput', 'Get-AzCosmosDBSqlDatabase',
79-
'Get-AzCosmosDBSqlDatabaseThroughput',
80-
'Get-AzCosmosDBSqlStoredProcedure', 'Get-AzCosmosDBSqlTrigger',
81-
'Get-AzCosmosDBSqlUserDefinedFunction',
82-
'Set-AzCosmosDBSqlStoredProcedure', 'Set-AzCosmosDBSqlTrigger',
83-
'Set-AzCosmosDBSqlUserDefinedFunction',
84-
'Remove-AzCosmosDBSqlStoredProcedure',
85-
'Remove-AzCosmosDBSqlTrigger',
86-
'Remove-AzCosmosDBSqlUserDefinedFunction',
87-
'New-AzCosmosDBSqlConflictResolutionPolicy',
88-
'New-AzCosmosDBSqlIndexingPolicy', 'New-AzCosmosDBSqlUniqueKey',
89-
'New-AzCosmosDBSqlUniqueKeyPolicy', 'Remove-AzCosmosDBSqlContainer',
90-
'Remove-AzCosmosDBSqlDatabase', 'Set-AzCosmosDBSqlContainer',
91-
'Set-AzCosmosDBSqlDatabase', 'New-AzCosmosDBAccount',
92-
'Remove-AzCosmosDBAccount', 'Get-AzCosmosDBAccount',
93-
'Get-AzCosmosDBAccountKey', 'New-AzCosmosDBAccountKey',
94-
'Update-AzCosmosDBAccount', 'Update-AzCosmosDBAccountRegion',
95-
'Update-AzCosmosDBAccountFailoverPriority',
96-
'New-AzCosmosDBVirtualNetworkRule', 'New-AzCosmosDBLocationObject',
97-
'New-AzCosmosDBSqlSpatialSpec', 'New-AzCosmosDBSqlCompositePath',
98-
'New-AzCosmosDBSqlIncludedPath', 'New-AzCosmosDBSqlIncludedPathIndex',
99-
'Get-AzCosmosDBGremlinDatabase', 'Get-AzCosmosDBGremlinDatabaseThroughput',
100-
'Get-AzCosmosDBGremlinGraph', 'Get-AzCosmosDBGremlinGraphThroughput',
101-
'Remove-AzCosmosDBGremlinDatabase', 'Remove-AzCosmosDBGremlinGraph',
102-
'Set-AzCosmosDBGremlinDatabase', 'Set-AzCosmosDBGremlinGraph',
103-
'New-AzCosmosDBGremlinIndexingPolicy', 'New-AzCosmosDBGremlinUniqueKey',
104-
'New-AzCosmosDBGremlinUniqueKeyPolicy', 'New-AzCosmosDBGremlinSpatialSpec',
105-
'New-AzCosmosDBGremlinCompositePath', 'New-AzCosmosDBGremlinConflictResolutionPolicy',
106-
'New-AzCosmosDBGremlinIncludedPath', 'New-AzCosmosDBGremlinIncludedPathIndex',
107-
'Get-AzCosmosDBTable', 'Get-AzCosmosDBTableThroughput',
108-
'Remove-AzCosmosDBTable', 'Set-AzCosmosDBTable',
109-
'Get-AzCosmosDBCassandraKeyspace', 'Get-AzCosmosDBCassandraKeyspaceThroughput',
110-
'Get-AzCosmosDBCassandraTable', 'Get-AzCosmosDBCassandraTableThroughput',
111-
'New-AzCosmosDBCassandraClusterKey', 'New-AzCosmosDBCassandraColumn',
112-
'New-AzCosmosDBCassandraSchema', 'Remove-AzCosmosDBCassandraKeyspace',
113-
'Remove-AzCosmosDBCassandraTable', 'Set-AzCosmosDBCassandraKeyspace',
114-
'Set-AzCosmosDBCassandraTable', 'Get-AzCosmosDBMongoDBCollection',
115-
'Get-AzCosmosDBMongoDBCollectionThroughput', 'Get-AzCosmosDBMongoDBDatabase',
116-
'Get-AzCosmosDBMongoDBDatabaseThroughput', 'Remove-AzCosmosDBMongoDBCollection',
117-
'Remove-AzCosmosDBMongoDBDatabase', 'Set-AzCosmosDBMongoDBCollection',
118-
'Set-AzCosmosDBMongoDBDatabase', 'New-AzCosmosDBMongoDBIndex'
119-
77+
CmdletsToExport = 'Get-AzCosmosDBSqlContainer',
78+
'Get-AzCosmosDBSqlContainerThroughput', 'Get-AzCosmosDBSqlDatabase',
79+
'Get-AzCosmosDBSqlDatabaseThroughput',
80+
'Get-AzCosmosDBSqlStoredProcedure', 'Get-AzCosmosDBSqlTrigger',
81+
'Get-AzCosmosDBSqlUserDefinedFunction',
82+
'Set-AzCosmosDBSqlStoredProcedure', 'Set-AzCosmosDBSqlTrigger',
83+
'Set-AzCosmosDBSqlUserDefinedFunction',
84+
'Remove-AzCosmosDBSqlStoredProcedure',
85+
'Remove-AzCosmosDBSqlTrigger',
86+
'Remove-AzCosmosDBSqlUserDefinedFunction',
87+
'New-AzCosmosDBSqlConflictResolutionPolicy',
88+
'New-AzCosmosDBSqlIndexingPolicy', 'New-AzCosmosDBSqlUniqueKey',
89+
'New-AzCosmosDBSqlUniqueKeyPolicy', 'Remove-AzCosmosDBSqlContainer',
90+
'Remove-AzCosmosDBSqlDatabase', 'Set-AzCosmosDBSqlContainer',
91+
'Set-AzCosmosDBSqlDatabase', 'New-AzCosmosDBAccount',
92+
'Remove-AzCosmosDBAccount', 'Get-AzCosmosDBAccount',
93+
'Get-AzCosmosDBAccountKey', 'New-AzCosmosDBAccountKey',
94+
'Update-AzCosmosDBAccount', 'Update-AzCosmosDBAccountRegion',
95+
'Update-AzCosmosDBAccountFailoverPriority',
96+
'New-AzCosmosDBVirtualNetworkRule', 'New-AzCosmosDBLocationObject',
97+
'New-AzCosmosDBSqlSpatialSpec', 'New-AzCosmosDBSqlCompositePath',
98+
'New-AzCosmosDBSqlIncludedPath',
99+
'New-AzCosmosDBSqlIncludedPathIndex',
100+
'Get-AzCosmosDBGremlinDatabase',
101+
'Get-AzCosmosDBGremlinDatabaseThroughput',
102+
'Get-AzCosmosDBGremlinGraph',
103+
'Get-AzCosmosDBGremlinGraphThroughput',
104+
'Remove-AzCosmosDBGremlinDatabase', 'Remove-AzCosmosDBGremlinGraph',
105+
'Set-AzCosmosDBGremlinDatabase', 'Set-AzCosmosDBGremlinGraph',
106+
'New-AzCosmosDBGremlinIndexingPolicy',
107+
'New-AzCosmosDBGremlinUniqueKey',
108+
'New-AzCosmosDBGremlinUniqueKeyPolicy',
109+
'New-AzCosmosDBGremlinSpatialSpec',
110+
'New-AzCosmosDBGremlinCompositePath',
111+
'New-AzCosmosDBGremlinConflictResolutionPolicy',
112+
'New-AzCosmosDBGremlinIncludedPath',
113+
'New-AzCosmosDBGremlinIncludedPathIndex', 'Get-AzCosmosDBTable',
114+
'Get-AzCosmosDBTableThroughput', 'Remove-AzCosmosDBTable',
115+
'Set-AzCosmosDBTable', 'Get-AzCosmosDBCassandraKeyspace',
116+
'Get-AzCosmosDBCassandraKeyspaceThroughput',
117+
'Get-AzCosmosDBCassandraTable',
118+
'Get-AzCosmosDBCassandraTableThroughput',
119+
'New-AzCosmosDBCassandraClusterKey',
120+
'New-AzCosmosDBCassandraColumn', 'New-AzCosmosDBCassandraSchema',
121+
'Remove-AzCosmosDBCassandraKeyspace',
122+
'Remove-AzCosmosDBCassandraTable',
123+
'Set-AzCosmosDBCassandraKeyspace', 'Set-AzCosmosDBCassandraTable',
124+
'Get-AzCosmosDBMongoDBCollection',
125+
'Get-AzCosmosDBMongoDBCollectionThroughput',
126+
'Get-AzCosmosDBMongoDBDatabase',
127+
'Get-AzCosmosDBMongoDBDatabaseThroughput',
128+
'Remove-AzCosmosDBMongoDBCollection',
129+
'Remove-AzCosmosDBMongoDBDatabase',
130+
'Set-AzCosmosDBMongoDBCollection', 'Set-AzCosmosDBMongoDBDatabase',
131+
'New-AzCosmosDBMongoDBIndex'
132+
120133
# Variables to export from this module
121134
# VariablesToExport = @()
122135

@@ -150,7 +163,11 @@ PrivateData = @{
150163
# IconUri = ''
151164

152165
# ReleaseNotes of this module
153-
ReleaseNotes = '* Preview release of ''Az.CosmosDB'' module'
166+
ReleaseNotes = '* Added cmdlets for Gremlin, MongoDB, Cassandra and Table APIs.
167+
* Updated .NET SDK Version to 1.0.1
168+
- .NET SDK Version used in the CosmosDB-Account and SQL cmdlets is updated to 1.0.1
169+
* Added parameters ConflictResolutionPolicyMode, ConflictResolutionPolicyPath and ConflictResolutionPolicyPath in Set-AzCosmosDBSqlContainer.
170+
* Added new cmdlets for Sql API : New-CosmosDBSqlSpatialSpec, New-CosmosDBSqlCompositePath, New-CosmosDBSqlIncludedPathIndex, New-CosmosDBSqlIncludedPath'
154171

155172
# Prerelease string of this module
156173
# Prerelease = ''

src/CosmosDB/CosmosDB/ChangeLog.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020

2121
## Upcoming Release
2222

23+
## Version 0.1.1
24+
* Added cmdlets for Gremlin, MongoDB, Cassandra and Table APIs.
25+
* Updated .NET SDK Version to 1.0.1
26+
- .NET SDK Version used in the CosmosDB-Account and SQL cmdlets is updated to 1.0.1
27+
* Added parameters ConflictResolutionPolicyMode, ConflictResolutionPolicyPath and ConflictResolutionPolicyPath in Set-AzCosmosDBSqlContainer.
28+
* Added new cmdlets for Sql API : New-CosmosDBSqlSpatialSpec, New-CosmosDBSqlCompositePath, New-CosmosDBSqlIncludedPathIndex, New-CosmosDBSqlIncludedPath
29+
2330
## Version 0.1.0
2431
* Preview release of `Az.CosmosDB` module
2532

src/CosmosDB/CosmosDB/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@
2525
[assembly: ComVisible(false)]
2626
[assembly: CLSCompliant(false)]
2727
[assembly: Guid("d90791a2-8102-47fc-8150-de25ae796eb1")]
28-
[assembly: AssemblyVersion("0.1.0")]
29-
[assembly: AssemblyFileVersion("0.1.0")]
28+
[assembly: AssemblyVersion("0.1.1")]
29+
[assembly: AssemblyFileVersion("0.1.1")]

src/DataLakeStore/DataLakeStore/Az.DataLakeStore.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.7.2'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
5959
RequiredAssemblies = 'Microsoft.Azure.Management.DataLake.Store.dll',
60-
'Microsoft.Azure.DataLake.Store.dll', 'NLog.dll'
60+
'Microsoft.Azure.DataLake.Store.dll', 'NLog.dll', 'System.Buffers.dll'
6161

6262
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
6363
# ScriptsToProcess = @()

src/DataLakeStore/DataLakeStore/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Add reference to System.Buffers explicitly in csproj and psd1.
2122

2223
## Version 1.2.6
2324
* Update references in .psd1 to use relative path

src/DataLakeStore/DataLakeStore/DataLakeStore.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
<PackageReference Include="Microsoft.Azure.DataLake.Store" Version="1.2.3-alpha" />
1616
<PackageReference Include="Microsoft.Azure.Management.DataLake.Store" Version="2.4.2-preview" />
1717
<PackageReference Include="NLog" Version="4.5.0" />
18+
<PackageReference Include="System.Buffers" Version="4.3.0" />
1819
<PackageReference Include="System.Net.Requests" Version="4.3.0" />
1920
</ItemGroup>
2021

src/IotHub/IotHub.Test/ScenarioTests/IotHubDPDeviceTests.ps1

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,32 @@ function Test-AzureRmIotHubDeviceLifecycle
6565
$devices = Get-AzIotHubDevice -ResourceGroupName $ResourceGroupName -IotHubName $IotHubName
6666
Assert-True { $devices.Count -eq 3}
6767

68+
# Get device connection string
69+
$deviceCS = Get-AzIotHubDCS -ResourceGroupName $ResourceGroupName -IotHubName $IotHubName -DeviceId $device3
70+
Assert-True { $deviceCS.DeviceId -eq $device3 }
71+
Assert-True { $deviceCS.ConnectionString -eq "HostName=$IotHubName.azure-devices.net;DeviceId=$device3;x509=true" }
72+
6873
# Update Device
6974
$updatedDevice1 = Set-AzIoTHubDevice -ResourceGroupName $ResourceGroupName -IotHubName $IotHubName -DeviceId $device1 -Status 'Disabled' -StatusReason 'Reason1'
7075
Assert-True { $updatedDevice1.Id -eq $device1 }
7176
Assert-True { $updatedDevice1.Status -eq 'Disabled' }
7277
Assert-True { $updatedDevice1.StatusReason -eq 'Reason1' }
7378

7479
# Update iot device to edge device
75-
$updatedDevice2 = Set-AzIoTHubDevice -ResourceGroupName $ResourceGroupName -IotHubName $IotHubName -DeviceId $device3 -EdgeEnabled $true
76-
Assert-True { $updatedDevice2.Capabilities.IotEdge }
80+
$updatedDevice3 = Set-AzIoTHubDevice -ResourceGroupName $ResourceGroupName -IotHubName $IotHubName -DeviceId $device3 -EdgeEnabled $true
81+
Assert-True { $updatedDevice3.Capabilities.IotEdge }
82+
83+
# Set parent device Id
84+
$updatedChildDevice = Set-AzIotHubDeviceParent -ResourceGroupName $ResourceGroupName -IotHubName $IotHubName -DeviceId $device1 -ParentDeviceId $device3
85+
Assert-False { $updatedChildDevice.Capabilities.IotEdge }
86+
Assert-True { $updatedChildDevice.Id -eq $device1 }
87+
Assert-True { $updatedChildDevice.Scope -eq $updatedDevice3.Scope }
88+
89+
# Get parent device Id
90+
$parentDevice = Get-AzIotHubDeviceParent -ResourceGroupName $ResourceGroupName -IotHubName $IotHubName -DeviceId $device1
91+
Assert-True { $parentDevice.Capabilities.IotEdge }
92+
Assert-True { $parentDevice.Id -eq $device3 }
93+
Assert-True { $updatedChildDevice.Scope -eq $updatedDevice3.Scope }
7794

7895
# Get device detail
7996
$iotDevice = Get-AzIotHubDevice -ResourceGroupName $ResourceGroupName -IotHubName $IotHubName -DeviceId $device1

src/IotHub/IotHub.Test/ScenarioTests/IotHubDPModuleTests.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ function Test-AzureRmIotHubModuleLifecycle
6565
$modules = Get-AzIotHubModule -ResourceGroupName $ResourceGroupName -IotHubName $IotHubName -DeviceId $device1
6666
Assert-True { $modules.Count -eq 2}
6767

68+
# Get module connection string
69+
$moduleCS = Get-AzIotHubMCS -ResourceGroupName $ResourceGroupName -IotHubName $IotHubName -DeviceId $device1 -ModuleId $module2
70+
Assert-True { $moduleCS.ModuleId -eq $module2 }
71+
Assert-True { $moduleCS.ConnectionString -eq "HostName=$IotHubName.azure-devices.net;DeviceId=$device1;ModuleId=$module2;x509=true" }
72+
6873
# Get module detail
6974
$module = Get-AzIotHubModule -ResourceGroupName $ResourceGroupName -IotHubName $IotHubName -DeviceId $device1 -ModuleId $module2
7075
Assert-True { $module.Id -eq $module2 }

0 commit comments

Comments
 (0)