AzureValidation/Microsoft.AzureStack.AzureValidation.Internal.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
<#############################################################
 # #
 # Copyright (C) Microsoft Corporation. All rights reserved. #
 # #
 #############################################################>


Import-LocalizedData LocalizedData -BaseDirectory $PSScriptRoot -Filename Microsoft.AzureStack.AzureValidation.Strings.psd1


# Call install code to check Service Administrator
Function Test-AzsServiceAdministrator {
    [OutputType([Hashtable])]
    [CmdletBinding()]
    Param(

        [Parameter(Mandatory = $true)]
        [string]
        $AADDirectoryTenantName

    )
    $thisFunction = $MyInvocation.MyCommand.Name
    $null = Import-Module $PSScriptRoot\AzureADConfiguration.psm1 -force
    $ErrorDetails = @()
    $err = $null
    Write-AzsReadinessLog -message "Starting: Get-AzureADTenantDetails" -function $thisFunction
    try {
        $tenantDetails = Get-AzureADTenantDetails -AADDirectoryTenantName $AADDirectoryTenantName
    }
    catch {
        $err = $_
    }
    if ($err) {
        if ($err.Exception.Message -match 'is not an administrator of the Azure Active Directory tenant') {
            $ErrorDetails += ($LocalizedData.NotAdminOfTenant -f (Get-AzContext).Account.id, $AADDirectoryTenantName )
            Write-AzsReadinessLog -message ("Get-AzureADTenantDetails failed with: {0}" -f $LocalizedData.NotAdminOfTenant) -function $thisFunction -type Error
            $result = 'Fail'
        }
        else {
            $errorDetails += ($LocalizedData.testfailed -f $thisFunction, $err.exception)
            Write-AzsReadinessLog -message $errorDetails -function $thisFunction -type Error
            $result = 'Fail'
        }
    }

    if ($tenantDetails) {
        $result = 'OK'
        Write-AzsReadinessLog -message "Get-AzureADTenantDetails completed" -function $thisFunction
    }
    @{'Test' = 'ServiceAdministrator'; 'Result' = $result; 'errorDetails' = $errorDetails; 'Assets' = @{'AADServiceAdmin' = (Get-AzContext).account.id; 'AzureEnvironment' = (Get-AzContext).environment.name; 'AADDirectoryTenantName' = $AADDirectoryTenantName}}
}
Function Test-AzsRegistrationAccount {
    [OutputType([Hashtable])]
    [CmdletBinding()]
    Param(
        [Parameter(Mandatory = $true)]
        [psobject]
        $subscription,

        [Parameter(Mandatory = $true)]
        [string]
        $subscriptionId,

        [Parameter(Mandatory = $true)]
        [string]
        $tenantId
    )
    $thisFunction = $MyInvocation.MyCommand.Name
    $errorDetail = @()
    $supportedSubscriptionTypes = 'EnterpriseAgreement_', 'CSP_', 'Sponsored_', 'Internal_'
    Write-AzsReadinessLog -message ("Testing if subscription {0} is one of type {1}" -f $subscription.subscriptionid, ($supportedSubscriptionTypes -join ',')) -function $thisFunction

    if ($subscription.subscriptionPolicies.quotaId -match ($supportedSubscriptionType -join '|')) {
        $supported = $true
        Write-AzsReadinessLog -message ("Success subscription {0} is of type {1}" -f $subscription.subscriptionid, $subscription.subscriptionPolicies.quotaId) -function $thisFunction
    }
    else {
        $supported = $true
        $errorDetail += ($LocalizedData.SubscriptionNotSupported -f $subscription.subscriptionid, $subscription.subscriptionPolicies.quotaId)
        Write-AzsReadinessLog -message ($LocalizedData.SubscriptionNotSupported -f $subscription.subscriptionid, $subscription.subscriptionPolicies.quotaId) -function $thisFunction -type Error
    }

    # Check subscription is enabled
    if ($subscription.state -eq 'Enabled') {
        $enabled = $true
        Write-AzsReadinessLog -message ("Subscription {0} is enabled" -f $subscription.subscriptionid) -function $thisFunction
    }
    else {
        $enabled = $false
        $errorDetail += ($LocalizedData.SubscriptionNotEnabled -f $subscription.subscriptionid)
        Write-AzsReadinessLog -message ($LocalizedData.SubscriptionNotEnabled -f $subscription.subscriptionid) -function $thisFunction
    }

    # Check subscriptions match
    Write-AzsReadinessLog -message ("Checking subscription {0} matches given subscription {1}" -f $subscription.subscriptionid, $subscriptionid) -function $thisFunction
    if ($subscription.subscriptionid -eq $subscriptionid) {
        $subscriptionMatch = $true
        Write-AzsReadinessLog -message ("Subscription {0} matches given subscription {1}" -f $subscription.subscriptionid, $subscriptionid) -function $thisFunction
    }
    Else {
        $subscriptionMatch = $false
        $errorDetail += ($LocalizedData.SubscriptionNotMatch -f $subscription.subscriptionid, $subscriptionid)
        Write-AzsReadinessLog -message ($LocalizedData.SubscriptionNotMatch -f $subscription.subscriptionid, $subscriptionid) -function $thisFunction -type Error
    }


    ## Test if user account has right permissions and can access Graph API
    Write-AzsReadinessLog -message ("Testing if user has correct permissions set and can access Graph API." ) -function $thisFunction

    $azureURIs = Get-Endpoints (Get-AzContext).Environment.ResourceManagerUrl
    $token = Get-AzAccessToken -Resource (Get-AzContext).Environment.GraphEndpointResourceId -TenantId $tenantId

    $graphUri = "$($AzureURIs.GraphUri.TrimEnd('/'))/$tenantId/applications?api-version=1.6"
    $userPermission = $false
    try
    {
        $tenantResponse = Invoke-RestMethod -Method Get -Uri $graphUri -Headers @{Authorization = "Bearer $($token.Token)"}
        $userPermission = $true
        Write-AzsReadinessLog -message ("User was able to successfully invoke Graph API." ) -function $thisFunction
    }
    catch
    {
        $userPermission = $false
        $errorDetail += ("User does not have permission to access Graph API. Please check your account. Status Code: {0}, Exception: {1}" -f $_.Exception.Response.StatusCode, $_.Exception.Response)
        Write-AzsReadinessLog -message ( $errorDetail) -function $thisFunction -type Error
    }

    ## Add check for userpermission
    if ($supported -AND $enabled -AND $subscriptionMatch  -AND $userPermission) {
        $result = 'OK'
        Write-AzsReadinessLog -message ("Overall check for subscription {0} is success" -f $subscription.subscriptionid) -function $thisFunction
    }
    else {
        $result = 'Fail'
        Write-AzsReadinessLog -message ("Overall check for subscription {0} is error with detail {1}: " -f $subscription.subscriptionid, ($errorDetail -join ',')) -function $thisFunction -Type Error
    }
    @{'Test' = 'RegistrationAccount'; 'Result' = $result; 'errorDetails' = $errorDetail; 'Assets' = @{'SubscriptionId' = $subscription.subscriptionid; 'SubscriptionType' = $subscription.subscriptionPolicies.quotaId; 'Enabled' = $enabled}}
}

