Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
3d22201
Manage device cmdlets
anusapan Dec 17, 2019
4701411
Merge branch 'master' of https://github.com/Azure/azure-powershell in…
anusapan Jan 22, 2020
0ab71e2
Fixed build issues
anusapan Jan 23, 2020
c76e5cd
adding support for firewall policy on vnet firewall
saisujithreddym Jan 26, 2020
353d860
Remove preview dependencies
anusapan Jan 27, 2020
964fdcf
Merge branch 'master' of https://github.com/Azure/azure-powershell in…
anusapan Jan 29, 2020
86084c4
adding tests
saisujithreddym Feb 2, 2020
31f62d3
cleanup
saisujithreddym Feb 2, 2020
31fb3ee
test fix
saisujithreddym Feb 2, 2020
05d4b3b
resolving merge conflicts
saisujithreddym Feb 2, 2020
ac104f4
clean up
saisujithreddym Feb 2, 2020
436c4e1
removing the test
saisujithreddym Feb 2, 2020
48c06d4
clean up
saisujithreddym Feb 2, 2020
c5234aa
vnet policy changes
saisujithreddym Feb 3, 2020
7705e0f
clean up
saisujithreddym Feb 3, 2020
c07c5fa
Merge pull request #11013 from saisujithreddym/vnetpolicynrp
VeryEarly Feb 4, 2020
6be6a8e
Fix error message when server returns 202
yangyuan Jan 22, 2020
2013dfc
Update SDK to 7.0.0.
yangyuan Jan 22, 2020
bd2f76f
Update change log
yangyuan Jan 22, 2020
c4b4169
Update style
yangyuan Feb 4, 2020
232f6ba
Initial cmdlet to get managed rule definitions
digavino Feb 6, 2020
39a573a
Add test cases for new cmdlet
digavino Feb 6, 2020
6cfaf10
Update help
digavino Feb 6, 2020
e414ef8
Support a new parameter called -ActionGroupId in the Add-AzMetricAler…
sivanguetta Feb 6, 2020
2edcb90
Update ChangeLog.Md
sivanguetta Feb 6, 2020
1daa987
Update changelog
digavino Feb 6, 2020
0080ad8
Fix test
digavino Feb 6, 2020
7c802c3
Merge branch 'master' of https://github.com/Azure/azure-powershell in…
digavino Feb 6, 2020
82c2683
Re-record the test session
anusapan Feb 3, 2020
35a9b94
Update Get-AzLog.md
theheatDK Feb 9, 2020
298f3db
Update ChangeLog.md
theheatDK Feb 9, 2020
a991efe
Update Get-AzLog.md
theheatDK Feb 9, 2020
6bca9e7
Fix CR comment - support metric alerts without action group
sivanguetta Feb 9, 2020
571c0b9
Update breaking changes issues
sivanguetta Feb 10, 2020
b1c7058
Merge pull request #11040 from Azure/waf-get-managed-rules
VeryEarly Feb 10, 2020
4f5d3e6
Merge pull request #11076 from Azure/network-january
isra-fel Feb 10, 2020
3c59c59
Adding info on IANAPrivateRanges
tvuylsteke Feb 10, 2020
033b307
Update help file
sivanguetta Feb 10, 2020
c8739cc
Add SubscriptionId, TenantId, and execution time into client telemetry
dingmeng-xue Feb 10, 2020
468e8f2
Add new version of common packages
dingmeng-xue Feb 10, 2020
b10da39
Merge pull request #11045 from sivanguetta/master
VeryEarly Feb 10, 2020
fd68777
test
dingmeng-xue Feb 10, 2020
3638a46
Add new version of common packages
dingmeng-xue Feb 10, 2020
a348e2e
Polished changelog.md
dingmeng-xue Feb 10, 2020
1af2e9c
Corrected tense
dingmeng-xue Feb 10, 2020
5e8f60b
Update Get-AzLog.md
theheatDK Feb 10, 2020
728f68c
Update ChangeLog.md
theheatDK Feb 10, 2020
420a731
Update parameter Name to IotHubName
anusapan Feb 10, 2020
812c204
Merge pull request #11084 from dingmeng-xue/release-2020-02-18
VeryEarly Feb 11, 2020
8ec6123
Update Get-AzLog.md
VeryEarly Feb 11, 2020
9898ed9
Update Get-AzLog.md
VeryEarly Feb 11, 2020
5ecb67e
Merge branch 'master' into patch-10
VeryEarly Feb 11, 2020
10b3462
Merge pull request #10960 from anusapan/manage-device
VeryEarly Feb 11, 2020
fba96af
Merge pull request #10959 from yuanyang-microsoft/yuanyang/async_delete
VeryEarly Feb 11, 2020
0d00e9d
Merge pull request #11078 from Azure/tvuylsteke-patch-1
wyunchi-ms Feb 11, 2020
57c3343
Merge pull request #11068 from theheatDK/patch-10
VeryEarly Feb 11, 2020
370d85b
Merge pull request #11079 from dingmeng-xue/telemetry
dingmeng-xue Feb 11, 2020
d5f774f
Updated Register-PSRepository example
dingmeng-xue Feb 11, 2020
b8c1b6d
Merge branch 'master' of https://github.com/Azure/azure-powershell in…
blueww Feb 11, 2020
ab5d851
[Storage] Support Point in Time Restore
blueww Sep 24, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion documentation/development-docs/help-generation.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Install-Module -Name platyPS -Scope CurrentUser
**Note:** this module will need to be installed from the [PowerShell Gallery](http://www.powershellgallery.com/). If, for some reason, this isn't a registered repository when running the `Get-PSRepository` cmdlet, then you will need to register it by running the following command:

```powershell
Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2/
Register-PSRepository -Default -InstallationPolicy Trusted
```

## Using `platyPS`
Expand Down
1 change: 1 addition & 0 deletions src/Accounts/Accounts/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Added SubscriptionId, TenantId, and execution time into data of client side telemetry

## Version 1.7.1
* Disable context auto saving when AzureRmContext.json not available
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<PsModuleName>CognitiveServices</PsModuleName>
Expand All @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.CognitiveServices" Version="6.0.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.CognitiveServices" Version="7.0.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.Network" Version="19.18.0-preview" />
</ItemGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ public void TestGetAccounts()
{
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-GetAzureCognitiveServiceAccount");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestAsyncAccountOperations()
{
TestController.NewInstance.RunPsTest(traceInterceptor, "Test-AsyncAccountOperations");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestSetAccount()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,36 @@ function Test-NewAzureRmAllKindsOfCognitiveServicesAccounts
}
}


<#
.SYNOPSIS
Test AsyncAccountOperations
#>
function Test-AsyncAccountOperations
{
# Setup
$rgname = Get-CognitiveServicesManagementTestResourceName;

try
{
# Test
$accountname = 'csa' + $rgname;
$skuname = 'S0';
$accounttype = 'Personalizer';
$loc = Get-Location -providerNamespace "Microsoft.CognitiveServices" -resourceType "accounts" -preferredLocation "West US 2";

New-AzResourceGroup -Name $rgname -Location $loc;

$createdAccount = New-AzCognitiveServicesAccount -ResourceGroupName $rgname -Name $accountname -Type $accounttype -SkuName $skuname -Location $loc -Force;
Remove-AzCognitiveServicesAccount -ResourceGroupName $rgname -Name $accountname -Force;
}
finally
{
# Cleanup
Clean-ResourceGroup $rgname
}
}

<#
.SYNOPSIS
Test Remove-AzCognitiveServicesAccount
Expand Down

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/CognitiveServices/CognitiveServices/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
- Additional information about change #1
-->
## Upcoming Release
* Update SDK to 7.0
* Improve error message when server responses empty body

## Version 1.2.2
* Update references in .psd1 to use relative path
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Management.CognitiveServices" Version="6.0.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.CognitiveServices" Version="7.0.0-preview" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public override void ExecuteCmdlet()
var account = this.CognitiveServicesClient.Accounts.GetProperties(
this.ResourceGroupName,
this.Name);
NetworkRuleSet accountACL = account.NetworkAcls;
NetworkRuleSet accountACL = account.Properties.NetworkAcls;

if (accountACL == null)
{
Expand Down Expand Up @@ -156,21 +156,28 @@ public override void ExecuteCmdlet()
break;
}

var properties = new JObject();
properties["networkAcls"] = JToken.FromObject(accountACL);
this.CognitiveServicesClient.Accounts.Update(this.ResourceGroupName, this.Name, null, null, properties);
var properties = new CognitiveServicesAccountProperties();
properties.NetworkAcls = accountACL;
this.CognitiveServicesClient.Accounts.Update(
this.ResourceGroupName,
this.Name,
new CognitiveServicesAccount()
{
Properties = properties
}
);

account = this.CognitiveServicesClient.Accounts.GetProperties(this.ResourceGroupName, this.Name);

switch (ParameterSetName)
{
case NetWorkRuleStringParameterSet:
case NetworkRuleObjectParameterSet:
WriteObject(PSNetworkRuleSet.Create(account.NetworkAcls).VirtualNetworkRules);
WriteObject(PSNetworkRuleSet.Create(account.Properties.NetworkAcls).VirtualNetworkRules);
break;
case IpRuleStringParameterSet:
case IpRuleObjectParameterSet:
WriteObject(PSNetworkRuleSet.Create(account.NetworkAcls).IpRules);
WriteObject(PSNetworkRuleSet.Create(account.Properties.NetworkAcls).IpRules);
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@ protected void RunCmdLet(Action action)
}
catch (ErrorException ex)
{
if (ex.Body == null)
{
throw new PSInvalidOperationException(ex.Message, ex);
}

throw new PSInvalidOperationException(ex.Body.ErrorProperty.Message, ex);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public override void ExecuteCmdlet()
this.ResourceGroupName,
this.Name);

if (account != null && account.NetworkAcls != null)
if (account != null && account.Properties.NetworkAcls != null)
{
WriteObject(PSNetworkRuleSet.Create(account.NetworkAcls));
WriteObject(PSNetworkRuleSet.Create(account.Properties.NetworkAcls));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,21 +110,21 @@ public override void ExecuteCmdlet()

RunCmdLet(() =>
{
var properties = new JObject();
var properties = new CognitiveServicesAccountProperties();
if (!string.IsNullOrWhiteSpace(CustomSubdomainName))
{
properties["customSubDomainName"] = CustomSubdomainName;
properties.CustomSubDomainName = CustomSubdomainName;
}
if (NetworkRuleSet != null)
{
properties["networkAcls"] = JToken.FromObject(NetworkRuleSet);
properties.NetworkAcls = NetworkRuleSet.ToNetworkRuleSet();
}

CognitiveServicesAccountCreateParameters createParameters = new CognitiveServicesAccountCreateParameters()
CognitiveServicesAccount createParameters = new CognitiveServicesAccount()
{
Location = Location,
Kind = Type, // must have value, mandatory parameter
Sku = new Sku(SkuName),
Sku = new Sku(SkuName, null),
Tags = TagsConversionHelper.CreateTagDictionary(Tag),
Properties = properties
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public override void ExecuteCmdlet()
var account = this.CognitiveServicesClient.Accounts.GetProperties(
this.ResourceGroupName,
this.Name);
NetworkRuleSet accountACL = account.NetworkAcls;
NetworkRuleSet accountACL = account.Properties.NetworkAcls;

if (accountACL == null)
{
Expand Down Expand Up @@ -152,21 +152,28 @@ public override void ExecuteCmdlet()
}


var properties = new JObject();
properties["networkAcls"] = JToken.FromObject(accountACL);
this.CognitiveServicesClient.Accounts.Update(this.ResourceGroupName, this.Name, null, null, properties);
var properties = new CognitiveServicesAccountProperties();
properties.NetworkAcls = accountACL;
this.CognitiveServicesClient.Accounts.Update(
this.ResourceGroupName,
this.Name,
new CognitiveServicesAccount()
{
Properties = properties
}
);

account = this.CognitiveServicesClient.Accounts.GetProperties(this.ResourceGroupName, this.Name);

switch (ParameterSetName)
{
case NetWorkRuleStringParameterSet:
case NetworkRuleObjectParameterSet:
WriteObject(PSNetworkRuleSet.Create(account.NetworkAcls).VirtualNetworkRules);
WriteObject(PSNetworkRuleSet.Create(account.Properties.NetworkAcls).VirtualNetworkRules);
break;
case IpRuleStringParameterSet:
case IpRuleObjectParameterSet:
WriteObject(PSNetworkRuleSet.Create(account.NetworkAcls).IpRules);
WriteObject(PSNetworkRuleSet.Create(account.Properties.NetworkAcls).IpRules);
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,16 @@ public override void ExecuteCmdlet()
base.ExecuteCmdlet();

bool hasPropertiesChange = false;
var properties = new JObject();
var properties = new CognitiveServicesAccountProperties();
if (!string.IsNullOrWhiteSpace(CustomSubdomainName))
{
hasPropertiesChange = true;
properties["customSubDomainName"] = CustomSubdomainName;
properties.CustomSubDomainName = CustomSubdomainName;
}
if (NetworkRuleSet != null)
{
hasPropertiesChange = true;
properties["networkAcls"] = JToken.FromObject(NetworkRuleSet);
properties.NetworkAcls = NetworkRuleSet.ToNetworkRuleSet();
}

Sku sku = null;
Expand Down Expand Up @@ -152,9 +152,13 @@ public override void ExecuteCmdlet()
var updatedAccount = this.CognitiveServicesClient.Accounts.Update(
this.ResourceGroupName,
this.Name,
sku,
tags,
properties);
new CognitiveServicesAccount()
{
Sku = sku,
Tags = tags,
Properties = properties
}
);

WriteCognitiveServicesAccount(updatedAccount);
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public override void ExecuteCmdlet()
var account = this.CognitiveServicesClient.Accounts.GetProperties(
this.ResourceGroupName,
this.Name);
NetworkRuleSet accountACL = account.NetworkAcls;
NetworkRuleSet accountACL = account.Properties.NetworkAcls;

if (accountACL == null)
{
Expand All @@ -138,13 +138,20 @@ public override void ExecuteCmdlet()
psNetworkRule.DefaultAction = defaultAction.Value;
}

var properties = new JObject();
properties["networkAcls"] = JToken.FromObject(psNetworkRule.ToNetworkRuleSet());
this.CognitiveServicesClient.Accounts.Update(this.ResourceGroupName, this.Name, null, null, properties);
var properties = new CognitiveServicesAccountProperties();
properties.NetworkAcls = psNetworkRule.ToNetworkRuleSet();
this.CognitiveServicesClient.Accounts.Update(
this.ResourceGroupName,
this.Name,
new CognitiveServicesAccount()
{
Properties = properties
}
);

account = this.CognitiveServicesClient.Accounts.GetProperties(this.ResourceGroupName, this.Name);

WriteObject(PSNetworkRuleSet.Create(account.NetworkAcls));
WriteObject(PSNetworkRuleSet.Create(account.Properties.NetworkAcls));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@ public PSCognitiveServicesAccount(CognitiveServicesModels.CognitiveServicesAccou
this.ResourceGroupName = ParseResourceGroupFromId(cognitiveServicesAccount.Id);
this.AccountName = cognitiveServicesAccount.Name;
this.Id = cognitiveServicesAccount.Id;
this.Endpoint = cognitiveServicesAccount.Endpoint;
this.Endpoint = cognitiveServicesAccount.Properties.Endpoint;
this.Location = cognitiveServicesAccount.Location;
this.Sku = cognitiveServicesAccount.Sku;
this.AccountType = cognitiveServicesAccount.Kind;
this.Etag = cognitiveServicesAccount.Etag;
this.ResourceType = cognitiveServicesAccount.Type;
this.ProvisioningState = cognitiveServicesAccount.ProvisioningState;
this.ProvisioningState = cognitiveServicesAccount.Properties.ProvisioningState;
this.Tags = cognitiveServicesAccount.Tags;
this.CustomSubDomainName = cognitiveServicesAccount.CustomSubDomainName;
this.CustomSubDomainName = cognitiveServicesAccount.Properties.CustomSubDomainName;

if (cognitiveServicesAccount.NetworkAcls != null)
if (cognitiveServicesAccount.Properties.NetworkAcls != null)
{
this.NetworkRuleSet = PSNetworkRuleSet.Create(cognitiveServicesAccount.NetworkAcls);
this.NetworkRuleSet = PSNetworkRuleSet.Create(cognitiveServicesAccount.Properties.NetworkAcls);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/Compute/Compute/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Allow empty value for ProximityPlacementGroupId during update
* Allowed empty value for ProximityPlacementGroupId during update

## Version 3.4.0
* Limit the number of VM status to 100 to avoid throttling when Get-AzVM -Status is performed without VM name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Azure.Devices" Version="1.18.2" />
<PackageReference Include="Microsoft.Azure.Management.DeviceProvisioningServices" Version="0.10.0-preview" />
<PackageReference Include="Microsoft.Azure.Management.IotHub" Version="2.10.0-preview" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/EventGrid/EventGrid.Test/EventGrid.Test.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PackageReference Include="Microsoft.Azure.Management.EventHub" Version="2.5.0" />
<PackageReference Include="Microsoft.Azure.Management.Relay" Version="2.0.2" />
<PackageReference Include="Microsoft.Azure.Management.ServiceBus" Version="2.1.0" />
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.3.0" />
<PackageReference Include="Microsoft.Azure.Management.Storage" Version="14.4.0" />
</ItemGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,12 @@ public void TestPolicyCrudWithPiping()
{
TestController.NewInstance.RunPowerShellTest(_logger, "Test-PolicyCrudWithPiping");
}

[Fact]
[Trait(Category.AcceptanceType, Category.CheckIn)]
public void TestManagedRuleSetDefinitions()
{
TestController.NewInstance.RunPowerShellTest(_logger, "Test-ManagedRuleSetDefinition");
}
}
}
Loading