Skip to content

Commit 6fee950

Browse files
authored
Merge branch 'master' into master
2 parents df34ade + c21b196 commit 6fee950

File tree

158 files changed

+8507
-5793
lines changed

Some content is hidden

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

158 files changed

+8507
-5793
lines changed

documentation/development-docs/examples/private-link-resource-example.md

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## `Prerequisite`
1+
## Prerequisite
22
API for `Get` private link resource and private endpoint connection need to be ready at:
33

44
#### Private Link Resource API
@@ -9,30 +9,37 @@ API for `Get` private link resource and private endpoint connection need to be r
99
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{Top-Level-Resource}/{Top-Level-Resource-Name}/privateLinkResources/{PrivateLinkResource-Name}"
1010
```
1111

12-
#### Private Endpoint Connection API
12+
#### Get Private Endpoint Connection API
1313
```
1414
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{Top-Level-Resource}/{Top-Level-Resource-Name}/privateEndpointConnections/{PrivateEndpointConnection-Name}"
1515
```
16+
#### List Private Endpoint Connection API
1617
```
1718
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{Top-Level-Resource}/{Top-Level-Resource-Name}/privateEndpointConnections"
1819
```
1920

20-
## `Code Changes Needed`
21+
if "List Private Endpoint Connection API" is not available, `Private Endpoint Connection` will be retrieved from top resource
22+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{provider}/{Top-Level-Resource}/{Top-Level-Resource-Name}"
23+
`privateEndpointConnections` need to be defined under this API
24+
25+
## Code Changes Needed
2126
Add corresponding {Provider}, {Top-Level-Resource} and {API-Version} into [ProviderConfiguration.cs](https://github.com/Azure/azure-powershell/blob/master/src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/ProviderConfiguration.cs#L12)
2227
in following pattern:
2328
```
2429
RegisterConfiguration("{Provider}/{Top-Level-Resource}", "{API-Version}")
2530
```
2631
For example:
32+
33+
if "List Private Endpoint Connection API" is [available](https://github.com/Azure/azure-powershell/blob/master/src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/GenericProvider.cs#L74),
2734
```
2835
RegisterConfiguration("Microsoft.Sql/servers", "2018-06-01-preview")
2936
```
30-
if "Private Endpoint Connection API" is not available, provide extra bool parameter 'false'
37+
if "List Private Endpoint Connection API" is [not available](https://github.com/Azure/azure-powershell/blob/master/src/Network/Network/PrivateLinkService/PrivateLinkServiceProvider/GenericProvider.cs#L93), provide extra bool parameter 'false'
3138
```
3239
RegisterConfiguration("Microsoft.Storage/storageAccounts", "2019-06-01", false)
3340
```
3441

35-
## `End-To-End Test`
42+
## End-To-End Test
3643

3744
### Item Needed
3845

@@ -71,14 +78,16 @@ New-AzPrivateEndpoint -ResourceGroupName {rg_name} -Name {endpoint_name} -Locati
7178
```
7279

7380
### step-by-step
74-
1. Create listed items above
81+
* Add `Network.csproj` to {Module}.sln, and `Microsoft.Azure.Management.Network` to {Module}.Test.csproj
82+
83+
* Create listed items above
7584

76-
2. To get the connection, if `list` for private endpoint connection was supported,
85+
* To get the connection, if `list` for private endpoint connection was supported,
7786
```
7887
$connection = Get-AzPrivateEndpointConnection -PrivateLinkResourceId $TopLevelResource.Id
7988
```
8089

81-
3. To get the connection, if `list` for private endpoint connection was not supported,
90+
* To get the connection, if `list` for private endpoint connection was not supported,
8291
```
8392
$TopLevelResource = Get-Az{Top-Level-Resource} -ResourceGroupName {rg_name} -Name {top_level_resource_name}
8493
@@ -87,7 +96,7 @@ $ConnectionId = $TopLevelResource.PrivateEndpointConnection[0].Id
8796
$Connection = Get-AzPrivateEndpointConnection -ResourceId $ConnectionId
8897
```
8998

90-
4. Approve/Deny the connection
99+
* Approve/Deny the connection
91100
```
92101
Approve-AzPrivateEndpointConnection -ResourceId $ConnectionId
93102
@@ -96,6 +105,6 @@ or
96105
Deny-AzPrivateEndpointConnection -ResourceId $ConnectionId
97106
```
98107

99-
5. Connection cannot be approved after rejection
108+
* Connection cannot be approved after rejection
100109

101-
6. One top level resource can have maximum 3 private end point connection
110+
* One top level resource can have maximum 3 private end point connection

