Skip to content

Commit

Permalink
Added deployment settings file
Browse files Browse the repository at this point in the history
  • Loading branch information
WaelHamze committed Oct 12, 2022
1 parent d72bf1f commit 253c566
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,7 @@
<None Include="PkgFolder\xRMCIBase.zip">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Include="xRMCISample_Deployment.json" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"EnvironmentVariables": [
{
"SchemaName": "ud_SampleDecimal",
"Value": "13"
},
{
"SchemaName": "ud_SampleSwitch",
"Value": ""
},
{
"SchemaName": "ud_SampleText",
"Value": "@@ud_SampleText@@"
}
],
"ConnectionReferences": [
{
"LogicalName": "ud_sharedcommondataserviceforapps_7a6b8",
"ConnectionId": "@@shared_commondataserviceforapps@@",
"ConnectorId": "/providers/Microsoft.PowerApps/apis/shared_commondataserviceforapps"
},
{
"LogicalName": "ud_sharedcommondataservice_3d28c",
"ConnectionId": "",
"ConnectorId": "/providers/Microsoft.PowerApps/apis/shared_commondataservice"
},
{
"LogicalName": "ud_sharedoffice365users_86252",
"ConnectionId": "949af400679b4039be826966309745c7",
"ConnectorId": "/providers/Microsoft.PowerApps/apis/shared_office365users"
}
]
}

1 comment on commit 253c566

@westerdaled
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi thanks for the posting the sample.

Firstly, is there any significance with the "@@" in the connection ids and environment values?

Secondly, a colleague of mine spent a long time testing a DevOps project stages in Octopus Deploy and he has convinced me that only the syntax below works (we have both tested it) . I personally don't like it as it is hard to read. Hence my question is why can't use the schema you have suggested, and which also appears in the Microsoft docs?

EnvironmentvariablesJson

[
	["test_EnvironmentName","Prod"],
	["test_SystemPath","\\\\domain.local\\UK\\sales\\orders"],
	["test_Cname_SalesOrders,"DB123\\instance"],
	["test_shared_sharepointonline_999999999e46b190a5080ae1234567","https://domain.sharepoint.com/sites/sales"],
    ["test_AppVersionNumber","1.0.0.0"]
]

ConnectionsJson

[
	["test_NetworkFileSystem","949af400679b4039be826966309745c7"],
	["test_sharedexcelonlinebusiness_23b28","949af400679b4039be826966309745c7"],
	["test_Sharepoint","949af400679b4039be826966309745c7d"]
	
]

Please sign in to comment.