Apply tag on Managed RG while deploying Synapse Workspace using Bicep - azure-synapse

I am using the bicep template as provided in the below doc. While creating workspace, it also creates Azure Managed RG and I am providing name for it from parameters. Can we apply tags to this RG? What should be the change in Bicep template?
https://learn.microsoft.com/en-us/azure/templates/microsoft.synapse/workspaces?tabs=bicep

You can just add them to your workspaces resource.
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
You can see how it fits into the template in the documentation here:
https://learn.microsoft.com/en-us/azure/templates/microsoft.synapse/workspaces?tabs=bicep

Sorry for the confusion. The bicep template is applying tag on resource and managed RG as well.
Deployment was failing with tags error due policy set which needed some mandatory tags.

Related

WorkItemMigration: No images in discussion comments - DevOps2DevOps

I have done a WorkItemMigration from one DevOps to another DevOps. In my test environment everything worked fine. But in the live system, all the images in the discussion comments are removed. Is there any setting that can cause missing images?
You need to set a PersonalAccessToken for the source and the target and then set "tachmentLinks to true.
This will use the rest API to download the image and ad them as additional attachments on the work item.

CDK create new user in created user pool

I was trying to find ways to automatically create a few dummy users with CDK, like this https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminCreateUser.html
but could not find anything useful
Is there any constructs or way we can achieve this?
There is not always a construct class available for the part of a service you'd like to configure but there should be automatically generated Cfn prefixed resources which map 1:1 onto all available AWS CloudFormation resources and properties. As long as it's possible in CloudFormation it should be possible in the CDK.
If you look at the aws-cdk/aws-cognito docs you'll notice two categories on the left hand menu Constructs and a little further down you will find CloudFormation Resources. One of those CloudFormation Resources is CfnUserPoolUser which should be what you are looking for.
If there is any issues utilizing the Cfn resources you can review options for escape hatches to dig even deeper in to the Cfn constructs.

GitLab api: how am i able the get the list of projects using gitlab api?

i was trying to get the list of projects in my gitlab using Git api. for that i was following Git lab api instruction.
they said i can access the list of project by this link:
https://gitlab.com/api/v4/projects?access_token=some_token.
but unfortunately with the above link i got bunch of information, which is not mine at all. i got the information which is owned by other users.
In that case how am i able the get my own projects information?
Nevertheless, the respond JSON has so many attribute. is there anyway that i can achieve the attribute according to my desire?
You can use owned=true to get only project which you are owner and simple=true to have limited field, check this :
https://gitlab.com/api/v4/projects?access_token=some_token&owned=true&simple=true

How to create a searchable central repository of code documentation using DocFx

I'm looking to create a central repository for all of our published API documentation using DocFx. I have documentation auto-generated via my build (using TFS) and published through my release (using Octopus) just fine for multiple individual sites. However, I'm wanting to pull it altogether in one location. The thinking is that through a parent site you could filter content in any of the individual sites without having to drill down into them. Do you have a recommendation on how to do this?
Also, within this same documentation repository I want to provide the capability to search by all of the meta data (project-level documentation) across the hundreds of projects in our portfolio. This will give our BA, DEV and QA teams easier access to what all our systems do. I like the "filtering" capability built into DocFx, but I'm wanting full-text search across all of the meta data. Do you have a recommendation for this functionality as well?
To change the location of the docfx output, edit the docfx.json file and specify the dest value. By default it is "dest": "_site". For more formatting guidance, reference: https://dotnet.github.io/docfx/tutorial/docfx.exe_user_manual.html.
Regarding full-text search, that is possible by simply ensuring the ExtractSearchIndex post-processor is invoked (in order to generate an index.json file of keywords) and that the global _enableSearch value is set to true in the docfx.json file. A snippet from that file would look like:
"postProcessors": [ "ExtractSearchIndex" ],
"globalMetadata": {
"_enableSearch": "true"
}
For your first question:
I think what you expect is like the .NET API Browser. The source code behind this page is not open to public, so you need create this page by yourself, through collecting xrefmap.yml from multiple sites, and extract the needed data into this page.
For your second question:
DocFX uses Luna to scan all the output files and generate an index file called index.json for later search use. In your case, you should want to limit the search scope only in the metadata you defined. This is also not supported by DocFX by default. You can also use Luna in your central place to search these meta. You can create your specific index.json for each project first, and the cental place to collect them for the search page.

No account/vpc available when trying to create security group

I've installed Spinnaker on AWS using the quick start guide (https://s3.amazonaws.com/quickstart-reference/spinnaker/latest/doc/spinnaker-on-the-aws-cloud.pdf). I'm now going through the bake/deploy (http://www.spinnaker.io/v1.0/docs/bake-and-deploy-pipeline) guide.
I'm trying to create a security group for my application, but there is nothing to select in the Account field. Also, the VPC field only shows None (EC2 Classic). What am I missing?
Tried this answer, but no luck: Unable to create an Application - no accounts listed in dashed rectangle beside the Accounts heading
Spinnaker follows some very specific naming conventions for VPCs. If these are existing VPCs/subnets, and you're not seeing anything in the VPC select field (assuming you're not seeing it when trying to create load balancers or server groups, too), you can add a tag to the VPC and its subnets via the AWS console with the key immutable_metadata and the value: {"purpose": "{subnet purpose}"}
The CF template from the quickstart names the vpc 'SpinnakerVPC' and the subnets SpinnakerVPC.internal.{az}. When i renamed the vpc to 'defaultvpc' and updated the subnet names to 'defaultvpc.internal.{az} and restarted i can now see my VPC's.
VPC need to have tag in the following format "{vpcName}.{subnetPurpose (e.g. "internal")}.{availabilityZone}". I am using my existing VPC and there I had to add tag "immutable_metadata = {"purpose": "{TestDeploy}"}" for VPC.
Also, make sure Subnet names are in the following format
"{VPC Name}.{external or internal}.{az}.
Make sure re-start the Spinnaker and refresh the case.
See the link for more detail information,
http://www.spinnaker.io/docs/troubleshooting-guide