- Open a Terminal, type:
sudo nano /etc/hosts
and hit Return - Enter your admin password and hit Return
- In the Nano text editor add or edit the file
- Once done, hold Ctrl + O and hit Return to save
- Finally, hold Ctrl + X to exit
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
$json = @' | |
some json multi-line string goes here | |
'@; | |
$json | Out-File settings.json |
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
#connect using a global admin account of the AD where you want the Service Principal to be created | |
$msolcred = get-credential | |
connect-msolservice -credential $msolcred | |
#symmetric key used for some auth scenarios (keep the object id, app principal id and symm key for the future) | |
New-MsolServicePrincipal -DisplayName {yourspname} -Type symmetric | |
#assigns a Company Admin role | |
Add-MsolRoleMember -RoleName "Company Administrator" -RoleMemberType ServicePrincipal -RoleMemberObjectId {principal objectId} |
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
#change the current storage account | |
Set-AzureSubscription -SubscriptionName "{source subscription}" -CurrentStorageAccount "{storage account name}" | |
Select-AzureSubscription "{source subscription}" | |
$destContext = New-AzureStorageContext –StorageAccountName "{destination storage account}" -StorageAccountKey "" | |
$sourceContext = New-AzureStorageContext –StorageAccountName "{source account}" -StorageAccountKey "" | |
#New-AzureStorageContainer -Name "{container name}" | |
### Asynchronous Copy From Blob Context to Blob Context ### |
https://pfserver:9031/pf/federation_metadata.ping?PartnerSpId=[SPCONNECTION-IDENTIFIER]
try without the port (9031) in case of failure