Skip to content

Commit 976635f

Browse files
committed
Merge remote-tracking branch 'remotes/upstream/master' into merge-from-master
# Conflicts: # src/Network/Network/Az.Network.psd1 # src/Network/Network/ChangeLog.md # src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/ProviderConfiguration.cs
2 parents d604afe + 827b974 commit 976635f

File tree

155 files changed

+29063
-23112
lines changed

Some content is hidden

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

155 files changed

+29063
-23112
lines changed

.azure-pipelines/powershell-core.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ variables:
55
LinuxImage: ubuntu-18.04
66
MacOSName: macOS
77
MacOSImage: macOS-10.14
8-
TestFramework: netcoreapp2.2
8+
TestFramework: netcoreapp2.1
99
TestTarget: Test
1010
Configuration: Debug
1111
DebugLocalBuildTasks: true
@@ -22,8 +22,8 @@ jobs:
2222
linux:
2323
OSName: ${{ variables.LinuxName }}
2424
ImageName: ${{ variables.LinuxImage }}
25-
macOS:
26-
OSName: ${{ variables.MacOSName }}
25+
macOS:
26+
OSName: ${{ variables.MacOSName }}
2727
ImageName: ${{ variables.MacOSImage }}
2828
pool:
2929
vmImage: $(ImageName)
@@ -47,8 +47,8 @@ jobs:
4747
linux:
4848
OSName: ${{ variables.LinuxName }}
4949
ImageName: ${{ variables.LinuxImage }}
50-
macOS:
51-
OSName: ${{ variables.MacOSName }}
50+
macOS:
51+
OSName: ${{ variables.MacOSName }}
5252
ImageName: ${{ variables.MacOSImage }}
5353
pool:
5454
vmImage: $(ImageName)
@@ -72,8 +72,8 @@ jobs:
7272
linux:
7373
OSName: ${{ variables.LinuxName }}
7474
ImageName: ${{ variables.LinuxImage }}
75-
macOS:
76-
OSName: ${{ variables.MacOSName }}
75+
macOS:
76+
OSName: ${{ variables.MacOSName }}
7777
ImageName: ${{ variables.MacOSImage }}
7878
pool:
7979
vmImage: $(ImageName)

.azure-pipelines/util/test-steps.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ steps:
2828
- pwsh: |
2929
Install-Module -Name Pester -RequiredVersion 4.10.1 -Force
3030
Install-Module -Name Az.Accounts -Scope CurrentUser -Force
31-
$env:PSModulePath = $env:PSModulePath + ";" + (pwd).Path
31+
if ($IsWindows) { $sp = ";" } else { $sp = ":" }
32+
$env:PSModulePath = $env:PSModulePath + $sp + (pwd).Path
3233
Get-ChildItem -Directory Az.* | ForEach-Object {if (Test-Path $_/test-module.ps1) {cd $_; ./test-module.ps1}}
3334
workingDirectory: 'artifacts/Debug'
3435
displayName: 'Test for AutoGen Modules With PowerShell Core'

.azure-pipelines/windows-powershell.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
variables:
22
WindowsName: windows
33
WindowsImage: VS2017-Win2016
4-
TestFramework: netcoreapp2.2
4+
TestFramework: netcoreapp2.1
55
TestTarget: Test
66
Configuration: Debug
77
DebugLocalBuildTasks: true