src/Accounts/Accounts/help/Disable-AzDataCollection.md

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ schema: 2.0.0
88
# Disable-AzDataCollection
99

1010
## SYNOPSIS
11-
Opts out of collecting data to improve the AzurePowerShell cmdlets.
12-
Data is not collected unless you explicitly opt in.
11+
Opts out of collecting data to improve the Azure PowerShell cmdlets. Data is collected by default
12+
unless you explicitly opt out.
1313

1414
## SYNTAX
1515

@@ -18,27 +18,30 @@ Disable-AzDataCollection [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-
1818
```
1919

2020
## DESCRIPTION
21-
You can improve the experience of using the Microsoft Cloud and Azure PowerShell by opting in to data collection.
22-
Azure PowerShell does not collect data without your consent - you must explicitly opt in by executing Enable-AzDataCollection, or by answering yes when Azure PowerShell prompts you about collecting data the first time you execute a cmdlet.
23-
Microsoft aggregates collected data to identify patterns of usage, to identify common issues and to improve the experience of using Azure PowerShell.
24-
Microsoft Azure PowerShell does not collect any private data, or any personally identifiable information.
25-
Run the Disable-AzDataCollection cmdlet to disable data collection for the current user.
26-
This will prevent the current user from being prompted about data collection the first time cmdlets are executed.
27-
To enable data collection for the current user, run the Enable-AzDataCollection cmdlet.
21+
22+
The `Disable-AzDataCollection` cmdlet is used to opt out of data collection. Azure PowerShell
23+
automatically collects telemetry data by default. To disable data collection, you must explicitly
24+
opt-out. Microsoft aggregates collected data to identify patterns of usage, to identify common
25+
issues, and to improve the experience of Azure PowerShell. Microsoft Azure PowerShell doesn't
26+
collect any private or personal data. If you've previously opted out, run the
27+
`Enable-AzDataCollection` cmdlet to re-enable data collection for the current user on the current
28+
machine.
2829

2930
## EXAMPLES
3031

3132
### Example 1: Disabling data collection for the current user
32-
```
33-
PS C:\> Disable-AzDataCollection
34-
```
3533

36-
This example shows how to disable data collection for the current user.
34+
The following example shows how to disable data collection for the current user.
35+
36+
```powershell
37+
Disable-AzDataCollection
38+
```
3739

3840
## PARAMETERS
3941

4042
### -DefaultProfile
41-
The credentials, account, tenant and subscription used for communication with azure.
43+
44+
The credentials, account, tenant, and subscription used for communication with Azure.
4245

4346
```yaml
4447
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
@@ -53,6 +56,7 @@ Accept wildcard characters: False
5356
```
5457
5558
### -Confirm
59+
5660
Prompts you for confirmation before running the cmdlet.
5761
5862
```yaml
@@ -68,6 +72,7 @@ Accept wildcard characters: False
6872
```
6973
7074
### -WhatIf
75+
7176
Shows what would happen if the cmdlet runs. The cmdlet is not run.
7277
7378
```yaml
@@ -83,7 +88,11 @@ Accept wildcard characters: False
8388
```
8489
8590
### CommonParameters
86-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
91+
92+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
93+
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
94+
-WarningAction, and -WarningVariable. For more information, see
95+
[about_CommonParameters](/powershell/module/microsoft.powershell.core/about/about_commonparameters).
8796
8897
## INPUTS
8998
@@ -98,4 +107,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
98107
## RELATED LINKS
99108
100109
[Enable-AzDataCollection](./Enable-AzDataCollection.md)
101-

src/Accounts/Accounts/help/Enable-AzDataCollection.md

Lines changed: 23 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ schema: 2.0.0
88
# Enable-AzDataCollection
99

1010
## SYNOPSIS
11-
Enables Azure PowerShell to collect data to improve the user experience with AzurePowerShell cmdlets.
12-
Executing this cmdlet opts in to data collection for the current user on the current machine.
13-
No data is collected unless you explicitly opt in.
11+
Enables Azure PowerShell to collect data to improve the user experience with the Azure PowerShell
12+
cmdlets. Executing this cmdlet opts in to data collection for the current user on the current
13+
machine. Data is collected by default unless you explicitly opt out.
1414

1515
## SYNTAX
1616

@@ -19,27 +19,28 @@ Enable-AzDataCollection [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-C
1919
```
2020

2121
## DESCRIPTION
22-
You can improve the experience of using the Microsoft Cloud and Azure PowerShell by opting in to data collection.
23-
Azure PowerShell does not collect data without your consent - you must explicitly opt in by executing Enable-AzDataCollection, or by answering yes when Azure PowerShell prompts you about collecting data the first time you execute a cmdlet.
24-
Microsoft aggregates collected data to identify patterns of usage, to identify common issues and to improve the experience of using Azure PowerShell.
25-
Microsoft Azure PowerShell does not collect any private data, or any personally identifiable information.
26-
Run the Enable-AzDataCollection cmdlet to enable data collection for the current user on the current machine.
27-
This will prevent the current user from being prompted about data collection the first time cmdlets are executed.
28-
To disable data collection for the current user, run the Disable-AzDataCollection cmdlet.
22+
23+
The `Enable-AzDataCollection` cmdlet is used to opt in to data collection. Azure PowerShell
24+
automatically collects telemetry data by default. Microsoft aggregates collected data to identify
25+
patterns of usage, to identify common issues, and to improve the experience of Azure PowerShell.
26+
Microsoft Azure PowerShell doesn't collect any private or personal data. To disable data collection,
27+
you must explicitly opt out by executing `Disable-AzDataCollection`.
2928

3029
## EXAMPLES
3130

3231
### Example 1: Enabling data collection for the current user
33-
```
34-
PS C:\> Enable-AzDataCollection
35-
```
3632

37-
This example shows how to enable data collection for the current user.
33+
The following example shows how to enable data collection for the current user.
34+
35+
```powershell
36+
Enable-AzDataCollection
37+
```
3838

3939
## PARAMETERS
4040

4141
### -DefaultProfile
42-
The credentials, account, tenant and subscription used for communication with azure.
42+
43+
The credentials, account, tenant, and subscription used for communication with Azure.
4344

4445
```yaml
4546
Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer
@@ -54,6 +55,7 @@ Accept wildcard characters: False
5455
```
5556
5657
### -Confirm
58+
5759
Prompts you for confirmation before running the cmdlet.
5860
5961
```yaml
@@ -69,6 +71,7 @@ Accept wildcard characters: False
6971
```
7072
7173
### -WhatIf
74+
7275
Shows what would happen if the cmdlet runs. The cmdlet is not run.
7376
7477
```yaml
@@ -84,7 +87,11 @@ Accept wildcard characters: False
8487
```
8588
8689
### CommonParameters
87-
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).
90+
91+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable,
92+
-InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose,
93+
-WarningAction, and -WarningVariable. For more information, see
94+
[about_CommonParameters](/powershell/module/microsoft.powershell.core/about/about_commonparameters).
8895
8996
## INPUTS
9097
@@ -99,4 +106,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
99106
## RELATED LINKS
100107
101108
[Disable-AzDataCollection](./Disable-AzDataCollection.md)
102-

