Skip to content

Commit a27d654

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 807dab2 + 94e745d commit a27d654

File tree

77 files changed

+11234
-7263
lines changed

Some content is hidden

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

77 files changed

+11234
-7263
lines changed

src/Attestation/Attestation.Test/Attestation.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Azure.Management.Attestation" Version="0.9.5-preview" />
14+
<PackageReference Include="Microsoft.Azure.Management.Attestation" Version="0.9.6-preview" />
1515
</ItemGroup>
1616

1717
<ItemGroup>

src/Attestation/Attestation/Attestation.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</PropertyGroup>
1313

1414
<ItemGroup>
15-
<PackageReference Include="Microsoft.Azure.Management.Attestation" Version="0.9.5-preview" />
15+
<PackageReference Include="Microsoft.Azure.Management.Attestation" Version="0.9.6-preview" />
1616
</ItemGroup>
1717

1818
<ItemGroup>

src/Attestation/Attestation/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,11 @@
1717
* Overview of change #1
1818
- Additional information about change #1
1919
-->
20+
21+
2022
## Upcoming Release
23+
* Fix typo in `PSAttestation` type with property `AttestUri`
24+
* Update .Net SDK with newer version
25+
26+
## Version 0.1.0
2127
* General availability of `Az.Attestation` module

src/Attestation/Attestation/Models/PSAttestation.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public PSAttestation(AttestationProvider attestation)
2525
Id = attestation.Id;
2626
Type = attestation.Type;
2727
Status = attestation.Status;
28-
AttesUri = attestation.AttestUri;
28+
AttestUri = attestation.AttestUri;
2929

3030
ResourceIdentifier identifier = new ResourceIdentifier(attestation.Id);
3131

@@ -41,7 +41,7 @@ public PSAttestation(AttestationProvider attestation)
4141

4242
public string Status { get; protected set; }
4343

44-
public string AttesUri { get; protected set; }
44+
public string AttestUri { get; protected set; }
4545

4646
public string ResourceGroupName { get; protected set; }
4747

src/DataBox/DataBox/Az.DataBox.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
ModuleVersion = '0.1.0'
1616

1717
# Supported PSEditions
18-
CompatiblePSEditions = 'Core'
18+
CompatiblePSEditions = 'Core', 'Desktop'
1919

2020
# ID used to uniquely identify this module
2121
GUID = '39B6B3E6-A15E-48BA-BE20-FE0D441D92B4'
@@ -35,7 +35,7 @@ Description = 'Microsoft Azure PowerShell - DataBox service cmdlets for Azure Re
3535
For more information on DataBox, please visit the following: https://docs.microsoft.com/azure/databox/'
3636

3737
# Minimum version of the PowerShell engine required by this module
38-
PowerShellVersion = '5.0'
38+
PowerShellVersion = '5.1'
3939

4040
# Name of the PowerShell host required by this module
4141
# PowerShellHostName = ''
@@ -53,7 +53,7 @@ DotNetFrameworkVersion = '4.7.2'
5353
# ProcessorArchitecture = ''
5454

5555
# Modules that must be imported into the global environment prior to importing this module
56-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.5.2'; })
56+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '1.6.0'; })
5757

5858
# Assemblies that must be loaded prior to importing this module
5959
RequiredAssemblies = '.\Microsoft.Azure.Management.DataBox.dll'

src/DataBox/DataBox/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("1.0.0")]
29-
[assembly: AssemblyFileVersion("1.0.0")]
28+
[assembly: AssemblyVersion("0.1.0")]
29+
[assembly: AssemblyFileVersion("0.1.0")]

src/LogicApp/LogicApp.Test/ScenarioTests/IntegrationAccountMapTests.ps1

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function Test-CreateIntegrationAccountMap
3939
$integrationAccountLiquidMapName2 = "Liquid2-" + (getAssetname)
4040

