Skip to content

Commit b5e3300

Browse files
committed
removing module-install and edits to project manage and storage-mover-create
1 parent 72a26fe commit b5e3300

File tree

4 files changed

+33
-157
lines changed

4 files changed

+33
-157
lines changed

articles/storage-mover/TOC.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ items:
3434
href: agent-register.md
3535
- name: Tutorials
3636
items:
37-
- name: InstallStorage Mover modules for PowerShell
38-
href: module-install.md
3937
- name: Migrate an NFS share to an Azure blob container
4038
href: migrate-share-nfs.md
4139
- name: Resources

articles/storage-mover/module-install.md

Lines changed: 0 additions & 141 deletions
This file was deleted.

articles/storage-mover/projects-manage.md

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,19 +56,35 @@ The first step in defining a migration job is the creation of a project resource
5656
:::image type="content" source="media/projects-manage/project-explorer-create-sml.png" alt-text="project explorer create" lightbox="media/projects-manage/project-explorer-create-lrg.png":::
5757

5858
### [PowerShell](#tab/powershell)
59+
60+
Creating a project you to decide on a name. Refer to the [resource naming convention](../azure-resource-manager/management/resource-name-rules.md#microsoftstoragesync) to choose a supported name. A description is optional and can contain up to 1024 single-byte characters.
61+
62+
The `New-AzStorageMoverProject` cmdlet is used to create a new project within a [storage mover resource](storage-mover-create.md) you previously deployed. If you haven't yet installed the `Az.StorageMover` module:
5963

60-
The `New-AzStorageMoverProject` cmdlet is used to create new storage mover projects. If you haven't yet installed the `Az.StorageMover` module, follow the guidance within the [Install Azure Storage Mover modules for PowerShell](module-install.md) article before proceeding.
64+
```powershell
65+
## Ensure you are running the latest version of PowerShell 7
66+
$PSVersionTable.PSVersion
67+
68+
## Your local execution policy must be set to at least remote signed or less restrictive
69+
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
70+
71+
## If you don't have the general Az PowerShell module, install it first
72+
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
73+
74+
## Lastly, the Az.StorageMover module is not installed by default and must be manually requested.
75+
Install-Module -Name Az.StorageMover -Scope CurrentUser -Repository PSGallery -Force
76+
```
6177

62-
You'll need to supply values for the required `-Name`, `-ResourceGroupName`, and `-StorageMoverName` parameters. The `-Description` parameter is optional and will be intentionally omitted in the example below and added in the next section.
78+
The [Install Azure PowerShell](/powershell/azure/install-az-ps) article has more details.
6379

64-
The following examples contain sample values. You'll need to substitute actual values to complete the example.
80+
You'll need to supply values for the required `-Name`, `-ResourceGroupName`, and `-StorageMoverName` parameters. The `-Description` parameter is optional.
6581

6682
1. It's always a good idea to create and use variables to store lengthy or potentially complex strings.
6783

6884
```powershell
6985
7086
## Set variables
71-
$subscriptionID = "0a12b3c4-5d67-8e63-9c12-7b38c901de2f"
87+
$subscriptionID = "Your subscription ID GUID"
7288
$resourceGroupName = "demoResourceGroup"
7389
$storageMoverName = "demoMover"
7490
$projectName = "demoProject"
@@ -101,7 +117,7 @@ The first step in defining a migration job is the creation of a project resource
101117
```Response
102118
103119
Description : This is a project used for demonstration.
104-
Id : /subscriptions/0a12b3c4-5d67-8e63-9c12-7b38c901de2f/resourceGroups/
120+
Id : /subscriptions/<GUID>/resourceGroups/
105121
demoResourceGroup/providers/Microsoft.StorageMover/storageMovers/
106122
demoMover/projects/demoProject
107123
Name : testingAgain
@@ -168,7 +184,7 @@ Follow the steps in this section to view projects accessible to your Storage Mov
168184
```Response
169185
170186
Description :
171-
Id : /subscriptions/0a12b3c4-5d67-8e63-9c12-7b38c901de2f/resourceGroups/
187+
Id : /subscriptions/<GUID>/resourceGroups/
172188
demoResourceGroup/providers/Microsoft.StorageMover/storageMovers/
173189
demoMover/projects/demoProject
174190
Name : demoProject
@@ -200,7 +216,7 @@ Follow the steps in this section to view projects accessible to your Storage Mov
200216
```Response
201217
202218
Description : Demo project managed with PowerShell.
203-
Id : /subscriptions/0a12b3c4-5d67-8e63-9c12-7b38c901de2f/resourceGroups/
219+
Id : /subscriptions/<GUID>/resourceGroups/
204220
demoResourceGroup/providers/Microsoft.StorageMover/storageMovers/
205221
demoMover/projects/demoProject
206222
Name : demoProject

articles/storage-mover/storage-mover-create.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,26 +77,29 @@ To deploy a storage mover resource, you'll need to supply values for the require
7777
```powershell
7878
7979
## Set variables
80-
$subscriptionID = <Your subscription ID>
81-
$resourceGroupName = <Your resource group name>
82-
$storageMoverName = <Your storage mover name>
83-
$description = <Up to 1024 characters>
80+
$subscriptionID = "Your subscription ID"
81+
$resourceGroupName = "Your resource group name"
82+
$storageMoverName = "Your storage mover name"
83+
$description = "Optional, up to 1024 characters"
8484
8585
## Log into Azure with your Azure credentials
8686
Connect-AzAccount -SubscriptionId $subscriptionID
8787
8888
## If this is the first storage mover resource deployed in this subscription:
8989
## You need to manually register the resource provider namespaces Microsoft.StorageMover and Microsoft.HybridCompute with your subscription.
9090
## This only needs to be done once per subscription. You must have at least Contributor permissions (RBAC role) on the subscription.
91-
## Register-AzResourceProvider -ProviderNamespace Microsoft.StorageMover
92-
## Register-AzResourceProvider -ProviderNamespace Microsoft.HybridCompute
91+
Register-AzResourceProvider -ProviderNamespace Microsoft.StorageMover
92+
Register-AzResourceProvider -ProviderNamespace Microsoft.HybridCompute
9393
9494
## The value for the Azure region of your resource stems from an enum.
9595
## To find the correct Location value for your selected Azure region, run:
9696
## Get-AzLocation | select displayname,location
9797
9898
## Create a storage mover resource
99-
New-AzStorageMover -Name $storageMoverName -ResourceGroupName $resourceGroupName -Location #<Your Location value>
99+
New-AzStorageMover `
100+
-Name $storageMoverName `
101+
-ResourceGroupName $resourceGroupName `
102+
-Location "Your Location value"
100103
101104
```
102105

0 commit comments

Comments
 (0)