Skip to content

Commit a067a8e

Browse files
authored
[Identity] Fix test pipeline (Azure#52710)
* Use `Standard_D2s_v6` instead of `Standard_D2s_v4` for `westus2` * Skip AuthenticateNoContext because UsernamePasswordCredential is not supported by TME * Add `networkIsolationPolicy` in 1es-redirect.yml * Update dockerfile with net9.0 and remove net6.0 * Use vars for net versions * Use var for net version 3
1 parent 2e65880 commit a067a8e

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

eng/containers/UbuntuNetCoreKeyring/Dockerfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ ENV \
77
ASPNETCORE_URLS= \
88
# Do not generate certificate
99
DOTNET_GENERATE_ASPNET_CERTIFICATE=false \
10-
# SDK version
10+
# SDK versions
11+
DOTNET_SDK_VERSION_9_0=9.0.305\
1112
DOTNET_SDK_VERSION_8_0=8.0.405\
13+
DOTNET_SDK_VERSION_3_1=3.1.426\
1214
# Enable correct mode for dotnet watch (only mode supported in a container)
1315
DOTNET_USE_POLLING_FILE_WATCHER=true \
1416
# Skip extraction of XML docs - generally not useful within an image/container - helps performance
@@ -37,8 +39,9 @@ RUN apt-add-repository ppa:git-core/ppa \
3739
# Install .NET SDK
3840

3941
# https://builds.dotnet.microsoft.com/dotnet/release-metadata/8.0/releases.json
40-
RUN curl -fSL --output dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/a91ddad4-a3c2-4303-9efc-1ca6b7af850c/be1763df9211599df1cf1c6f504b3c41/dotnet-sdk-$DOTNET_SDK_VERSION_8_0-linux-x64.tar.gz \
41-
&& dotnet_sha512='2499faa1520e8fd9a287a6798755de1a3ffef31c0dc3416213c8a9bec64861419bfc818f1c1c410b86bb72848ce56d4b6c74839afd8175a922345fc649063ec6' \
42+
43+
RUN curl -fSL --output dotnet.tar.gz https://builds.dotnet.microsoft.com/dotnet/Sdk/$DOTNET_SDK_VERSION_9_0/dotnet-sdk-$DOTNET_SDK_VERSION_9_0-linux-x64.tar.gz \
44+
&& dotnet_sha512='f9140e141d731d37de9b6e1eab0b25726f0b9de24d2888a4200649880e9e43671ebb3897a249f4324c214d56eb3e7f0ef0cfa56b32850a9c03811b21e6377bca' \
4245
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
4346
&& mkdir -p /usr/share/dotnet \
4447
&& tar -ozxf dotnet.tar.gz -C /usr/share/dotnet \
@@ -47,22 +50,19 @@ RUN curl -fSL --output dotnet.tar.gz https://download.visualstudio.microsoft.com
4750
# Trigger first run experience by running arbitrary cmd
4851
&& dotnet help
4952

50-
# Below adapated from https://hub.docker.com/_/microsoft-dotnet-sdk
51-
# https://github.com/dotnet/dotnet-docker/blob/b20c03e0644b42167d66a85fe6077ec2428a47fa/src/sdk/5.0/focal/amd64/Dockerfile
52-
RUN curl -fSL --output dotnet.tar.gz https://builds.dotnet.microsoft.com/dotnet/Sdk/$DOTNET_SDK_VERSION_6_0/dotnet-sdk-$DOTNET_SDK_VERSION_6_0-linux-x64.tar.gz \
53-
&& dotnet_sha512='ee0a77d54e6d4917be7310ff0abb3bad5525bfb4beb1db0c215e65f64eb46511f5f12d6c7ff465a1d4ab38577e6a1950fde479ee94839c50e627020328a702de' \
53+
RUN curl -fSL --output dotnet.tar.gz https://download.visualstudio.microsoft.com/download/pr/a91ddad4-a3c2-4303-9efc-1ca6b7af850c/be1763df9211599df1cf1c6f504b3c41/dotnet-sdk-$DOTNET_SDK_VERSION_8_0-linux-x64.tar.gz \
54+
&& dotnet_sha512='2499faa1520e8fd9a287a6798755de1a3ffef31c0dc3416213c8a9bec64861419bfc818f1c1c410b86bb72848ce56d4b6c74839afd8175a922345fc649063ec6' \
5455
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
5556
&& mkdir -p /usr/share/dotnet \
5657
&& tar -ozxf dotnet.tar.gz -C /usr/share/dotnet \
5758
&& rm dotnet.tar.gz \
58-
&& if [ ! -e /usr/bin/dotnet ]; then ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet; fi \
5959
# Trigger first run experience by running arbitrary cmd
6060
&& dotnet help
6161

6262
# Below adapted from https://hub.docker.com/_/microsoft-dotnet-sdk
6363
# https://github.com/dotnet/dotnet-docker/blob/b20c03e0644b42167d66a85fe6077ec2428a47fa/src/sdk/3.1/focal/amd64/Dockerfile
6464
RUN curl -fSL --output dotnet.tar.gz https://builds.dotnet.microsoft.com/dotnet/Sdk/$DOTNET_SDK_VERSION_3_1/dotnet-sdk-$DOTNET_SDK_VERSION_3_1-linux-x64.tar.gz \
65-
&& dotnet_sha512='dec1dcf326487031c45dec0849a046a0d034d6cbb43ab591da6d94c2faf72da8e31deeaf4d2165049181546d5296bb874a039ccc2f618cf95e68a26399da5e7f' \
65+
&& dotnet_sha512='6c3f9541557feb5d5b93f5c10b28264878948e8540f2b8bb7fb966c32bd38191e6b310dcb5f87a4a8f7c67a7046fa932cde3cce9dc8341c1365ae6c9fcc481ec' \
6666
&& echo "$dotnet_sha512 dotnet.tar.gz" | sha512sum -c - \
6767
&& tar -ozxf dotnet.tar.gz -C /usr/share/dotnet \
6868
&& rm dotnet.tar.gz \

eng/pipelines/templates/stages/1es-redirect.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ extends:
4040
- 1ES.PT.Tag-refs/tags/canary
4141
settings:
4242
skipBuildTagsForGitHubPullRequests: true
43+
networkIsolationPolicy: Permissive
4344
sdl:
4445
${{ if and(eq(variables['Build.DefinitionName'], 'net - core'), eq(variables['Build.SourceBranchName'], 'main'), eq(variables['System.TeamProject'], 'internal')) }}:
4546
autobaseline:

sdk/identity/Azure.Identity/tests/UsernamePasswordCredentialLiveTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public async Task GetToken()
3737
Assert.IsNotNull(token.Token);
3838
}
3939

40+
[Ignore("Skipped: tenant requires MFA; test no longer valid for TME tenant.")]
4041
[Test]
4142
public async Task AuthenticateNoContext()
4243
{

sdk/identity/test-resources.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ resource newCluster 'Microsoft.ContainerService/managedClusters@2023-06-01' = {
241241
{
242242
name: 'agentpool'
243243
count: 1
244-
vmSize: 'Standard_D2s_v4'
244+
vmSize: 'Standard_D2s_v6'
245245
osDiskSizeGB: 128
246246
osDiskType: 'Managed'
247247
kubeletDiskType: 'OS'

0 commit comments

Comments
 (0)