4141
$integrationAccount = TestSetup-CreateIntegrationAccount $resourceGroup.ResourceGroupName $integrationAccountName
42-
42+
4343
$integrationAccountMap1 = New-AzIntegrationAccountMap -ResourceGroupName $resourceGroup.ResourceGroupName -IntegrationAccountName $integrationAccountName -MapName $integrationAccountMapName1 -MapDefinition $xslt1MapContent
4444
Assert-AreEqual $integrationAccountMapName1 $integrationAccountMap1.Name
4545

@@ -69,10 +69,10 @@ function Test-GetIntegrationAccountMap
6969
{
7070
$mapFilePath = Join-Path (Join-Path $TestOutputRoot "Resources") "SampleXslt1Map.xslt"
7171
$mapContent = [IO.File]::ReadAllText($mapFilePath)
72-
72+
7373
$resourceGroup = TestSetup-CreateResourceGroup
7474
$integrationAccountName = "IA-" + (getAssetname)
75-
75+
7676
$integrationAccountMapName = getAssetname
7777

7878
$integrationAccount = TestSetup-CreateIntegrationAccount $resourceGroup.ResourceGroupName $integrationAccountName
@@ -148,23 +148,26 @@ Test Get-AzIntegrationAccountMap command : Paging test
148148
#>
149149
function Test-ListIntegrationAccountMap
150150
{
151-
$mapFilePath = Join-Path (Join-Path $TestOutputRoot "Resources") "SampleXslt1Map.xslt"
152-
$mapContent = [IO.File]::ReadAllText($mapFilePath)
151+
$xsltFilePath = Join-Path (Join-Path $TestOutputRoot "Resources") "SampleXslt1Map.xslt"
152+
$liquidFilePath = Join-Path (Join-Path $TestOutputRoot "Resources") "SampleLiquidMap.liquid"
153+
$xsltContent = [IO.File]::ReadAllText($xsltFilePath)
154+
$liquidContent = [IO.File]::ReadAllText($liquidFilePath)
153155

154156
$resourceGroup = TestSetup-CreateResourceGroup
155157
$integrationAccountName = "IA-" + (getAssetname)
156158

157159
$integrationAccount = TestSetup-CreateIntegrationAccount $resourceGroup.ResourceGroupName $integrationAccountName
158160

159-
$val=0
160-
while($val -ne 1)
161-
{
162-
$val++ ;
163-
$integrationAccountMapName = "XSLT-$val-" + (getAssetname)
164-
New-AzIntegrationAccountMap -ResourceGroupName $resourceGroup.ResourceGroupName -IntegrationAccountName $integrationAccountName -MapName $integrationAccountMapName -MapDefinition $mapContent
165-
}
161+
$xsltMapName = "XSLT-" + (getAssetname)
162+
$liquidMapName = "Liquid-" + (getAssetname)
163+
164+
New-AzIntegrationAccountMap -ResourceGroupName $resourceGroup.ResourceGroupName -IntegrationAccountName $integrationAccountName -MapType "XSLT" -MapName $xsltMapName -MapDefinition $xsltContent
165+
New-AzIntegrationAccountMap -ResourceGroupName $resourceGroup.ResourceGroupName -IntegrationAccountName $integrationAccountName -MapType "Liquid" -MapName $liquidMapName -MapDefinition $liquidContent
166166

167167
$result = Get-AzIntegrationAccountMap -ResourceGroupName $resourceGroup.ResourceGroupName -IntegrationAccountName $integrationAccountName
168+
Assert-True { $result.Count -eq 2 }
169+
170+
$result = Get-AzIntegrationAccountMap -ResourceGroupName $resourceGroup.ResourceGroupName -IntegrationAccountName $integrationAccountName -MapType "Xslt"
168171
Assert-True { $result.Count -eq 1 }
169172

170173
Remove-AzIntegrationAccount -ResourceGroupName $resourceGroup.ResourceGroupName -IntegrationAccountName $integrationAccountName -Force

src/LogicApp/LogicApp.Test/SessionRecords/Microsoft.Azure.Commands.LogicApp.Test.ScenarioTests.IntegrationAccountMapTests/TestGetMap.json

Lines changed: 125 additions & 125 deletions
Large diffs are not rendered by default.

src/LogicApp/LogicApp.Test/SessionRecords/Microsoft.Azure.Commands.LogicApp.Test.ScenarioTests.IntegrationAccountMapTests/TestListMap.json

Lines changed: 363 additions & 110 deletions
Large diffs are not rendered by default.

src/LogicApp/LogicApp/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Fix for Get-AzIntegrationAccountMap to list all map types
22+
- Added new MapType parameter for filtering
2123

2224
## Version 1.2.1
2325
* Fix for ListWorkflows only retrieving the first page of results

src/LogicApp/LogicApp/Cmdlets/IntegrationAccount/GetAzureIntegrationAccountMapCommand.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ namespace Microsoft.Azure.Commands.LogicApp.Cmdlets
2121
using ResourceManager.Common.ArgumentCompleters;
2222

2323
/// <summary>
24-
/// Gets the integration account map by name
24+
/// Gets the integration account map
2525
/// </summary>
2626
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "IntegrationAccountMap")]
2727
[OutputType(typeof(IntegrationAccountMap))]
2828
public class GetAzureIntegrationAccountMapCommand : LogicAppBaseCmdlet
2929
{
30-
3130
#region Input Parameters
3231

3332
[Parameter(Mandatory = false, HelpMessage = "The integration account resource group name.",
@@ -45,6 +44,11 @@ public class GetAzureIntegrationAccountMapCommand : LogicAppBaseCmdlet
4544
[ValidateNotNullOrEmpty]
4645
public string MapName { get; set; }
4746

47+
[Parameter(Mandatory = false, HelpMessage = "The integration account map type.")]
48+
[ValidateNotNullOrEmpty]
49+
[PSArgumentCompleter("Xslt", "Xslt20", "Xslt30", "Liquid")]
50+
public string MapType { get; set; }
51+
4852
#endregion Input Parameters
4953

5054
/// <summary>
@@ -56,7 +60,7 @@ public override void ExecuteCmdlet()
5660

5761
if (string.IsNullOrEmpty(this.MapName))
5862
{
59-
this.WriteObject(IntegrationAccountClient.ListIntegrationAccountMaps(this.ResourceGroupName,this.Name), true);
63+
this.WriteObject(IntegrationAccountClient.ListIntegrationAccountMaps(this.ResourceGroupName,this.Name, this.MapType), true);
6064
}
6165
else
6266
{

src/LogicApp/LogicApp/Utilities/IntegrationAccountMapOperations.cs

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,18 @@ public IntegrationAccountMap GetIntegrationAccountMap(string resourceGroupName,
9999
/// </summary>
100100
/// <param name="resourceGroupName">The integration account resource group name.</param>
101101
/// <param name="integrationAccountName">The integration account name.</param>
102-
/// <returns>List of integration account schemas.</returns>
103-
public IPage<IntegrationAccountMap> ListIntegrationAccountMaps(string resourceGroupName, string integrationAccountName)
102+
/// <param name="mapType">The map type to filter by.</param>
103+
/// <returns>List of integration account maps.</returns>
104+
public IPage<IntegrationAccountMap> ListIntegrationAccountMaps(string resourceGroupName, string integrationAccountName, string mapType)
104105
{
105-
return this.LogicManagementClient.IntegrationAccountMaps.List(resourceGroupName, integrationAccountName, "$filter=mapType eq 'Xslt'&$top=1000");
106+
var filter = new Rest.Azure.OData.ODataQuery<IntegrationAccountMapFilter>();
107+
if(!string.IsNullOrWhiteSpace(mapType))
108+
{
109+
filter.Filter = $"MapType eq '{mapType}'";
110+
}
111+
filter.Top = 1000;
112+
113+
return this.LogicManagementClient.IntegrationAccountMaps.List(resourceGroupName, integrationAccountName, filter);
106114
}
107115

108116
/// <summary>

src/LogicApp/LogicApp/help/Get-AzIntegrationAccountMap.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
---
22
external help file: Microsoft.Azure.PowerShell.Cmdlets.LogicApp.dll-Help.xml
33
Module Name: Az.LogicApp
44
ms.assetid: 4F65A8B3-A250-41C1-9AA5-DBEB3193C401
@@ -15,7 +15,7 @@ Gets an integration account map.
1515

1616
```
1717
Get-AzIntegrationAccountMap [-ResourceGroupName <String>] [-Name <String>] [-MapName <String>]
18-
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
18+
[-MapType <String>] [-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
1919
```
2020

2121
## DESCRIPTION
@@ -96,6 +96,22 @@ Accept pipeline input: False
9696
Accept wildcard characters: False
9797
```
9898
99+
### -MapType
100+
The integration account map type.
101+
102+
```yaml
103+
Type: System.String
104+
Parameter Sets: (All)
105+
Aliases:
106+
Accepted values: Xslt, Xslt20, Xslt30, Liquid
107+
108+
Required: False
109+
Position: Named
110+
Default value: None
111+
Accept pipeline input: False
112+
Accept wildcard characters: False
113+
```
114+
99115
### -Name
100116
Specifies the name for the integration account.
101117

src/OperationalInsights/OperationalInsights.Test/ScenarioTests/DataSourceTests.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ function Test-CreateAllKindsOfDataSource
136136
$customLogRawJson = '{"customLogName":"Validation_CL","description":"test","inputs":[{"location":{"fileSystemLocations":{"linuxFileTypeLogPaths":null,"windowsFileTypeLogPaths":["C:\\e2e\\Evan\\ArubaSECURITY\\*.log"]}},"recordDelimiter":{"regexDelimiter":{"pattern":"\\n","matchIndex":0}}}],"extractions":[{"extractionName":"TimeGenerated","extractionType":"DateTime","extractionProperties":{"dateTimeExtraction":{"regex":"((\\d{2})|(\\d{4}))-([0-1]\\d)-(([0-3]\\d)|(\\d))\\s((\\d)|([0-1]\\d)|(2[0-4])):[0-5][0-9]:[0-5][0-9]","joinStringRegex":null}}}]}'
137137
$customLogDataSource = New-AzOperationalInsightsCustomLogDataSource -Workspace $workspace -CustomLogRawJson $customLogRawJson -Name "MyCustomLog"
138138

139+
# customlog, regex null
140+
$customLogRawJson1 = '{"customLogName":"Validation_CL1","description":"test","inputs":[{"location":{"fileSystemLocations":{"linuxFileTypeLogPaths":null,"windowsFileTypeLogPaths":["C:\\e2e\\Evan\\ArubaSECURITY\\*.log"]}},"recordDelimiter":{"regexDelimiter":{"pattern":"\\n","matchIndex":0}}}],"extractions":[{"extractionName":"TimeGenerated","extractionType":"DateTime","extractionProperties":{"dateTimeExtraction":{"regex":null,"joinStringRegex":null}}}]}'
141+
$customLogDataSource1 = New-AzOperationalInsightsCustomLogDataSource -Workspace $workspace -CustomLogRawJson $customLogRawJson1 -Name "MyCustomLog1"
142+
143+
139144
# customlog
140145
$customLogRawJson2 = '{"customLogName":"Validation_CL2","description":"test","inputs":[{"location":{"fileSystemLocations":{"linuxFileTypeLogPaths":null,"windowsFileTypeLogPaths":["C:\\e2e\\Evan\\ArubaSECURITY\\*.log"]}},"recordDelimiter":{"regexDelimiter":{"pattern":"\\n","matchIndex":0}}}],"extractions":[{"extractionName":"TimeGenerated","extractionType":"DateTime","extractionProperties":{"dateTimeExtraction":{"regex":[{"matchIndex":0,"numberdGroup":null,"pattern":"((\\d{2})|(\\d{4}))-([0-1]\\d)-(([0-3]\\d)|(\\d))\\s((\\d)|([0-1]\\d)|(2[0-4])):[0-5][0-9]:[0-5][0-9]"}],"joinStringRegex":null}}}]}'
141146
$customLogDataSource2 = New-AzOperationalInsightsCustomLogDataSource -Workspace $workspace -CustomLogRawJson $customLogRawJson2 -Name "MyCustomLog2"

0 commit comments

Comments
 (0)