-
Notifications
You must be signed in to change notification settings - Fork 4k
Trusted Launch for VM/VMSS #27260
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
Trusted Launch for VM/VMSS #27260
Changes from all commits
011ea63
8b588fd
f3f54c4
0d84fdf
714a144
1296a33
fb3c4b5
647ea79
3ffae97
2adce73
c77c5a9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3831,6 +3831,7 @@ function Test-VirtualMachineScaleSetConfidentialVMSSSecurityType | |
Assert-NotNull $vmssvms; | ||
$vmssvm = Get-AzVmssvm -ResourceGroupName $rgname -VMScaleSetName $vmssName -InstanceId $vmssvms[0].InstanceId; | ||
Assert-AreEqual $securityEncryptionType $vmssvm.StorageProfile.OsDIsk.ManagedDisk.SecurityProfile.SecurityEncryptionType; | ||
|
||
} | ||
finally | ||
{ | ||
|
@@ -4466,7 +4467,7 @@ function Test-VirtualMachineScaleSetSecurityType | |
{ | ||
# Setup | ||
$rgname = Get-ComputeTestResourceName; | ||
$loc = Get-ComputeVMLocation; | ||
$loc = "eastus2euap"; | ||
|
||
try | ||
{ | ||
|
@@ -4534,6 +4535,17 @@ function Test-VirtualMachineScaleSetSecurityType | |
Assert-AreEqual $vmssGet.VirtualMachineProfile.SecurityProfile.UefiSettings.SecureBootEnabled $true; | ||
# Vmss Identity is now in fact only UserAssigned as expected. | ||
|
||
|
||
# Update SecurityType to Standard. | ||
Stop-Azvmss -ResourceGroupName $rgname -Name $vmssName2 -Force | ||
Update-AzVmss -ResourceGroupName $rgname -Name $vmssName2 -SecurityType "Standard" | ||
Start-AzVmss -ResourceGroupName $rgname -Name $vmssName2 | ||
$updated_vmss = Get-AzVmss -ResourceGroupName $rgname -Name $vmssName2; | ||
|
||
Assert-Null $updated_vmss.VirtualMAchineProfile.SecurityProfile.SecurityType; | ||
Assert-Null $updated_vmss.VirtualMAchineProfile.SecurityProfile.UefiSettings; | ||
Assert-Null $updated_vmss.VirtualMAchineProfile.SecurityProfile.SecurityType; | ||
|
||
# Guest Attestation extension defaulting test | ||
# Removed this portion as this logic was removed as per feature team request. | ||
<# | ||
|
@@ -4570,7 +4582,7 @@ function Test-VirtualMachineScaleSetSecurityTypeWithoutConfig | |
{ | ||
# Setup | ||
$rgname = Get-ComputeTestResourceName; | ||
$loc = Get-ComputeVMLocation; | ||
$loc = "westus2"; | ||
|
||
try | ||
{ | ||
|
@@ -4648,7 +4660,7 @@ function Test-VirtualMachineScaleSetSecurityTypeStandard | |
{ | ||
# Setup | ||
$rgname = Get-ComputeTestResourceName; | ||
$loc = Get-ComputeVMLocation; | ||
$loc = "westus2"; | ||
|
||
try | ||
{ | ||
|
@@ -4690,7 +4702,7 @@ function Test-VirtualMachineScaleSetSecurityTypeStandardWithConfig | |
{ | ||
# Setup | ||
$rgname = Get-ComputeTestResourceName; | ||
$loc = Get-ComputeVMLocation; | ||
$loc = "westus2"; | ||
|
||
try | ||
{ | ||
|
@@ -4831,7 +4843,7 @@ function Test-VirtualMachineScaleSetSecurityTypeWithoutConfigUpdate | |
{ | ||
# Setup | ||
$rgname = Get-ComputeTestResourceName; | ||
$loc = Get-ComputeVMLocation; | ||
$loc = "westus2"; | ||
|
||
try | ||
{ | ||
|
@@ -4886,7 +4898,7 @@ function Test-VirtualMachineScaleSetSecurityTypeUpdate | |
{ | ||
# Setup | ||
$rgname = Get-ComputeTestResourceName; | ||
$loc = Get-ComputeVMLocation; | ||
$loc = "westus2"; | ||
|
||
try | ||
{ | ||
|
@@ -4967,7 +4979,7 @@ function Test-VirtualMachineScaleSetSecurityTypeDefaulting | |
{ | ||
# Setup | ||
$rgname = Get-ComputeTestResourceName; | ||
$loc = Get-ComputeVMLocation; | ||
$loc = "westus2"; | ||
|
||
try | ||
{ | ||
|
@@ -5046,7 +5058,7 @@ function Test-VirtualMachineScaleSetSecurityTypeDefaultingFromImage | |
{ | ||
# Setup | ||
$rgname = Get-ComputeTestResourceName; | ||
$loc = Get-ComputeVMLocation; | ||
$loc = "westus2"; | ||
|
||
try | ||
{ | ||
|
@@ -5209,7 +5221,7 @@ function Test-VirtualMachineScaleSetSecurityTypeNoVMProfile | |
{ | ||
# Setup | ||
$rgname = Get-ComputeTestResourceName; | ||
$loc = Get-ComputeVMLocation; | ||
$loc = "westus2"; | ||
|
||
try | ||
{ | ||
|
@@ -5241,7 +5253,7 @@ function Test-VirtualMachineScaleSetSecurityTypeAndFlexDefaults | |
{ | ||
# Setup | ||
$rgname = Get-ComputeTestResourceName; | ||
$loc = Get-ComputeVMLocation; | ||
$loc = "westus2"; | ||
|
||
try | ||
{ | ||
|
@@ -5283,7 +5295,7 @@ function Test-VirtualMachineScaleSetDefaultImgWhenStandard | |
{ | ||
# Setup | ||
$rgname = Get-ComputeTestResourceName; | ||
$loc = Get-ComputeVMLocation; | ||
$loc = "westus2"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. future improvement, is there an API to call to see if there is availability in a region then select that region? I think the sku vm list api can do this. |
||
|
||
try | ||
{ | ||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick, A shouldnt be capitalized.