File tree Expand file tree Collapse file tree 1 file changed +0
-7
lines changed
src/Compute/Compute.Test/ScenarioTests Expand file tree Collapse file tree 1 file changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -1963,19 +1963,12 @@ function Test-SupportedSecurityOption
19631963
19641964 try {
19651965 New-AzResourceGroup - Name $rgname - Location $loc - Force;
1966- # Get the current Azure context (subscription, tenant, account)
1967- $context = Get-AzContext
1968- Write-Debug " Current Subscription: $ ( $context.Subscription.Name ) ($ ( $context.Subscription.Id ) )"
1969- Write-Debug " Current Tenant: $ ( $context.Tenant.Id ) "
1970- Write-Debug " Current Account: $ ( $context.Account.Id ) "
1971- Write-Debug " Current region: $loc "
19721966
19731967 $diskConfig = New-AzDiskConfig - Location $loc - SkuName ' PremiumV2_LRS' - DiskSizeGB 2 - CreateOption Empty - SupportedSecurityOption ' TrustedLaunchSupported' ;
19741968 $diskname = " disk" + $rgname ;
19751969 New-AzDisk - ResourceGroupName $rgname - DiskName $diskname - Disk $diskConfig ;
19761970 $disk = Get-AzDisk - ResourceGroupName $rgname - DiskName $diskname ;
19771971
1978- # Check the SupportedCapabilities object
19791972 Assert-NotNull $disk.SupportedCapabilities ;
19801973 Assert-AreEqual " TrustedLaunchSupported" $disk.SupportedCapabilities.SupportedSecurityOption ;
19811974
You can’t perform that action at this time.
0 commit comments