Skip to content

Commit 7cbe271

Browse files
Merge pull request #18650 from haraldfianbakken/main
Commented to remove Get-CertificatechainFromEndpoint example before d…
2 parents 44acd63 + 4475ab0 commit 7cbe271

File tree

3 files changed

+32
-18
lines changed

3 files changed

+32
-18
lines changed

azure-local/manage/disconnected-operations-deploy.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ To prepare the first machine for the disconnected operations appliance, follow t
237237
1. Import the **Operations module**. Run the command as an administrator using PowerShell. Modify the path to match your folder structure.
238238
239239
```powershell
240-
Import-Module "$applianceConfigBasePath\OperationsModule\Azure.Local.DisconnectedOperations.psd1" -Force
241-
Import-Module "$applianceConfigBasePath\OperationsModule\ExternalIdentityConfigurationModule.psm1" -Force
240+
Import-Module "$applianceConfigBasePath\OperationsModule\Azure.Local.DisconnectedOperations.psd1" -Force
242241
243242
$mgmntCertFolderPath = "$certspath\ManagementEndpointCerts"
244243
$ingressCertFolderPath = "$certspath\IngressEndpointsCerts"
@@ -290,25 +289,27 @@ Populate the required parameters based on your deployment planning. Modify the e
290289
1. Populate the identity configuration object.
291290
292291
```powershell
293-
$oidcCertChain = Get-CertificateChainFromEndpoint -requestUri 'https://adfs.azurestack.local/adfs'
294-
# Omit ldapsCertChain in this preview release
292+
$oidcCertChain = Get-CertificateChainFromEndpoint -requestUri 'https://adfs.azurestack.local/adfs'
295293
# $ldapsCertChain = Get-CertificateChainFromEndpoint -requestUri 'https://dc01.azurestack.local'
294+
296295
$ldapPassword = 'RETRACTED'|ConvertTo-SecureString -AsPlainText -Force
297296
298297
$identityParams = @{
299298
Authority = "https://adfs.azurestack.local/adfs"
300-
ClientId = "7e7655c5-9bc4-45af-8345-afdf6bbe2ec1"
299+
ClientId = "<ClientId>"
301300
RootOperatorUserPrincipalName = "[email protected]"
302301
LdapServer = "adfs.azurestack.local"
303302
LdapCredential = New-Object PSCredential -ArgumentList @("ldap", $ldapPassword)
304-
SyncGroupIdentifier = "7d67fcd5-c2f4-4948-916c-b77ea7c2712f"
305-
OidcCertChainInfo=$oidcCertChainInfo
303+
OidcCertChain = $oidcCertChain
304+
SyncGroupIdentifier = "<SynGroupIdentifier>"
306305
}
307306
$identityConfiguration = New-ApplianceExternalIdentityConfiguration @identityParams
308307
```
309308
310309
> [!NOTE]
311-
> `LdapsCertChainInfo` and `OidcCertChain` can be omitted completely for debugging or demo purposes. For information on how to get LdapsCertChainInfo and OidcCertChainInfo, see [PKI for disconnected operations](disconnected-operations-pki.md).
310+
> `LdapsCertChainInfo` and `OidcCertChain` can be omitted completely for debugging or demo purposes. For information on how to get LdapsCertChainInfo and OidcCertChainInfo, see [PKI for disconnected operations](disconnected-operations-pki.md). In this preview release, there's an issue with the `Get-CertificateChainFromEndpoint` not being exported as intended. Use the steps in [Known issues for disconnected operations for Azure Local](disconnected-operations-known-issues.md) to mitigate this issue.
311+
312+
312313
313314
For more information, see [Identity for disconnected operations](disconnected-operations-identity.md).
314315
@@ -407,7 +408,7 @@ To configure observability, follow these steps:
407408
408409
```json
409410
{
410-
"appId": "f9c68c7b-0df2-4b3a-9833-3cfb41c6f829",
411+
"appId": "<AppId>",
411412
"displayName": "azlocalobsapp",
412413
"password": "<RETRACTED>",
413414
"tenant": "<RETRACTED>"
@@ -421,7 +422,7 @@ To configure observability, follow these steps:
421422
$observabilityConfiguration = New-ApplianceObservabilityConfiguration -ResourceGroupName "azure-disconnectedoperations" `
422423
-TenantId "<TenantID>" `
423424
-Location "<Location>" `
424-
-SubscriptionId "<subscriptionId>" `
425+
-SubscriptionId "<SubscriptionId>" `
425426
-ServicePrincipalId "<AppId>" `
426427
-ServicePrincipalSecret ("<Password>"|ConvertTo-SecureString -AsPlainText -Force)
427428
@@ -485,7 +486,7 @@ Use the operator account to create an SPN for Arc initialization of each Azure L
485486
486487
```json
487488
{
488-
"appId": "f9c68c7b-0df2-4b3a-9833-3cfb41c6f829",
489+
"appId": "<AppId>",
489490
"displayName": "azlocalclusapp",
490491
"password": "<RETRACTED>",
491492
"tenant": "<RETRACTED>"
@@ -520,7 +521,7 @@ To initialize each node, follow these steps. Modify where necessary to match you
520521
Write-Host "az login to Disconnected operations cloud"
521522
az cloud set -n $applianceCloudName --only-show-errors
522523
Write-Host "Login using service principal"
523-
az login --service-principal --username $appId --password $clientSecret --tenant 98b8267d-e97f-426e-8b3f-7956511fd63f
524+
az login --service-principal --username $appId --password $clientSecret --tenant <TenantId>
524525
# If you prefer interactive login..
525526
# Write-Host "Using device code login - complete the login from your browser"
526527
# az login --use-device-code
@@ -658,7 +659,6 @@ From a client with network access to the management endpoint, import the **Opera
658659

659660
```powershell
660661
Import-Module "$applianceConfigBasePath\OperationsModule\Azure.Local.DisconnectedOperations.psd1" -Force
661-
Import-Module "$applianceConfigBasePath\OperationsModule\ExternalIdentityConfigurationModule.psm1" -Force
662662
663663
$password = ConvertTo-SecureString 'RETRACTED' -AsPlainText -Force
664664
$context = Set-DisconnectedOperationsClientContext -ManagementEndpointClientCertificatePath "${env:localappdata}\AzureLocalOpModuleDev\certs\ManagementEndpoint\ManagementEndpointClientAuth.pfx" -ManagementEndpointClientCertificatePassword $password -ManagementEndpointIpAddress "169.254.53.25"

azure-local/manage/disconnected-operations-known-issues.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,25 @@ These release notes update continuously, and we add critical issues that need a
2121

2222
## Known issues in the preview release
2323

24+
### Get-CertificateChainFromEndpoint method not found
25+
There's a known issue when running `Get-CertificateChainFromEndpoint` in order to populate the OidcCertChainInfo object.
26+
27+
Mitigation: You need to make a modification in the OperationsModule.
28+
Open the Azure.Local.DisconnectedOperations.psm1 file in notepad (or another text editor). Add the end of the file with the following
29+
```powershell
30+
Export-ModuleMember Get-CertificateChainFromEndpoint
31+
```
32+
Save the file and exit your editor. Restart your powershell session. Set the execution policy to unrestricted and import the modified OperationsModule module
33+
```powershell
34+
Set-ExeuctionPolicy Unrestricted
35+
Import-Module "$applianceConfigBasePath\OperationsModule\Azure.Local.DisconnectedOperations.psd1" -Force
36+
```
37+
38+
2439
### Air-gapped deployment when local DNS forwards and resolves external domain requests
25-
There is a known issue if you try to deploy an air-gapped enviroment - in the rare condition you would have a local DNS server that is able to resolve public (Microsoft.com) endpoints.
40+
There's a known issue when deploying an air-gapped environment—this happens if you’ve got a local DNS server that can resolve public endpoints like Microsoft.com.
2641

27-
Mitigation: Disable DNS forwarding for microsoft.com and azure.com zones. The appliance should not be able to resolve these DNS endpoint and will fail if it receives an IP address.
42+
Mitigation: Disable DNS forwarding for microsoft.com and azure.com zones. The appliance can't resolve these DNS endpoints and fails if it receives an IP address.
2843

2944
### Azure Local deployment with Azure Keyvault
3045

azure-local/manage/disconnected-operations-pki.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -314,11 +314,10 @@ Here's an example of how to populate the required parameters:
314314

315315
```powershell
316316
Import-Module "$applianceConfigBasePath\OperationsModule\Azure.Local.DisconnectedOperations.psd1" -Force
317-
Import-Module "$applianceConfigBasePath\OperationsModule\ExternalIdentityConfigurationModule.psm1" -Force
317+
318318
319319
$oidcCertChain = Get-CertificateChainFromEndpoint -requestUri 'https://adfs.azurestack.local/adfs'
320-
# Omit LDAPSCertChain in this preview releases
321-
# $ldapsCertChain = Get-CertificateChainFromEndpoint -requestUri 'https://dc01.azurestack.local'
320+
$ldapsCertChain = Get-CertificateChainFromEndpoint -requestUri 'https://dc01.azurestack.local'
322321
```
323322

324323
Here's an example of the output from Get-CertificateChainFromEndpoint

0 commit comments

Comments
 (0)