src/Accounts/Authentication/Utilities/CustomAssemblyResolver.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static class CustomAssemblyResolver
1010
private static IDictionary<string, Version> NetFxPreloadAssemblies =
1111
new Dictionary<string, Version>(StringComparer.InvariantCultureIgnoreCase)
1212
{
13-
{"Azure.Core", new Version("1.2.1.0")},
13+
{"Azure.Core", new Version("1.2.2.0")},
1414
{"Microsoft.Bcl.AsyncInterfaces", new Version("1.0.0.0")},
1515
{"Microsoft.IdentityModel.Clients.ActiveDirectory", new Version("3.19.2.6005")},
1616
{"Microsoft.IdentityModel.Clients.ActiveDirectory.Platform", new Version("3.19.2.6005")},

src/ApplicationInsights/ApplicationInsights.Test/ApplicationInsights.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<ItemGroup>
1414
<PackageReference Include="Microsoft.Azure.Management.ApplicationInsights" Version="0.3.0-preview" />
15-
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="17.0.0" />
15+
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="17.1.0" />
1616
</ItemGroup>
1717

1818
</Project>

src/Automation/Automation.Test/Automation.Test.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<PropertyGroup>
1010
<RootNamespace>$(LegacyAssemblyPrefix)$(PsModuleName)$(AzTestAssemblySuffix)</RootNamespace>
1111
<AutoGenerateBindingRedirects>false</AutoGenerateBindingRedirects>
12-
<TargetFrameworks>netcoreapp2.2;netcoreapp2.1</TargetFrameworks>
12+
<TargetFrameworks>netcoreapp2.1</TargetFrameworks>
1313
</PropertyGroup>
1414

1515
<ItemGroup>
@@ -27,4 +27,4 @@
2727
<None Update="ScenarioTests\Resources\*.*" CopyToOutputDirectory="PreserveNewest" />
2828
</ItemGroup>
2929

30-
</Project>
30+
</Project>

src/Az.Test.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<!-- Build -->
1313
<PropertyGroup>
14-
<TargetFrameworks>netcoreapp2.2;netstandard2.0</TargetFrameworks>
14+
<TargetFrameworks>netcoreapp2.1;netstandard2.0</TargetFrameworks>
1515
<AssemblyName>$(AzAssemblyPrefix)$(PsModuleName)$(AzTestAssemblySuffix)</AssemblyName>
1616
<RootNamespace>$(AzAssemblyPrefix)$(PsModuleName)$(AzTestAssemblySuffix)</RootNamespace>
1717
<IsPackable>false</IsPackable>
@@ -40,4 +40,4 @@
4040
<None Update="ScenarioTests\*.ps1" CopyToOutputDirectory="PreserveNewest" />
4141
</ItemGroup>
4242

43-
</Project>
43+
</Project>

src/Compute/Compute/help/Disable-AzVmssDiskEncryption.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,20 @@ Disables disk encryption on a VM scale set.
2424
## EXAMPLES
2525

2626
### Example 1
27-
```
27+
```powershell
2828
PS C:\> Disable-AzVmssDiskEncryption -ResourceGroupName "Group001" -VMScaleSetName "VMSS001"
2929
```
3030

3131
Disables disk encryption on the VM scale set named VMSS001 that belongs to the resource group named Group001.
3232

33+
### Example 2
34+
35+
Disables disk encryption on a VM scale set. (autogenerated)
36+
37+
```powershell <!-- Aladdin Generated Example -->
38+
Disable-AzVmssDiskEncryption -ResourceGroupName 'Group001' -VMScaleSetName 'VMSS001' -VolumeType OS
39+
```
40+
3341
## PARAMETERS
3442

3543
### -AsJob

src/Compute/Compute/help/Get-AzVMADDomainExtension.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ The **Get-AzVMADDomainExtension** cmdlet gets information about the specified Az
2323

2424
## EXAMPLES
2525

26+
### Example 1
27+
28+
Gets information about an AD domain extension. (autogenerated)
29+
30+
```powershell <!-- Aladdin Generated Example -->
31+
Get-AzVMADDomainExtension -Name 'AgentPool01' -ResourceGroupName myresourcegroup -VMName 'VM01'
32+
```
33+
2634
## PARAMETERS
2735

2836
### -DefaultProfile

src/Compute/Compute/help/Get-AzVMDiagnosticsExtension.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,20 @@ The **Get-AzVMDiagnosticsExtension** cmdlet gets the settings of the Azure Diagn
2424
## EXAMPLES
2525

2626
### Example 1: Get the diagnostics extension applied to a virtual machine
27-
```
27+
```powershell
2828
PS C:\> Get-AzVMDiagnosticsExtension -ResourceGroupName "ResourceGroup11" -VMName "ContosoVM22"
2929
```
3030

3131
This command gets the diagnostics extension applied to the virtual machine named ContosoVM22.
3232

33+
### Example 2
34+
35+
Gets the settings of the Diagnostics extension on a virtual machine. (autogenerated)
36+
37+
```powershell <!-- Aladdin Generated Example -->
38+
Get-AzVMDiagnosticsExtension -Name 'AgentPool01' -ResourceGroupName 'ResourceGroup11' -Status -VMName 'ContosoVM22'
39+
```
40+
3341
## PARAMETERS
3442

3543
### -DefaultProfile

src/Compute/Compute/help/Get-AzVMDscExtensionStatus.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ When a configuration is applied this cmdlet produces output consistent with the
2424

2525
## EXAMPLES
2626

27+
### Example 1
28+
29+
Gets the status of the DSC extension handler for a virtual machine. (autogenerated)
30+
31+
```powershell <!-- Aladdin Generated Example -->
32+
Get-AzVMDscExtensionStatus -Name 'AgentPool01' -ResourceGroupName myresourcegroup -VMName 'VM01'
33+
```
34+
2735
## PARAMETERS
2836

2937
### -DefaultProfile

src/Compute/Compute/help/New-AzProximityPlacementGroup.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ This cmdlet will create Proximity Placement Group resource.
2424
## EXAMPLES
2525

2626
### Example 1
27-
```
27+
```powershell
2828
PS C:\> New-AzureRmProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName -Location $location -Tag @{key1 = "val1"}
2929
3030
ResourceGroupName : rg0
@@ -38,6 +38,14 @@ Tags : {"key1":"val1"}
3838

3939
This command creates a proximity place group in the given location.
4040

41+
### Example 2
42+
43+
Create Proximity Placement Group resource. (autogenerated)
44+
45+
```powershell <!-- Aladdin Generated Example -->
46+
New-AzProximityPlacementGroup -Location westus -Name 'AgentPool01' -ProximityPlacementGroupType <String> -ResourceGroupName myresourcegroup
47+
```
48+
4149
## PARAMETERS
4250

4351
### -AsJob

src/Compute/Compute/help/New-AzSnapshotConfig.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ The **New-AzSnapshotConfig** cmdlet creates a configurable snapshot object.
2828
## EXAMPLES
2929

3030
### Example 1
31-
```
31+
```powershell
3232
PS C:\> $snapshotconfig = New-AzSnapshotConfig -Location 'Central US' -DiskSizeGB 5 -AccountType StandardLRS -OsType Windows -CreateOption Empty -EncryptionSettingsEnabled $true;
3333
PS C:\> $secretUrl = https://myvault.vault-int.azure-int.net/secrets/123/;
3434
PS C:\> $secretId = '/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/providers/Microsoft.KeyVault/vaults/TestVault123';
@@ -43,6 +43,14 @@ The first command creates a local empty snapshot object with size 5GB in Standar
4343
The second and third commands set the disk encryption key and key encryption key settings for the snapshot object.
4444
The last command takes the snapshot object and creates a snapshot with name 'Snapshot01' in resource group 'ResourceGroup01'.
4545

46+
### Example 2
47+
48+
Creates a configurable snapshot object. (autogenerated)
49+
50+
```powershell <!-- Aladdin Generated Example -->
51+
New-AzSnapshotConfig -CreateOption Empty -Location 'Central US' -SourceUri 'https://contosoaccount.blob.core.windows.net/vhdstore/win7baseimage.vhd'
52+
```
53+
4654
## PARAMETERS
4755

4856
### -CreateOption

src/Compute/Compute/help/New-AzVMDataDisk.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The **New-AzVMDataDisk** cmdlet creates a local data disk object for a virtual m
3333
## EXAMPLES
3434

3535
### Example 1: Add a managed data disk to a Vmss VM.
36-
```
36+
```powershell
3737
PS C:\> $disk = Get-AzDisk -ResourceGroupName $rgname -DiskName $diskname0
3838
PS C:\> $datadisk = New-AzVMDataDisk -Caching 'ReadOnly' -Lun 2 -CreateOption Attach -StorageAccountType Standard_LRS -ManagedDiskId $disk.Id
3939
PS C:\> $VmssVM = Get-AzVmssVM -ResourceGroupName "myrg" -VMScaleSetName "myvmss" -InstanceId 0
@@ -45,6 +45,14 @@ The next command creates a data disk object with the managed disk.
4545
The next command gets an existing Vmss VM given by the resource group name, the vmss name and the instance ID.
4646
The final command updates the Vmss VM by adding a new data disk.
4747

48+
### Example 2
49+
50+
Creates a local data disk object for a virtual machine or a Vmss VM. (autogenerated)
51+
52+
```powershell <!-- Aladdin Generated Example -->
53+
New-AzVMDataDisk -Caching None -CreateOption Attach -DiskSizeInGB 1 -Lun 2 -Name 'AgentPool01'
54+
```
55+
4856
## PARAMETERS
4957

5058
### -Caching

src/Compute/Compute/help/New-AzVmssConfig.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ object. Other cmdlets are needed to configure the VMSS object. These cmdlets are
5858
## EXAMPLES
5959

6060
### Example 1: Create a VMSS configuration object
61-
```
61+
```powershell
6262
PS C:\> $VMSS = New-AzVmssConfig -Location $Loc -SkuCapacity 2 -SkuName "Standard_A0" -UpgradePolicyMode "Automatic" -NetworkInterfaceConfiguration $NetCfg `
6363
| Add-AzVmssNetworkInterfaceConfiguration -Name "Test" -Primary $True -IPConfiguration $IPCfg `
6464
| Set-AzVmssOSProfile -ComputerNamePrefix "Test" -AdminUsername $adminUsername -AdminPassword $AdminPassword `
@@ -76,6 +76,14 @@ This example creates a VMSS configuration object. The first command uses the
7676
variable named $VMSS. The second command uses the **New-AzVmss** cmdlet to create a VMSS that
7777
uses the VMSS configuration object created in the first command.
7878

79+
### Example 2
80+
81+
Creates a VMSS configuration object. (autogenerated)
82+
83+
```powershell <!-- Aladdin Generated Example -->
84+
New-AzVmssConfig -Location <String> -Overprovision $false -SkuCapacity 2 -SkuName 'Standard_A0' -Tag 'Sql' -UpgradePolicyMode Automatic
85+
```
86+
7987
## PARAMETERS
8088

8189
### -AutomaticRepairGracePeriod

src/Compute/Compute/help/Remove-AzProximityPlacementGroup.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,20 @@ This cmdlet will delete Proximity Placement Group resource.
3636
## EXAMPLES
3737

3838
### Example 1
39-
```
39+
```powershell
4040
PS C:\> Get-AzureRmProximityPlacementGroup -ResourceGroupName $resourceGroupName -Name $proximityPlacementGroupName | Remove-AzureRmProximityPlacementGroup
4141
```
4242

4343
This command removes the given proximity placement group.
4444

45+
### Example 2
46+
47+
This command removes the given proximity placement group. (autogenerated)
48+
49+
```powershell <!-- Aladdin Generated Example -->
50+
Remove-AzProximityPlacementGroup -Name 'AgentPool01' -ResourceGroupName myresourcegroup
51+
```
52+
4553
## PARAMETERS
4654

4755
### -AsJob

src/Compute/Compute/help/Remove-AzVMAccessExtension.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ The **Remove-AzVMAccessExtension** cmdlet removes the Virtual Machine Access (VM
2323

2424
## EXAMPLES
2525

26+
### Example 1
27+
28+
Removes the VMAccess extension from a virtual machine. (autogenerated)
29+
30+
```powershell <!-- Aladdin Generated Example -->
31+
Remove-AzVMAccessExtension -Name 'AgentPool01' -ResourceGroupName myresourcegroup -VMName 'VM01'
32+
```
33+
2634
## PARAMETERS
2735

2836
### -DefaultProfile

src/Compute/Compute/help/Remove-AzVMCustomScriptExtension.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ The **Remove-AzVMCustomScriptExtension** cmdlet removes a custom script Virtual
2323

2424
## EXAMPLES
2525

26+
### Example 1
27+
28+
Removes a custom script extension from a virtual machine. (autogenerated)
29+
30+
```powershell <!-- Aladdin Generated Example -->
31+
Remove-AzVMCustomScriptExtension -Name 'AgentPool01' -ResourceGroupName myresourcegroup -VMName 'VM01'
32+
```
33+
2634
## PARAMETERS
2735

2836
### -DefaultProfile

src/Compute/Compute/help/Set-AzVMAccessExtension.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,21 @@ The **Set-AzVMAccessExtension** cmdlet adds the Virtual Machine Access (VMAccess
2626
## EXAMPLES
2727

2828
### Example 1: Add a VMAccess extension
29-
```
29+
```powershell
3030
PS C:\> Set-AzVMAccessExtension -ResourceGroupName "ResourceGroup11" -Location "Central US" -VMName "VirtualMachine07" -Name "ContosoTest" -TypeHandlerVersion "2.4" -UserName "PFuller" -Password "Password"
3131
```
3232

3333
This command adds a VMAccess extension for the virtual machine named VirtualMachine07 in ResourceGroup11.
3434
The command specifies the name and type handler version for VMAccess.
3535

36+
### Example 2
37+
38+
Adds the VMAccess extension to a virtual machine. (autogenerated)
39+
40+
```powershell <!-- Aladdin Generated Example -->
41+
Set-AzVMAccessExtension -Credential <PSCredential> -Location 'Central US' -Name 'ContosoTest' -ResourceGroupName 'ResourceGroup11' -TypeHandlerVersion '2.4' -VMName 'VirtualMachine07'
42+
```
43+
3644
## PARAMETERS
3745

3846
### -Credential

src/Compute/Compute/help/Set-AzVMCustomScriptExtension.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,21 @@ This extension lets you run your own scripts on the virtual machine.
8888
## EXAMPLES
8989

9090
### Example 1: Add a custom script
91-
```
91+
```powershell
9292
PS C:\> Set-AzVMCustomScriptExtension -ResourceGroupName "ResourceGroup11" -Location "Central US" -VMName "VirtualMachine07" -Name "ContosoTest" -TypeHandlerVersion "1.1" -StorageAccountName "Contoso" -StorageAccountKey <StorageKey> -FileName "ContosoScript.exe" -ContainerName "Scripts"
9393
```
9494

9595
This command adds a custom script to the virtual machine named VirtualMachine07.
9696
The script file is contososcript.exe.
9797

98+
### Example 2
99+
100+
Adds a custom script extension to a virtual machine. (autogenerated)
101+
102+
```powershell <!-- Aladdin Generated Example -->
103+
Set-AzVMCustomScriptExtension -Argument <String> -ContainerName 'Scripts' -DefaultProfile <IAzureContextContainer> -FileName 'ContosoScript.exe' -Location 'Central US' -Name 'ContosoTest' -ResourceGroupName 'ResourceGroup11' -Run 'myScript.ps1' -SecureExecution -StorageAccountKey <String> -StorageAccountName 'Contoso' -TypeHandlerVersion '1.1' -VMName 'VirtualMachine07'
104+
```
105+
98106
## PARAMETERS
99107

100108
### -Argument

0 commit comments

Comments
 (0)