Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerShell Release Network 2024 03 01 #26080

Merged
merged 11 commits into from
Sep 20, 2024
Merged
3 changes: 2 additions & 1 deletion .azure-pipelines/code-gen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ jobs:
pool: pool-windows-2019
steps:
- checkout: self
- template: util/get-github-pat-steps.yml
persistCredentials: true
- template: util/get-github-token-steps.yml
- task: NodeTool@0
displayName: Use Node 14.15.5
inputs:
Expand Down
3 changes: 0 additions & 3 deletions .azure-pipelines/util/analyze-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ parameters:
IsGenerateBased: ''

steps:
- template: get-github-pat-steps.yml
- template: download-build-steps.yml
parameters:
artifactName: build-${{ parameters.testFramework }}
Expand Down Expand Up @@ -50,7 +49,6 @@ steps:
custom: msbuild
arguments: 'build.proj /t:GenerateHelp /p:Configuration=${{ parameters.configuration }};PullRequestNumber=$(System.PullRequest.PullRequestNumber)'
env:
OCTOKITPAT: $(GithubToken)
PowerShellPlatform: ${{ parameters.powerShellPlatform }}

- task: DotNetCoreCLI@2
Expand All @@ -60,7 +58,6 @@ steps:
custom: msbuild
arguments: 'build.proj /t:StaticAnalysis /p:Configuration=${{ parameters.configuration }};PullRequestNumber=$(System.PullRequest.PullRequestNumber)'
env:
OCTOKITPAT: $(GithubToken)
IsGenerateBased: ${{ parameters.IsGenerateBased }}

- template: publish-artifacts-steps.yml
Expand Down
4 changes: 3 additions & 1 deletion .azure-pipelines/util/build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ parameters:
powerShellPlatform: ''

steps:
- template: get-github-pat-steps.yml
- checkout: self
persistCredentials: true
- template: get-github-token-steps.yml
- task: NodeTool@0
condition: eq(variables.IsGenerateBased, true)
displayName: Install Autorest
Expand Down
12 changes: 12 additions & 0 deletions .azure-pipelines/util/get-github-token-steps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
steps:
- task: PowerShell@2
displayName: Get GitHub Token
inputs:
targetType: 'inline'
script: |
$httpConfigs = (git config --get-regexp "http" )
$authConfig = $httpConfigs | Where-Object {$_ -like "*AUTHORIZATION*"}
$token = ($authConfig -split ' ')[-1]
$ghToken = ([System.Text.Encoding]::ASCII.GetString([System.Convert]::FromBase64String($token)) -split ':')[1]
Write-Host "##vso[task.setvariable variable=GithubToken;issecret=true]$ghToken"

2 changes: 0 additions & 2 deletions .azure-pipelines/util/test-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ parameters:
powerShellPlatform: ''

steps:
- template: get-github-pat-steps.yml
- template: download-build-steps.yml
parameters:
artifactName: build-${{ parameters.testFramework }}
Expand All @@ -31,7 +30,6 @@ steps:
custom: msbuild
arguments: 'build.proj /t:${{ parameters.testTarget }} /p:Configuration=${{ parameters.configuration }};TestFramework=${{ parameters.testFramework }};PullRequestNumber=$(System.PullRequest.PullRequestNumber)'
env:
OCTOKITPAT: $(GithubToken)
PowerShellPlatform: ${{ parameters.powerShellPlatform }}
continueOnError: true

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
}
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -358,7 +358,7 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ruleCollectionName");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -596,7 +596,7 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ruleCollectionName");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -887,7 +887,7 @@ internal AdminRuleCollectionsOperations (NetworkManagementClient client)
}


string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ internal AdminRulesOperations (NetworkManagementClient client)
}
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -375,7 +375,7 @@ internal AdminRulesOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ruleName");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -623,7 +623,7 @@ internal AdminRulesOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "ruleName");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -927,7 +927,7 @@ internal AdminRulesOperations (NetworkManagementClient client)
}


string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations (NetworkManageme
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -363,7 +363,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations (NetworkManageme
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -578,7 +578,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations (NetworkManageme
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -789,7 +789,7 @@ internal ApplicationGatewayPrivateEndpointConnectionsOperations (NetworkManageme
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ internal ApplicationGatewayPrivateLinkResourcesOperations (NetworkManagementClie
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ internal ApplicationGatewayWafDynamicManifestsDefaultOperations (NetworkManageme
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ internal ApplicationGatewayWafDynamicManifestsOperations (NetworkManagementClien
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -353,7 +353,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -562,7 +562,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -754,7 +754,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1045,7 +1045,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1230,7 +1230,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1415,7 +1415,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1600,7 +1600,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1790,7 +1790,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1980,7 +1980,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2178,7 +2178,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "predefinedPolicyName");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2383,7 +2383,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2586,7 +2586,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -2818,7 +2818,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -3007,7 +3007,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}

string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -3205,7 +3205,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
}


string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -3434,7 +3434,7 @@ internal ApplicationGatewaysOperations (NetworkManagementClient client)
}


string apiVersion = "2024-01-01";
string apiVersion = "2024-03-01";
// Tracing
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down
Loading