Skip to content

Commit 3ad5959

Browse files
authored
Merge pull request #274517 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/azure-docs (branch main)
2 parents 65b1cd7 + cde40d6 commit 3ad5959

File tree

8 files changed

+52
-48
lines changed

8 files changed

+52
-48
lines changed

articles/active-directory-b2c/custom-policies-series-store-user.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ We use the `ClaimGenerator` technical profile to execute three claims transforma
206206
</Precondition>
207207
</Preconditions>
208208
</ValidationTechnicalProfile>
209-
<ValidationTechnicalProfile ReferenceId="DisplayNameClaimGenerator"/>
209+
<ValidationTechnicalProfile ReferenceId="UserInputDisplayNameGenerator"/>
210210
<ValidationTechnicalProfile ReferenceId="AAD-UserWrite"/>
211211
</ValidationTechnicalProfiles>
212212
<!--</TechnicalProfile>-->

articles/active-directory-b2c/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ conceptualContent:
228228
- text: Deploy with GitHub actions
229229
url: deploy-custom-policies-github-action.md
230230
itemType: how-to-guide
231-
- text: Manage resources using Microsoft Powershell
231+
- text: Manage resources using Microsoft PowerShell
232232
url: manage-custom-policies-powershell.md
233233
itemType: how-to-guide
234234

articles/azure-arc/kubernetes/azure-rbac.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,11 @@ node-3 Ready agent 6m33s v1.18.14
716716

717717
If the secret for the server application's service principal has expired, you'll need to rotate it.
718718

