Skip to content

Commit 5e23204

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/azure-docs-pr into fixUlt
2 parents e3f7b18 + 91ba2fd commit 5e23204

File tree

2 files changed

+62
-4
lines changed

2 files changed

+62
-4
lines changed

articles/automation/shared-resources/modules.md

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ ms.service: automation
66
ms.subservice: shared-resources
77
author: georgewallace
88
ms.author: gwallace
9-
ms.date: 03/13/2019
9+
ms.date: 06/05/2019
1010
ms.topic: conceptual
1111
manager: carmonm
1212
---
1313

1414
# Manage Modules in Azure Automation
1515

16-
Azure Automation provides the ability to import PowerShell modules into your Automation Account to be used by the PowerShell based runbooks. These modules can be custom modules you've created, from the PowerShell Gallery, or the AzureRM and Az modules for Azure.
16+
Azure Automation provides the ability to import PowerShell modules into your Automation Account to be used by the PowerShell based runbooks. These modules can be custom modules you've created, from the PowerShell Gallery, or the AzureRM and Az modules for Azure. When you create an Automation Account some modules are imported by default.
1717

1818
## Import modules
1919

@@ -46,6 +46,22 @@ You can also import modules from the PowerShell Gallery directly from your Autom
4646

4747
![PowerShell Gallery import from Azure portal](../media/modules/gallery-azure-portal.png)
4848

