Skip to content

Commit 8761b99

Browse files
committed
conflict resolved
2 parents ee3ffe1 + 0c0bcc3 commit 8761b99

File tree

89 files changed

+25496
-13195
lines changed

Some content is hidden

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

89 files changed

+25496
-13195
lines changed

.azure-pipelines/powershell-core.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ variables:
99
TestTarget: Test
1010
Configuration: Debug
1111
DebugLocalBuildTasks: true
12+
IsGenerateBased: $[eq(variables['system.pullRequest.targetBranch'], 'generation')]
13+
BuildTimeoutInMinutes: 120
14+
AnalysisTimeoutInMinutes: 120
1215

1316
trigger: none
1417

@@ -23,6 +26,7 @@ jobs:
2326
- job: Build
2427
displayName: Build
2528
condition: succeeded()
29+
timeoutInMinutes: ${{ variables.BuildTimeoutInMinutes }}
2630
strategy:
2731
matrix:
2832
windows:
@@ -31,8 +35,8 @@ jobs:
3135
linux:
3236
OSName: ${{ variables.LinuxName }}
3337
ImageName: ${{ variables.LinuxImage }}
34-
macOS:
35-
OSName: ${{ variables.MacOSName }}
38+
macOS:
39+
OSName: ${{ variables.MacOSName }}
3640
ImageName: ${{ variables.MacOSImage }}
3741
pool:
3842
vmImage: $(ImageName)
@@ -48,7 +52,7 @@ jobs:
4852
displayName: Analyze
4953
dependsOn: Build
5054
condition: succeeded()
51-
timeoutInMinutes: 90
55+
timeoutInMinutes: ${{ variables.AnalysisTimeoutInMinutes }}
5256
strategy:
5357
matrix:
5458
windows:

.azure-pipelines/util/analyze-steps.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ steps:
66
- template: download-build-steps.yml
77
parameters:
88
osName: ${{ parameters.osName }}
9+
- task: NodeTool@0
10+
condition: eq(variables.IsGenerateBased, true)
11+
displayName: Install autorest
12+
inputs:
13+
versionSpec: '14.17.1'
14+
command: custom
15+
verbose: false
16+
customCommand: install autorest@latest
17+
- task: PowerShell@2
18+
condition: eq(variables.IsGenerateBased, true)
19+
displayName: Setup environment for autorest
20+
inputs:
21+
targetType: inline
22+
script: "$env:NODE_OPTIONS=\"--max-old-space-size=65536\""
23+
pwsh: true
924

1025
- task: UseDotNet@2
1126
displayName: 'Use .NET Core sdk'

.azure-pipelines/util/build-steps.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ parameters:
44
configuration: ''
55

66
steps:
7+
- task: NodeTool@0
8+
condition: eq(variables.IsGenerateBased, true)
9+
displayName: Install autorest
10+
inputs:
11+
versionSpec: '14.17.1'
12+
command: custom
13+
verbose: false
14+
customCommand: install autorest@latest
15+
- task: PowerShell@2
16+
condition: eq(variables.IsGenerateBased, true)
17+
displayName: Setup environment for autorest
18+
inputs:
19+
targetType: inline
20+
script: "$env:NODE_OPTIONS=\"--max-old-space-size=65536\""
21+
pwsh: true
722
- task: PowerShell@2
823
displayName: 'Check Ingored File'
924
inputs:

.azure-pipelines/util/test-steps.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,21 @@ steps:
88
- template: download-build-steps.yml
99
parameters:
1010
osName: ${{ parameters.osName }}
11+
- task: NodeTool@0
12+
condition: eq(variables.IsGenerateBased, true)
13+
displayName: Install autorest
14+
inputs:
15+
versionSpec: '14.17.1'
16+
command: custom
17+
verbose: false
18+
customCommand: install autorest@latest
19+
- task: PowerShell@2
20+
condition: eq(variables.IsGenerateBased, true)
21+
displayName: Setup environment for autorest
22+
inputs:
23+
targetType: inline
24+
script: "$env:NODE_OPTIONS=\"--max-old-space-size=65536\""
25+
pwsh: true
1126

1227
- task: UseDotNet@2
1328
displayName: 'Use .NET Core sdk'

.azure-pipelines/windows-powershell.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ variables:
55
TestTarget: Test
66
Configuration: Debug
77
DebugLocalBuildTasks: true
8+
IsGenerateBased: $[eq(variables['system.pullRequest.targetBranch'], 'generation')]
89

910
trigger: none
1011

@@ -18,7 +19,7 @@ pr:
1819
jobs:
1920
- job: Build
2021
displayName: Build
21-
condition: succeeded()
22+
condition: and(eq(variables.IsGenerateBased, false), succeeded())
2223
pool:
2324
vmImage: ${{ variables.WindowsImage }}
2425

@@ -35,7 +36,7 @@ jobs:
3536
- job: Analyze
3637
displayName: Analyze
3738
dependsOn: Build
38-
condition: succeeded()
39+
condition: and(eq(variables.IsGenerateBased, false), succeeded())
3940
timeoutInMinutes: 90
4041
pool:
4142
vmImage: ${{ variables.WindowsImage }}
@@ -66,7 +67,7 @@ jobs:
6667
- job: Test
6768
displayName: Test
6869
dependsOn: Build
69-
condition: succeeded()
70+
condition: and(eq(variables.IsGenerateBased, false), succeeded())
7071
timeoutInMinutes: 180
7172
pool:
7273
vmImage: ${{ variables.WindowsImage }}

