You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-resource-manager/management/delete-resource-group.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -168,7 +168,7 @@ If you have the required access, but the delete request fails, it may be because
168
168
169
169
## Can I recover a deleted resource group?
170
170
171
-
No, you can't recover a deleted resource group. However, you might be able to resore some recently deleted resources.
171
+
No, you can't recover a deleted resource group. However, you might be able to restore some recently deleted resources.
172
172
173
173
Some resource types support *soft delete*. You might have to configure soft delete before you can use it. For information about enabling soft delete, see:
Copy file name to clipboardExpand all lines: articles/postgresql/flexible-server/how-to-autovacuum-tuning.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -98,7 +98,7 @@ Use the following query to list the tables in a database and identify the tables
98
98
,C.reltuplesAS reltuples
99
99
,round(current_setting('autovacuum_vacuum_threshold')::INTEGER+ current_setting('autovacuum_vacuum_scale_factor')::NUMERIC*C.reltuples) AS av_threshold
100
100
,date_trunc('minute', greatest(pg_stat_get_last_vacuum_time(C.oid), pg_stat_get_last_autovacuum_time(C.oid))) AS last_vacuum
101
-
,date_trunc('minute', greatest(pg_stat_get_last_analyze_time(C.oid), pg_stat_get_last_analyze_time(C.oid))) AS last_analyze
101
+
,date_trunc('minute', greatest(pg_stat_get_last_analyze_time(C.oid), pg_stat_get_last_autoanalyze_time(C.oid))) AS last_analyze
102
102
FROM pg_class C
103
103
LEFT JOIN pg_namespace N ON (N.oid=C.relnamespace)
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/debian-create-upload-vhd.md
+20-27Lines changed: 20 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ ms.service: virtual-machines
6
6
ms.custom: linux-related-content
7
7
ms.collection: linux
8
8
ms.topic: how-to
9
-
ms.date: 11/10/2021
10
-
ms.author: srijangupta
9
+
ms.date: 05/01/2024
10
+
ms.author: maries
11
11
ms.reviewer: mattmcinnes
12
12
---
13
13
# Prepare a Debian VHD for Azure
@@ -24,23 +24,6 @@ This section assumes that you have already installed a Debian Linux operating sy
24
24
* Do not configure a swap partition on the OS disk. The Azure Linux agent can be configured to create a swap file on the temporary resource disk. More information can be found in the steps below.
25
25
* All VHDs on Azure must have a virtual size aligned to 1MB. When converting from a raw disk to VHD, you must ensure that the raw disk size is a multiple of 1MB before conversion. For more information, see [Linux Installation Notes](create-upload-generic.md#general-linux-installation-notes).
26
26
27
-
## Use Azure-Manage to create Debian VHDs
28
-
There are tools available for generating Debian VHDs for Azure, such as the [azure-manage](https://github.com/credativ/azure-manage) scripts from [Instaclustr](https://www.instaclustr.com/). This is the recommended approach versus creating an image from scratch. For example, to create a Debian 8 VHD run the following commands to download the `azure-manage` utility (and dependencies) and run the `azure_build_image` script:
This creates a VHD `image_buster_azure_amd64.vhd` with a rounded size to be able to copy it successfully to an Azure Disk.
89
+
This creates a VHD `image_[release]_azure_amd64.vhd` with a rounded size to be able to copy it successfully to an Azure Disk.
90
+
91
+
>[!Note]
92
+
> Rather than cloning the salsa repository and building images locally, current stable images can be built and downloaded from [FAI](https://fai-project.org/FAIme/cloud/).
93
+
94
+
After creating a stable Debian vhd image, before uploading verify the following packages are installed:
95
+
* apt-get install hyperv-daemons
96
+
* apt-get install waagent # *optional but recommended for password resets and the use of extensions*
97
+
* apt-get install cloud-init
107
98
108
-
Now we need to create the Azure resources for this image (this uses the `$rounded_size_adjusted` variable, so it should be from within the same shell process from above).
99
+
Then perform a full upgrade:
100
+
* apt-get full-upgrade
109
101
102
+
Now the Azure resources must be created for this image (this uses the `$rounded_size_adjusted` variable, so it should be from within the same shell process from above).
110
103
```
111
104
az group create -l $LOCATION -n $RG
112
105
@@ -149,7 +142,7 @@ az vm create \
149
142
>[!Note]
150
143
> If the bandwidth from your local machine to the Azure Disk is causing a long time to process the upload with azcopy, you can use an Azure VM jumpbox to speed up the process. Here's how this can be done:
151
144
>
152
-
>1. Create a tarball of the VHD on your local machine: `tar -czvf ./image_buster_azure_amd64.vhd.tar.gz ./image_buster_azure_amd64.vhd`.
145
+
>1. Create a tarball of the VHD on your local machine: `tar -czvf ./image_buster_azure_amd64.vhd.tar.gz ./image_[release]_azure_amd64.vhd`.
153
146
>2. Create an Azure Linux VM (distro of your choice). Make sure that you create it with a large enough disk to hold the extracted VHD!
154
147
>3. Download the azcopy utility to the Azure Linux VM. It can be retrieved from [here](../../storage/common/storage-use-azcopy-v10.md#download-azcopy).
155
148
>4. Copy the tarball to the VM: `scp ./image_buster_azure_amd64.vhd.tar.gz <vm>:~`.
This will also ensure that all console messages are sent to the first serial port and enable interaction with the serial console, which can assist Azure support with debugging issues. This configuration also turns off the new RHEL 7 naming conventions for NICs.
231
+
> [!NOTE]
232
+
> If [**ENABLE_BLSCFG=false**](https://access.redhat.com/solutions/6929571) is present in `/etc/default/grub` instead of 'ENABLE_BLSCFG=true` tools such as ___grubedit___ or ___gubby___, which rely on the Boot Loader Specification (BLS) formanaging boot entries and configurations, may not function correctlyin RHEL 8 and 9. Be advised, if ENABLE_BLSCFG is not present, the default behavior is "false".
231
233
232
-
```config
233
-
rhgb quiet crashkernel=auto
234
-
```
234
+
This will also ensure that all console messages are sent to the first serial port and enable interaction with the serial console, which can assist Azure support with debugging issues. This configuration also turns off the new RHEL 7 naming conventions for NICs.
235
235
236
-
Graphical and quiet boots aren't useful in a cloud environment where we want all the logs to be sent to the serial port. You can leave the `crashkernel` option configured if desired. Note that this parameter reduces the amount of available memory in the virtual machine by 128 MB or more, which might be problematic on smaller virtual machine sizes.
236
+
```config
237
+
rhgb quiet crashkernel=auto
238
+
```
239
+
240
+
Graphical and quiet boots aren't useful in a cloud environment where we want all the logs to be sent to the serial port. You can leave the `crashkernel` option configured if desired. Note that this parameter reduces the amount of available memory in the virtual machine by 128 MB or more, which might be problematic on smaller virtual machine sizes.
237
241
238
-
8. After you're done editing `/etc/default/grub`, run the following command to rebuild the grub configuration:
242
+
7. After you're done editing `/etc/default/grub`, run the following command to rebuild the grub configuration:
239
243
240
244
```bash
241
245
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
242
246
```
243
247
> [!NOTE]
244
248
> If uploading an UEFI enabled VM, the command to update grub is `grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg`.
245
249
246
-
9. Ensure that the SSH server is installed and configured to start at boot time, which is usually the default. Modify `/etc/ssh/sshd_config` to include the following line:
250
+
8. Ensure that the SSH server is installed and configured to start at boot time, which is usually the default. Modify `/etc/ssh/sshd_config` to include the following line:
247
251
248
252
```config
249
253
ClientAliveInterval 180
250
254
```
251
255
252
-
10. The WALinuxAgent package, `WALinuxAgent-<version>`, has been pushed to the Red Hat extras repository. Enable the extras repository by running the following command:
256
+
9. The WALinuxAgent package, `WALinuxAgent-<version>`, has been pushed to the Red Hat extras repository. Enable the extras repository by running the following command:
12. Configure cloud-init to handle the provisioning:
270
+
11. Configure cloud-init to handle the provisioning:
267
271
268
272
1. Configure waagent for cloud-init:
269
273
@@ -319,7 +323,7 @@ EOF
319
323
320
324
```
321
325
322
-
13. Swap configuration.
326
+
12. Swap configuration.
323
327
Don't create swap space on the operating system disk.
324
328
325
329
Previously, the Azure Linux Agent was used to automatically configure swap space by using the local resource disk that is attached to the virtual machine after the virtual machine is provisioned on Azure. However, this is now handled by cloud-init, you **must not** use the Linux Agent to format the resource disk create the swap file, modify the following parameters in`/etc/waagent.conf` appropriately:
14. If you want to unregister the subscription, run the following command:
360
+
13. If you want to unregister the subscription, run the following command:
357
361
358
362
```bash
359
363
sudo subscription-manager unregister
360
364
```
361
365
362
-
15. Deprovision
366
+
14. Deprovision
363
367
364
368
Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure:
365
369
@@ -375,9 +379,9 @@ EOF
375
379
```
376
380
377
381
378
-
16. Click **Action**>**Shut Down**in Hyper-V Manager. Your Linux VHD is now ready to be [**uploaded to Azure**](./upload-vhd.md#option-1-upload-a-vhd).
382
+
15. Click **Action** > **Shut Down** in Hyper-V Manager. Your Linux VHD is now ready to be [**uploaded to Azure**](./upload-vhd.md#option-1-upload-a-vhd).
379
383
380
-
### RHEL 8 using Hyper-V Manager
384
+
### RHEL 8+ using Hyper-V Manager
381
385
382
386
1. In Hyper-V Manager, select the virtual machine.
0 commit comments