49+
## Delete modules
50+
51+
If you have issues with a module or you need to roll back to a previous version of a module, you can delete it from your Automation Account. You can not delete the original version of the [default modules](#default-modules) that are imported when you create an Automation Account. If the module you want to delete is a newer version of one of the [default modules](#default-modules) installed, it will roll-back to the version that was installed with your Automation Account. Otherwise, any module you delete from your Automation Account will be removed.
52+
53+
### Azure portal
54+
55+
In the Azure portal, navigate to your Automation Account and select **Modules** under **Shared Resources**. Select the module you want to remove. On the **Module** page, clcick **Delete**. If this module is one of the [default modules](#default-modules) it will be rolled back to the version that was present when the Automation Account was created.
56+
57+
### PowerShell
58+
59+
To remove a module through PowerShell, run the following command:
60+
61+
```azurepowershell-interactive
62+
Remove-AzureRmAutomationModule -Name <moduleName> -AutomationAccountName <automationAccountName> -ResourceGroupName <resourceGroupName>
63+
```
64+
4965
## Internal cmdlets
5066

5167
The following is a listing of cmdlets in the internal `Orchestrator.AssetManagement.Cmdlets` module that is imported into every Automation Account. These cmdlets are accessible in your runbooks and DSC configurations and allow you to interact with your assets within your Automation Account. Additionally, the internal cmdlets allow you to retrieve secrets from encrypted **Variable** values, **Credentials**, and encrypted **Connection** fields. The Azure PowerShell cmdlets are not able to retrieve these secrets. These cmdlets do not require you to implicitly connect to Azure when using them. This is beneficial for scenarios where you have a connection, such as a Run As Account that you need to use to authenticate to Azure.
@@ -205,6 +221,37 @@ We recommend you consider the following when you author a PowerShell module for
205221

206222
* If referencing [Azure Powershell Az modules](/powershell/azure/new-azureps-module-az?view=azps-1.1.0) in your module, ensure you aren't also referencing `AzureRM`. The `Az` module can't be used in conjunction with the `AzureRM` modules. `Az` is supported in runbooks but aren't imported by default. To learn about the `Az` modules and considerations to take into account, see [Az module support in Azure Automation](../az-modules.md).
207223

224+
## Default modules
225+
226+
The following table lists the modules that are imported by default when an Automation Account is created. The modules listed below can have newer versions of them imported, but the original version can not be removed from your Automation Account even if you delete a newer version of them.
227+
228+
|Module name|Version|
229+
|---|---|
230+
| AuditPolicyDsc | 1.1.0.0 |
231+
| Azure | 1.0.3 |
232+
| Azure.Storage | 1.0.3 |
233+
| AzureRM.Automation | 1.0.3 |
234+
| AzureRM.Compute | 1.2.1 |
235+
| AzureRM.Profile | 1.0.3 |
236+
| AzureRM.Resources | 1.0.3 |
237+
| AzureRM.Sql | 1.0.3 |
238+
| AzureRM.Storage | 1.0.3 |
239+
| ComputerManagementDsc | 5.0.0.0 |
240+
| GPRegistryPolicyParser | 0.2 |
241+
| Microsoft.PowerShell.Core | 0 |
242+
| Microsoft.PowerShell.Diagnostics | |
243+
| Microsoft.PowerShell.Management | |
244+
| Microsoft.PowerShell.Security | |
245+
| Microsoft.PowerShell.Utility | |
246+
| Microsoft.WSMan.Management | |
247+
| Orchestrator.AssetManagement.Cmdlets | 1 |
248+
| PSDscResources | 2.9.0.0 |
249+
| SecurityPolicyDsc | 2.1.0.0 |
250+
| StateConfigCompositeResources | 1 |
251+
| xDSCDomainjoin | 1.1 |
252+
| xPowerShellExecutionPolicy | 1.1.0.0 |
253+
| xRemoteDesktopAdmin | 1.1.0.0 |
254+
208255
## Next steps
209256

210257
* To learn more about creating PowerShell Modules, see [Writing a Windows PowerShell Module](https://msdn.microsoft.com/library/dd878310%28v=vs.85%29.aspx)

articles/sql-database/sql-database-managed-instance-migrate.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,22 @@ If you have resolved all identified migration blockers and continuing the migrat
5050

5151
Managed Instance guarantee 99.99% availability even in the critical scenarios, so overhead caused by these features cannot be disabled. For more information, see [the root causes that might cause different performance on SQL Server and Managed Instance](https://azure.microsoft.com/blog/key-causes-of-performance-differences-between-sql-managed-instance-and-sql-server/).
5252

53+
### Create performance baseline
54+
55+
If you need to compare the performance of your workload on Managed Instance with your original workload running on SQL Server, you would need to create a performance baseline that will be used for comparison. Some of the parameters that you would need to measure on your SQL Server instance are:
56+
- Monitor CPU usage on your SQL Server instance and record the average and peak CPU usage.
57+
- Monitor memory usage on your SQL Server instance and determine the amount of memory used by different components such as buffer pool, plan cache, column-store pool, etc. In addition, you should find average and peak values of Page Life Expectancy memory performance counter.
58+
- Monitor IO usage on the source SQL Server instance using [sys.dm_io_virtual_file_stats](https://docs.microsoft.com/sql/relational-databases/system-dynamic-management-views/sys-dm-io-virtual-file-stats-transact-sql) view.
59+
- Monitor workload and query performance or your SQL Server instance by examining Dynamic Management Views or Query Store if you are migrating from SQL Server 2016+ version. Identify average duration and CPU usage of the most important queries in your workload to compare them with the queries that are running on the Managed Instance.
60+
61+
> [!Note]
62+
> If you notice any issue with your workload on SQL Server such as high CPU usage, constant memory pressure, tempdb or parametrization issues, you should try to resolve them on your source SQL Server instance before taking the baseline and migration. Migrating know issues to any new system migh cause unexpected results and invalidate any performance comparison.
63+
5364
## Deploy to an optimally-sized managed instance
5465

55-
Managed instance is tailored for on-premises workloads that are planning to move to the cloud. It introduces a [new purchasing model](sql-database-service-tiers-vcore.md) that provides greater flexibility in selecting the right level of resources for your workloads. In the on-premises world, you are probably accustomed to sizing these workloads by using physical cores, memory and IO bandwidth. The purchasing model for managed instance is based upon virtual cores, or “vCores,” with additional storage and IO available separately. The vCore model is a simpler way to understand your compute requirements in the cloud versus what you use on-premises today. This new model enables you to right-size your destination environment in the cloud. Some general guidelines that might help you to choose the right service tier and characteristics are described here:
66+
Managed instance is tailored for on-premises workloads that are planning to move to the cloud. It introduces a [new purchasing model](sql-database-service-tiers-vcore.md) that provides greater flexibility in selecting the right level of resources for your workloads. In the on-premises world, you are probably accustomed to sizing these workloads by using physical cores and IO bandwidth. The purchasing model for managed instance is based upon virtual cores, or “vCores,” with additional storage and IO available separately. The vCore model is a simpler way to understand your compute requirements in the cloud versus what you use on-premises today. This new model enables you to right-size your destination environment in the cloud. Some general guidelines that might help you to choose the right service tier and characteristics are described here:
5667
- Monitor CPU usage on your SQL Server instance and check how much compute power you currently use (using Dynamic Management Views, SQL Server Management Studio, or other monitoring tools). You can provision a Managed Instance that matches the number of cores that you are using on SQL Server, having in mind that CPU characteristics might need to be scaled to match [VM characteristics where Managed Instance is installed](https://docs.microsoft.com/azure/sql-database/sql-database-managed-instance-resource-limits#hardware-generation-characteristics).
57-
- Check the amount of available memory on your SQL Server instance, and choose [the service tier that has matching memory](https://docs.microsoft.com/azure/sql-database/sql-database-managed-instance-resource-limits#hardware-generation-characteristics). It would be useful to measure page-life expectancy on you SQL Server to determine [do you need additional memory](https://techcommunity.microsoft.com/t5/Azure-SQL-Database/Do-you-need-more-memory-on-Azure-SQL-Managed-Instance/ba-p/563444).
68+
- Check the amount of available memory on your SQL Server instance, and choose [the service tier that has matching memory](https://docs.microsoft.com/azure/sql-database/sql-database-managed-instance-resource-limits#hardware-generation-characteristics). It would be useful to measure page-life expectancy on your SQL Server instance to determine [do you need additional memory](https://techcommunity.microsoft.com/t5/Azure-SQL-Database/Do-you-need-more-memory-on-Azure-SQL-Managed-Instance/ba-p/563444).
5869
- Measure IO latency of the file sub-system to determine do you need General Purpose or Business Critical instance.
5970

6071
You can select compute and storage resources at deployment time and then change it afterwards without introducing downtime for your application using the [Azure portal](sql-database-scale-resources.md):

0 commit comments

Comments
 (0)