Skip to content

Commit 59f3e05

Browse files
authored
Add examples to defautl profile setting
1 parent 4326a20 commit 59f3e05

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

tools/AzureRM.BootStrapper/help/Set-AzureRmDefaultProfile.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,16 @@ Sets the given profile as a default profile to be used with all API version prof
2424
PS C:\> Set-AzureRmDefaultProfile -Profile '2017-03-09-profile'
2525
```
2626

27-
Set profile '2017-03-09-profile' as a default profile. After setting, any API Version profile cmdlet can be executed as follows:
27+
Set profile '2017-03-09-profile' as a default profile. After setting, any API Version profile cmdlet can be executed without providing a profile parameter as follows:
2828
```
2929
Install-AzureRmProfile
3030
```
31-
This will install profile '2017-03-09-profile'
31+
This will install profile '2017-03-09-profile'. Additionally, when importing AzureRM modules, you will import the version of the module associated with the default profile setting, unless you explicitly specify a RequiredVersion.
32+
33+
```
34+
Import-Module AzureRM.Compute
35+
```
36+
Imports a version of the Compute module compatible with the ```2017-03-09-profile``` profile.
3237

3338

3439
## PARAMETERS

0 commit comments

Comments
 (0)