# Get subscription detail via REST so we can see the subscription type (CSP, EA, PAYG etc.)
function Get-AzureSubscriptionDetail {
    [OutputType([Hashtable])]
    [CmdletBinding()]
    param ([string]$tenantid,
        [string]$subscriptionid
    )
    $thisFunction = $MyInvocation.MyCommand.Name
    try {
        Write-AzsReadinessLog -message ("TenantID: {0}" -f $tenantid) -function $thisFunction
        Write-AzsReadinessLog -message ("SubscriptionId: {0}" -f $subscriptionid) -function $thisFunction
        $errorDetails = @()
        # Set well-known client ID for AzurePowerShell
        $clientId = "1950a258-227b-4e31-a9cf-717495945fc2"

        # Set redirect URI for Azure PowerShell
        $redirectUri = "urn:ietf:wg:oauth:2.0:oob"
        $azureURIs = Get-Endpoints (Get-AzContext).Environment.ResourceManagerUrl

        # Set Resource App URI as ARM
        $resourceAppIdURI = $AzureURIs.ARMUri
        Write-AzsReadinessLog -message ("Retrieved ARMURI {0}" -f $resourceAppIdURI) -function $thisFunction

        # Set Authority to Azure AD Tenant
        $authority = "{0}{1}" -f $AzureURIs.LoginUri, $tenantid
        Write-AzsReadinessLog -message ("Authority {0}" -f $authority) -function $thisFunction

        $token = Get-AzAccessToken -TenantId $tenantId
        $username = (ConvertFrom-JwtToken $token.Token).claims.upn
        $principalId = (ConvertFrom-JwtToken $token.Token).claims.oid
        $header = @{
            'Content-Type'  = 'application/json'
            'Authorization' = "Bearer $($token.Token)"
        }

        # Get Subscription detail
        $ApiVersion = '2017-08-01'
        $URI = $resourceAppIdURI + "subscriptions/${subscriptionId}?api-version=$ApiVersion"
        Write-AzsReadinessLog -message ("Making REST call to uri {0} for subscription details" -f $uri, $header) -function $thisFunction
        $subscription = Invoke-RestMethod -Uri $URI -Method GET -Headers $header

        $roleAssignmentURI = $resourceAppIdURI + "subscriptions/${subscriptionId}/providers/Microsoft.Authorization/roleAssignments?api-version=2017-09-01&`$filter=PrincipalId eq '$principalId'"
        Write-AzsReadinessLog -message ("Making call to uri {0} for role assignments of user" -f $uri) -function $thisFunction
        $roleAssignment = Invoke-RestMethod -Uri $roleAssignmentURI -Method GET -Headers $header
        $roleDefinitionIds = $roleAssignment.value.properties.roleDefinitionId
        Write-AzsReadinessLog -message ("RoleAssignment IDs {0} for user" -f ($roleDefinitionIds -join ',')) -function $thisFunction

        # Make role assignment definition call
        $roleDefURI = $resourceAppIdURI + "subscriptions/${subscriptionId}/providers/Microsoft.Authorization/roleDefinitions?api-version=2015-07-01"
        Write-AzsReadinessLog -message ("Get all RoleAssignment defintions from uri {0}" -f $roleDefURI) -function $thisFunction
        $allRoleDefs = Invoke-RestMethod -Uri $roleDefURI -Method GET -Headers $header
        # filter definitions on users role assignment(s)
        $roledef = $allRoleDefs.value | Where-Object id -in $roleDefinitionIds
        Write-AzsReadinessLog ("Resolving {0} role definition(s) from user in role definition list." -f ($roleDef.properties.roleName -join ',')) -function $thisFunction

        # check is role definition on user is owner
        if ($roleDef.properties.roleName -match 'Owner') {
            Write-AzsReadinessLog ("Success. Owner present. User: {0} role(s): {1}" -f $principalId, ($roleDef.properties.roleName -join ',')) -function $thisFunction
        }
        else {
            $allClassicAdmins = Get-AzureClassicAdmins -resourceAppIdURI $resourceAppIdURI -header $header -subscriptionId $subscriptionId
            $classicAdmin = $allClassicAdmins | Where-Object {$_.properties.emailaddress -eq $principalId}
            if ($classicAdmin) {
                Write-AzsReadinessLog ("Success. Classic Admin present. User: {0} role(s): {1}" -f $username, $classicAdmin.properties.role) -function $thisFunction
            }
            else {
                Write-AzsReadinessLog ("Error. Owner and classic admin not present. User: {0} role(s): {1}" -f $username, ($roleDef.properties.roleName -join ',')) -function $thisFunction
                throw "NonOwner"
            }
        }
    }
    catch {
        if ($_.exception.Message -match 'Forbidden|Unauthorized') {
            $errorDetails += ($LocalizedData.UserNotAuthorizedForSubscription -f $username, $tenantid, $subscriptionid)
            Write-AzsReadinessLog -message ($LocalizedData.UserNotAuthorizedForSubscription -f $username, $tenantid, $subscriptionid) -function $thisFunction -type Error
        }
        elseif ($_.exception.Message -match 'NonOwner') {
            $errorDetails += ($LocalizedData.UserNotOwnerForSubscription -f $username, ($roleDef.properties.roleName -join ','), $subscriptionid)
            Write-AzsReadinessLog -message ($LocalizedData.UserNotOwnerForSubscription -f $username, $tenantid, $subscriptionid) -function $thisFunction -type Error
        }
        else {
            $errorDetails += ("{0} threw an error: {1}" -f $MyInvocation.MyCommand.Name, $_)
            Write-AzsReadinessLog -message ("error: {0}" -f $_) -function $thisFunction -type Error
        }
    }
    @{'Test' = 'GetSubscription'; 'subscription' = $subscription; 'errorDetails' = $errorDetails; 'AADDirectoryTenantName' = $tenantid; 'subscriptionid' = $subscriptionid; 'credential' = $principalId; 'AzureEnvironment' = $AzureEnvironment; 'UserRole' = ($roleDef.properties.roleName -join ',')}
}


