mirror of
https://github.com/actions/runner-images.git
synced 2025-12-11 03:27:05 +00:00
Remove Storage Account and VHD refs (#8581)
This commit is contained in:
committed by
GitHub
parent
e78225c349
commit
e9fc71683f
@@ -1,12 +1,11 @@
|
||||
param(
|
||||
[UInt32] [Parameter (Mandatory)] $BuildId,
|
||||
[String] [Parameter (Mandatory)] $Organization,
|
||||
[String] [Parameter (Mandatory)] $Project,
|
||||
[String] [Parameter (Mandatory)] $ImageName,
|
||||
[String] [Parameter (Mandatory)] $StorageAccountContainerName,
|
||||
[String] [Parameter (Mandatory)] $VhdName,
|
||||
[String] [Parameter (Mandatory)] $DefinitionId,
|
||||
[String] [Parameter (Mandatory)] $AccessToken
|
||||
[Parameter (Mandatory)] [UInt32] $BuildId,
|
||||
[Parameter (Mandatory)] [string] $Organization,
|
||||
[Parameter (Mandatory)] [string] $Project,
|
||||
[Parameter (Mandatory)] [string] $ImageType,
|
||||
[Parameter (Mandatory)] [string] $ManagedImageName,
|
||||
[Parameter (Mandatory)] [string] $DefinitionId,
|
||||
[Parameter (Mandatory)] [string] $AccessToken
|
||||
)
|
||||
|
||||
$Body = @{
|
||||
@@ -15,14 +14,11 @@ $Body = @{
|
||||
ImageBuildId = @{
|
||||
value = $BuildId
|
||||
}
|
||||
ImageName = @{
|
||||
value = $ImageName
|
||||
ImageType = @{
|
||||
value = $ImageType
|
||||
}
|
||||
ImageStorageContainerName = @{
|
||||
value = $StorageAccountContainerName
|
||||
}
|
||||
ImageBlobPath = @{
|
||||
value = $VhdName
|
||||
ManagedImageName = @{
|
||||
value = $ManagedImageName
|
||||
}
|
||||
}
|
||||
isDraft = "false"
|
||||
@@ -37,4 +33,4 @@ $headers = @{
|
||||
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 -bor [Net.SecurityProtocolType]::Tls13
|
||||
$NewRelease = Invoke-RestMethod $URL -Body $Body -Method "POST" -Headers $headers -ContentType "application/json"
|
||||
|
||||
Write-Host "Created release: $($NewRelease._links.web.href)"
|
||||
Write-Host "Created release: $($NewRelease._links.web.href)"
|
||||
|
||||
Reference in New Issue
Block a user