Permalink
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (9 sloc) 482 Bytes
# a connection to a Dynamics 365 Online deployment
# update the values as appropriate
# ensure TLS 1.2 is used when connecting to Dynamics 365 v9.x
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
@{
OrganizationName = "orgfab51ca3" # see Settings > Customizations > Developer Resources > "Unique Name"
ServerUrl = "https://fabrikam.crm.dynamics.com" # the online organization URL
Credential = (Get-Credential) # prompt for credentials
}