src/ApiManagement/ApiManagement/help/Set-AzApiManagement.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This example gets an Api Management instance, scales it to five premium units an
3636

3737
### Example 2: Update deployment (external VNET)
3838
```powershell
39-
PS C:\> $virtualNetwork = New-AzApiManagementVirtualNetwork -Location "East US" -SubnetResourceId "/subscriptions/a8ff56dc-3bc7-4174-a1e8-3726ab15d0e2/resourceGroups/Api-Default-WestUS/providers/Microsoft.Network/virtualNetworks/dfVirtualNetwork/subnets/backendSubnet"
39+
PS C:\> $virtualNetwork = New-AzApiManagementVirtualNetwork -SubnetResourceId "/subscriptions/a8ff56dc-3bc7-4174-a1e8-3726ab15d0e2/resourceGroups/Api-Default-WestUS/providers/Microsoft.Network/virtualNetworks/dfVirtualNetwork/subnets/backendSubnet"
4040
PS C:\> $apim = Get-AzApiManagement -ResourceGroupName "ContosoGroup" -Name "ContosoApi"
4141
PS C:\> $apim.VpnType = "External"
4242
PS C:\> $apim.VirtualNetwork = $virtualNetwork

src/Automation/Automation/help/New-AzAutomationSchedule.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ The final command creates a daily schedule named Schedule02 to begin at the time
9191
```
9292
PS C:\> $StartTime = (Get-Date "13:00:00").AddDays(1)
9393
PS C:\> [System.DayOfWeek[]]$WeekDays = @([System.DayOfWeek]::Monday..[System.DayOfWeek]::Friday)
94-
PS C:\> New-AzAutomationSchedule -AutomationAccountName "Contoso17" -Name "Schedule03" -StartTime $StartTime - WeekInterval 1 -DaysOfWeek $WeekDays -ResourceGroupName "ResourceGroup01"
94+
PS C:\> New-AzAutomationSchedule -AutomationAccountName "Contoso17" -Name "Schedule03" -StartTime $StartTime -WeekInterval 1 -DaysOfWeek $WeekDays -ResourceGroupName "ResourceGroup01"
9595
```
9696

9797
The first command creates a date object by using the **Get-Date** cmdlet, and then stores the object in the $StartDate variable.

src/CognitiveServices/CognitiveServices.Test/CognitiveServices.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
44
<PsModuleName>CognitiveServices</PsModuleName>
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Azure.Management.CognitiveServices" Version="7.4.0-preview" />
14+
<PackageReference Include="Microsoft.Azure.Management.CognitiveServices" Version="8.0.0-preview" />
1515
<PackageReference Include="Microsoft.Azure.Management.Network" Version="20.5.0" />
1616
</ItemGroup>
1717

src/CognitiveServices/CognitiveServices.Test/ScenarioTests/CognitiveServicesAccountTests.cs

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ public void TestNewAccount()
4242
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-NewAzureRmCognitiveServicesAccount");
4343
}
4444

45-
[Fact]
46-
[Trait(Category.AcceptanceType, Category.CheckIn)]
47-
public void TestNewAccountWithInvalidName()
48-
{
49-
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-NewAzureRmCognitiveServicesAccountInvalidName");
50-
}
51-
5245
[Fact]
5346
[Trait(Category.AcceptanceType, Category.CheckIn)]
5447
public void TestNewAccountWithCustomDomain()
@@ -63,13 +56,6 @@ public void TestNewAccountWithVnet()
6356
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-NewAzureRmCognitiveServicesAccountWithVnet");
6457
}
6558

66-
[Fact]
67-
[Trait(Category.AcceptanceType, Category.CheckIn)]
68-
public void TestCreateAllKindsOfAccounts()
69-
{
70-
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-NewAzureRmAllKindsOfCognitiveServicesAccounts");
71-
}
72-
7359
[Fact]
7460
[Trait(Category.AcceptanceType, Category.CheckIn)]
7561
public void TestRemoveAccount()
@@ -192,6 +178,13 @@ public void TestManagedIdentity()
192178
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-ManagedIdentity");
193179
}
194180

181+
[Fact]
182+
[Trait(Category.AcceptanceType, Category.CheckIn)]
183+
public void TestUserAssignedIdentity()
184+
{
185+
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-UserAssignedIdentity");
186+
}
187+
195188
[Fact]
196189
[Trait(Category.AcceptanceType, Category.CheckIn)]
197190
public void TestEncryption()
@@ -220,6 +213,20 @@ public void TestPublicNetworkAccess()
220213
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-PublicNetworkAccess");
221214
}
222215

216+
[Fact]
217+
[Trait(Category.AcceptanceType, Category.CheckIn)]
218+
public void TestRestrictOutboundNetworkAccess()
219+
{
220+
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-RestrictOutboundNetworkAccess");
221+
}
222+
223+
[Fact]
224+
[Trait(Category.AcceptanceType, Category.CheckIn)]
225+
public void TestDisableLocalAuth()
226+
{
227+
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-DisableLocalAuth");
228+
}
229+
223230
[Fact]
224231
[Trait(Category.AcceptanceType, Category.CheckIn)]
225232
public void TestCapabilities()
@@ -233,5 +240,12 @@ public void TestApiProperties()
233240
{
234241
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-ApiProperties");
235242
}
243+
244+
[Fact]
245+
[Trait(Category.AcceptanceType, Category.CheckIn)]
246+
public void TestSoftDelete()
247+
{
248+
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-SoftDelete");
249+
}
236250
}
237251
}

0 commit comments

Comments
 (0)