719+
### [Azure CLI >= v2.3.7](#tab/AzureCLI)
720+
```azurecli
721+
SERVER_APP_SECRET=$(az ad sp credential reset --id "${SERVER_APP_ID}" --query password -o tsv)
722+
```
723+
### [Azure CLI < v2.3.7](#tab/AzureCLI236)
719724
```azurecli
720725
SERVER_APP_SECRET=$(az ad sp credential reset --name "${SERVER_APP_ID}" --credential-description "ArcSecret" --query password -o tsv)
721726
```
@@ -726,6 +731,8 @@ Update the secret on the cluster. Include any optional parameters you configured
726731
az connectedk8s enable-features -n <clusterName> -g <resourceGroupName> --features azure-rbac --app-id "${SERVER_APP_ID}" --app-secret "${SERVER_APP_SECRET}"
727732
```
728733

734+
---
735+
729736
## Next steps
730737

731738
- Securely connect to the cluster by using [Cluster Connect](cluster-connect.md).

articles/azure-resource-manager/management/delete-resource-group.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ If you have the required access, but the delete request fails, it may be because
168168

169169
## Can I recover a deleted resource group?
170170

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.
172172

173173
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:
174174

articles/postgresql/flexible-server/how-to-autovacuum-tuning.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Use the following query to list the tables in a database and identify the tables
9898
,C.reltuples AS reltuples
9999
,round(current_setting('autovacuum_vacuum_threshold')::INTEGER + current_setting('autovacuum_vacuum_scale_factor')::NUMERIC * C.reltuples) AS av_threshold
100100
,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
102102
FROM pg_class C
103103
LEFT JOIN pg_namespace N ON (N.oid = C.relnamespace)
104104
WHERE C.relkind IN (

articles/virtual-machines/linux/debian-create-upload-vhd.md

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ ms.service: virtual-machines
66
ms.custom: linux-related-content
77
ms.collection: linux
88
ms.topic: how-to
9-
ms.date: 11/10/2021
10-
ms.author: srijangupta
9+
ms.date: 05/01/2024
10+
ms.author: maries
1111
ms.reviewer: mattmcinnes
1212
---
1313
# Prepare a Debian VHD for Azure
@@ -24,23 +24,6 @@ This section assumes that you have already installed a Debian Linux operating sy
2424
* 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.
2525
* 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).
2626

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:
29-
30-
```console
31-
# sudo apt-get update
32-
# sudo apt-get install git qemu-utils mbr kpartx debootstrap
33-
34-
# sudo apt-get install python3-pip python3-dateutil python3-cryptography
35-
# sudo pip3 install azure-storage azure-servicemanagement-legacy azure-common pytest pyyaml
36-
# git clone https://github.com/credativ/azure-manage.git
37-
# cd azure-manage
38-
# sudo pip3 install .
39-
40-
# sudo azure_build_image --option release=jessie --option image_size_gb=30 --option image_prefix=debian-jessie-azure section
41-
```
42-
43-
4427
## Prepare a Debian image for Azure
4528

4629
You can create the base Azure Debian Cloud image with the [FAI cloud image builder](https://salsa.debian.org/cloud-team/debian-cloud-images).
@@ -74,20 +57,20 @@ $ sudo chmod 755 ./config_space/scripts/AZURE/10-custom
7457
Note that it is important to prefix any commands you want to have customizing the image with `$ROOTCMD` as this is aliased as `chroot $target`.
7558

7659

77-
## Build the Azure Debian 10 image:
60+
## Build the Azure Debian image:
7861

7962
```
80-
$ make image_buster_azure_amd64
63+
$ make image_[release]_azure_amd64
8164
```
8265

8366

84-
This will output a handful of files in the current directory, most notably the `image_buster_azure_amd64.raw` image file.
67+
This will output a handful of files in the current directory, most notably the `image_[release]_azure_amd64.raw` image file.
8568

8669
To convert the raw image to VHD for Azure, you can do the following:
8770

8871
```
89-
rawdisk="image_buster_azure_amd64.raw"
90-
vhddisk="image_buster_azure_amd64.vhd"
72+
rawdisk="image_[release]_azure_amd64.raw"
73+
vhddisk="image_[release]_azure_amd64.vhd"
9174
9275
MB=$((1024*1024))
9376
size=$(qemu-img info -f raw --output json "$rawdisk" | \
@@ -103,10 +86,20 @@ qemu-img convert -f raw -o subformat=fixed,force_size -O vpc "$rawdisk" "$vhddis
10386
```
10487

10588

106-
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
10798

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
109101

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).
110103
```
111104
az group create -l $LOCATION -n $RG
112105
@@ -149,7 +142,7 @@ az vm create \
149142
>[!Note]
150143
> 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:
151144
>
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`.
153146
>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!
154147
>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).
155148
>4. Copy the tarball to the VM: `scp ./image_buster_azure_amd64.vhd.tar.gz <vm>:~`.

articles/virtual-machines/linux/redhat-create-upload-vhd.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -222,48 +222,52 @@ EOF
222222
223223
224224
```config-grub
225-
GRUB_CMDLINE_LINUX="console=tty1 console=ttyS0,115200n8 earlyprintk=ttyS0,115200 earlyprintk=ttyS0 net.ifnames=0"
225+
GRUB_CMDLINE_LINUX="console=tty1 console=ttyS0,115200n8 earlyprintk=ttyS0 net.ifnames=0"
226226
GRUB_TERMINAL_OUTPUT="serial console"
227227
GRUB_SERIAL_COMMAND="serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1"
228+
ENABLE_BLSCFG=true
228229
```
229230
230-
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) for managing boot entries and configurations, may not function correctly in RHEL 8 and 9. Be advised, if ENABLE_BLSCFG is not present, the default behavior is "false".
231233
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.
235235
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.
237241
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:
239243
240244
```bash
241245
sudo grub2-mkconfig -o /boot/grub2/grub.cfg
242246
```
243247
> [!NOTE]
244248
> If uploading an UEFI enabled VM, the command to update grub is `grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg`.
245249
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:
247251
248252
```config
249253
ClientAliveInterval 180
250254
```
251255
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:
253257
254258
```bash
255259
sudo subscription-manager repos --enable=rhel-7-server-extras-rpms
256260
```
257261
258-
11. Install the Azure Linux Agent, cloud-init and other necessary utilities by running the following command:
262+
10. Install the Azure Linux Agent, cloud-init and other necessary utilities by running the following command:
259263
260264
```bash
261265
sudo yum install -y WALinuxAgent cloud-init cloud-utils-growpart gdisk hyperv-daemons
262266
sudo systemctl enable waagent.service
263267
sudo systemctl enable cloud-init.service
264268
```
265269
266-
12. Configure cloud-init to handle the provisioning:
270+
11. Configure cloud-init to handle the provisioning:
267271
268272
1. Configure waagent for cloud-init:
269273
@@ -319,7 +323,7 @@ EOF
319323
320324
```
321325
322-
13. Swap configuration.
326+
12. Swap configuration.
323327
Don't create swap space on the operating system disk.
324328
325329
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:
@@ -353,13 +357,13 @@ EOF
353357
- ["ephemeral0.2", "none", "swap", "sw,nofail,x-systemd.requires=cloud-init.service,x-systemd.device-timeout=2", "0", "0"]
354358
EOF
355359
```
356-
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:
357361
358362
```bash
359363
sudo subscription-manager unregister
360364
```
361365
362-
15. Deprovision
366+
14. Deprovision
363367
364368
Run the following commands to deprovision the virtual machine and prepare it for provisioning on Azure:
365369
@@ -375,9 +379,9 @@ EOF
375379
```
376380
377381
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).
379383
380-
### RHEL 8 using Hyper-V Manager
384+
### RHEL 8+ using Hyper-V Manager
381385
382386
1. In Hyper-V Manager, select the virtual machine.
383387

articles/virtual-network-manager/concept-user-defined-route.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,5 +128,5 @@ The following are the limitations of UDR management with Azure Virtual Network M
128128
## Next step
129129

130130
> [!div class="nextstepaction"]
131-
> [Learn how to create user-defined routes in Azure Virtual Network Manager](how-to-create-user-defined-routes.md).
131+
> [Learn how to create user-defined routes in Azure Virtual Network Manager](how-to-create-user-defined-route.md).
132132

0 commit comments

Comments
 (0)