function Get-AzureClassicAdmins {
    param ($resourceAppIdURI, $header, $subscriptionId)
    $thisFunction = $MyInvocation.MyCommand.Name
    $classicAdminURI = $resourceAppIdURI + "subscriptions/${subscriptionId}/providers/Microsoft.Authorization/classicAdministrators?api-version=2015-06-01"
    Write-AzsReadinessLog -message ("Get Classic Administrators from uri {0}" -f $classicAdminURI) -function $thisFunction
    try {
        $classicAdmins = Invoke-RestMethod -Uri $classicAdminURI -Method GET -Headers $header | Select-Object -ExpandProperty Value
    }
    catch {
        Write-AzsReadinessLog -message ("Unable to retrieve Classic Administrators from uri {0}. Exception {1}" -f $classicAdminURI, $_.exception) -function $thisFunction -Type Error
    }
    return $classicAdmins
}
# SIG # Begin signature block
# MIIjgwYJKoZIhvcNAQcCoIIjdDCCI3ACAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCBBKdViOAoi9adr
# 4E/JA05JjotlxWlxf/QwFi/PJOxgSqCCDYEwggX/MIID56ADAgECAhMzAAAB32vw
# LpKnSrTQAAAAAAHfMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBIDIwMTEwHhcNMjAxMjE1MjEzMTQ1WhcNMjExMjAyMjEzMTQ1WjB0MQsw
# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u
# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYD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