src/Blueprint/Blueprint/Blueprint.format.ps1xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,22 @@
183183
<Label>LockMode</Label>
184184
<ScriptBlock>$_.Locks.Mode.ToString()</ScriptBlock>
185185
</ListItem>
186+
<ListItem>
187+
<Label>ExcludedActions</Label>
188+
<ScriptBlock>
189+
If (-not ([string]::IsNullOrEmpty($_.Locks.ExcludedActions))){
190+
$_.Locks.ExcludedActions
191+
}
192+
</ScriptBlock>
193+
</ListItem>
194+
<ListItem>
195+
<Label>ExcludedPrincipals</Label>
196+
<ScriptBlock>
197+
If (-not ([string]::IsNullOrEmpty($_.Locks.ExcludedPrincipals))){
198+
$_.Locks.ExcludedPrincipals
199+
}
200+
</ScriptBlock>
201+
</ListItem>
186202
<ListItem>
187203
<Label>ProvisioningState</Label>
188204
<PropertyName>ProvisioningState</PropertyName>

src/Blueprint/Blueprint/Models/PSAssignmentLockSettings.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@
1212
// limitations under the License.
1313
// ----------------------------------------------------------------------------------
1414

15+
using System.Collections.Generic;
16+
1517
namespace Microsoft.Azure.Commands.Blueprint.Models
1618
{
1719
public class PSAssignmentLockSettings
1820
{
1921
public PSLockMode Mode { get; set; }
22+
public List<string> ExcludedPrincipals;
23+
public List<string> ExcludedActions;
2024
}
2125
}

src/Blueprint/Blueprint/Models/PSBlueprintAssignment.cs

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
using Microsoft.Azure.Management.Blueprint.Models;
1616
using System;
1717
using System.Collections.Generic;
18+
using System.Linq;
1819

