-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated sdk version * Add null check in ConditionVersion of Set-AzRoleAssignmenr (#12829) * add missing null check * update docs * Remove old TODO * Added operation parameters and operation steps in MI operations PS cmdlet (#12437) * Added operation parameters and operation steps in `Get-AzSqlInstanceOperation` * Starting validation. * Fixing build Co-authored-by: Jovana Toroman <[email protected]> * Adding patchStatus property to VM Instance View (#12777) * updated .net to 38.1 and added patchstatus property * Adding tests and upgrading sdk version for dependent projects * Update PSVirtualMachineInstanceView.cs Adding comma * Corrected parameter field name in the example (#12825) Changed 'Name' to 'StorageSyncServiceName' field in the example. 'Name' is not a valid parameter. * Update spelling of Proeprty to Property (#12821) Co-authored-by: Joshua Van Daalen <[email protected]> * [SQL] Fix\add AzSqlServerActiveDirectoryOnlyAuthentication APIs (#12782) * * Fix `Disable-AzSqlServerActiveDirectoryOnlyAuthentication` * Added cmdlet `Get-AzSqlServerActiveDirectoryOnlyAuthentication` * Added cmdlet `Enable-AzSqlServerActiveDirectoryOnlyAuthentication` * Revert changes in authentication * Fix files in Accounts * Update Resources.Designer.cs * Add help files * Adding breaking change to Exceptions/Az.Sql/BreakingChangeIssues.csv * Removing empty lines Co-authored-by: Amol Agarwal <[email protected]> Co-authored-by: Milan Brkic <[email protected]> * [RecoveryServices.backup] changing number of VMs from 100 to 1000 (#12816) * changing number of VMs from 100 to 1000 * adding description inside changelog.md * [KeyVault] Refactor tests (#12797) * don't use mgmt clients * remove unused code * remove useless comments * Add parameter EnableRbcAuthorization for 'New-AzKeyVault' and 'Update-AzKeyVault' (#12459) * Add parameter EnableRbcAuthorization for 'New-AzKeyVault' and 'Update-AzKeyVault'. * Update src/KeyVault/KeyVault/ChangeLog.md Co-authored-by: Yeming Liu <[email protected]> * Update src/KeyVault/KeyVault/KeyVault.format.ps1xml Co-authored-by: Yeming Liu <[email protected]> * Simplify codes in VaultManagementClient.cs. Co-authored-by: Yeming Liu <[email protected]> * Disk Access changes (#12673) * baseline work * New-AzDiskAccess Remove-AzDiskAccess * New cmdlets * New disk config (#12665) * Checking in changes * checking in changes * new cmdlets * help docs * help docs * fix errors * update help * Checking in SnapshotConfigTests * remove Online: lines from help doc * remove online line * Disk access (#12713) * comments remain, committing so others can see content. * New-AzDiskEncryptionSetConfig dev and testing * New-AzDiskEncryptionSetConfig changelog and help doc Co-authored-by: Adam Sandor <[email protected]> * clean up test * changelog.md * adding parameters to New-AzDiskUpdateConfig * Improving default testing of New-AzDiskEncryptionSetConfig EncryptionType param (#12759) * Improving default testing * update recorded test file * correcting incorrect copy and paste to Test-DiskAccessObject test * Addressing review comments * Update ChangeLog.md * Update New-AzDiskEncryptionSetConfig.md * add argument completer Co-authored-by: Theodore Chang <[email protected]> Co-authored-by: Adam Sandor <[email protected]> Co-authored-by: Jin Lei <[email protected]> * Skip network api version check (#12854) Co-authored-by: Zhenyu Zhou <[email protected]> * [Synapse] Add dataset and data flow management cmdlets and update some reference package version (#12831) * add support for dataset * add support for dataflow * add help docs * rebase master * update help docs * add dataset subclass * update help doc * update help docs * update SDK version * remove blank line Co-authored-by: Wan Yang <[email protected]> * RecoveryServices oob release (#12845) Co-authored-by: Daniel Orozco <[email protected]> Co-authored-by: toki95 <[email protected]> Co-authored-by: Jovana Toroman <[email protected]> Co-authored-by: haagha <[email protected]> Co-authored-by: Eragon Riddle <[email protected]> Co-authored-by: Joshua Van Daalen <[email protected]> Co-authored-by: Joshua Van Daalen <[email protected]> Co-authored-by: Amol Agarwal <[email protected]> Co-authored-by: Amol Agarwal <[email protected]> Co-authored-by: Milan Brkic <[email protected]> Co-authored-by: Himanshu Agarwal <[email protected]> Co-authored-by: Yeming Liu <[email protected]> Co-authored-by: Beisi Zhou <[email protected]> Co-authored-by: Yeming Liu <[email protected]> Co-authored-by: Theodore Chang <[email protected]> Co-authored-by: Adam Sandor <[email protected]> Co-authored-by: Jin Lei <[email protected]> Co-authored-by: aim-for-better <[email protected]> Co-authored-by: Zhenyu Zhou <[email protected]> Co-authored-by: wonner <[email protected]> Co-authored-by: Wan Yang <[email protected]> Co-authored-by: Dingmeng Xue <[email protected]>
- Loading branch information
1 parent
2559453
commit 728aaab
Showing
126 changed files
with
9,369 additions
and
877 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/DataFlows/GetAzureSynapseDataFlow.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; | ||
using Microsoft.Azure.Commands.Synapse.Common; | ||
using Microsoft.Azure.Commands.Synapse.Models; | ||
using Microsoft.WindowsAzure.Commands.Utilities.Common; | ||
using System.Linq; | ||
using System.Management.Automation; | ||
|
||
namespace Microsoft.Azure.Commands.Synapse | ||
{ | ||
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + SynapseConstants.SynapsePrefix + SynapseConstants.DataFlow, | ||
DefaultParameterSetName = GetByName)] | ||
[OutputType(typeof(PSDataFlowResource))] | ||
public class GetAzureSynapseDataFlow : SynapseArtifactsCmdletBase | ||
{ | ||
private const string GetByName = "GetByName"; | ||
private const string GetByObject = "GetByObject"; | ||
|
||
[Parameter(ValueFromPipelineByPropertyName = false, ParameterSetName = GetByName, | ||
Mandatory = true, HelpMessage = HelpMessages.WorkspaceName)] | ||
[ResourceNameCompleter(ResourceTypes.Workspace, "ResourceGroupName")] | ||
[ValidateNotNullOrEmpty] | ||
public override string WorkspaceName { get; set; } | ||
|
||
[Parameter(ValueFromPipeline = true, ParameterSetName = GetByObject, | ||
Mandatory = true, HelpMessage = HelpMessages.WorkspaceObject)] | ||
[ValidateNotNull] | ||
public PSSynapseWorkspace WorkspaceObject { get; set; } | ||
|
||
[Parameter(ValueFromPipelineByPropertyName = false, Mandatory = false, HelpMessage = HelpMessages.DataFlowName)] | ||
[ValidateNotNullOrEmpty] | ||
[Alias("DataFlowName")] | ||
public string Name { get; set; } | ||
|
||
public override void ExecuteCmdlet() | ||
{ | ||
if (this.IsParameterBound(c => c.WorkspaceObject)) | ||
{ | ||
this.WorkspaceName = this.WorkspaceObject.Name; | ||
} | ||
|
||
if (this.IsParameterBound(c => c.Name)) | ||
{ | ||
WriteObject(new PSDataFlowResource(SynapseAnalyticsClient.GetDataFlow(this.Name), this.WorkspaceName)); | ||
} | ||
else | ||
{ | ||
var datasets = SynapseAnalyticsClient.GetDataFlowsByWorkspace() | ||
.Select(element => new PSDataFlowResource(element, this.WorkspaceName)); | ||
WriteObject(datasets, true); | ||
} | ||
} | ||
} | ||
} |
73 changes: 73 additions & 0 deletions
73
...napse/Synapse/Commands/DataPlaneCommands/Artifact/DataFlows/RemoveAzureSynapseDataFlow.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; | ||
using Microsoft.Azure.Commands.Synapse.Common; | ||
using Microsoft.Azure.Commands.Synapse.Models; | ||
using Microsoft.Azure.Commands.Synapse.Properties; | ||
using Microsoft.WindowsAzure.Commands.Utilities.Common; | ||
using System; | ||
using System.Management.Automation; | ||
|
||
namespace Microsoft.Azure.Commands.Synapse | ||
{ | ||
[Cmdlet(VerbsCommon.Remove, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + SynapseConstants.SynapsePrefix + SynapseConstants.DataFlow, | ||
DefaultParameterSetName = RemoveByName, SupportsShouldProcess = true)] | ||
[OutputType(typeof(bool))] | ||
public class RemoveAzureSynapseDataFlow : SynapseArtifactsCmdletBase | ||
{ | ||
private const string RemoveByName = "RemoveByName"; | ||
private const string RemoveByObject = "RemoveByObject"; | ||
private const string RemoveByInputObject = "RemoveByInputObject"; | ||
|
||
[Parameter(ValueFromPipelineByPropertyName = false, ParameterSetName = RemoveByName, | ||
Mandatory = true, HelpMessage = HelpMessages.WorkspaceName)] | ||
[ResourceNameCompleter(ResourceTypes.Workspace, "ResourceGroupName")] | ||
[ValidateNotNullOrEmpty] | ||
public override string WorkspaceName { get; set; } | ||
|
||
[Parameter(ValueFromPipeline = true, ParameterSetName = RemoveByObject, | ||
Mandatory = true, HelpMessage = HelpMessages.WorkspaceObject)] | ||
[ValidateNotNull] | ||
public PSSynapseWorkspace WorkspaceObject { get; set; } | ||
|
||
[Parameter(ValueFromPipelineByPropertyName = false, ParameterSetName = RemoveByName, | ||
Mandatory = true, HelpMessage = HelpMessages.DataFlowName)] | ||
[Parameter(ValueFromPipelineByPropertyName = false, ParameterSetName = RemoveByObject, | ||
Mandatory = true, HelpMessage = HelpMessages.DataFlowName)] | ||
[ValidateNotNullOrEmpty] | ||
[Alias("DataFlowName")] | ||
public string Name { get; set; } | ||
|
||
[Parameter(ValueFromPipeline = true, ParameterSetName = RemoveByInputObject, | ||
Mandatory = true, HelpMessage = HelpMessages.DataFlowObject)] | ||
[ValidateNotNull] | ||
public PSDataFlowResource InputObject { get; set; } | ||
|
||
[Parameter(Mandatory = false, HelpMessage = HelpMessages.PassThru)] | ||
public SwitchParameter PassThru { get; set; } | ||
|
||
[Parameter(Mandatory = false, HelpMessage = HelpMessages.AsJob)] | ||
public SwitchParameter AsJob { get; set; } | ||
|
||
public override void ExecuteCmdlet() | ||
{ | ||
if (this.IsParameterBound(c => c.WorkspaceObject)) | ||
{ | ||
this.WorkspaceName = this.WorkspaceObject.Name; | ||
} | ||
|
||
if (this.IsParameterBound(c => c.InputObject)) | ||
{ | ||
this.WorkspaceName = this.InputObject.WorkspaceName; | ||
this.Name = this.InputObject.Name; | ||
} | ||
|
||
if (this.ShouldProcess(this.WorkspaceName, String.Format(Resources.RemovingSynapseDataFlow, this.Name, this.WorkspaceName))) | ||
{ | ||
SynapseAnalyticsClient.DeleteDataFlow(this.Name); | ||
if (PassThru) | ||
{ | ||
WriteObject(true); | ||
} | ||
} | ||
} | ||
} | ||
} |
58 changes: 58 additions & 0 deletions
58
src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/DataFlows/SetAzureSynapseDataFlow.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; | ||
using Microsoft.Azure.Commands.Synapse.Common; | ||
using Microsoft.Azure.Commands.Synapse.Models; | ||
using Microsoft.Azure.Commands.Synapse.Properties; | ||
using Microsoft.WindowsAzure.Commands.Utilities.Common; | ||
using System; | ||
using System.Management.Automation; | ||
|
||
namespace Microsoft.Azure.Commands.Synapse | ||
{ | ||
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + SynapseConstants.SynapsePrefix + SynapseConstants.DataFlow, | ||
DefaultParameterSetName = SetByName, SupportsShouldProcess = true)] | ||
[Alias("New-" + ResourceManager.Common.AzureRMConstants.AzureRMPrefix + SynapseConstants.SynapsePrefix + SynapseConstants.DataFlow)] | ||
[OutputType(typeof(PSDataFlowResource))] | ||
public class SetAzureSynapseDataFlow : SynapseArtifactsCmdletBase | ||
{ | ||
private const string SetByName = "SetByName"; | ||
private const string SetByObject = "SetByObject"; | ||
|
||
[Parameter(ValueFromPipelineByPropertyName = false, ParameterSetName = SetByName, | ||
Mandatory = true, HelpMessage = HelpMessages.WorkspaceName)] | ||
[ResourceNameCompleter(ResourceTypes.Workspace, "ResourceGroupName")] | ||
[ValidateNotNullOrEmpty] | ||
public override string WorkspaceName { get; set; } | ||
|
||
[Parameter(ValueFromPipeline = true, ParameterSetName = SetByObject, | ||
Mandatory = true, HelpMessage = HelpMessages.WorkspaceObject)] | ||
[ValidateNotNull] | ||
public PSSynapseWorkspace WorkspaceObject { get; set; } | ||
|
||
[Parameter(ValueFromPipelineByPropertyName = false, Mandatory = true, HelpMessage = HelpMessages.DataFlowName)] | ||
[ValidateNotNullOrEmpty] | ||
[Alias("DataFlowName")] | ||
public string Name { get; set; } | ||
|
||
[Parameter(ValueFromPipelineByPropertyName = false, Mandatory = true, HelpMessage = HelpMessages.JsonFilePath)] | ||
[ValidateNotNullOrEmpty] | ||
[Alias("File")] | ||
public string DefinitionFile { get; set; } | ||
|
||
[Parameter(Mandatory = false, HelpMessage = HelpMessages.AsJob)] | ||
public SwitchParameter AsJob { get; set; } | ||
|
||
public override void ExecuteCmdlet() | ||
{ | ||
if (this.IsParameterBound(c => c.WorkspaceObject)) | ||
{ | ||
this.WorkspaceName = this.WorkspaceObject.Name; | ||
} | ||
|
||
if (this.ShouldProcess(this.WorkspaceName, String.Format(Resources.SettingSynapseDataFlow, this.Name, this.WorkspaceName))) | ||
{ | ||
string rawJsonContent = SynapseAnalyticsClient.ReadJsonFileContent(this.TryResolvePath(DefinitionFile)); | ||
WriteObject(new PSDataFlowResource(SynapseAnalyticsClient.CreateOrUpdateDataFlow(this.Name, rawJsonContent), this.WorkspaceName)); | ||
} | ||
} | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
src/Synapse/Synapse/Commands/DataPlaneCommands/Artifact/Datasets/GetAzureSynapseDataset.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; | ||
using Microsoft.Azure.Commands.Synapse.Common; | ||
using Microsoft.Azure.Commands.Synapse.Models; | ||
using Microsoft.WindowsAzure.Commands.Utilities.Common; | ||
using System.Linq; | ||
using System.Management.Automation; | ||
|
||
namespace Microsoft.Azure.Commands.Synapse | ||
{ | ||
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + SynapseConstants.SynapsePrefix + SynapseConstants.Dataset, | ||
DefaultParameterSetName = GetByName)] | ||
[OutputType(typeof(PSDatasetResource))] | ||
public class GetAzureSynapseDataset : SynapseArtifactsCmdletBase | ||
{ | ||
private const string GetByName = "GetByName"; | ||
private const string GetByObject = "GetByObject"; | ||
|
||
[Parameter(ValueFromPipelineByPropertyName = false, ParameterSetName = GetByName, | ||
Mandatory = true, HelpMessage = HelpMessages.WorkspaceName)] | ||
[ResourceNameCompleter(ResourceTypes.Workspace, "ResourceGroupName")] | ||
[ValidateNotNullOrEmpty] | ||
public override string WorkspaceName { get; set; } | ||
|
||
[Parameter(ValueFromPipeline = true, ParameterSetName = GetByObject, | ||
Mandatory = true, HelpMessage = HelpMessages.WorkspaceObject)] | ||
[ValidateNotNull] | ||
public PSSynapseWorkspace WorkspaceObject { get; set; } | ||
|
||
[Parameter(ValueFromPipelineByPropertyName = false, Mandatory = false, HelpMessage = HelpMessages.DatasetName)] | ||
[ValidateNotNullOrEmpty] | ||
[Alias("DatasetName")] | ||
public string Name { get; set; } | ||
|
||
public override void ExecuteCmdlet() | ||
{ | ||
if (this.IsParameterBound(c => c.WorkspaceObject)) | ||
{ | ||
this.WorkspaceName = this.WorkspaceObject.Name; | ||
} | ||
|
||
if (this.IsParameterBound(c => c.Name)) | ||
{ | ||
WriteObject(new PSDatasetResource(SynapseAnalyticsClient.GetDataset(this.Name), this.WorkspaceName)); | ||
} | ||
else | ||
{ | ||
var datasets = SynapseAnalyticsClient.GetDatasetsByWorkspace() | ||
.Select(element => new PSDatasetResource(element, this.WorkspaceName)); | ||
WriteObject(datasets, true); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.