Skip to content

Commit f38664b

Browse files
committed
2 parents e85e24a + cad6f3f commit f38664b

File tree

121 files changed

+2042
-370
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+2042
-370
lines changed

articles/active-directory/external-identities/azure-ad-account.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Azure AD account is an identity provider option for your self-service sign-up us
3838
![Azure AD account in a self-service sign-up user flow](media/azure-ad-account/azure-ad-account-user-flow.png)
3939

4040
## Verifying the application's publisher domain
41-
As of November 2020, new application registrations show up as unverified in the user consent prompt unless [the application's publisher domain is verified](../develop/howto-configure-publisher-domain.md) ***and*** the company’s identity has been verified with the Microsoft Partner Network and associated with the application. ([Learn more](../develop/publisher-verification-overview.md) about this change.) Note that for Azure AD user flows, the publisher’s domain appears only when using a [Microsoft account](microsoft-account.md) or other Azure AD tenant as the identity provider. To meet these new requirements, do the following:
41+
As of November 2020, new application registrations show up as unverified in the user consent prompt unless [the application's publisher domain is verified](../develop/howto-configure-publisher-domain.md), ***and*** the company’s identity has been verified with the Microsoft Partner Network and associated with the application. ([Learn more](../develop/publisher-verification-overview.md) about this change.) For Azure AD user flows, the publisher’s domain appears only when using a [Microsoft account](microsoft-account.md) or other Azure AD tenant as the identity provider. To meet these new requirements, follow these steps:
4242

4343
1. [Verify your company identity using your Microsoft Partner Network (MPN) account](/partner-center/verification-responses). This process verifies information about your company and your company’s primary contact.
4444
1. Complete the publisher verification process to associate your MPN account with your app registration using one of the following options:
@@ -48,4 +48,4 @@ As of November 2020, new application registrations show up as unverified in the
4848
## Next steps
4949

5050
- [Add Azure Active Directory B2B collaboration users](add-users-administrator.md)
51-
- [Add self-service sign-up to an app](self-service-sign-up-user-flow.md)
51+
- [Add self-service sign-up to an app](self-service-sign-up-user-flow.md)
-7.05 KB
Loading
-2.99 KB
Loading
-4.21 KB
Loading

articles/aks/update-credentials.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ To check the expiration date of your service principal, use the [az ad sp creden
3737
```azurecli
3838
SP_ID=$(az aks show --resource-group myResourceGroup --name myAKSCluster \
3939
--query servicePrincipalProfile.clientId -o tsv)
40-
az ad sp credential list --id "$SP_ID" --query "[].endDate" -o tsv
40+
az ad sp credential list --id "$SP_ID" --query "[].endDateTime" -o tsv
4141
```
4242

4343
### Reset the existing service principal credential
193 KB
Loading
193 KB
Loading
311 KB
Loading
311 KB
Loading

articles/automation/troubleshoot/update-agent-issues-linux.md

Lines changed: 132 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -25,72 +25,159 @@ This article discusses how to run the troubleshooter for Azure machines from the
2525
2626
## Start the troubleshooter
2727

28-
For Azure machines, select the **troubleshoot** link under the **Update Agent Readiness** column in the portal to open the Troubleshoot Update Agent page. For non-Azure machines, the link brings you to this article. To troubleshoot a non-Azure machine, see the instructions in the "Troubleshoot offline" section.
28+
For Azure machines, select the **troubleshoot** link under the **Update Agent Readiness** column in the portal to open the Troubleshoot Update Agent page. For non-Azure machines, the link brings you to this article. To troubleshoot a non-Azure machine, see the instructions in the **Troubleshoot offline** section.
2929

30-
![VM list page](../media/update-agent-issues-linux/vm-list.png)
30+
:::image type="content" source="../media/update-agent-issues-linux/vm-list.png" alt-text="Screenshot of VM list page.":::
3131

3232
> [!NOTE]
3333
> The checks require the VM to be running. If the VM isn't running, **Start the VM** appears.
3434
3535
On the Troubleshoot Update Agent page, select **Run Checks** to start the troubleshooter. The troubleshooter uses [Run command](../../virtual-machines/linux/run-command.md) to run a script on the machine to verify the dependencies. When the troubleshooter is finished, it returns the result of the checks.
3636

37-
![Troubleshoot page](../media/update-agent-issues-linux/troubleshoot-page.png)
37+
:::image type="content" source="../media/update-agent-issues-linux/troubleshoot-page.png" alt-text="Screenshot of Troubleshoot page.":::
38+
3839

3940
When the checks are finished, the results are returned in the window. The check sections provide information on what each check is looking for.
4041

41-
![Update agent checks page](../media/update-agent-issues-linux/update-agent-checks.png)
42+
:::image type="content" source="../media/update-agent-issues-linux/actionable-tasks-linux-inline.png" alt-text="Screenshot of Linux Troubleshooter." border="false" lightbox="../media/update-agent-issues-linux/actionable-tasks-linux-expanded.png":::
43+
4244

4345
## Prerequisite checks
4446

4547
### Operating system
4648

4749
The operating system check verifies if the Hybrid Runbook Worker is running one of the [supported operating systems](../update-management/operating-system-requirements.md#supported-operating-systems).
4850

51+
### Dmidecode check
52+
53+
To verify if a VM is an Azure VM, check for Asset tag value using the below command:
54+
55+
```
56+
sudo dmidecode
57+
```
58+
59+
If the asset tag is different than 7783-7084-3265-9085-8269-3286-77, then reboot VM to initiate re-registration.
60+
61+
4962
## Monitoring agent service health checks
5063

51-
### Log Analytics agent
64+
### Monitoring Agent
65+
66+
To fix this, install Azure Log Analytics Linux agent and ensure it communicates the required endpoints. For more information, see [Install Log Analytics agent on Linux computers](../../azure-monitor/agents/agent-linux.md).
5267

53-
This check ensures that the Log Analytics agent for Linux is installed. For instructions on how to install it, see [Install the agent for Linux](../../azure-monitor/vm/monitor-virtual-machine.md#agents).
68+
This task checks if the folder is present -
5469

55-
### Log Analytics agent status
70+
*/etc/opt/microsoft/omsagent/conf/omsadmin.conf*
5671

57-
This check ensures that the Log Analytics agent for Linux is running. If the agent isn't running, you can run the following command to attempt to restart it. For more information on troubleshooting the agent, see [Linux - Troubleshoot Hybrid Runbook Worker issues](hybrid-runbook-worker.md#linux).
72+
### Monitoring Agent status
73+
74+
To fix this issue, you must start the OMS Agent service by using the following command:
5875

59-
```bash
60-
sudo /opt/microsoft/omsagent/bin/service_control restart
76+
```
77+
sudo /opt/microsoft/omsagent/bin/service_control restart
6178
```
6279

63-
### Multihoming
80+
To validate you can perform process check using the below command:
81+
82+
```
83+
process_name = "omsagent"
84+
ps aux | grep %s | grep -v grep" % (process_name)
85+
```
6486

87+
For more information, see [Troubleshoot issues with the Log Analytics agent for Linux](../../azure-monitor/agents/agent-linux-troubleshoot.md)
88+
89+
90+
### Multihoming
6591
This check determines if the agent is reporting to multiple workspaces. Update Management doesn't support multihoming.
6692

93+
To fix this issue, purge the OMS Agent completely and reinstall it with the [workspace linked with Update management](../../azure-monitor/agents/agent-linux-troubleshoot.md#purge-and-reinstall-the-linux-agent)
94+
95+
96+
Validate that there are no more multihoming by checking the directories under this path:
97+
98+
*/var/opt/microsoft/omsagent*.
99+
100+
As they are the directories of workspaces, the number of directories equals the number of workspaces on-boarded to OMSAgent.
101+
67102
### Hybrid Runbook Worker
103+
To fix the issue, run the following command:
68104

69-
This check verifies if the Log Analytics agent for Linux has the Hybrid Runbook Worker package. This package is required for Update Management to work. To learn more, see [Log Analytics agent for Linux isn't running](hybrid-runbook-worker.md#oms-agent-not-running).
105+
```
106+
sudo su omsagent -c 'python /opt/microsoft/omsconfig/Scripts/ PerformRequiredConfigurationChecks.py
107+
```
70108

71-
Update Management downloads Hybrid Runbook Worker packages from the operations endpoint. Therefore, if the Hybrid Runbook Worker is not running and the [operations endpoint](#operations-endpoint) check fails, the update can fail.
109+
This command forces the omsconfig agent to talk to Azure Monitor and retrieve the latest configuration.
110+
111+
Validate to check if the following two paths exists:
112+
113+
```
114+
/opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/VERSION </br> /opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/configuration.py
115+
```
72116

73117
### Hybrid Runbook Worker status
74118

75119
This check makes sure the Hybrid Runbook Worker is running on the machine. The processes in the example below should be present if the Hybrid Runbook Worker is running correctly.
120+
```
121+
ps -ef | grep python
122+
```
76123

77-
```bash
124+
```
78125
nxautom+ 8567 1 0 14:45 ? 00:00:00 python /opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/main.py /var/opt/microsoft/omsagent/state/automationworker/oms.conf rworkspace:<workspaceId> <Linux hybrid worker version>
79126
nxautom+ 8593 1 0 14:45 ? 00:00:02 python /opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/hybridworker.py /var/opt/microsoft/omsagent/state/automationworker/worker.conf managed rworkspace:<workspaceId> rversion:<Linux hybrid worker version>
80127
nxautom+ 8595 1 0 14:45 ? 00:00:02 python /opt/microsoft/omsconfig/modules/nxOMSAutomationWorker/DSCResources/MSFT_nxOMSAutomationWorkerResource/automationworker/worker/hybridworker.py /var/opt/microsoft/omsagent/<workspaceId>/state/automationworker/diy/worker.conf managed rworkspace:<workspaceId> rversion:<Linux hybrid worker version>
81128
```
82129

130+
Update Management downloads Hybrid Runbook Worker packages from the operations endpoint. Therefore, if the Hybrid Runbook Worker is not running and the [operations endpoint](#operations-endpoint) check fails, the update can fail.
131+
132+
To fix this issue, run the following command:
133+
134+
```
135+
sudo su omsagent -c python /opt/microsoft/omsconfig/Scripts/PerformRequiredConfigurationChecks.py
136+
```
137+
138+
This command forces the omsconfig agent to talk to Azure Monitor and retrieve the latest configuration.
139+
140+
If the issue still persists, run the [omsagent Log Collector tool](https://github.com/Microsoft/OMS-Agent-for-Linux/blob/master/tools/LogCollector/OMS_Linux_Agent_Log_Collector.md)
141+
142+
143+
83144
## Connectivity checks
84145

146+
### Proxy enabled check
147+
148+
To fix the issue, either remove the proxy or make sure that the proxy address is able to access the [prerequisite URL](../automation-network-configuration.md#update-management-and-change-tracking-and-inventory).
149+
150+
You can validate the task by running the below command:
151+
152+
```
153+
HTTP_PROXY
154+
```
155+
156+
### IMDS connectivity check
157+
158+
To fix this issue, allow access to IP **169.254.169.254**. For more information, see [Access Azure Instance Metadata Service](../../virtual-machines/windows/instance-metadata-service.md#azure-instance-metadata-service-windows)
159+
160+
After the network changes, you can either rerun the Troubleshooter or run the below commands to validate:
161+
162+
```
163+
curl -H \"Metadata: true\" http://169.254.169.254/metadata/instance?api-version=2018-02-01
164+
```
165+
85166
### General internet connectivity
86167

87-
This check makes sure that the machine has access to the internet.
168+
This check makes sure that the machine has access to the internet and can be ignored if you have blocked internet and allowed only specific URLs.
169+
170+
CURL on any http url.
88171

89172
### Registration endpoint
90173

91174
This check determines if the Hybrid Runbook Worker can properly communicate with Azure Automation in the Log Analytics workspace.
92175

93-
Proxy and firewall configurations must allow the Hybrid Runbook Worker agent to communicate with the registration endpoint. For a list of addresses and ports to open, see [Network planning](../automation-hybrid-runbook-worker.md#network-planning).
176+
Proxy and firewall configurations must allow the Hybrid Runbook Worker agent to communicate with the registration endpoint. For a list of addresses and ports to open, see [Network planning](../automation-hybrid-runbook-worker.md#network-planning)
177+
178+
Fix this issue by allowing the prerequisite URLs. For more information, see [Update Management and Change Tracking and Inventory](../automation-network-configuration.md#update-management-and-change-tracking-and-inventory)
179+
180+
Post the network changes you can either re-run the troubleshooter or CURL on provided jrds endpoint.
94181

95182
### Operations endpoint
96183

@@ -102,21 +189,45 @@ Proxy and firewall configurations must allow the Hybrid Runbook Worker agent to
102189

103190
This check verifies that your machine has access to the endpoints needed by the Log Analytics agent.
104191

192+
Fix this issue by allowing the [prerequisite URLs](../automation-network-configuration.md#update-management-and-change-tracking-and-inventory).
193+
194+
Post making Network changes you can either rerun the Troubleshooter or
195+
Curl on provided OMS endpoint
196+
105197
### Log Analytics endpoint 2
106198

107199
This check verifies that your machine has access to the endpoints needed by the Log Analytics agent.
108200

109-
### Log Analytics endpoint 3
201+
Fix this issue by allowing the [prerequisite URLs](../automation-network-configuration.md#update-management-and-change-tracking-and-inventory).
110202

111-
This check verifies that your machine has access to the endpoints needed by the Log Analytics agent.
203+
Post making Network changes you can either rerun the Troubleshooter or
204+
Curl on provided OMS endpoint
205+
206+
207+
### Software repositories
208+
209+
Fix this issue by allowing the prerequisite Repo URL. For RHEL, see [here](https://learn.microsoft.com/azure/virtual-machines/workloads/redhat/redhat-rhui#troubleshoot-connection-problems-to-azure-rhui).
210+
211+
Post making Network changes you can either rerun the Troubleshooter or
212+
213+
Curl on software repositories configured in package manager.
214+
215+
Refreshing repos would help to confirm the communication.
216+
217+
```
218+
sudo apt-get check
219+
sudo yum check-update
220+
```
221+
> [!NOTE]
222+
> The check is available only in offline mode.
112223
113224
## <a name="troubleshoot-offline"></a>Troubleshoot offline
114225

115226
You can use the troubleshooter offline on a Hybrid Runbook Worker by running the script locally. The Python script, [UM_Linux_Troubleshooter_Offline.py](https://github.com/Azure/updatemanagement/blob/main/UM_Linux_Troubleshooter_Offline.py), can be found in GitHub.
116227

117-
> [!NOTE]
118-
> The current version of the troubleshooter script does not support Ubuntu 20.04.
119-
>
228+
> [!NOTE]
229+
> The current version of the troubleshooter script does not support Ubuntu 20.04.
230+
120231

121232
An example of the output of this script is shown in the following example:
122233

0 commit comments

Comments
 (0)