1920
namespace Microsoft.Azure.Commands.Blueprint.Models
2021
{
@@ -59,7 +60,12 @@ internal static PSBlueprintAssignment FromAssignment(Assignment assignment)
5960
BlueprintId = assignment.BlueprintId,
6061
ProvisioningState = PSAssignmentProvisioningState.Unknown,
6162
Status = new PSAssignmentStatus(),
62-
Locks = new PSAssignmentLockSettings {Mode = PSLockMode.None},
63+
Locks = new PSAssignmentLockSettings
64+
{
65+
Mode = PSLockMode.None,
66+
ExcludedActions = new List<string>(),
67+
ExcludedPrincipals = new List<string>()
68+
},
6369
Parameters = new Dictionary<string, PSParameterValue>(),
6470
ResourceGroups = new Dictionary<string, PSResourceGroupValue>()
6571
};
@@ -86,6 +92,22 @@ internal static PSBlueprintAssignment FromAssignment(Assignment assignment)
8692
psAssignment.Locks.Mode = PSLockMode.None;
8793
}
8894

95+
if (assignment.Locks.ExcludedActions != null)
96+
{
97+
foreach (var item in assignment.Locks.ExcludedActions)
98+
{
99+
psAssignment.Locks.ExcludedActions.Add(item);
100+
}
101+
}
102+
103+
if (assignment.Locks.ExcludedPrincipals != null)
104+
{
105+
foreach (var item in assignment.Locks.ExcludedPrincipals)
106+
{
107+
psAssignment.Locks.ExcludedPrincipals.Add(item);
108+
}
109+
}
110+
89111
foreach (var item in assignment.Parameters)
90112
{
91113
PSParameterValue parameter = GetAssignmentParameters(item);

src/Compute/Compute/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- Additional information about change #1
2020
-->
2121
## Upcoming Release
22+
* Description for Get-AzVM cmdlet has been updated to better describe it.
2223

2324
## Version 3.7.0
2425
* Added `Set-AzVmssOrchestrationServiceState` cmdlet.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ Get-AzVM [-Status] [-NextLink] <Uri> [-DefaultProfile <IAzureContextContainer>]
3636
```
3737

3838
## DESCRIPTION
39-
The **Get-AzVM** cmdlet gets the model view and instance view of an Azure virtual machine.
39+
The **Get-AzVM** cmdlet gets the model view or the instance view of an Azure virtual machine.
4040
The model view is the user specified properties of the virtual machine.
4141
The instance view is the instance level status of the virtual machine.
42-
Specify the *Status* parameter to get only the instance view of a virtual machine.
42+
Specify the *Status* parameter to get the instance view of a virtual machine instead of the model view which is the default.
4343

4444
## EXAMPLES
4545

src/DataShare/DataShare.Test/DataShare.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</PropertyGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.Azure.Management.DataShare" Version="0.9.0-preview" />
14+
<PackageReference Include="Microsoft.Azure.Management.DataShare" Version="1.0.1" />
1515
</ItemGroup>
1616

1717
</Project>

src/DataShare/DataShare.Test/ScenarioTests/AdlsGen1Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ function Test-AdlsGen1Crud
1616
$AccountName = getAssetName
1717
$ShareName = getAssetName
1818
$DataSetName = getAssetName
19-
$StorageAccountId = getAssetName
20-
$FolderPath = getAssetName
21-
$FileName = getAssetName
19+
$StorageAccountId = "/subscriptions/e3c4699f-415a-4437-901e-3be6271b5113/resourceGroups/dsktestingstorageRG/providers/Microsoft.DataLakeStore/accounts/psstorage"
20+
$FolderPath = "providerFolder"
21+
$FileName = "psFilePath"
2222
$createdFolderDataset = New-AzDataShareDataSet -ResourceGroupName $resourceGroup -AccountName $AccountName -ShareName $ShareName -Name $DataSetName -StorageAccountResourceId $StorageAccountId -AdlsGen1FolderPath $FolderPath
2323

2424
Assert-NotNull $createdFolderDataset

src/DataShare/DataShare.Test/ScenarioTests/InvitationTests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Test-InvitationCrud
3333
$removed = Remove-AzDataShareInvitation -AccountName $AccountName -ResourceGroupName $resourceGroup -ShareName $ShareName -Name $InvitationName -PassThru
3434

3535
Assert-True { $removed }
36-
Assert-ThrowsContains { Get-AzDataShareInvitation -AccountName $AccountName -ResourceGroupName $resourceGroup -ShareName $ShareName -Name $InvitationName} "Resource 'sdktestinginvitation' does not exist"
36+
Assert-ThrowsContains { Get-AzDataShareInvitation -AccountName $AccountName -ResourceGroupName $resourceGroup -ShareName $ShareName -Name $InvitationName} "Resource 'psinvitation' does not exist"
3737
}
3838
finally
3939
{

0 commit comments

Comments
 (0)